@sankhyalabs/ezui 7.0.10 → 7.1.0-dev.10

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 (790) hide show
  1. package/dist/cjs/{ApplicationUtils-5cc05979.js → ApplicationUtils-d04f5c94.js} +1 -1
  2. package/dist/cjs/{app-globals-2fbe4b17.js → app-globals-c128c97e.js} +1 -1
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  9. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +3 -3
  10. package/dist/cjs/ez-combo-box.cjs.entry.js +2 -2
  11. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-dialog.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-form.cjs.entry.js +78 -42
  18. package/dist/cjs/ez-grid.cjs.entry.js +768 -108
  19. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  23. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-search-plus.cjs.entry.js +2 -2
  29. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-search.cjs.entry.js +41 -4
  31. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
  37. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  40. package/dist/cjs/ezui.cjs.js +3 -3
  41. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  42. package/dist/cjs/{index-1be40f19.js → index-00d0166b.js} +3 -0
  43. package/dist/cjs/loader.cjs.js +3 -3
  44. package/dist/cjs/{purify-e290e2d2.js → purify-453a8028.js} +1 -0
  45. package/dist/cjs/{search-column-00a916ae.js → search-column-8bfee733.js} +2 -2
  46. package/dist/collection/components/ez-dialog/ez-dialog.css +6 -1
  47. package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -1
  48. package/dist/collection/components/ez-search/ez-search.js +74 -2
  49. package/dist/collection/utils/form/FormMetadata.js +75 -39
  50. package/dist/collection/utils/i18n/locales/en-us.js +1 -0
  51. package/dist/collection/utils/i18n/locales/es-es.js +1 -0
  52. package/dist/collection/utils/i18n/locales/pt-br.js +1 -0
  53. package/dist/custom-elements/index.js +886 -149
  54. package/dist/esm/{ApplicationUtils-1569f757.js → ApplicationUtils-12768f5a.js} +1 -1
  55. package/dist/esm/{app-globals-c0ac93c0.js → app-globals-9507c20e.js} +1 -1
  56. package/dist/esm/ez-actions-button.entry.js +2 -2
  57. package/dist/esm/ez-alert-list.entry.js +1 -1
  58. package/dist/esm/ez-avatar.entry.js +1 -1
  59. package/dist/esm/ez-calendar.entry.js +1 -1
  60. package/dist/esm/ez-chart.entry.js +1 -1
  61. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  62. package/dist/esm/ez-combo-box-list_4.entry.js +3 -3
  63. package/dist/esm/ez-combo-box.entry.js +2 -2
  64. package/dist/esm/ez-date-input.entry.js +1 -1
  65. package/dist/esm/ez-date-time-input.entry.js +1 -1
  66. package/dist/esm/ez-dialog.entry.js +2 -2
  67. package/dist/esm/ez-double-list.entry.js +1 -1
  68. package/dist/esm/ez-file-item.entry.js +1 -1
  69. package/dist/esm/ez-form-view.entry.js +1 -1
  70. package/dist/esm/ez-form.entry.js +78 -42
  71. package/dist/esm/ez-grid.entry.js +768 -108
  72. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  73. package/dist/esm/ez-link-builder_6.entry.js +1 -1
  74. package/dist/esm/ez-list.entry.js +1 -1
  75. package/dist/esm/ez-modal-container.entry.js +2 -2
  76. package/dist/esm/ez-modal.entry.js +1 -1
  77. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  78. package/dist/esm/ez-number-input.entry.js +1 -1
  79. package/dist/esm/ez-pagination.entry.js +1 -1
  80. package/dist/esm/ez-popup.entry.js +1 -1
  81. package/dist/esm/ez-search-plus.entry.js +2 -2
  82. package/dist/esm/ez-search-result-list.entry.js +1 -1
  83. package/dist/esm/ez-search.entry.js +41 -4
  84. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  85. package/dist/esm/ez-skeleton.entry.js +1 -1
  86. package/dist/esm/ez-sortable-list.entry.js +1 -1
  87. package/dist/esm/ez-spinner.entry.js +1 -1
  88. package/dist/esm/ez-split-button.entry.js +1 -1
  89. package/dist/esm/ez-split-item.entry.js +2 -2
  90. package/dist/esm/ez-time-input.entry.js +1 -1
  91. package/dist/esm/ez-tree.entry.js +1 -1
  92. package/dist/esm/ez-upload.entry.js +2 -2
  93. package/dist/esm/ezui.js +3 -3
  94. package/dist/esm/filter-column.entry.js +1 -1
  95. package/dist/esm/{index-41363fa6.js → index-62fc771e.js} +3 -0
  96. package/dist/esm/loader.js +3 -3
  97. package/dist/esm/{purify-cb5f3256.js → purify-003c47e2.js} +1 -0
  98. package/dist/esm/{search-column-3984faec.js → search-column-c00119ae.js} +2 -2
  99. package/dist/ezui/ezui.esm.js +1 -1
  100. package/dist/ezui/p-0b333f09.entry.js +1 -0
  101. package/dist/ezui/{p-859e3134.entry.js → p-0c0eb410.entry.js} +1 -1
  102. package/dist/ezui/{p-0f7971cf.entry.js → p-124699e0.entry.js} +1 -1
  103. package/dist/ezui/{p-6ca0815e.entry.js → p-1266fe78.entry.js} +1 -1
  104. package/dist/ezui/p-14807f4e.js +1 -0
  105. package/dist/ezui/{p-18384b91.entry.js → p-1730ee24.entry.js} +1 -1
  106. package/dist/ezui/{p-39761eca.entry.js → p-1adf7139.entry.js} +1 -1
  107. package/dist/ezui/{p-3ce867cf.entry.js → p-1bfef8e5.entry.js} +1 -1
  108. package/dist/ezui/{p-d6bb930d.entry.js → p-1cde96f9.entry.js} +1 -1
  109. package/dist/ezui/{p-4fe123b6.entry.js → p-294f54fe.entry.js} +1 -1
  110. package/dist/ezui/{p-7f37ee99.entry.js → p-2a70f094.entry.js} +1 -1
  111. package/dist/ezui/{p-5c3a6717.entry.js → p-2ba2d792.entry.js} +1 -1
  112. package/dist/ezui/{p-9b215871.entry.js → p-3fe05d6b.entry.js} +1 -1
  113. package/dist/ezui/{p-d75a50a7.entry.js → p-4e1df756.entry.js} +1 -1
  114. package/dist/ezui/{p-56fc1da0.js → p-4f0632b4.js} +1 -1
  115. package/dist/ezui/{p-4314f87a.entry.js → p-59092a66.entry.js} +1 -1
  116. package/dist/ezui/{p-34a476a9.entry.js → p-59a98e31.entry.js} +1 -1
  117. package/dist/ezui/{p-baec56c9.js → p-5a11cf56.js} +1 -1
  118. package/dist/ezui/{p-d5eb2fad.entry.js → p-5ab08b60.entry.js} +1 -1
  119. package/dist/ezui/p-6369a0cd.entry.js +1 -0
  120. package/dist/ezui/{p-a61fdd20.js → p-641ee538.js} +1 -1
  121. package/dist/ezui/{p-ce0b36d7.entry.js → p-6a9a20a0.entry.js} +1 -1
  122. package/dist/ezui/{p-721fd999.entry.js → p-6f119d5f.entry.js} +1 -1
  123. package/dist/ezui/{p-a4083a7a.entry.js → p-79277e43.entry.js} +1 -1
  124. package/dist/ezui/{p-f1de2cd6.entry.js → p-8bb3aeb0.entry.js} +1 -1
  125. package/dist/ezui/p-8c57ffa4.entry.js +309 -0
  126. package/dist/ezui/{p-35bfaa88.entry.js → p-8dc267ff.entry.js} +1 -1
  127. package/dist/ezui/{p-6c51ccd1.entry.js → p-957d08cd.entry.js} +1 -1
  128. package/dist/ezui/{p-b989a33e.entry.js → p-a401041c.entry.js} +1 -1
  129. package/dist/ezui/{p-9b3f3c02.entry.js → p-a7eab406.entry.js} +1 -1
  130. package/dist/ezui/{p-e118a1e0.entry.js → p-ae5f64cd.entry.js} +1 -1
  131. package/dist/ezui/{p-65f019de.js → p-bb409cba.js} +1 -1
  132. package/dist/ezui/p-c82acfc6.entry.js +1 -0
  133. package/dist/ezui/{p-1b5aa969.entry.js → p-d0e6911e.entry.js} +1 -1
  134. package/dist/ezui/{p-ff73d5bf.entry.js → p-e03b2f19.entry.js} +1 -1
  135. package/dist/ezui/{p-14ceb733.entry.js → p-e27d7dc2.entry.js} +1 -1
  136. package/dist/ezui/{p-5d910b14.entry.js → p-e46a4d06.entry.js} +1 -1
  137. package/dist/ezui/{p-d6aa82c3.entry.js → p-e77610ef.entry.js} +1 -1
  138. package/dist/ezui/{p-05c32903.entry.js → p-e882635e.entry.js} +1 -1
  139. package/dist/ezui/{p-3afa1c6e.entry.js → p-e8c6c973.entry.js} +1 -1
  140. package/dist/ezui/{p-02d448bb.entry.js → p-e99cbb51.entry.js} +1 -1
  141. package/dist/ezui/{p-2c21b2b6.entry.js → p-eee3c7ff.entry.js} +1 -1
  142. package/dist/ezui/p-ff4bde07.entry.js +1 -0
  143. package/dist/types/components/ez-search/ez-search.d.ts +11 -0
  144. package/dist/types/components.d.ts +16 -0
  145. package/dist/types/utils/form/FormMetadata.d.ts +2 -1
  146. package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +3 -0
  147. package/dist/types/utils/form/interfaces/ITabConfig.d.ts +3 -0
  148. package/dist/types/utils/i18n/locales/en-us.d.ts +1 -0
  149. package/dist/types/utils/i18n/locales/es-es.d.ts +1 -0
  150. package/dist/types/utils/i18n/locales/pt-br.d.ts +1 -0
  151. package/dist/types/utils/i18n/translations.d.ts +3 -0
  152. package/package.json +1 -1
  153. package/dist/cjs/ApplicationUtils-5cc05979.js.gz +0 -0
  154. package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
  155. package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
  156. package/dist/cjs/DialogType-2114c337.js.gz +0 -0
  157. package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
  158. package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
  159. package/dist/cjs/FormLayout-18853e70.js.gz +0 -0
  160. package/dist/cjs/RichToolbarHelper-ea12328f.js.gz +0 -0
  161. package/dist/cjs/_commonjsHelpers-537d719a.js.gz +0 -0
  162. package/dist/cjs/app-globals-2fbe4b17.js.gz +0 -0
  163. package/dist/cjs/constants-72b7e05e.js.gz +0 -0
  164. package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
  165. package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
  166. package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
  167. package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
  168. package/dist/cjs/ez-avatar.cjs.entry.js.gz +0 -0
  169. package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
  170. package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
  171. package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
  172. package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
  173. package/dist/cjs/ez-card-item.cjs.entry.js.gz +0 -0
  174. package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
  175. package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
  176. package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
  177. package/dist/cjs/ez-classic-combo-box.cjs.entry.js.gz +0 -0
  178. package/dist/cjs/ez-classic-input.cjs.entry.js.gz +0 -0
  179. package/dist/cjs/ez-classic-text-area.cjs.entry.js.gz +0 -0
  180. package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
  181. package/dist/cjs/ez-combo-box-list_4.cjs.entry.js.gz +0 -0
  182. package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
  183. package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
  184. package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
  185. package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
  186. package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
  187. package/dist/cjs/ez-dropdown.cjs.entry.js.gz +0 -0
  188. package/dist/cjs/ez-empty-card.cjs.entry.js.gz +0 -0
  189. package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
  190. package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
  191. package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
  192. package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
  193. package/dist/cjs/ez-grid-view.cjs.entry.js.gz +0 -0
  194. package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
  195. package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
  196. package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
  197. package/dist/cjs/ez-link-builder_6.cjs.entry.js.gz +0 -0
  198. package/dist/cjs/ez-list-item.cjs.entry.js.gz +0 -0
  199. package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
  200. package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
  201. package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
  202. package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
  203. package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
  204. package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
  205. package/dist/cjs/ez-pagination.cjs.entry.js.gz +0 -0
  206. package/dist/cjs/ez-popover-core.cjs.entry.js.gz +0 -0
  207. package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
  208. package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
  209. package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
  210. package/dist/cjs/ez-progress-bar.cjs.entry.js.gz +0 -0
  211. package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
  212. package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js.gz +0 -0
  213. package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
  214. package/dist/cjs/ez-search-plus.cjs.entry.js.gz +0 -0
  215. package/dist/cjs/ez-search-result-list.cjs.entry.js.gz +0 -0
  216. package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
  217. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
  218. package/dist/cjs/ez-skeleton.cjs.entry.js.gz +0 -0
  219. package/dist/cjs/ez-sortable-list.cjs.entry.js.gz +0 -0
  220. package/dist/cjs/ez-spinner.cjs.entry.js.gz +0 -0
  221. package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
  222. package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
  223. package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
  224. package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
  225. package/dist/cjs/ez-tag-input.cjs.entry.js.gz +0 -0
  226. package/dist/cjs/ez-tag.cjs.entry.js.gz +0 -0
  227. package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
  228. package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
  229. package/dist/cjs/ez-tile-medium.cjs.entry.js.gz +0 -0
  230. package/dist/cjs/ez-tile.cjs.entry.js.gz +0 -0
  231. package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
  232. package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
  233. package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
  234. package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
  235. package/dist/cjs/ez-underface.cjs.entry.js.gz +0 -0
  236. package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
  237. package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
  238. package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
  239. package/dist/cjs/ezui.cjs.js.gz +0 -0
  240. package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
  241. package/dist/cjs/floating-ui.dom.esm-f4d87617.js.gz +0 -0
  242. package/dist/cjs/index-1be40f19.js.gz +0 -0
  243. package/dist/cjs/index-a7b0c73d.js.gz +0 -0
  244. package/dist/cjs/index.cjs.js.gz +0 -0
  245. package/dist/cjs/loader.cjs.js.gz +0 -0
  246. package/dist/cjs/purify-e290e2d2.js.gz +0 -0
  247. package/dist/cjs/search-column-00a916ae.js.gz +0 -0
  248. package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
  249. package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
  250. package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
  251. package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
  252. package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
  253. package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
  254. package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
  255. package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
  256. package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
  257. package/dist/collection/components/ez-avatar/ez-avatar.css.gz +0 -0
  258. package/dist/collection/components/ez-avatar/ez-avatar.js.gz +0 -0
  259. package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
  260. package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
  261. package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
  262. package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
  263. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
  264. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
  265. package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
  266. package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
  267. package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
  268. package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
  269. package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
  270. package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
  271. package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
  272. package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
  273. package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
  274. package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
  275. package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
  276. package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
  277. package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
  278. package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
  279. package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
  280. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
  281. package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
  282. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
  283. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
  284. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
  285. package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
  286. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
  287. package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
  288. package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
  289. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
  290. package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
  291. package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
  292. package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
  293. package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
  294. package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
  295. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css.gz +0 -0
  296. package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js.gz +0 -0
  297. package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js.gz +0 -0
  298. package/dist/collection/components/ez-classic-input/ez-classic-input.css.gz +0 -0
  299. package/dist/collection/components/ez-classic-input/ez-classic-input.js.gz +0 -0
  300. package/dist/collection/components/ez-classic-input/interfaces/optionsSetFocus.js.gz +0 -0
  301. package/dist/collection/components/ez-classic-input/utils/maskFormatter.js.gz +0 -0
  302. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css.gz +0 -0
  303. package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js.gz +0 -0
  304. package/dist/collection/components/ez-classic-text-area/interfaces/optionsSetFocus.js.gz +0 -0
  305. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
  306. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
  307. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
  308. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
  309. package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
  310. package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
  311. package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
  312. package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
  313. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
  314. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
  315. package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
  316. package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
  317. package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
  318. package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
  319. package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
  320. package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
  321. package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
  322. package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
  323. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
  324. package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
  325. package/dist/collection/components/ez-empty-card/ez-empty-card.css.gz +0 -0
  326. package/dist/collection/components/ez-empty-card/ez-empty-card.js.gz +0 -0
  327. package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
  328. package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
  329. package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
  330. package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
  331. package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
  332. package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
  333. package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
  334. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
  335. package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
  336. package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
  337. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
  338. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
  339. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
  340. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
  341. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
  342. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
  343. package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js.gz +0 -0
  344. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
  345. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js.gz +0 -0
  346. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
  347. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
  348. package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
  349. package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
  350. package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
  351. package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
  352. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
  353. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
  354. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
  355. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
  356. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
  357. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
  358. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
  359. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
  360. package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
  361. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
  362. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
  363. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
  364. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
  365. package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
  366. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
  367. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
  368. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
  369. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
  370. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
  371. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
  372. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
  373. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js.gz +0 -0
  374. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
  375. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
  376. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
  377. package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js.gz +0 -0
  378. package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
  379. package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
  380. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
  381. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
  382. package/dist/collection/components/ez-grid/interfaces/IGridMode.js.gz +0 -0
  383. package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
  384. package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
  385. package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
  386. package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
  387. package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
  388. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
  389. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
  390. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
  391. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
  392. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
  393. package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
  394. package/dist/collection/components/ez-grid-view/ez-grid-view.css.gz +0 -0
  395. package/dist/collection/components/ez-grid-view/ez-grid-view.js.gz +0 -0
  396. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
  397. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
  398. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
  399. package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
  400. package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
  401. package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
  402. package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
  403. package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
  404. package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
  405. package/dist/collection/components/ez-list-item/ez-list-item.css.gz +0 -0
  406. package/dist/collection/components/ez-list-item/ez-list-item.js.gz +0 -0
  407. package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
  408. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
  409. package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
  410. package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
  411. package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
  412. package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
  413. package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
  414. package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
  415. package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
  416. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
  417. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
  418. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
  419. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
  420. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js.gz +0 -0
  421. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
  422. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
  423. package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
  424. package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
  425. package/dist/collection/components/ez-pagination/ez-pagination.css.gz +0 -0
  426. package/dist/collection/components/ez-pagination/ez-pagination.js.gz +0 -0
  427. package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
  428. package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
  429. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
  430. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
  431. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
  432. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
  433. package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
  434. package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
  435. package/dist/collection/components/ez-popup/interfaces/EzButtonProps.js.gz +0 -0
  436. package/dist/collection/components/ez-progress-bar/ez-progress-bar.css.gz +0 -0
  437. package/dist/collection/components/ez-progress-bar/ez-progress-bar.js.gz +0 -0
  438. package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
  439. package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
  440. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css.gz +0 -0
  441. package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js.gz +0 -0
  442. package/dist/collection/components/ez-rich-text/ez-rich-text.css.gz +0 -0
  443. package/dist/collection/components/ez-rich-text/ez-rich-text.js.gz +0 -0
  444. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js.gz +0 -0
  445. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css.gz +0 -0
  446. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js.gz +0 -0
  447. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css.gz +0 -0
  448. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js.gz +0 -0
  449. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css.gz +0 -0
  450. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js.gz +0 -0
  451. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css.gz +0 -0
  452. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js.gz +0 -0
  453. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css.gz +0 -0
  454. package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js.gz +0 -0
  455. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css.gz +0 -0
  456. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js.gz +0 -0
  457. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js.gz +0 -0
  458. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js.gz +0 -0
  459. package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js.gz +0 -0
  460. package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
  461. package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
  462. package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
  463. package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
  464. package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
  465. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
  466. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
  467. package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
  468. package/dist/collection/components/ez-search-plus/ez-search-plus.css.gz +0 -0
  469. package/dist/collection/components/ez-search-plus/ez-search-plus.js.gz +0 -0
  470. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css.gz +0 -0
  471. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js.gz +0 -0
  472. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
  473. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
  474. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
  475. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
  476. package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
  477. package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
  478. package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
  479. package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
  480. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
  481. package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
  482. package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
  483. package/dist/collection/components/ez-sortable-list/ez-sortable-list.css.gz +0 -0
  484. package/dist/collection/components/ez-sortable-list/ez-sortable-list.js.gz +0 -0
  485. package/dist/collection/components/ez-spinner/ez-spinner.css.gz +0 -0
  486. package/dist/collection/components/ez-spinner/ez-spinner.js.gz +0 -0
  487. package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
  488. package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
  489. package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
  490. package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
  491. package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
  492. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
  493. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
  494. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
  495. package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
  496. package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
  497. package/dist/collection/components/ez-tag/ez-tag.css.gz +0 -0
  498. package/dist/collection/components/ez-tag/ez-tag.js.gz +0 -0
  499. package/dist/collection/components/ez-tag-input/ez-tag-input.css.gz +0 -0
  500. package/dist/collection/components/ez-tag-input/ez-tag-input.js.gz +0 -0
  501. package/dist/collection/components/ez-tag-input/interfaces/optionsSetFocus.js.gz +0 -0
  502. package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
  503. package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
  504. package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
  505. package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
  506. package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
  507. package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
  508. package/dist/collection/components/ez-tile/ez-tile.css.gz +0 -0
  509. package/dist/collection/components/ez-tile/ez-tile.js.gz +0 -0
  510. package/dist/collection/components/ez-tile-medium/ez-tile-medium.css.gz +0 -0
  511. package/dist/collection/components/ez-tile-medium/ez-tile-medium.js.gz +0 -0
  512. package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
  513. package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
  514. package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
  515. package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
  516. package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
  517. package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
  518. package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
  519. package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
  520. package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
  521. package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
  522. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
  523. package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
  524. package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
  525. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
  526. package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
  527. package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
  528. package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
  529. package/dist/collection/components/ez-tree/types/UpdateItemConfig.js.gz +0 -0
  530. package/dist/collection/components/ez-underface/ez-underface.css.gz +0 -0
  531. package/dist/collection/components/ez-underface/ez-underface.js.gz +0 -0
  532. package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
  533. package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
  534. package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
  535. package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
  536. package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
  537. package/dist/collection/global/app-init.js.gz +0 -0
  538. package/dist/collection/index.js.gz +0 -0
  539. package/dist/collection/servidor.js.gz +0 -0
  540. package/dist/collection/setupTests.js.gz +0 -0
  541. package/dist/collection/sw.js.gz +0 -0
  542. package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
  543. package/dist/collection/utils/AssetsUtils.js.gz +0 -0
  544. package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
  545. package/dist/collection/utils/FocusResolver.js.gz +0 -0
  546. package/dist/collection/utils/ag-grid-license.js.gz +0 -0
  547. package/dist/collection/utils/constants.js.gz +0 -0
  548. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
  549. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
  550. package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
  551. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
  552. package/dist/collection/utils/form/DataBinder.js.gz +0 -0
  553. package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
  554. package/dist/collection/utils/form/index.js.gz +0 -0
  555. package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
  556. package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
  557. package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
  558. package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
  559. package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
  560. package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
  561. package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
  562. package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
  563. package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
  564. package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
  565. package/dist/collection/utils/i18n/elanguages.js.gz +0 -0
  566. package/dist/collection/utils/i18n/index.js.gz +0 -0
  567. package/dist/collection/utils/i18n/locales/en-us.js.gz +0 -0
  568. package/dist/collection/utils/i18n/locales/es-es.js.gz +0 -0
  569. package/dist/collection/utils/i18n/locales/pt-br.js.gz +0 -0
  570. package/dist/collection/utils/i18n/translations.js.gz +0 -0
  571. package/dist/collection/utils/index.js.gz +0 -0
  572. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
  573. package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
  574. package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
  575. package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
  576. package/dist/collection/utils/search/types.js.gz +0 -0
  577. package/dist/collection/utils/searchColumn/search-column.js.gz +0 -0
  578. package/dist/collection/utils/utils.js.gz +0 -0
  579. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
  580. package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
  581. package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
  582. package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
  583. package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
  584. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
  585. package/dist/custom-elements/index.js.gz +0 -0
  586. package/dist/esm/ApplicationUtils-1569f757.js.gz +0 -0
  587. package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
  588. package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
  589. package/dist/esm/DialogType-54a62731.js.gz +0 -0
  590. package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
  591. package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
  592. package/dist/esm/FormLayout-071d324c.js.gz +0 -0
  593. package/dist/esm/RichToolbarHelper-f3a149c4.js.gz +0 -0
  594. package/dist/esm/_commonjsHelpers-9943807e.js.gz +0 -0
  595. package/dist/esm/app-globals-c0ac93c0.js.gz +0 -0
  596. package/dist/esm/constants-3fabe81e.js.gz +0 -0
  597. package/dist/esm/ez-actions-button.entry.js.gz +0 -0
  598. package/dist/esm/ez-alert-list.entry.js.gz +0 -0
  599. package/dist/esm/ez-alert.entry.js.gz +0 -0
  600. package/dist/esm/ez-application.entry.js.gz +0 -0
  601. package/dist/esm/ez-avatar.entry.js.gz +0 -0
  602. package/dist/esm/ez-badge.entry.js.gz +0 -0
  603. package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
  604. package/dist/esm/ez-button.entry.js.gz +0 -0
  605. package/dist/esm/ez-calendar.entry.js.gz +0 -0
  606. package/dist/esm/ez-card-item.entry.js.gz +0 -0
  607. package/dist/esm/ez-chart.entry.js.gz +0 -0
  608. package/dist/esm/ez-check.entry.js.gz +0 -0
  609. package/dist/esm/ez-chip.entry.js.gz +0 -0
  610. package/dist/esm/ez-classic-combo-box.entry.js.gz +0 -0
  611. package/dist/esm/ez-classic-input.entry.js.gz +0 -0
  612. package/dist/esm/ez-classic-text-area.entry.js.gz +0 -0
  613. package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
  614. package/dist/esm/ez-combo-box-list_4.entry.js.gz +0 -0
  615. package/dist/esm/ez-combo-box.entry.js.gz +0 -0
  616. package/dist/esm/ez-date-input.entry.js.gz +0 -0
  617. package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
  618. package/dist/esm/ez-dialog.entry.js.gz +0 -0
  619. package/dist/esm/ez-double-list.entry.js.gz +0 -0
  620. package/dist/esm/ez-dropdown.entry.js.gz +0 -0
  621. package/dist/esm/ez-empty-card.entry.js.gz +0 -0
  622. package/dist/esm/ez-file-item.entry.js.gz +0 -0
  623. package/dist/esm/ez-filter-input.entry.js.gz +0 -0
  624. package/dist/esm/ez-form-view.entry.js.gz +0 -0
  625. package/dist/esm/ez-form.entry.js.gz +0 -0
  626. package/dist/esm/ez-grid-view.entry.js.gz +0 -0
  627. package/dist/esm/ez-grid.entry.js.gz +0 -0
  628. package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
  629. package/dist/esm/ez-icon.entry.js.gz +0 -0
  630. package/dist/esm/ez-link-builder_6.entry.js.gz +0 -0
  631. package/dist/esm/ez-list-item.entry.js.gz +0 -0
  632. package/dist/esm/ez-list.entry.js.gz +0 -0
  633. package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
  634. package/dist/esm/ez-modal-container.entry.js.gz +0 -0
  635. package/dist/esm/ez-modal.entry.js.gz +0 -0
  636. package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
  637. package/dist/esm/ez-number-input.entry.js.gz +0 -0
  638. package/dist/esm/ez-pagination.entry.js.gz +0 -0
  639. package/dist/esm/ez-popover-core.entry.js.gz +0 -0
  640. package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
  641. package/dist/esm/ez-popover.entry.js.gz +0 -0
  642. package/dist/esm/ez-popup.entry.js.gz +0 -0
  643. package/dist/esm/ez-progress-bar.entry.js.gz +0 -0
  644. package/dist/esm/ez-radio-button.entry.js.gz +0 -0
  645. package/dist/esm/ez-rich-toolbar-item.entry.js.gz +0 -0
  646. package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
  647. package/dist/esm/ez-search-plus.entry.js.gz +0 -0
  648. package/dist/esm/ez-search-result-list.entry.js.gz +0 -0
  649. package/dist/esm/ez-search.entry.js.gz +0 -0
  650. package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
  651. package/dist/esm/ez-skeleton.entry.js.gz +0 -0
  652. package/dist/esm/ez-sortable-list.entry.js.gz +0 -0
  653. package/dist/esm/ez-spinner.entry.js.gz +0 -0
  654. package/dist/esm/ez-split-button.entry.js.gz +0 -0
  655. package/dist/esm/ez-split-item.entry.js.gz +0 -0
  656. package/dist/esm/ez-split-panel.entry.js.gz +0 -0
  657. package/dist/esm/ez-tabselector.entry.js.gz +0 -0
  658. package/dist/esm/ez-tag-input.entry.js.gz +0 -0
  659. package/dist/esm/ez-tag.entry.js.gz +0 -0
  660. package/dist/esm/ez-text-area.entry.js.gz +0 -0
  661. package/dist/esm/ez-text-input.entry.js.gz +0 -0
  662. package/dist/esm/ez-tile-medium.entry.js.gz +0 -0
  663. package/dist/esm/ez-tile.entry.js.gz +0 -0
  664. package/dist/esm/ez-time-input.entry.js.gz +0 -0
  665. package/dist/esm/ez-toast.entry.js.gz +0 -0
  666. package/dist/esm/ez-tooltip.entry.js.gz +0 -0
  667. package/dist/esm/ez-tree.entry.js.gz +0 -0
  668. package/dist/esm/ez-underface.entry.js.gz +0 -0
  669. package/dist/esm/ez-upload.entry.js.gz +0 -0
  670. package/dist/esm/ez-view-stack.entry.js.gz +0 -0
  671. package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
  672. package/dist/esm/ezui.js.gz +0 -0
  673. package/dist/esm/filter-column.entry.js.gz +0 -0
  674. package/dist/esm/floating-ui.dom.esm-ad30f2f0.js.gz +0 -0
  675. package/dist/esm/index-41363fa6.js.gz +0 -0
  676. package/dist/esm/index-baa5e267.js.gz +0 -0
  677. package/dist/esm/index.js.gz +0 -0
  678. package/dist/esm/loader.js.gz +0 -0
  679. package/dist/esm/polyfills/core-js.js.gz +0 -0
  680. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  681. package/dist/esm/polyfills/dom.js.gz +0 -0
  682. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  683. package/dist/esm/polyfills/index.js.gz +0 -0
  684. package/dist/esm/polyfills/system.js.gz +0 -0
  685. package/dist/esm/purify-cb5f3256.js.gz +0 -0
  686. package/dist/esm/search-column-3984faec.js.gz +0 -0
  687. package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
  688. package/dist/ezui/ezui.esm.js.gz +0 -0
  689. package/dist/ezui/index.esm.js.gz +0 -0
  690. package/dist/ezui/p-02d448bb.entry.js.gz +0 -0
  691. package/dist/ezui/p-05c32903.entry.js.gz +0 -0
  692. package/dist/ezui/p-0e49c0ff.entry.js.gz +0 -0
  693. package/dist/ezui/p-0f7971cf.entry.js.gz +0 -0
  694. package/dist/ezui/p-112455b1.js.gz +0 -0
  695. package/dist/ezui/p-14ceb733.entry.js.gz +0 -0
  696. package/dist/ezui/p-18384b91.entry.js.gz +0 -0
  697. package/dist/ezui/p-1b5aa969.entry.js.gz +0 -0
  698. package/dist/ezui/p-1e7a8633.entry.js.gz +0 -0
  699. package/dist/ezui/p-1f50fa05.entry.js.gz +0 -0
  700. package/dist/ezui/p-20c024f7.entry.js.gz +0 -0
  701. package/dist/ezui/p-23a36bb6.js.gz +0 -0
  702. package/dist/ezui/p-2528e988.entry.js.gz +0 -0
  703. package/dist/ezui/p-288631d1.entry.js.gz +0 -0
  704. package/dist/ezui/p-2a806303.js.gz +0 -0
  705. package/dist/ezui/p-2c21b2b6.entry.js.gz +0 -0
  706. package/dist/ezui/p-30ffb9ed.js.gz +0 -0
  707. package/dist/ezui/p-34a476a9.entry.js.gz +0 -0
  708. package/dist/ezui/p-35bfaa88.entry.js.gz +0 -0
  709. package/dist/ezui/p-39761eca.entry.js.gz +0 -0
  710. package/dist/ezui/p-3afa1c6e.entry.js.gz +0 -0
  711. package/dist/ezui/p-3ce867cf.entry.js.gz +0 -0
  712. package/dist/ezui/p-3e767a74.js.gz +0 -0
  713. package/dist/ezui/p-40a60148.js.gz +0 -0
  714. package/dist/ezui/p-411c0222.entry.js.gz +0 -0
  715. package/dist/ezui/p-4314f87a.entry.js.gz +0 -0
  716. package/dist/ezui/p-43adc10c.entry.js +0 -1
  717. package/dist/ezui/p-43adc10c.entry.js.gz +0 -0
  718. package/dist/ezui/p-48effc69.entry.js.gz +0 -0
  719. package/dist/ezui/p-4d30b703.entry.js.gz +0 -0
  720. package/dist/ezui/p-4fe123b6.entry.js.gz +0 -0
  721. package/dist/ezui/p-5554704c.js +0 -1
  722. package/dist/ezui/p-5554704c.js.gz +0 -0
  723. package/dist/ezui/p-56fc1da0.js.gz +0 -0
  724. package/dist/ezui/p-59420b0a.entry.js +0 -309
  725. package/dist/ezui/p-59420b0a.entry.js.gz +0 -0
  726. package/dist/ezui/p-5c3a6717.entry.js.gz +0 -0
  727. package/dist/ezui/p-5d910b14.entry.js.gz +0 -0
  728. package/dist/ezui/p-5ed81457.entry.js.gz +0 -0
  729. package/dist/ezui/p-6020f3d5.entry.js.gz +0 -0
  730. package/dist/ezui/p-65f019de.js.gz +0 -0
  731. package/dist/ezui/p-6c51ccd1.entry.js.gz +0 -0
  732. package/dist/ezui/p-6ca0815e.entry.js.gz +0 -0
  733. package/dist/ezui/p-6d596a5a.entry.js.gz +0 -0
  734. package/dist/ezui/p-6f77a359.entry.js.gz +0 -0
  735. package/dist/ezui/p-721fd999.entry.js.gz +0 -0
  736. package/dist/ezui/p-7995dcb4.entry.js +0 -1
  737. package/dist/ezui/p-7995dcb4.entry.js.gz +0 -0
  738. package/dist/ezui/p-79abad9e.entry.js +0 -1
  739. package/dist/ezui/p-79abad9e.entry.js.gz +0 -0
  740. package/dist/ezui/p-7f37ee99.entry.js.gz +0 -0
  741. package/dist/ezui/p-7f792043.entry.js.gz +0 -0
  742. package/dist/ezui/p-7f8c1fce.entry.js.gz +0 -0
  743. package/dist/ezui/p-7fe97ef5.entry.js.gz +0 -0
  744. package/dist/ezui/p-80dfc50b.js.gz +0 -0
  745. package/dist/ezui/p-859e3134.entry.js.gz +0 -0
  746. package/dist/ezui/p-8df1ca33.entry.js.gz +0 -0
  747. package/dist/ezui/p-91c9d50e.entry.js.gz +0 -0
  748. package/dist/ezui/p-93e1c917.entry.js.gz +0 -0
  749. package/dist/ezui/p-98bb8b16.js.gz +0 -0
  750. package/dist/ezui/p-9b215871.entry.js.gz +0 -0
  751. package/dist/ezui/p-9b2e6438.entry.js.gz +0 -0
  752. package/dist/ezui/p-9b3f3c02.entry.js.gz +0 -0
  753. package/dist/ezui/p-9f5fa3f9.entry.js.gz +0 -0
  754. package/dist/ezui/p-a0bf1fc7.entry.js.gz +0 -0
  755. package/dist/ezui/p-a3075f52.entry.js.gz +0 -0
  756. package/dist/ezui/p-a3ada561.entry.js.gz +0 -0
  757. package/dist/ezui/p-a4083a7a.entry.js.gz +0 -0
  758. package/dist/ezui/p-a61fdd20.js.gz +0 -0
  759. package/dist/ezui/p-a80b1287.entry.js.gz +0 -0
  760. package/dist/ezui/p-ab574d59.js.gz +0 -0
  761. package/dist/ezui/p-b0a7713d.entry.js +0 -1
  762. package/dist/ezui/p-b0a7713d.entry.js.gz +0 -0
  763. package/dist/ezui/p-b1e45320.js.gz +0 -0
  764. package/dist/ezui/p-b853763b.js.gz +0 -0
  765. package/dist/ezui/p-b989a33e.entry.js.gz +0 -0
  766. package/dist/ezui/p-ba7e908a.entry.js.gz +0 -0
  767. package/dist/ezui/p-baec56c9.js.gz +0 -0
  768. package/dist/ezui/p-bc2f844e.entry.js.gz +0 -0
  769. package/dist/ezui/p-ce0b36d7.entry.js.gz +0 -0
  770. package/dist/ezui/p-d2645bdf.entry.js.gz +0 -0
  771. package/dist/ezui/p-d5eb2fad.entry.js.gz +0 -0
  772. package/dist/ezui/p-d6742c1e.entry.js.gz +0 -0
  773. package/dist/ezui/p-d6aa82c3.entry.js.gz +0 -0
  774. package/dist/ezui/p-d6bb930d.entry.js.gz +0 -0
  775. package/dist/ezui/p-d6f50207.entry.js.gz +0 -0
  776. package/dist/ezui/p-d75a50a7.entry.js.gz +0 -0
  777. package/dist/ezui/p-d8cc640d.entry.js.gz +0 -0
  778. package/dist/ezui/p-dc628ed3.js.gz +0 -0
  779. package/dist/ezui/p-dee18824.entry.js.gz +0 -0
  780. package/dist/ezui/p-e118a1e0.entry.js.gz +0 -0
  781. package/dist/ezui/p-e75c7a23.entry.js.gz +0 -0
  782. package/dist/ezui/p-e7a7c594.entry.js.gz +0 -0
  783. package/dist/ezui/p-e8c57463.entry.js.gz +0 -0
  784. package/dist/ezui/p-ec7db713.js.gz +0 -0
  785. package/dist/ezui/p-ef8bd3e8.entry.js.gz +0 -0
  786. package/dist/ezui/p-f1de2cd6.entry.js.gz +0 -0
  787. package/dist/ezui/p-fa6732f2.entry.js.gz +0 -0
  788. package/dist/ezui/p-ff73d5bf.entry.js.gz +0 -0
  789. package/dist/index.cjs.js.gz +0 -0
  790. package/dist/index.js.gz +0 -0
@@ -0,0 +1,309 @@
1
+ import{h as t,r as i,c as n,H as e,g as r}from"./p-23a36bb6.js";import{Action as o,DataUnit as s,ObjectUtils as u,UserInterface as h,HTMLBuilder as c,ApplicationContext as a,StringUtils as l,LockManager as f,LockManagerOperation as d,DataType as v,NumberUtils as p,MaskFormatter as g,SortMode as m,ElementIDUtils as b,ColumnFilterManager as w,DateUtils as y,ArrayUtils as C,FieldComparator as S,JSUtils as R,OverflowWatcher as O,OVERFLOWED_CLASS_NAME as A,KeyboardManager as j}from"@sankhyalabs/core";import{SelectionMode as _}from"@sankhyalabs/core/dist/dataunit/DataUnit";import{A as G}from"./p-5a11cf56.js";import"./p-ab574d59.js";import"./p-b853763b.js";import{g as x,i as M}from"./p-641ee538.js";import{C as F,a as k}from"./p-30ffb9ed.js";import{b as P,R as D,D as I,S as E,f as T,c as z,a as N}from"./p-4f0632b4.js";import{D as L,E as B,P as H,a as W}from"./p-b1e45320.js";import{F as V}from"./p-dc628ed3.js";import{p as U}from"./p-bb409cba.js";import"./p-112455b1.js";
2
+ /**
3
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
4
+ * @version v28.2.1
5
+ * @link https://www.ag-grid.com/
6
+ * @license MIT
7
+ */function K(t){return null==t||""===t?null:t}function $(t,i){return void 0===i&&(i=!1),null!=t&&(""!==t||i)}function q(t){return!$(t)}function Y(t){return null==t||0===t.length}function J(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function Z(t){if(void 0!==t){if(null===t||""===t)return null;if("number"==typeof t)return isNaN(t)?void 0:t;var i=parseInt(t,10);return isNaN(i)?void 0:i}}function X(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function Q(t){if(t instanceof Set||t instanceof Map){var i=[];return t.forEach((function(t){return i.push(t)})),i}return Object.values(t)}const tt=Object.freeze({__proto__:null,makeNull:K,exists:$,missing:q,missingOrEmpty:Y,toStringOrNull:J,attrToNumber:Z,attrToBoolean:X,attrToString:function(t){if(null!=t&&""!==t)return t},referenceCompare:function(t,i){return null==t&&null==i||(null!=t||null==i)&&(null==t||null!=i)&&t===i},jsonEquals:function(t,i){return(t?JSON.stringify(t):null)===(i?JSON.stringify(i):null)},defaultComparator:function(t,i,n){void 0===n&&(n=!1);var e=null==t,r=null==i;if(t&&t.toNumber&&(t=t.toNumber()),i&&i.toNumber&&(i=i.toNumber()),e&&r)return 0;if(e)return-1;if(r)return 1;function o(t,i){return t>i?1:t<i?-1:0}if("string"!=typeof t)return o(t,i);if(!n)return o(t,i);try{return t.localeCompare(i)}catch(n){return o(t,i)}},values:Q});
8
+ /**
9
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
10
+ * @version v28.2.1
11
+ * @link https://www.ag-grid.com/
12
+ * @license MIT
13
+ */var it=function(){function t(){this.existingKeys={}}return t.prototype.addExistingKeys=function(t){for(var i=0;i<t.length;i++)this.existingKeys[t[i]]=!0},t.prototype.getUniqueKey=function(t,i){t=J(t);for(var n=0;;){var e=void 0;if(t?(e=t,0!==n&&(e+="_"+n)):i?(e=i,0!==n&&(e+="_"+n)):e=""+n,!this.existingKeys[e])return this.existingKeys[e]=!0,e;n++}},t}();
14
+ /**
15
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
16
+ * @version v28.2.1
17
+ * @link https://www.ag-grid.com/
18
+ * @license MIT
19
+ */function nt(t,i){null!=t&&(Array.isArray(t)?t.forEach((function(t,n){return i(""+n,t)})):Object.keys(t).forEach((function(n){return i(n,t[n])})))}function et(t){for(var i={},n=Object.keys(t),e=0;e<n.length;e++){var r=n[e];i[r]=t[r]}return i}function rt(t,i){if(t){var n=t,e={};return Object.keys(n).forEach((function(t){if(!(i&&i.indexOf(t)>=0)){var r=n[t],o=dt(r)&&r.constructor===Object;e[t]=o?rt(r):r}})),e}}function ot(t,i){return t[i]}function st(t,i,n){t[i]=n}function ut(t,i,n,e){var r=ot(t,n);void 0!==r&&st(i,n,e?e(r):r)}function ht(t){var i={};return t.filter((function(t){return null!=t})).forEach((function(t){Object.keys(t).forEach((function(t){return i[t]=null}))})),Object.keys(i)}function ct(t){if(!t)return[];var i=Object;if("function"==typeof i.values)return i.values(t);var n=[];for(var e in t)t.hasOwnProperty(e)&&t.propertyIsEnumerable(e)&&n.push(t[e]);return n}function at(t,i,n,e){void 0===n&&(n=!0),void 0===e&&(e=!1),$(i)&&nt(i,(function(i,r){var o=t[i];o!==r&&(e&&null==o&&null!=r&&"object"==typeof r&&r.constructor===Object&&(t[i]=o={}),dt(r)&&dt(o)&&!Array.isArray(o)?at(o,r,n,e):(n||void 0!==r)&&(t[i]=r))}))}function lt(t,i,n){if(i&&t){if(!n)return t[i];for(var e=i.split("."),r=t,o=0;o<e.length;o++){if(null==r)return;r=r[e[o]]}return r}}function ft(t,i){Object.keys(t).forEach((function(i){"object"==typeof t[i]&&(t[i]=void 0)}));var n=Object.getPrototypeOf(t),e={};Object.keys(n).forEach((function(t){"function"==typeof n[t]&&(e[t]={value:function(){console.warn("AG Grid: "+i+" function "+t+"() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.")},writable:!0})})),Object.defineProperties(t,e)}function dt(t){return"object"==typeof t&&null!==t}const vt=Object.freeze({__proto__:null,iterateObject:nt,cloneObject:et,deepCloneObject:function(t){return JSON.parse(JSON.stringify(t))},deepCloneDefinition:rt,getProperty:ot,setProperty:st,copyPropertiesIfPresent:function(t,i){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];n.forEach((function(n){return ut(t,i,n)}))},copyPropertyIfPresent:ut,getAllKeysInObjects:ht,getAllValuesInObject:ct,mergeDeep:at,missingOrEmptyObject:function(t){return q(t)||0===Object.keys(t).length},get:function(t,i,n){if(null==t)return n;for(var e=i.split("."),r=t;e.length>1;)if(null==(r=r[e.shift()]))return n;var o=r[e[0]];return null!=o?o:n},set:function(t,i,n){if(null!=t){for(var e=i.split("."),r=t;e.length>1;)if(null==(r=r[e.shift()]))return;r[e[0]]=n}},deepFreeze:function t(i){return Object.freeze(i),Q(i).forEach((function(i){(dt(i)||"function"==typeof i)&&t(i)})),i},getValueUsingField:lt,removeAllReferences:ft,isNonNullObject:dt});
20
+ /**
21
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
22
+ * @version v28.2.1
23
+ * @link https://www.ag-grid.com/
24
+ * @license MIT
25
+ */var pt={};function gt(t,i){pt[i]||(t(),pt[i]=!0)}function mt(t){if(t.name)return t.name;var i=/function\s+([^\(]+)/.exec(t.toString());return i&&2===i.length?i[1].trim():null}function bt(t){return!!(t&&t.constructor&&t.call&&t.apply)}function wt(t){Rt(t,400)}var yt=[],Ct=!1;function St(t){yt.push(t),Ct||(Ct=!0,window.setTimeout((function(){var t=yt.slice();yt.length=0,Ct=!1,t.forEach((function(t){return t()}))}),0))}function Rt(t,i){void 0===i&&(i=0),t.length>0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),i)}function Ot(t,i,n){var e;return void 0===n&&(n=!1),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var s=this,u=n&&!e;window.clearTimeout(e),e=window.setTimeout((function(){e=null,n||t.apply(s,r)}),i),u&&t.apply(s,r)}}function At(t,i){var n=0;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this,s=(new Date).getTime();s-n<i||(n=s,t.apply(o,e))}}function jt(t,i,n,e){void 0===n&&(n=100);var r=(new Date).getTime(),o=null,s=!1,u=function(){var u=(new Date).getTime()-r>n;(t()||u)&&(i(),s=!0,null!=o&&(window.clearInterval(o),o=null),u&&e&&console.warn(e))};u(),s||(o=window.setInterval(u,10))}function _t(t){t&&t()}const Gt=Object.freeze({__proto__:null,doOnce:gt,getFunctionName:mt,isFunction:bt,executeInAWhile:wt,executeNextVMTurn:St,executeAfter:Rt,debounce:Ot,throttle:At,waitUntil:jt,compose:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return function(i){return t.reduce((function(t,i){return i(t)}),i)}},callIfPresent:_t,noop:function(){}});
26
+ /**
27
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
28
+ * @version v28.2.1
29
+ * @link https://www.ag-grid.com/
30
+ * @license MIT
31
+ */var xt=function(){function t(t,i){if(this.beanWrappers={},this.destroyed=!1,t&&t.beanClasses){this.contextParams=t,this.logger=i,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return t.prototype.getBeanInstances=function(){return Q(this.beanWrappers).map((function(t){return t.beanInstance}))},t.prototype.createBean=function(t,i){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],i),t},t.prototype.wireBeans=function(t,i){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),$(i)&&t.forEach(i),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),nt(this.beanWrappers,(function(i,n){var e;n.bean.__agBeanMetaData&&n.bean.__agBeanMetaData.autowireMethods&&n.bean.__agBeanMetaData.autowireMethods.agConstructor&&(e=n.bean.__agBeanMetaData.autowireMethods.agConstructor);var r,o,s=t.getBeansForParameters(e,n.bean.name),u=(r=n.bean,o=[null].concat(s),new(r.bind.apply(r,o)));n.beanInstance=u}));var i=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+i)},t.prototype.createBeanWrapper=function(t){var i=t.__agBeanMetaData;if(!i){var n;return n=t.prototype.constructor?mt(t.prototype.constructor):""+t,void console.error("Context item "+n+" is not a bean")}this.beanWrappers[i.beanName]={bean:t,beanInstance:null,beanName:i.beanName}},t.prototype.autoWireBeans=function(t){var i=this;t.forEach((function(t){i.forEachMetaDataInHierarchy(t,(function(n,e){var r=n.agClassAttributes;r&&r.forEach((function(n){var r=i.lookupBeanInstance(e,n.beanName,n.optional);t[n.attributeName]=r}))}))}))},t.prototype.methodWireBeans=function(t){var i=this;t.forEach((function(t){i.forEachMetaDataInHierarchy(t,(function(n,e){nt(n.autowireMethods,(function(n,r){if("agConstructor"!==n){var o=i.getBeansForParameters(r,e);t[n].apply(t,o)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,i){for(var n=Object.getPrototypeOf(t);null!=n;){var e=n.constructor;e.hasOwnProperty("__agBeanMetaData")&&i(e.__agBeanMetaData,this.getBeanName(e)),n=Object.getPrototypeOf(n)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var i=t.toString();return i.substring(9,i.indexOf("("))},t.prototype.getBeansForParameters=function(t,i){var n=this,e=[];return t&&nt(t,(function(t,r){var o=n.lookupBeanInstance(i,r);e[Number(t)]=o})),e},t.prototype.lookupBeanInstance=function(t,i,n){if(void 0===n&&(n=!1),"context"===i)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(i))return this.contextParams.providedBeanInstances[i];var e=this.beanWrappers[i];return e?e.beanInstance:(n||console.error("AG Grid: unable to find bean reference "+i+" while initialising "+t),null)},t.prototype.callLifeCycleMethods=function(t,i){var n=this;t.forEach((function(t){return n.callLifeCycleMethodsOnBean(t,i)}))},t.prototype.callLifeCycleMethodsOnBean=function(t,i,n){var e={};this.forEachMetaDataInHierarchy(t,(function(t){var r=t[i];r&&r.forEach((function(t){t!=n&&(e[t]=!0)}))})),Object.keys(e).forEach((function(i){return t[i]()}))},t.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},t.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},t.prototype.destroyBeans=function(t){var i=this;return t?(t.forEach((function(t){i.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy"),"function"==typeof t.destroy&&t.destroy()})),[]):[]},t}();function Mt(t,i){var n=zt(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(i)}function Ft(t,i){var n=zt(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(i)}function kt(t,i){var n=zt(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(i)}function Pt(t){return function(i){zt(i).beanName=t}}function Dt(t){return function(i,n){Et(i,t,!1,0,n,null)}}function It(t){return function(i,n){Et(i,t,!0,0,n,null)}}function Et(t,i,n,e,r,o){if(null!==i)if("number"!=typeof o){var s=zt(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:r,beanName:i,optional:n})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function Tt(t){return function(i,n,e){var r,o="function"==typeof i?i:i.constructor;if("number"==typeof e){var s=void 0;n?(r=zt(o),s=n):(r=zt(o),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][e]=t}}}function zt(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}
32
+ /**
33
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
34
+ * @version v28.2.1
35
+ * @link https://www.ag-grid.com/
36
+ * @license MIT
37
+ */var Nt,Lt=function(){return Lt=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Lt.apply(this,arguments)},Bt=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ht=function(t,i){return function(n,e){i(n,e,t)}},Wt=function(){function t(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return t.prototype.setBeans=function(t,i,n,e){if(void 0===e&&(e=null),this.frameworkOverrides=n,this.gridOptionsWrapper=i,e){var r=i.useAsyncEvents();this.addGlobalListener(e,r)}},t.prototype.getListeners=function(t,i,n){var e=i?this.allAsyncListeners:this.allSyncListeners,r=e.get(t);return!r&&n&&(r=new Set,e.set(t,r)),r},t.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},t.prototype.addEventListener=function(t,i,n){void 0===n&&(n=!1),this.getListeners(t,n,!0).add(i)},t.prototype.removeEventListener=function(t,i,n){void 0===n&&(n=!1);var e=this.getListeners(t,n,!1);e&&(e.delete(i),0===e.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(t))},t.prototype.addGlobalListener=function(t,i){void 0===i&&(i=!1),(i?this.globalAsyncListeners:this.globalSyncListeners).add(t)},t.prototype.removeGlobalListener=function(t,i){void 0===i&&(i=!1),(i?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},t.prototype.dispatchEvent=function(t){var i=t;this.gridOptionsWrapper&&(i=Lt(Lt({},t),{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),this.dispatchToListeners(i,!0),this.dispatchToListeners(i,!1),this.firedEvents[i.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,i){var n=this,e=t.type,r=this.getListeners(e,i,!1);r&&function(e){e.forEach((function(e){i?n.dispatchAsync((function(){return e(t)})):e(t)}))}(r),(i?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){i?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(e,(function(){return r(e,t)}),!0)})):n.frameworkOverrides.dispatchEvent(e,(function(){return r(e,t)}),!0)}))},t.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},t.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach((function(t){return t()}))},Bt([Ht(0,Tt("loggerFactory")),Ht(1,Tt("gridOptionsWrapper")),Ht(2,Tt("frameworkOverrides")),Ht(3,Tt("globalEventListener"))],t.prototype,"setBeans",null),Bt([Pt("eventService")],t)}(),Vt=function(){function t(){}return t.ROW_BUFFER_SIZE=10,t.LAYOUT_INTERVAL=500,t.BATCH_WAIT_MILLIS=50,t.EXPORT_TYPE_DRAG_COPY="dragCopy",t.EXPORT_TYPE_CLIPBOARD="clipboard",t.EXPORT_TYPE_EXCEL="excel",t.EXPORT_TYPE_CSV="csv",t.ROW_MODEL_TYPE_INFINITE="infinite",t.ROW_MODEL_TYPE_VIEWPORT="viewport",t.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",t.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",t.ALWAYS="always",t.ONLY_WHEN_GROUPING="onlyWhenGrouping",t.PINNED_TOP="top",t.PINNED_BOTTOM="bottom",t.DOM_LAYOUT_NORMAL="normal",t.DOM_LAYOUT_PRINT="print",t.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",t.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",t.SOURCE_PASTE="paste",t.PINNED_RIGHT="right",t.PINNED_LEFT="left",t.SORT_ASC="asc",t.SORT_DESC="desc",t.INPUT_SELECTOR="input, select, button, textarea",t.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",t.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",t}();!function(t){t.CommunityCoreModule="@ag-grid-community/core",t.CommunityAllModules="@ag-grid-community/all",t.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",t.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",t.CsvExportModule="@ag-grid-community/csv-export",t.EnterpriseCoreModule="@ag-grid-enterprise/core",t.EnterpriseAllModules="@ag-grid-enterprise/all",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",t.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",t.MenuModule="@ag-grid-enterprise/menu",t.SetFilterModule="@ag-grid-enterprise/set-filter",t.MultiFilterModule="@ag-grid-enterprise/multi-filter",t.StatusBarModule="@ag-grid-enterprise/status-bar",t.SideBarModule="@ag-grid-enterprise/side-bar",t.RangeSelectionModule="@ag-grid-enterprise/range-selection",t.MasterDetailModule="@ag-grid-enterprise/master-detail",t.RichSelectModule="@ag-grid-enterprise/rich-select",t.GridChartsModule="@ag-grid-enterprise/charts",t.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",t.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",t.ExcelExportModule="@ag-grid-enterprise/excel-export",t.ClipboardModule="@ag-grid-enterprise/clipboard",t.SparklinesModule="@ag-grid-enterprise/sparklines",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue",t.PolymerModule="@ag-grid-community/polymer"}(Nt||(Nt={}));
38
+ /**
39
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
40
+ * @version v28.2.1
41
+ * @link https://www.ag-grid.com/
42
+ * @license MIT
43
+ */
44
+ var Ut=function(){function t(){}return t.register=function(i,n){void 0===n&&(n=!0),t.modulesMap[i.moduleName]=i,void 0===t.moduleBased?t.moduleBased=n:t.moduleBased!==n&&gt((function(){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/packages-modules/ for more information.")}),"ModulePackageCheck")},t.registerModules=function(i,n){void 0===n&&(n=!0),i&&i.forEach((function(i){return t.register(i,n)}))},t.assertRegistered=function(i,n){return!!this.isRegistered(i)||(e=t.moduleBased?"AG Grid: unable to use "+n+" as module "+i+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",gt((function(){console.warn(e)}),n+i),!1);var e},t.isRegistered=function(i){return!!t.modulesMap[i]},t.getRegisteredModules=function(){return Q(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}(),Kt=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$t=0,qt=function(){function t(t,i,n,e){this.instanceId=$t++,this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Wt,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=i,this.colId=n,this.primary=e,this.setState(t)}return t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setState=function(t){void 0!==t.sort?t.sort!==Vt.SORT_ASC&&t.sort!==Vt.SORT_DESC||(this.sort=t.sort):t.initialSort!==Vt.SORT_ASC&&t.initialSort!==Vt.SORT_DESC||(this.sort=t.initialSort);var i=Z(t.sortIndex),n=Z(t.initialSortIndex);void 0!==i?null!==i&&(this.sortIndex=i):null!==n&&(this.sortIndex=n);var e=X(t.hide),r=X(t.initialHide);this.visible=void 0!==e?!e:!r,this.setPinned(void 0!==t.pinned?t.pinned:t.initialPinned);var o=Z(t.flex),s=Z(t.initialFlex);void 0!==o?this.flex=o:void 0!==s&&(this.flex=s)},t.prototype.setColDef=function(i,n){this.colDef=i,this.userProvidedColDef=n,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_COL_DEF_CHANGED,"api"))},t.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},t.prototype.setParent=function(t){this.parent=t},t.prototype.getParent=function(){return this.parent},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},t.prototype.initDotNotation=function(){var t=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=$(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=$(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},t.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},t.prototype.resetActualWidth=function(t){void 0===t&&(t="api");var i=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(i,t,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(t){return!(q(this.colDef)||q(this.colDef.showRowGroup)||!0!==this.colDef.showRowGroup&&this.colDef.showRowGroup!==t)},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function i(t,i,n){gt((function(){n?console.warn(t,n):gt((function(){return console.warn(t)}),i)}),i)}this.gridOptionsWrapper.isRowModelDefault()&&!Ut.isRegistered(Nt.RowGroupingModule)&&["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(n){$(t[n])&&(Ut.isPackageBased()?i("AG Grid: "+n+" is only valid in ag-grid-enterprise, your column definition should not have "+n,"ColumnRowGroupingMissing"+n):i("AG Grid: "+n+" is only valid with AG Grid Enterprise Module "+Nt.RowGroupingModule+" - your column definition should not have "+n,"ColumnRowGroupingMissing"+n))})),Ut.isRegistered(Nt.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(Ut.isPackageBased()?i("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):i("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+Nt.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(n){$(t[n])&&i("AG Grid: "+n+" is not possible when doing tree data, your column definition should not have "+n,"TreeDataCannotRowGroup")})),$(this.colDef.width)&&"number"!=typeof this.colDef.width&&i("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),t.pinnedRowCellRenderer&&i("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowCellRendererParams&&i("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowCellRendererFramework&&i("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),t.pinnedRowValueGetter&&i("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},t.prototype.addEventListener=function(t,i){this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService.removeEventListener(t,i)},t.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},t.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var i=this.createColumnFunctionCallbackParams(t);return(0,this.colDef.suppressNavigable)(i)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(t,this.colDef.editable)},t.prototype.isSuppressFillHandle=function(){return!!X(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!X(this.colDef.autoHeight)},t.prototype.isAutoHeaderHeight=function(){return!!X(this.colDef.autoHeaderHeight)},t.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},t.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!!X(this.colDef.resizable)},t.prototype.isColumnFunc=function(t,i){return"boolean"==typeof i?i:"function"==typeof i&&i(this.createColumnFunctionCallbackParams(t))},t.prototype.setMoving=function(i,n){void 0===n&&(n="api"),this.moving=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MOVING_CHANGED,n))},t.prototype.createColumnEvent=function(t,i){return{type:t,column:this,columns:[this],source:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(i,n){void 0===n&&(n="api"),this.sort!==i&&(this.sort=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_SORT_CHANGED,n)))},t.prototype.setMenuVisible=function(i,n){void 0===n&&(n="api"),this.menuVisible!==i&&(this.menuVisible=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MENU_VISIBLE_CHANGED,n)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return this.sort===Vt.SORT_ASC},t.prototype.isSortDescending=function(){return this.sort===Vt.SORT_DESC},t.prototype.isSortNone=function(){return q(this.sort)},t.prototype.isSorting=function(){return $(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(t){this.sortIndex=t},t.prototype.setAggFunc=function(t){this.aggFunc=t},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(i,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==i&&(this.left=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LEFT_CHANGED,n)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(i,n,e){void 0===n&&(n="api"),this.filterActive!==i&&(this.filterActive=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FILTER_ACTIVE_CHANGED,n)));var r=this.createColumnEvent(t.EVENT_FILTER_CHANGED,n);e&&at(r,e),this.eventService.dispatchEvent(r)},t.prototype.setPinned=function(t){this.pinned=!0===t||t===Vt.PINNED_LEFT?Vt.PINNED_LEFT:t===Vt.PINNED_RIGHT?Vt.PINNED_RIGHT:null},t.prototype.setFirstRightPinned=function(i,n){void 0===n&&(n="api"),this.firstRightPinned!==i&&(this.firstRightPinned=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},t.prototype.setLastLeftPinned=function(i,n){void 0===n&&(n="api"),this.lastLeftPinned!==i&&(this.lastLeftPinned=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return this.pinned===Vt.PINNED_LEFT||this.pinned===Vt.PINNED_RIGHT},t.prototype.isPinnedLeft=function(){return this.pinned===Vt.PINNED_LEFT},t.prototype.isPinnedRight=function(){return this.pinned===Vt.PINNED_RIGHT},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(i,n){void 0===n&&(n="api");var e=!0===i;this.visible!==e&&(this.visible=e,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VISIBLE_CHANGED,n)))},t.prototype.isVisible=function(){return this.visible},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.getColId()},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},t.prototype.setAutoHeaderHeight=function(t){var i=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,i},t.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.getColSpan=function(t){if(q(this.colDef.colSpan))return 1;var i=this.createBaseColDefParams(t),n=this.colDef.colSpan(i);return Math.max(n,1)},t.prototype.getRowSpan=function(t){if(q(this.colDef.rowSpan))return 1;var i=this.createBaseColDefParams(t),n=this.colDef.rowSpan(i);return Math.max(n,1)},t.prototype.setActualWidth=function(t,i,n){void 0===i&&(i="api"),void 0===n&&(n=!1),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&"flex"!==i&&"gridInitializing"!==i&&(this.flex=null),n||this.fireColumnWidthChangedEvent(i))},t.prototype.fireColumnWidthChangedEvent=function(i){this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_WIDTH_CHANGED,i))},t.prototype.isGreaterThanMax=function(t){return null!=this.maxWidth&&t>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t)},t.prototype.setMinimum=function(t){void 0===t&&(t="api"),$(this.minWidth)&&this.setActualWidth(this.minWidth,t)},t.prototype.setRowGroupActive=function(i,n){void 0===n&&(n="api"),this.rowGroupActive!==i&&(this.rowGroupActive=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_ROW_GROUP_CHANGED,n)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(i,n){void 0===n&&(n="api"),this.pivotActive!==i&&(this.pivotActive=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_PIVOT_CHANGED,n)))},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(i,n){void 0===n&&(n="api"),this.aggregationActive!==i&&(this.aggregationActive=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VALUE_CHANGED,n)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(t){var i=this.getColDef().menuTabs;return null==i&&(i=t),i},t.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},t.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},t.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_COL_DEF_CHANGED="colDefChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",Kt([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Kt([Dt("columnUtils")],t.prototype,"columnUtils",void 0),Kt([Ft],t.prototype,"initialise",null),t}();
45
+ /**
46
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
47
+ * @version v28.2.1
48
+ * @link https://www.ag-grid.com/
49
+ * @license MIT
50
+ */
51
+ /**
52
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
53
+ * @version v28.2.1
54
+ * @link https://www.ag-grid.com/
55
+ * @license MIT
56
+ */
57
+ function Yt(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];for(var n=0;n<t.length;n++){var e=t[n];if($(e))return e}return null}function Jt(t){if(t&&t.length)return t[t.length-1]}function Zt(t,i,n){return null==t&&null==i||null!=t&&null!=i&&t.length===i.length&&t.every((function(t,e){return n?n(t,i[e]):i[e]===t}))}function Xt(t){return t.sort((function(t,i){return t-i}))}function Qt(t,i){var n=t.indexOf(i);n>=0&&t.splice(n,1)}function ti(t,i){i.forEach((function(i){return Qt(t,i)}))}function ii(t,i,n){t.splice(n,0,i)}function ni(t,i,n){ti(t,i),i.slice().reverse().forEach((function(i){return ii(t,i,n)}))}function ei(t,i){return t.indexOf(i)>-1}function ri(t){return[].concat.apply([],t)}function oi(t,i){null!=i&&null!=t&&i.forEach((function(i){return t.push(i)}))}const si=Object.freeze({__proto__:null,firstExistingValue:Yt,existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:Jt,areEqual:Zt,compareArrays:function(t,i){return Zt(t,i)},shallowCompare:function(t,i){return Zt(t,i)},sortNumerically:Xt,removeRepeatsFromArray:function(t,i){if(t)for(var n=t.length-2;n>=0;n--)t[n]===i&&t[n+1]===i&&t.splice(n+1,1)},removeFromArray:Qt,removeAllFromArray:ti,insertIntoArray:ii,insertArrayIntoArray:function(t,i,n){if(null!=t&&null!=i)for(var e=i.length-1;e>=0;e--)ii(t,i[e],n)},moveInArray:ni,includes:ei,flatten:ri,pushAll:oi,toStrings:function(t){return t.map(J)},forEachReverse:function(t,i){if(null!=t)for(var n=t.length-1;n>=0;n--)i(t[n],n)}});
58
+ /**
59
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
60
+ * @version v28.2.1
61
+ * @link https://www.ag-grid.com/
62
+ * @license MIT
63
+ */var ui=function(){function t(t,i,n,e){this.displayedChildren=[],this.localEventService=new Wt,this.groupId=i,this.instanceId=n,this.providedColumnGroup=t,this.pinned=e}return t.createUniqueId=function(t,i){return t+"_"+i},t.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(t){this.parent=t},t.prototype.getUniqueId=function(){return t.createUniqueId(this.groupId,this.instanceId)},t.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},t.prototype.isMoving=function(){var t=this.getProvidedColumnGroup().getLeafColumns();return!(!t||0===t.length)&&t.every((function(t){return t.isMoving()}))},t.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(i){i instanceof t&&i.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var i=Jt(this.displayedChildren).getLeft();this.setLeft(i)}else{var n=this.displayedChildren[0].getLeft();this.setLeft(n)}else this.setLeft(null)},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.setLeft=function(i){this.oldLeft=i,this.left!==i&&(this.left=i,this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_LEFT_CHANGED)))},t.prototype.getPinned=function(){return this.pinned},t.prototype.createAgEvent=function(t){return{type:t}},t.prototype.addEventListener=function(t,i){this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService.removeEventListener(t,i)},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.isChildInThisGroupDeepSearch=function(i){var n=!1;return this.children.forEach((function(e){i===e&&(n=!0),e instanceof t&&e.isChildInThisGroupDeepSearch(i)&&(n=!0)})),n},t.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach((function(i){t+=i.getActualWidth()})),t},t.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach((function(i){i.isResizable()&&(t=!0)})),t},t.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach((function(i){t+=i.getMinWidth()||0})),t},t.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},t.prototype.getDisplayedChildren=function(){return this.displayedChildren},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},t.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},t.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},t.prototype.addDisplayedLeafColumns=function(i){this.displayedChildren.forEach((function(n){n instanceof qt?i.push(n):n instanceof t&&n.addDisplayedLeafColumns(i)}))},t.prototype.addLeafColumns=function(i){this.children.forEach((function(n){n instanceof qt?i.push(n):n instanceof t&&n.addLeafColumns(i)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},t.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},t.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},t.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},t.prototype.calculateDisplayedColumns=function(){var i=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!n||!n.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(e){if(!(e instanceof t)||e.displayedChildren&&e.displayedChildren.length)switch(e.getColumnGroupShow()){case t.HEADER_GROUP_SHOW_OPEN:n.providedColumnGroup.isExpanded()&&i.displayedChildren.push(e);break;case t.HEADER_GROUP_SHOW_CLOSED:n.providedColumnGroup.isExpanded()||i.displayedChildren.push(e);break;default:i.displayedChildren.push(e)}})),this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.HEADER_GROUP_SHOW_OPEN="open",t.HEADER_GROUP_SHOW_CLOSED="closed",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),hi=function(){function t(t,i,n,e){this.localEventService=new Wt,this.expandable=!1,this.colGroupDef=t,this.groupId=i,this.expanded=!!t&&!!t.openByDefault,this.padding=n,this.level=e}return t.prototype.reset=function(t,i){this.colGroupDef=t,this.level=i,this.originalParent=null,this.children=void 0,this.expandable=void 0},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.getLevel=function(){return this.level},t.prototype.isVisible=function(){return!!this.children&&this.children.some((function(t){return t.isVisible()}))},t.prototype.isPadding=function(){return this.padding},t.prototype.setExpanded=function(i){this.expanded=void 0!==i&&i,this.localEventService.dispatchEvent({type:t.EVENT_EXPANDED_CHANGED})},t.prototype.isExpandable=function(){return this.expandable},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getId=function(){return this.getGroupId()},t.prototype.setChildren=function(t){this.children=t},t.prototype.getChildren=function(){return this.children},t.prototype.getColGroupDef=function(){return this.colGroupDef},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.addLeafColumns=function(i){this.children&&this.children.forEach((function(n){n instanceof qt?i.push(n):n instanceof t&&n.addLeafColumns(i)}))},t.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},t.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.getLeafColumns().forEach((function(i){return i.addEventListener(qt.EVENT_VISIBLE_CHANGED,t.onColumnVisibilityChanged.bind(t))}))},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var i=!1,n=!1,e=!1,r=this.findChildrenRemovingPadding(),o=0,s=r.length;o<s;o++){var u=r[o];if(u.isVisible()){var h=u.getColumnGroupShow();h===ui.HEADER_GROUP_SHOW_OPEN?(i=!0,e=!0):h===ui.HEADER_GROUP_SHOW_CLOSED?(n=!0,e=!0):(i=!0,n=!0)}}var c=i&&n&&e;this.expandable!==c&&(this.expandable=c,this.localEventService.dispatchEvent({type:t.EVENT_EXPANDABLE_CHANGED}))}},t.prototype.findChildrenRemovingPadding=function(){var i=[],n=function(e){e.forEach((function(e){e instanceof t&&e.isPadding()?n(e.children):i.push(e)}))};return n(this.children),i},t.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},t.prototype.addEventListener=function(t,i){this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService.removeEventListener(t,i)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_EXPANDABLE_CHANGED="expandableChanged",t}(),ci={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},ai="__ag_Grid_Stop_Propagation",li=["touchstart","touchend","touchmove","touchcancel"],fi={};function di(t){t[ai]=!0}function vi(t){return!0===t[ai]}var pi,gi=(pi={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof fi[t])return fi[t];var i=document.createElement(pi[t]||"div");return fi[t="on"+t]=t in i});function mi(t,i,n){for(var e=i.target;e;){var r=t.getDomData(e,n);if(r)return r;e=e.parentElement}return null}function bi(t,i){return!(!i||!t)&&yi(i).indexOf(t)>=0}function wi(t){for(var i=[],n=t.target;n;)i.push(n),n=n.parentElement;return i}function yi(t){var i=t;return i.path?i.path:i.composedPath?i.composedPath():i.__agGridEventPath?i.__agGridEventPath:wi(t)}function Ci(t,i,n,e){var r=ei(li,n);t&&t.addEventListener&&t.addEventListener(i,n,e,r?{passive:!0}:void 0)}const Si=Object.freeze({__proto__:null,stopPropagationForAgGrid:di,isStopPropagationForAgGrid:vi,isEventSupported:gi,getCtrlForEvent:mi,addChangeListener:function(t,i){t.addEventListener("changed",i),t.addEventListener("paste",i),t.addEventListener("input",i)},isElementInEventPath:bi,createEventPath:wi,addAgGridEventPath:function(t){t.__agGridEventPath=yi(t)},getEventPath:yi,addSafePassiveEventListener:Ci});
64
+ /**
65
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
66
+ * @version v28.2.1
67
+ * @link https://www.ag-grid.com/
68
+ * @license MIT
69
+ */var Ri,Oi=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ai=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!t.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},t.prototype.getContext=function(){return this.context},t.prototype.destroy=function(){this.destroyFunctions.forEach((function(t){return t()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:t.EVENT_DESTROYED})},t.prototype.addEventListener=function(t,i){this.localEventService||(this.localEventService=new Wt),this.localEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.localEventService&&this.localEventService.removeEventListener(t,i)},t.prototype.dispatchEventAsync=function(t){var i=this;window.setTimeout((function(){return i.dispatchEvent(t)}),0)},t.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},t.prototype.addManagedListener=function(t,i,n){var e=this;if(!this.destroyed){t instanceof HTMLElement?Ci(this.getFrameworkOverrides(),t,i,n):t.addEventListener(i,n);var r=function(){return t.removeEventListener(i,n),e.destroyFunctions=e.destroyFunctions.filter((function(t){return t!==r})),null};return this.destroyFunctions.push(r),r}},t.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},t.prototype.createManagedBean=function(t,i){var n=this.createBean(t,i);return this.addDestroyFunc(this.destroyBean.bind(this,t,i)),n},t.prototype.createBean=function(t,i,n){return(i||this.getContext()).createBean(t,n)},t.prototype.destroyBean=function(t,i){return(i||this.getContext()).destroyBean(t)},t.prototype.destroyBeans=function(t,i){var n=this;return t&&t.forEach((function(t){return n.destroyBean(t,i)})),[]},t.EVENT_DESTROYED="destroyed",Oi([Dt("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Oi([Dt("context")],t.prototype,"context",void 0),Oi([Dt("eventService")],t.prototype,"eventService",void 0),Oi([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Oi([kt],t.prototype,"destroy",null),t}(),ji=(Ri=function(t,i){return Ri=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},Ri(t,i)},function(t,i){function n(){this.constructor=t}Ri(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),_i=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gi=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ji(i,t),i.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},i.prototype.createColumnTree=function(t,i,n){var e=new it,r=this.extractExistingTreeData(n),o=r.existingCols,s=r.existingGroups;e.addExistingKeys(r.existingColKeys);var u=this.recursivelyCreateColumns(t,0,i,o,e,s),h=this.findMaxDept(u,0);this.logger.log("Number of levels for grouped columns is "+h);var c=this.balanceColumnTree(u,0,h,e);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(t,i){t instanceof hi&&t.setupExpandable(),t.setOriginalParent(i)})),{columnTree:c,treeDept:h}},i.prototype.extractExistingTreeData=function(t){var i=[],n=[],e=[];return t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){if(t instanceof hi)n.push(t);else{var r=t;e.push(r.getId()),i.push(r)}})),{existingCols:i,existingGroups:n,existingColKeys:e}},i.prototype.createForAutoGroups=function(t,i){var n=this;return t.map((function(t){return n.createAutoGroupTreeItem(i,t)}))},i.prototype.createAutoGroupTreeItem=function(t,i){for(var n=i,e=this.findDepth(t)-1;e>=0;e--){var r=new hi(null,"FAKE_PATH_"+i.getId()+"}_"+e,!0,e);this.context.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},i.prototype.findDepth=function(t){for(var i=0,n=t;n&&n[0]&&n[0]instanceof hi;)i++,n=n[0].getChildren();return i},i.prototype.balanceColumnTree=function(t,i,n,e){for(var r=[],o=0;o<t.length;o++){var s=t[o];if(s instanceof hi){var u=s,h=this.balanceColumnTree(u.getChildren(),i+1,n,e);u.setChildren(h),r.push(u)}else{for(var c=void 0,a=void 0,l=n-1;l>=i;l--){var f=e.getUniqueKey(null,null),d=this.createMergedColGroupDef(null),v=new hi(d,f,!0,i);this.context.createBean(v),a&&a.setChildren([v]),a=v,c||(c=a)}if(c&&a){if(r.push(c),t.some((function(t){return t instanceof hi}))){a.setChildren([s]);continue}a.setChildren(t);break}r.push(s)}}return r},i.prototype.findMaxDept=function(t,i){for(var n=i,e=0;e<t.length;e++){var r=t[e];if(r instanceof hi){var o=this.findMaxDept(r.getChildren(),i+1);n<o&&(n=o)}}return n},i.prototype.recursivelyCreateColumns=function(t,i,n,e,r,o){var s=this;return(t||[]).map((function(t){return s.isColumnGroup(t)?s.createColumnGroup(n,t,i,e,r,o):s.createColumn(n,t,e,r)}))},i.prototype.createColumnGroup=function(t,i,n,e,r,o){var s,u=this.createMergedColGroupDef(i),h=r.getUniqueKey(u.groupId||null,null),c=this.findExistingGroup(i,o);c?((s=c).reset(u,n),Qt(o,c)):(s=new hi(u,h,!1,n),this.context.createBean(s));var a=this.recursivelyCreateColumns(u.children,n+1,t,e,r,o);return s.setChildren(a),s},i.prototype.createMergedColGroupDef=function(t){var i={};return Object.assign(i,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(i,t),this.checkForDeprecatedItems(i),i},i.prototype.createColumn=function(t,i,n,e){var r=this.mergeColDefs(i);this.checkForDeprecatedItems(r);var o=this.findExistingColumn(i,n);if(n&&o&&Qt(n,o),o)o.setColDef(r,i),this.applyColumnState(o,r);else{var s=e.getUniqueKey(r.colId,r.field);o=new qt(r,i,s,t),this.context.createBean(o)}return o},i.prototype.applyColumnState=function(t,i){var n=Z(i.flex);if(void 0!==n&&t.setFlex(n),t.getFlex()<=0){var e=Z(i.width);if(null!=e)t.setActualWidth(e);else{var r=t.getActualWidth();t.setActualWidth(r)}}void 0!==i.sort&&t.setSort(i.sort==Vt.SORT_ASC||i.sort==Vt.SORT_DESC?i.sort:void 0);var o=Z(i.sortIndex);void 0!==o&&t.setSortIndex(o);var s=X(i.hide);void 0!==s&&t.setVisible(!s),void 0!==i.pinned&&t.setPinned(i.pinned)},i.prototype.findExistingColumn=function(t,i){return(i||[]).find((function(i){var n=i.getUserProvidedColDef();if(!n)return!1;var e=null!=t.field;return null!=t.colId?i.getId()===t.colId:e?n.field===t.field:n===t}))},i.prototype.findExistingGroup=function(t,i){return i.find((function(i){return!(!i.getColGroupDef()||null==t.groupId||i.getId()!==t.groupId)}))},i.prototype.mergeColDefs=function(t){var i={},n=this.gridOptionsWrapper.getDefaultColDef();at(i,n,!1,!0);var e=t.type;e||(e=n&&n.type),e&&this.assignColumnTypes(e,i),at(i,t,!1,!0);var r=this.gridOptionsWrapper.getAutoGroupColumnDef(),o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();return t.rowGroup&&r&&o&&at(i,{sort:r.sort,initialSort:r.initialSort},!1,!0),i},i.prototype.assignColumnTypes=function(t,i){var n=[];if(t instanceof Array)t.some((function(t){return"string"!=typeof t}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=t;else{if("string"!=typeof t)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=t.split(",")}var e=Object.assign({},ci);nt(this.gridOptionsWrapper.getColumnTypes()||{},(function(t,i){t in e?console.warn("AG Grid: the column type '"+t+"' is a default column type and cannot be overridden."):e[t]=i})),n.forEach((function(t){var n=e[t.trim()];n?at(i,n,!1,!0):console.warn("AG Grid: colDef.type '"+t+"' does not correspond to defined gridOptions.columnTypes")}))},i.prototype.checkForDeprecatedItems=function(t){if(t){var i=t;void 0!==i.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==i.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(i.suppressRowGroup||i.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),i.displayName&&(console.warn("AG Grid: Found displayName "+i.displayName+", please use headerName instead, displayName is deprecated."),i.headerName=i.displayName)}},i.prototype.isColumnGroup=function(t){return void 0!==t.children},_i([Dt("columnUtils")],i.prototype,"columnUtils",void 0),_i([(n=0,e=Tt("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),_i([Pt("columnFactory")],i);var n,e}(Ai),xi=function(){function t(){}return t.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",t.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",t.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",t.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",t.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",t.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",t.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",t.EVENT_COLUMN_MOVED="columnMoved",t.EVENT_COLUMN_VISIBLE="columnVisible",t.EVENT_COLUMN_PINNED="columnPinned",t.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",t.EVENT_COLUMN_RESIZED="columnResized",t.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",t.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",t.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",t.EVENT_ROW_GROUP_OPENED="rowGroupOpened",t.EVENT_ROW_DATA_CHANGED="rowDataChanged",t.EVENT_ROW_DATA_UPDATED="rowDataUpdated",t.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",t.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",t.EVENT_CHART_CREATED="chartCreated",t.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",t.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",t.EVENT_CHART_DESTROYED="chartDestroyed",t.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",t.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",t.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",t.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",t.EVENT_MODEL_UPDATED="modelUpdated",t.EVENT_PASTE_START="pasteStart",t.EVENT_PASTE_END="pasteEnd",t.EVENT_FILL_START="fillStart",t.EVENT_FILL_END="fillEnd",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",t.EVENT_CELL_CLICKED="cellClicked",t.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",t.EVENT_CELL_MOUSE_DOWN="cellMouseDown",t.EVENT_CELL_CONTEXT_MENU="cellContextMenu",t.EVENT_CELL_VALUE_CHANGED="cellValueChanged",t.EVENT_CELL_EDIT_REQUEST="cellEditRequest",t.EVENT_ROW_VALUE_CHANGED="rowValueChanged",t.EVENT_CELL_FOCUSED="cellFocused",t.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_CELL_KEY_DOWN="cellKeyDown",t.EVENT_CELL_KEY_PRESS="cellKeyPress",t.EVENT_CELL_MOUSE_OVER="cellMouseOver",t.EVENT_CELL_MOUSE_OUT="cellMouseOut",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_MODIFIED="filterModified",t.EVENT_FILTER_OPENED="filterOpened",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",t.EVENT_ROW_CLICKED="rowClicked",t.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",t.EVENT_GRID_READY="gridReady",t.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",t.EVENT_VIEWPORT_CHANGED="viewportChanged",t.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",t.EVENT_FIRST_DATA_RENDERED="firstDataRendered",t.EVENT_DRAG_STARTED="dragStarted",t.EVENT_DRAG_STOPPED="dragStopped",t.EVENT_CHECKBOX_CHANGED="checkboxChanged",t.EVENT_ROW_EDITING_STARTED="rowEditingStarted",t.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",t.EVENT_CELL_EDITING_STARTED="cellEditingStarted",t.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",t.EVENT_BODY_SCROLL="bodyScroll",t.EVENT_BODY_SCROLL_END="bodyScrollEnd",t.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",t.EVENT_PAGINATION_CHANGED="paginationChanged",t.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",t.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",t.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",t.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",t.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",t.EVENT_FLASH_CELLS="flashCells",t.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",t.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",t.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",t.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",t.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",t.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",t.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",t.EVENT_ROW_DRAG_ENTER="rowDragEnter",t.EVENT_ROW_DRAG_MOVE="rowDragMove",t.EVENT_ROW_DRAG_LEAVE="rowDragLeave",t.EVENT_ROW_DRAG_END="rowDragEnd",t.EVENT_POPUP_TO_FRONT="popupToFront",t.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",t.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",t.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",t.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",t.EVENT_KEYBOARD_FOCUS="keyboardFocus",t.EVENT_MOUSE_FOCUS="mouseFocus",t.EVENT_STORE_UPDATED="storeUpdated",t}(),Mi=function(){function t(){this.existingIds={}}return t.prototype.getInstanceIdForKey=function(t){var i,n=this.existingIds[t];return this.existingIds[t]=i="number"!=typeof n?0:n+1,i},t}(),Fi=/[&<>"']/g,ki={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Pi(t){return null==t?null:t.replace(/([A-Z])/g,(function(t){return"-"+t[0].toLowerCase()}))}function Di(t){return null==t?null:t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}function Ii(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}function Ei(t,i){if(null==t)return null;var n=t.toString().toString();return i?n:n.replace(Fi,(function(t){return ki[t]}))}function Ti(t){return t&&null!=t?t.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(t){return t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):"")})).join(" "):null}const zi=Object.freeze({__proto__:null,utf8_encode:function(t){var i=String.fromCharCode;function n(t,n){return i(t>>n&63|128)}function e(t){if(t>=0&&t<=31&&10!==t)return"_x"+t.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(function(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}(t),e=i(t>>12&15|224),e+=n(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=n(t,12),e+=n(t,6)),e+i(63&t|128)}for(var r=function(t){var i=[];if(!t)return[];for(var n,e,r=t.length,o=0;o<r;)(n=t.charCodeAt(o++))>=55296&&n<=56319&&o<r?56320==(64512&(e=t.charCodeAt(o++)))?i.push(((1023&n)<<10)+(1023&e)+65536):(i.push(n),o--):i.push(n);return i}(t),o=r.length,s=-1,u="";++s<o;)u+=e(r[s]);return u},camelCaseToHyphen:Pi,hyphenToCamelCase:Di,capitalise:Ii,escapeString:Ei,camelCaseToHumanText:Ti});
70
+ /**
71
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
72
+ * @version v28.2.1
73
+ * @link https://www.ag-grid.com/
74
+ * @license MIT
75
+ */function Ni(t){var i=new Map;return t.forEach((function(t){return i.set(t[0],t[1])})),i}const Li=Object.freeze({__proto__:null,convertToMap:Ni,mapById:function(t,i){var n=new Map;return t.forEach((function(t){return n.set(i(t),t)})),n},keys:function(t){var i=[];return t.forEach((function(t,n){return i.push(n)})),i}});
76
+ /**
77
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
78
+ * @version v28.2.1
79
+ * @link https://www.ag-grid.com/
80
+ * @license MIT
81
+ */var Bi=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Hi=function(){function t(){}return t.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],t.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],t.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],t.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],t.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","showDisabledCheckboxes","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle","wrapHeaderText","autoHeaderHeight"],t.ALL_PROPERTIES=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Bi(arguments[i]));return t}(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),Wi=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Vi=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Wi(arguments[i]));return t},Ui=function(){function t(){}return t.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],t.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],t.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],t.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],t.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","enableChartToolPanelsButton","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","serverSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter"],t.FUNCTION_PROPERTIES=Vi(t.FUNCTIONAL_PROPERTIES=["localeTextFunc","doesExternalFilterPass","groupRowAggNodes","isFullWidthCell","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","postSort","defaultGroupSortComparator","defaultGroupOrderComparator","rowDragText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","fullWidthCellRenderer","fullWidthCellRendererFramework","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework"],t.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","getRowNodeId","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"]),t.ALL_PROPERTIES=Vi(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES,t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),Ki=function(){return Ki=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Ki.apply(this,arguments)},$i=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},qi=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat($i(arguments[i]));return t},Yi=function(){function t(){}return t.getEventCallbacks=function(){return t.EVENT_CALLBACKS||(t.EVENT_CALLBACKS=t.EVENTS.map((function(i){return t.getCallbackForEvent(i)}))),t.EVENT_CALLBACKS},t.copyAttributesToGridOptions=function(i,n){"object"!=typeof i&&(i={});var e=i,r=function(t){return void 0!==n[t]};return r("groupAggFiltering")&&"function"!=typeof n.groupAggFiltering&&(e.groupAggFiltering=t.toBoolean(n.groupAggFiltering),delete n.groupAggFiltering),qi(t.ARRAY_PROPERTIES,t.STRING_PROPERTIES,t.OBJECT_PROPERTIES,t.FUNCTION_PROPERTIES,t.getEventCallbacks()).filter(r).forEach((function(t){return e[t]=n[t]})),t.BOOLEAN_PROPERTIES.filter(r).forEach((function(i){return e[i]=t.toBoolean(n[i])})),t.NUMBER_PROPERTIES.filter(r).forEach((function(i){return e[i]=t.toNumber(n[i])})),i},t.getCallbackForEvent=function(t){return!t||t.length<2?t:"on"+t[0].toUpperCase()+t.substr(1)},t.processOnChange=function(i,n,e,r){if(i){var o=Ki({},i),s=n,u=function(t){return o[t]};u("groupAggFiltering")&&(s.groupAggFiltering="function"==typeof o.groupAggFiltering?o.groupAggFiltering:t.toBoolean(o.groupAggFiltering),delete o.groupAggFiltering),u("groupDisplayType")&&"string"==typeof o.groupDisplayType.currentValue&&(e.setGroupDisplayType(o.groupDisplayType.currentValue),delete o.groupDisplayType),o.domLayout&&(e.setDomLayout(o.domLayout.currentValue),delete o.domLayout),o.rowClass&&(e.setRowClass(o.rowClass.currentValue),delete o.rowClass),o.paginationPageSize&&(e.paginationSetPageSize(t.toNumber(o.paginationPageSize.currentValue)),delete o.paginationPageSize),o.rowGroupPanelShow&&(e.setRowGroupPanelShow(o.rowGroupPanelShow.currentValue),delete o.rowGroupPanelShow),o.groupRemoveSingleChildren&&(e.setGroupRemoveSingleChildren(t.toBoolean(o.groupRemoveSingleChildren.currentValue)),delete o.groupRemoveSingleChildren),o.groupRemoveLowestSingleChildren&&(e.setGroupRemoveLowestSingleChildren(t.toBoolean(o.groupRemoveLowestSingleChildren.currentValue)),delete o.groupRemoveLowestSingleChildren),o.suppressRowDrag&&(e.setSuppressRowDrag(t.toBoolean(o.suppressRowDrag.currentValue)),delete o.suppressRowDrag),o.suppressMoveWhenRowDragging&&(e.setSuppressMoveWhenRowDragging(t.toBoolean(o.suppressMoveWhenRowDragging.currentValue)),delete o.suppressMoveWhenRowDragging),o.suppressRowClickSelection&&(e.setSuppressRowClickSelection(t.toBoolean(o.suppressRowClickSelection.currentValue)),delete o.suppressRowClickSelection),o.suppressClipboardPaste&&(e.setSuppressClipboardPaste(t.toBoolean(o.suppressClipboardPaste.currentValue)),delete o.suppressClipboardPaste),o.headerHeight&&(e.setHeaderHeight(t.toNumber(o.headerHeight.currentValue)),delete o.headerHeight),o.pivotHeaderHeight&&(e.setPivotHeaderHeight(t.toNumber(o.pivotHeaderHeight.currentValue)),delete o.pivotHeaderHeight),o.groupHeaderHeight&&(e.setGroupHeaderHeight(t.toNumber(o.groupHeaderHeight.currentValue)),delete o.groupHeaderHeight),o.pivotGroupHeaderHeight&&(e.setPivotGroupHeaderHeight(t.toNumber(o.pivotGroupHeaderHeight.currentValue)),delete o.pivotGroupHeaderHeight),o.floatingFiltersHeight&&(e.setFloatingFiltersHeight(t.toNumber(o.floatingFiltersHeight.currentValue)),delete o.floatingFiltersHeight),o.functionsReadOnly&&(e.setFunctionsReadOnly(t.toBoolean(o.functionsReadOnly.currentValue)),delete o.functionsReadOnly),qi(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.getEventCallbacks()).filter(u).forEach((function(t){return s[t]=o[t].currentValue})),t.BOOLEAN_PROPERTIES.filter(u).forEach((function(i){return s[i]=t.toBoolean(o[i].currentValue)})),t.NUMBER_PROPERTIES.filter(u).forEach((function(i){return s[i]=t.toNumber(o[i].currentValue)})),o.enableCellTextSelection&&(e.setEnableCellTextSelection(t.toBoolean(o.enableCellTextSelection.currentValue)),delete o.enableCellTextSelection),o.quickFilterText&&(e.setQuickFilter(o.quickFilterText.currentValue),delete o.quickFilterText),o.autoGroupColumnDef&&(e.setAutoGroupColumnDef(o.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete o.autoGroupColumnDef),o.columnDefs&&(e.setColumnDefs(o.columnDefs.currentValue,"gridOptionsChanged"),delete o.columnDefs),o.defaultColDef&&(e.setDefaultColDef(o.defaultColDef.currentValue,"gridOptionsChanged"),delete o.defaultColDef),o.pivotMode&&(r.setPivotMode(t.toBoolean(o.pivotMode.currentValue)),delete o.pivotMode);var h=e;Object.keys(o).forEach((function(t){var n="set"+t.charAt(0).toUpperCase()+t.substring(1);h[n]&&h[n](i[t].currentValue)}));var c={type:xi.EVENT_COMPONENT_STATE_CHANGED};nt(i,(function(t,i){c[t]=i})),e.dispatchEvent(c)}},t.toBoolean=function(t){return"boolean"==typeof t?t:"string"==typeof t&&("TRUE"===t.toUpperCase()||""==t)},t.toNumber=function(t){return"number"==typeof t?t:"string"==typeof t?Number(t):void 0},t.EVENTS=[],t.PUBLIC_EVENTS=[],t.EXCLUDED_INTERNAL_EVENTS=[],t.STRING_PROPERTIES=Ui.STRING_PROPERTIES,t.OBJECT_PROPERTIES=Ui.OBJECT_PROPERTIES,t.ARRAY_PROPERTIES=Ui.ARRAY_PROPERTIES,t.NUMBER_PROPERTIES=Ui.NUMBER_PROPERTIES,t.BOOLEAN_PROPERTIES=Ui.BOOLEAN_PROPERTIES,t.FUNCTION_PROPERTIES=Ui.FUNCTION_PROPERTIES,t.ALL_PROPERTIES=Ui.ALL_PROPERTIES,t}();Yi.EVENTS=Q(xi),Yi.EXCLUDED_INTERNAL_EVENTS=[xi.EVENT_SCROLLBAR_WIDTH_CHANGED,xi.EVENT_CHECKBOX_CHANGED,xi.EVENT_HEIGHT_SCALE_CHANGED,xi.EVENT_BODY_HEIGHT_CHANGED,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,xi.EVENT_SCROLL_VISIBILITY_CHANGED,xi.EVENT_COLUMN_HOVER_CHANGED,xi.EVENT_FLASH_CELLS,xi.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,xi.EVENT_DISPLAYED_ROWS_CHANGED,xi.EVENT_LEFT_PINNED_WIDTH_CHANGED,xi.EVENT_RIGHT_PINNED_WIDTH_CHANGED,xi.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,xi.EVENT_POPUP_TO_FRONT,xi.EVENT_KEYBOARD_FOCUS,xi.EVENT_MOUSE_FOCUS,xi.EVENT_STORE_UPDATED,xi.EVENT_COLUMN_PANEL_ITEM_DRAG_START,xi.EVENT_COLUMN_PANEL_ITEM_DRAG_END,xi.EVENT_FILL_START,xi.EVENT_FILL_END,xi.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,xi.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,xi.EVENT_FULL_WIDTH_ROW_FOCUSED,xi.EVENT_HEADER_HEIGHT_CHANGED,xi.EVENT_COLUMN_HEADER_HEIGHT_CHANGED],Yi.PUBLIC_EVENTS=Yi.EVENTS.filter((function(t){return!ei(Yi.EXCLUDED_INTERNAL_EVENTS,t)}));
82
+ /**
83
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
84
+ * @version v28.2.1
85
+ * @link https://www.ag-grid.com/
86
+ * @license MIT
87
+ */
88
+ var Ji,Zi,Xi,Qi,tn,nn,en,rn,on,sn,un=function(){function t(){}return t.parse=function(i){if(!i)return null;if(!0===i)return{toolPanels:[t.DEFAULT_COLUMN_COMP,t.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof i)return t.parse([i]);if(Array.isArray(i)){var n=[];return i.forEach((function(i){var e=t.DEFAULT_BY_KEY[i];e?n.push(e):console.warn("AG Grid: the key "+i+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","))})),0===n.length?null:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:t.parseComponents(i.toolPanels),defaultToolPanel:i.defaultToolPanel,hiddenByDefault:i.hiddenByDefault,position:i.position}},t.parseComponents=function(i){var n=[];return i?(i.forEach((function(i){var e=null;if("string"==typeof i){var r=t.DEFAULT_BY_KEY[i];if(!r)return void console.warn("AG Grid: the key "+i+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","));e=r}else e=i;n.push(e)})),n):n},t.DEFAULT_BY_KEY={columns:t.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},filters:t.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"}},t}();
89
+ /**
90
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
91
+ * @version v28.2.1
92
+ * @link https://www.ag-grid.com/
93
+ * @license MIT
94
+ */function hn(){if(sn)return sn;var t,i,n=navigator.userAgent,e=n.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(e[1]))return{name:"IE",version:i=null!=(t=/\brv[ :]+(\d+)/g.exec(n)||[])[1]?parseFloat(t[1]):0};if("Chrome"===e[1]&&null!=(t=n.match(/\bOPR|Edge\/(\d+)/)))return{name:"Opera",version:i=null!=t[1]?parseFloat(t[1]):0};e=e[2]?[e[1],e[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=n.match(/version\/(\d+)/i))&&e.splice(1,1,t[1]);var r=e[0];return i=null!=e[1]?parseFloat(e[1]):0,sn={name:r,version:i}}function cn(){return void 0===Xi&&(void 0===Zi&&(Zi=/*@cc_on!@*/!!document.documentMode),Xi=!(Zi||!window.StyleMedia)),Xi}function an(){return void 0===Ji&&(Ji=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Ji}function ln(){if(void 0===Qi){var t=window;Qi=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Qi}function fn(){if(void 0===tn){var t=window;tn=void 0!==t.InstallTrigger}return tn}function dn(){return void 0===nn&&(nn=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),nn}function vn(){return void 0===en&&(en=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),en}function pn(){return!an()||hn().version>=15}function gn(t){if(!t)return null;var i=t.tabIndex,n=t.getAttribute("tabIndex");return-1!==i||null!==n&&(""!==n||fn())?i.toString():null}function mn(){if(!document.body)return-1;var t=1e6,i=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,n=document.createElement("div");for(document.body.appendChild(n);;){var e=2*t;if(n.style.height=e+"px",e>i||n.clientHeight!==e)break;t=e}return document.body.removeChild(n),t}function bn(){return null==on&&wn(),on}function wn(){var t=document.body,i=document.createElement("div");i.style.width=i.style.height="100px",i.style.opacity="0",i.style.overflow="scroll",i.style.msOverflowStyle="scrollbar",i.style.position="absolute",t.appendChild(i);var n=i.offsetWidth-i.clientWidth;0===n&&0===i.clientWidth&&(n=null),i.parentNode&&i.parentNode.removeChild(i),null!=n&&(on=n,rn=0===n)}function yn(){return null==rn&&wn(),rn}function Cn(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function Sn(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}const Rn=Object.freeze({__proto__:null,getBrowserInfo:hn,isBrowserEdge:cn,isBrowserSafari:an,isBrowserChrome:ln,isBrowserFirefox:fn,isMacOsUserAgent:dn,isIOSUserAgent:vn,browserSupportsPreventScroll:pn,getTabIndex:gn,getMaxDivHeight:mn,getScrollbarWidth:bn,isInvisibleScrollbar:yn,hasOverflowScrolling:function(){var t,i,n=["webkit","moz","o","ms"],e=document.createElement("div"),r=!1;document.getElementsByTagName("body")[0].appendChild(e),e.setAttribute("style",n.map((function(t){return"-"+t+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var o=window.getComputedStyle(e);if("touch"===o.overflowScrolling&&(r=!0),!r)try{for(var s=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=s.next();!u.done;u=s.next())if("touch"===o[u.value+"OverflowScrolling"]){r=!0;break}}catch(i){t={error:i}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return e.parentNode&&e.parentNode.removeChild(e),r},getBodyWidth:Cn,getBodyHeight:Sn});
95
+ /**
96
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
97
+ * @version v28.2.1
98
+ * @link https://www.ag-grid.com/
99
+ * @license MIT
100
+ */function On(t,i,n){var e={},r=t.filter((function(t){return!i.some((function(i){return i===t}))}));return r.length>0&&r.forEach((function(t){return e[t]=An(t,n)})),e}function An(t,i,n,e){var r=e?Gn:_n,o=i.map((function(i){return{value:i,relevance:r(t.toLowerCase(),i.toLocaleLowerCase())}}));return o.sort((function(t,i){return i.relevance-t.relevance})),n&&(o=o.filter((function(t){return 0!==t.relevance}))),o.map((function(t){return t.value}))}function jn(t){var i,n,e,r=t.toLowerCase(),o=new Array(r.length-1);for(i=n=0,e=o.length;n<=e;i=n+=1)o[i]=r.slice(i,i+2);return o}function _n(t,i){if(0===t.length&&0===i.length)return 0;var n,e,r=jn(t),o=jn(i),s=r.length+o.length,u=0;for(n=0,e=r.length;n<e;n++){var h,c=r[n],a=void 0;for(a=0,h=o.length;a<h;a++)c===o[a]&&u++}return u>0?2*u/s:0}function Gn(t,i){for(var n=t.replace(/\s/g,""),e=i.replace(/\s/g,""),r=0,o=0,s=0;s<n.length;s++){var u=e.indexOf(n[s],o);-1!==u&&(r+=100-100*(o=u)/1e4*100)}return r}const xn=Object.freeze({__proto__:null,fuzzyCheckStrings:On,fuzzySuggestions:An,get_bigrams:jn,string_distances:_n,string_weighted_distances:Gn});
101
+ /**
102
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
103
+ * @version v28.2.1
104
+ * @link https://www.ag-grid.com/
105
+ * @license MIT
106
+ */function Mn(t,i){return t.toString().padStart(i,"0")}function Fn(t,i){for(var n=[],e=t;e<=i;e++)n.push(e);return n}function kn(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Pn(t,i,n){return"number"!=typeof t?"":t.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i)}const Dn=Object.freeze({__proto__:null,padStartWidthZeros:Mn,createArrayOfNumbers:Fn,isNumeric:kn,cleanNumber:function(t){return"string"==typeof t&&(t=parseInt(t,10)),"number"==typeof t?Math.floor(t):null},decToHex:function(t,i){for(var n="",e=0;e<i;e++)n+=String.fromCharCode(255&t),t>>>=8;return n},formatNumberTwoDecimalPlacesAndCommas:function(t,i,n){return"number"!=typeof t?"":Pn(Math.round(100*t)/100,i,n)},formatNumberCommas:Pn,sum:function(t){return null==t?null:t.reduce((function(t,i){return t+i}),0)}});
107
+ /**
108
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
109
+ * @version v28.2.1
110
+ * @link https://www.ag-grid.com/
111
+ * @license MIT
112
+ */var In=function(){return In=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},In.apply(this,arguments)},En=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Tn=function(t,i){return function(n,e){i(n,e,t)}},zn=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Nn=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(zn(arguments[i]));return t};function Ln(t){return!0===t||"true"===t}function Bn(t){return"number"==typeof t?t:"string"==typeof t?parseInt(t,10):void 0}function Hn(t,i){var n=parseInt(t,10);return kn(n)&&n>0?n:i}var Wn=function(){function t(){this.propertyEventService=new Wt,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var i;return i=t,t.prototype.agWire=function(t,i){this.gridOptions.api=t,this.gridOptions.columnApi=i,this.checkForDeprecated(),this.checkForViolations()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},t.prototype.init=function(){var t=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=un.parse(this.gridOptions.sideBar));var i=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),i),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to use these together on our support forum either, you will get the same answer!"),this.isRowModelServerSide()){var n=function(t){return"AG Grid: '"+t+"' is not supported on the Server-Side Row Model"};$(this.gridOptions.groupDefaultExpanded)&&console.warn(n("groupDefaultExpanded")),$(this.gridOptions.groupDefaultExpanded)&&console.warn(n("groupIncludeFooter")),$(this.gridOptions.groupDefaultExpanded)&&console.warn(n("groupIncludeTotalFooter"))}Ln(this.gridOptions.enableRangeSelection)?Ut.assertRegistered(Nt.RangeSelectionModule,"enableRangeSelection"):(this.isEnableRangeHandle()||this.isEnableFillHandle())&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true"),this.isGroupRowsSticky()&&(this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one."),this.isMasterDetail()&&console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one."),this.isPagination()&&console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one."));var e=function(i){t.gridOptions.icons&&t.gridOptions.icons[i]&&console.warn("gridOptions.icons."+i+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};e("radioButtonOff"),e("radioButtonOn"),e("checkboxChecked"),e("checkboxUnchecked"),e("checkboxIndeterminate"),this.getScrollbarWidth()},t.prototype.checkColumnDefProperties=function(){var t=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(i){var n=Object.getOwnPropertyNames(i),e=Nn(Hi.ALL_PROPERTIES,Hi.FRAMEWORK_PROPERTIES);t.checkProperties(n,e,e,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},t.prototype.checkGridOptionsProperties=function(){var t=Object.getOwnPropertyNames(this.gridOptions),i=Nn(Ui.ALL_PROPERTIES,Ui.FRAMEWORK_PROPERTIES,Q(xi).map((function(t){return Yi.getCallbackForEvent(t)}))),n=Nn(i,["api","columnApi"]);this.checkProperties(t,n,i,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},t.prototype.checkProperties=function(t,i,n,e,r){var o=On(t,i,n);nt(o,(function(t,i){console.warn("ag-grid: invalid "+e+" property '"+t+"' did you mean any of these: "+i.slice(0,8).join(", "))})),Object.keys(o).length>0&&console.warn("ag-grid: to see all the valid "+e+" properties please check: "+r)},t.prototype.mergeGridCommonParams=function(t){var i=this;return t?function(n){var e=In(In({},n),{api:i.getApi(),columnApi:i.getColumnApi(),context:i.getContext()});return t(e)}:t},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(t,i){var n=t[this.getDomDataKey()];return n?n[i]:void 0},t.prototype.setDomData=function(t,i,n){var e=this.getDomDataKey(),r=t[e];q(r)&&(t[e]=r={}),r[i]=n},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.isSuppressRowDeselection=function(){return Ln(this.gridOptions.suppressRowDeselection)},t.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},t.prototype.isRowMultiSelectWithClick=function(){return Ln(this.gridOptions.rowMultiSelectWithClick)},t.prototype.getContext=function(){return this.gridOptions.context},t.prototype.isPivotMode=function(){return Ln(this.gridOptions.pivotMode)},t.prototype.isSuppressExpandablePivotGroups=function(){return Ln(this.gridOptions.suppressExpandablePivotGroups)},t.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},t.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},t.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===Vt.ROW_MODEL_TYPE_INFINITE},t.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===Vt.ROW_MODEL_TYPE_VIEWPORT},t.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===Vt.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.isRowModelDefault=function(){return q(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===Vt.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},t.prototype.isSuppressFocusAfterRefresh=function(){return Ln(this.gridOptions.suppressFocusAfterRefresh)},t.prototype.isSuppressBrowserResizeObserver=function(){return Ln(this.gridOptions.suppressBrowserResizeObserver)},t.prototype.isSuppressMaintainUnsortedOrder=function(){return Ln(this.gridOptions.suppressMaintainUnsortedOrder)},t.prototype.isSuppressClearOnFillReduction=function(){return Ln(this.gridOptions.suppressClearOnFillReduction)},t.prototype.isShowToolPanel=function(){return Ln(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.isSuppressTouch=function(){return Ln(this.gridOptions.suppressTouch)},t.prototype.isMaintainColumnOrder=function(){return Ln(this.gridOptions.maintainColumnOrder)},t.prototype.isSuppressRowTransform=function(){return Ln(this.gridOptions.suppressRowTransform)},t.prototype.isSuppressColumnStateEvents=function(){return Ln(this.gridOptions.suppressColumnStateEvents)},t.prototype.isAllowDragFromColumnsToolPanel=function(){return Ln(this.gridOptions.allowDragFromColumnsToolPanel)},t.prototype.useAsyncEvents=function(){return!Ln(this.gridOptions.suppressAsyncEvents)},t.prototype.isEnableCellChangeFlash=function(){return Ln(this.gridOptions.enableCellChangeFlash)},t.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},t.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},t.prototype.isGroupSelectsChildren=function(){return Ln(this.gridOptions.groupSelectsChildren)},t.prototype.isSuppressRowHoverHighlight=function(){return Ln(this.gridOptions.suppressRowHoverHighlight)},t.prototype.isColumnHoverHighlight=function(){return Ln(this.gridOptions.columnHoverHighlight)},t.prototype.isGroupSelectsFiltered=function(){return Ln(this.gridOptions.groupSelectsFiltered)},t.prototype.isGroupHideOpenParents=function(){return Ln(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupMaintainOrder=function(){return Ln(this.gridOptions.groupMaintainOrder)},t.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},t.prototype.isColumnsSortingCoupledToGroup=function(){var t,i=this.getAutoGroupColumnDef();return this.isRowModelDefault()&&!(null===(t=i)||void 0===t?void 0:t.comparator)},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):Ln(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupUseEntireRow=function(t){return!t&&!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType)},t.prototype.isRowGroupPanelSuppressSort=function(){return Ln(this.gridOptions.rowGroupPanelSuppressSort)},t.prototype.isGroupRowsSticky=function(){return Ln(this.gridOptions.groupRowsSticky)},t.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},t.prototype.isGroupRemoveSingleChildren=function(){return Ln(this.gridOptions.groupRemoveSingleChildren)},t.prototype.isGroupRemoveLowestSingleChildren=function(){return Ln(this.gridOptions.groupRemoveLowestSingleChildren)},t.prototype.isGroupIncludeFooter=function(){return Ln(this.gridOptions.groupIncludeFooter)},t.prototype.isGroupIncludeTotalFooter=function(){return Ln(this.gridOptions.groupIncludeTotalFooter)},t.prototype.isGroupSuppressBlankHeader=function(){return Ln(this.gridOptions.groupSuppressBlankHeader)},t.prototype.isSuppressRowClickSelection=function(){return Ln(this.gridOptions.suppressRowClickSelection)},t.prototype.isSuppressCellFocus=function(){return Ln(this.gridOptions.suppressCellFocus)},t.prototype.isSuppressMultiSort=function(){return Ln(this.gridOptions.suppressMultiSort)},t.prototype.isAlwaysMultiSort=function(){return Ln(this.gridOptions.alwaysMultiSort)},t.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},t.prototype.isPivotSuppressAutoColumn=function(){return Ln(this.gridOptions.pivotSuppressAutoColumn)},t.prototype.isSuppressDragLeaveHidesColumns=function(){return Ln(this.gridOptions.suppressDragLeaveHidesColumns)},t.prototype.isSuppressRowGroupHidesColumns=function(){return Ln(this.gridOptions.suppressRowGroupHidesColumns)},t.prototype.isSuppressScrollOnNewData=function(){return Ln(this.gridOptions.suppressScrollOnNewData)},t.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return Ln(this.gridOptions.suppressScrollWhenPopupsAreOpen)},t.prototype.isRowDragEntireRow=function(){return Ln(this.gridOptions.rowDragEntireRow)},t.prototype.getRowDragText=function(t){if(t){var i=t.getColDef();if(i.rowDragText)return i.rowDragText}return this.gridOptions.rowDragText},t.prototype.isSuppressRowDrag=function(){return Ln(this.gridOptions.suppressRowDrag)},t.prototype.isRowDragManaged=function(){return Ln(this.gridOptions.rowDragManaged)},t.prototype.isSuppressMoveWhenRowDragging=function(){return Ln(this.gridOptions.suppressMoveWhenRowDragging)},t.prototype.isRowDragMultiRow=function(){return Ln(this.gridOptions.rowDragMultiRow)},t.prototype.getDomLayout=function(){var t=this.gridOptions.domLayout||Vt.DOM_LAYOUT_NORMAL;return-1===[Vt.DOM_LAYOUT_PRINT,Vt.DOM_LAYOUT_AUTO_HEIGHT,Vt.DOM_LAYOUT_NORMAL].indexOf(t)?(gt((function(){return console.warn("AG Grid: "+t+" is not valid for DOM Layout, valid values are "+Vt.DOM_LAYOUT_NORMAL+", "+Vt.DOM_LAYOUT_AUTO_HEIGHT+" and "+Vt.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),Vt.DOM_LAYOUT_NORMAL):t},t.prototype.isSuppressHorizontalScroll=function(){return Ln(this.gridOptions.suppressHorizontalScroll)},t.prototype.isSuppressMaxRenderedRowRestriction=function(){return Ln(this.gridOptions.suppressMaxRenderedRowRestriction)},t.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Ln(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},t.prototype.isAlwaysShowHorizontalScroll=function(){return Ln(this.gridOptions.alwaysShowHorizontalScroll)},t.prototype.isAlwaysShowVerticalScroll=function(){return Ln(this.gridOptions.alwaysShowVerticalScroll)},t.prototype.isDebounceVerticalScrollbar=function(){return Ln(this.gridOptions.debounceVerticalScrollbar)},t.prototype.isSuppressLoadingOverlay=function(){return Ln(this.gridOptions.suppressLoadingOverlay)},t.prototype.isSuppressNoRowsOverlay=function(){return Ln(this.gridOptions.suppressNoRowsOverlay)},t.prototype.isSuppressFieldDotNotation=function(){return Ln(this.gridOptions.suppressFieldDotNotation)},t.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},t.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},t.prototype.isFunctionsPassive=function(){return Ln(this.gridOptions.functionsPassive)},t.prototype.isSuppressChangeDetection=function(){return Ln(this.gridOptions.suppressChangeDetection)},t.prototype.isSuppressAnimationFrame=function(){return Ln(this.gridOptions.suppressAnimationFrame)},t.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},t.prototype.isCacheQuickFilter=function(){return Ln(this.gridOptions.cacheQuickFilter)},t.prototype.isUnSortIcon=function(){return Ln(this.gridOptions.unSortIcon)},t.prototype.isSuppressMenuHide=function(){return Ln(this.gridOptions.suppressMenuHide)},t.prototype.isEnterMovesDownAfterEdit=function(){return Ln(this.gridOptions.enterMovesDownAfterEdit)},t.prototype.isEnterMovesDown=function(){return Ln(this.gridOptions.enterMovesDown)},t.prototype.isUndoRedoCellEditing=function(){return Ln(this.gridOptions.undoRedoCellEditing)},t.prototype.getUndoRedoCellEditingLimit=function(){return Bn(this.gridOptions.undoRedoCellEditingLimit)},t.prototype.isEnableCellEditingOnBackspace=function(){return Ln(this.gridOptions.enableCellEditingOnBackspace)},t.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},t.prototype.getRowClass=function(){return this.gridOptions.rowClass},t.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},t.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},t.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},t.prototype.isServerSideInfiniteScroll=function(){return Ln(this.gridOptions.serverSideInfiniteScroll)},t.prototype.getServerSideGroupLevelParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams)},t.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},t.prototype.getPopupParent=function(){return this.gridOptions.popupParent},t.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},t.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},t.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},t.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},t.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},t.prototype.getInitialGroupOrderComparator=function(){var t=this.gridOptions,i=t.initialGroupOrderComparator,n=t.defaultGroupOrderComparator;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.nodeA,t.nodeB)}:void 0},t.prototype.getIsFullWidthCellFunc=function(){var t=this.gridOptions,i=t.isFullWidthRow,n=t.isFullWidthCell;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.rowNode)}:void 0},t.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},t.prototype.isEmbedFullWidthRows=function(){return Ln(this.gridOptions.embedFullWidthRows)||Ln(this.gridOptions.deprecatedEmbedFullWidthRows)},t.prototype.isDetailRowAutoHeight=function(){return Ln(this.gridOptions.detailRowAutoHeight)},t.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},t.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},t.prototype.getApi=function(){return this.gridOptions.api},t.prototype.getColumnApi=function(){return this.gridOptions.columnApi},t.prototype.isReadOnlyEdit=function(){return Ln(this.gridOptions.readOnlyEdit)},t.prototype.isImmutableData=function(){var t=null!=this.gridOptions.getRowId,i=Ln(this.gridOptions.immutableData);return!Ln(this.gridOptions.resetRowDataOnUpdate)&&(t||i)},t.prototype.isEnsureDomOrder=function(){return Ln(this.gridOptions.ensureDomOrder)},t.prototype.isEnableCharts=function(){return!!Ln(this.gridOptions.enableCharts)&&Ut.assertRegistered(Nt.GridChartsModule,"enableCharts")},t.prototype.isEnableChartToolPanelsButton=function(){return Ln(this.gridOptions.enableChartToolPanelsButton)},t.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},t.prototype.isSingleClickEdit=function(){return Ln(this.gridOptions.singleClickEdit)},t.prototype.isSuppressClickEdit=function(){return Ln(this.gridOptions.suppressClickEdit)},t.prototype.isStopEditingWhenCellsLoseFocus=function(){return Ln(this.gridOptions.stopEditingWhenCellsLoseFocus)},t.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},t.prototype.getMaxConcurrentDatasourceRequests=function(){var t=Bn(this.gridOptions.maxConcurrentDatasourceRequests);return null==t?2:t<=0?void 0:t},t.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},t.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},t.prototype.getPaginationPageSize=function(){return Bn(this.gridOptions.paginationPageSize)},t.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||Ln(this.gridOptions.paginateChildRows)},t.prototype.getCacheBlockSize=function(){return Hn(this.gridOptions.cacheBlockSize)},t.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},t.prototype.getServerSideInitialRowCount=function(){var t=this.gridOptions.serverSideInitialRowCount;return"number"==typeof t&&t>0?t:1},t.prototype.isPurgeClosedRowNodes=function(){return Ln(this.gridOptions.purgeClosedRowNodes)},t.prototype.isSuppressPaginationPanel=function(){return Ln(this.gridOptions.suppressPaginationPanel)},t.prototype.getRowData=function(){return this.gridOptions.rowData},t.prototype.isEnableRtl=function(){return Ln(this.gridOptions.enableRtl)},t.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},t.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},t.prototype.isAngularCompileRows=function(){return Ln(this.gridOptions.angularCompileRows)},t.prototype.isAngularCompileFilters=function(){return Ln(this.gridOptions.angularCompileFilters)},t.prototype.isDebug=function(){return Ln(this.gridOptions.debug)},t.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},t.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},t.prototype.getDatasource=function(){return this.gridOptions.datasource},t.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},t.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},t.prototype.isAccentedSort=function(){return Ln(this.gridOptions.accentedSort)},t.prototype.isEnableBrowserTooltips=function(){return Ln(this.gridOptions.enableBrowserTooltips)},t.prototype.isEnableCellExpressions=function(){return Ln(this.gridOptions.enableCellExpressions)},t.prototype.isEnableGroupEdit=function(){return Ln(this.gridOptions.enableGroupEdit)},t.prototype.isSuppressMiddleClickScrolls=function(){return Ln(this.gridOptions.suppressMiddleClickScrolls)},t.prototype.isPreventDefaultOnContextMenu=function(){return Ln(this.gridOptions.preventDefaultOnContextMenu)},t.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Ln(this.gridOptions.suppressPreventDefaultOnMouseWheel)},t.prototype.isSuppressColumnVirtualisation=function(){return Ln(this.gridOptions.suppressColumnVirtualisation)},t.prototype.isSuppressRowVirtualisation=function(){return Ln(this.gridOptions.suppressRowVirtualisation)},t.prototype.isSuppressContextMenu=function(){return Ln(this.gridOptions.suppressContextMenu)},t.prototype.isAllowContextMenuWithControlKey=function(){return Ln(this.gridOptions.allowContextMenuWithControlKey)},t.prototype.isSuppressCopyRowsToClipboard=function(){return Ln(this.gridOptions.suppressCopyRowsToClipboard)},t.prototype.isSuppressCopySingleCellRanges=function(){return Ln(this.gridOptions.suppressCopySingleCellRanges)},t.prototype.isCopyHeadersToClipboard=function(){return Ln(this.gridOptions.copyHeadersToClipboard)},t.prototype.isCopyGroupHeadersToClipboard=function(){return Ln(this.gridOptions.copyGroupHeadersToClipboard)},t.prototype.isSuppressClipboardPaste=function(){return Ln(this.gridOptions.suppressClipboardPaste)},t.prototype.isSuppressLastEmptyLineOnPaste=function(){return Ln(this.gridOptions.suppressLastEmptyLineOnPaste)},t.prototype.isPagination=function(){return Ln(this.gridOptions.pagination)},t.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Ln(this.gridOptions.suppressEnterpriseResetOnNewColumns)},t.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},t.prototype.getAsyncTransactionWaitMillis=function(){return $(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:Vt.BATCH_WAIT_MILLIS},t.prototype.isSuppressMovableColumns=function(){return Ln(this.gridOptions.suppressMovableColumns)},t.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Ln(this.gridOptions.animateRows)},t.prototype.isSuppressColumnMoveAnimation=function(){return Ln(this.gridOptions.suppressColumnMoveAnimation)},t.prototype.isSuppressAggFuncInHeader=function(){return Ln(this.gridOptions.suppressAggFuncInHeader)},t.prototype.isSuppressAggAtRootLevel=function(){return Ln(this.gridOptions.suppressAggAtRootLevel)},t.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||Ln(this.gridOptions.suppressAggFilteredOnly)},t.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return Ln(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},t.prototype.isShowOpenedGroup=function(){return Ln(this.gridOptions.showOpenedGroup)},t.prototype.isReactUi=function(){return Ln(this.gridOptions.reactUi)},t.prototype.isSuppressReactUi=function(){return Ln(this.gridOptions.suppressReactUi)},t.prototype.isEnableRangeSelection=function(){return Ut.isRegistered(Nt.RangeSelectionModule)&&Ln(this.gridOptions.enableRangeSelection)},t.prototype.isEnableRangeHandle=function(){return Ln(this.gridOptions.enableRangeHandle)},t.prototype.isEnableFillHandle=function(){return Ln(this.gridOptions.enableFillHandle)},t.prototype.getFillHandleDirection=function(){var t=this.gridOptions.fillHandleDirection;return t?"x"!==t&&"y"!==t&&"xy"!==t?(gt((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):t:"xy"},t.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},t.prototype.isSuppressMultiRangeSelection=function(){return Ln(this.gridOptions.suppressMultiRangeSelection)},t.prototype.isPaginationAutoPageSize=function(){return Ln(this.gridOptions.paginationAutoPageSize)},t.prototype.isRememberGroupStateWhenNewData=function(){return Ln(this.gridOptions.rememberGroupStateWhenNewData)},t.prototype.getIcons=function(){return this.gridOptions.icons},t.prototype.getGroupAggFiltering=function(){var t=this.gridOptions.groupAggFiltering;return"function"==typeof t?this.mergeGridCommonParams(t):Ln(t)?function(){return!0}:void 0},t.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},t.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},t.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},t.prototype.isMasterDetail=function(){return!!Ln(this.gridOptions.masterDetail)&&Ut.assertRegistered(Nt.MasterDetailModule,"masterDetail")},t.prototype.isKeepDetailRows=function(){return Ln(this.gridOptions.keepDetailRows)},t.prototype.getKeepDetailRowsCount=function(){var t=this.gridOptions.keepDetailRowsCount;return $(t)&&t>0?this.gridOptions.keepDetailRowsCount:10},t.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},t.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},t.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},t.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},t.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},t.prototype.isSuppressAutoSize=function(){return Ln(this.gridOptions.suppressAutoSize)},t.prototype.isEnableCellTextSelection=function(){return Ln(this.gridOptions.enableCellTextSelection)},t.prototype.isSuppressParentsInRowNodes=function(){return Ln(this.gridOptions.suppressParentsInRowNodes)},t.prototype.isSuppressClipboardApi=function(){return Ln(this.gridOptions.suppressClipboardApi)},t.prototype.isFunctionsReadOnly=function(){return Ln(this.gridOptions.functionsReadOnly)},t.prototype.isEnableCellTextSelect=function(){return Ln(this.gridOptions.enableCellTextSelection)},t.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},t.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},t.prototype.getDefaultExportParams=function(t){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+Ii(t)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===t&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===t&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},t.prototype.isSuppressCsvExport=function(){return Ln(this.gridOptions.suppressCsvExport)},t.prototype.isAllowShowChangeAfterFilter=function(){return Ln(this.gridOptions.allowShowChangeAfterFilter)},t.prototype.isSuppressExcelExport=function(){return Ln(this.gridOptions.suppressExcelExport)},t.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Ln(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},t.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},t.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},t.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},t.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},t.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},t.prototype.getGroupRowAggFunc=function(){var t=this.gridOptions,i=t.getGroupRowAgg,n=t.groupRowAggNodes;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.nodes)}:void 0},t.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},t.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},t.prototype.getRowIdFunc=function(){var t=this.gridOptions,i=t.getRowId,n=t.getRowNodeId;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.data)}:void 0},t.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},t.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},t.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},t.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},t.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},t.prototype.isTreeData=function(){return!!Ln(this.gridOptions.treeData)&&Ut.assertRegistered(Nt.RowGroupingModule,"Tree Data")},t.prototype.isValueCache=function(){return Ln(this.gridOptions.valueCache)},t.prototype.isValueCacheNeverExpires=function(){return Ln(this.gridOptions.valueCacheNeverExpires)},t.prototype.isDeltaSort=function(){return Ln(this.gridOptions.deltaSort)},t.prototype.isAggregateOnlyChangedColumns=function(){return Ln(this.gridOptions.aggregateOnlyChangedColumns)},t.prototype.getProcessPivotResultColDefFunc=function(){return this.gridOptions.processPivotResultColDef||this.gridOptions.processSecondaryColDef},t.prototype.getProcessPivotResultColGroupDefFunc=function(){return this.gridOptions.processPivotResultColGroupDef||this.gridOptions.processSecondaryColGroupDef},t.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},t.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},t.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},t.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},t.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},t.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},t.prototype.getViewportRowModelPageSize=function(){return Hn(this.gridOptions.viewportRowModelPageSize,5)},t.prototype.getViewportRowModelBufferSize=function(){return 5,(t=this.gridOptions.viewportRowModelBufferSize)>=0?t:5;var t},t.prototype.isServerSideSortAllLevels=function(){var t=Ln(this.gridOptions.serverSideSortAllLevels);return!this.isRowModelServerSide()&&t?(gt((function(){return console.warn("AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.")}),"serverSideSortAllLevels"),!1):t},t.prototype.isServerSideFilterAllLevels=function(){var t=Ln(this.gridOptions.serverSideFilterAllLevels);return!this.isRowModelServerSide()&&t?(gt((function(){return console.warn("AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.")}),"serverSideFilterAllLevels"),!1):t},t.prototype.isServerSideSortOnServer=function(){var t=Ln(this.gridOptions.serverSideSortOnServer);return!this.isRowModelServerSide()&&t?(gt((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.")}),"serverSideSortOnServerRowModel"),!1):this.isTreeData()&&t?(gt((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.")}),"serverSideSortOnServerTreeData"),!1):t},t.prototype.isServerSideFilterOnServer=function(){var t=Ln(this.gridOptions.serverSideFilterOnServer);return!this.isRowModelServerSide()&&t?(gt((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.")}),"serverSideFilterOnServerRowModel"),!1):this.isTreeData()&&t?(gt((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.")}),"serverSideFilterOnServerTreeData"),!1):t},t.prototype.getPostSortFunc=function(){var t=this.gridOptions,i=t.postSortRows,n=t.postSort;return i?this.mergeGridCommonParams(i):n?function(t){return n(t.nodes)}:void 0},t.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},t.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},t.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},t.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},t.prototype.getChartToolPanelsDef=function(){return this.gridOptions.chartToolPanelsDef},t.prototype.getClipboardDelimiter=function(){return $(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},t.prototype.setProperty=function(t,i,n){void 0===n&&(n=!1);var e=this.gridOptions[t];(n||e!==i)&&(this.gridOptions[t]=i,this.propertyEventService.dispatchEvent({type:t,currentValue:i,previousValue:e}))},t.prototype.addEventListener=function(t,i){this.propertyEventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.propertyEventService.removeEventListener(t,i)},t.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},t.prototype.getAutoSizePadding=function(){var t=this.gridOptions.autoSizePadding;return null!=t&&t>=0?t:20},t.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},t.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},t.prototype.doesExternalFilterPass=function(t){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(t)},t.prototype.getTooltipDelay=function(t){var i=this.gridOptions,n="show"===t?i.tooltipShowDelay:i.tooltipHideDelay,e=Ii(t);return $(n)?(n<0&&gt((function(){return console.warn("ag-grid: tooltip"+e+"Delay should not be lower than 0")}),"tooltip"+e+"DelayWarn"),Math.max(200,n)):null},t.prototype.isTooltipMouseTrack=function(){return Ln(this.gridOptions.tooltipMouseTrack)},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return Ln(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&$(this.gridOptions.getDocument)?t=this.gridOptions.getDocument():this.eGridDiv&&(t=this.eGridDiv.ownerDocument),t&&$(t)?t:document},t.prototype.getMinColWidth=function(){var t=this.gridOptions.minColWidth;if($(t)&&t>i.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var n=this.getFromTheme(null,"headerCellMinWidth");return $(n)?Math.max(n,i.MIN_COL_WIDTH):i.MIN_COL_WIDTH},t.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>i.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},t.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<i.MIN_COL_WIDTH?200:this.gridOptions.colWidth},t.prototype.getRowBuffer=function(){var t=this.gridOptions.rowBuffer;return"number"==typeof t?t<0&&(gt((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=t=0):t=Vt.ROW_BUFFER_SIZE,t},t.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var t="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:bn();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:xi.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.checkForDeprecated=function(){var t=this.gridOptions;t.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),t.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),t.enableMultiRowDragging&&(t.rowDragMultiRow=!0,delete t.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var i=function(i,n,e){null!=t[i]&&(console.warn("AG Grid: since version "+e+", '"+i+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==t[n]&&(t[n]=t[i]))};if(i("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),i("deltaRowDataMode","immutableData","23.1.x"),i("serverSideFilteringAlwaysResets","serverSideFilterAllLevels","28.0.0"),i("serverSideSortingAlwaysResets","serverSideSortAllLevels","28.0.0"),(t.immutableColumns||t.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),i("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),t.groupRowInnerRenderer||t.groupRowInnerRendererParams||t.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),t.groupRowRendererParams||(t.groupRowRendererParams={});var n=t.groupRowRendererParams;t.groupRowInnerRenderer&&(n.innerRenderer=t.groupRowInnerRenderer),t.groupRowInnerRendererParams&&(n.innerRendererParams=t.groupRowInnerRendererParams),t.groupRowInnerRendererFramework&&(n.innerRendererFramework=t.groupRowInnerRendererFramework)}t.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),t.detailCellRendererParams&&t.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),t.detailRowAutoHeight=!0),t.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),t.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),t.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),t.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),t.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),t.stopEditingWhenCellsLoseFocus=!0),t.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),t.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),t.groupDisplayType="multipleColumns"),t.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),t.groupDisplayType="groupRows"),t.groupSuppressAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+(t.treeData?"treeDataDisplayType":"groupDisplayType")+" = 'custom'`"),t.groupDisplayType="custom"),t.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),t.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),t.defaultGroupOrderComparator=t.defaultGroupSortComparator),t.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),t.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),t.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),t.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),t.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),t.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),t.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),t.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),t.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),t.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),t.suppressCellFocus=t.suppressCellSelection),t.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),t.immutableData&&(t.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),t.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),t.clipboardDelimiter=t.clipboardDeliminator),i("processSecondaryColDef","processPivotResultColDef","28.0.x"),i("processSecondaryColGroupDef","processPivotResultColGroupDef","28.0.x"),t.serverSideStoreType&&(console.warn("AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store."),t.serverSideInfiniteScroll="partial"===t.serverSideStoreType),i("getServerSideStoreParams","getServerSideGroupLevelParams","28.0.x")},t.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.isRowModelDefault()&&q(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(q(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),q(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},t.prototype.getLocaleTextFunc=function(){var t=this,i=this.gridOptions,n=i.localeText,e=i.getLocaleText;return e?function(i,n,r){var o={key:i,defaultValue:n,variableValues:r,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()};return e(o)}:i.localeTextFunc||function(t,i,e){var r=n&&n[t];if(r&&e&&e.length)for(var o=0;!(o>=e.length)&&-1!==r.indexOf("${variable}");)r=r.replace("${variable}",e[o++]);return null!=r?r:i}},t.prototype.globalEventHandler=function(t,i){if(!this.destroyed){var n=Yi.getCallbackForEvent(t);"function"==typeof this.gridOptions[n]&&this.gridOptions[n](i)}},t.prototype.setRowHeightVariable=function(t){var i=t+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=i&&this.eGridDiv.style.setProperty("--ag-line-height",i)},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||q(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var t=this.gridOptions.rowHeight;return t&&this.isNumeric(t)?(this.setRowHeightVariable(t),t):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},t.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(t,i,n){if(void 0===i&&(i=!1),null==n&&(n=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(i)return{height:n,estimated:!0};var e={node:t,data:t.data},r=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(e);if(this.isNumeric(r))return 0===r&&gt((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,r),estimated:!1}}return t.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},t.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},t.prototype.isNumeric=function(t){return!isNaN(t)&&"number"==typeof t&&isFinite(t)},t.prototype.getFromTheme=function(t,i){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,i):t},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},t.prototype.matchesGroupDisplayType=function(t,i){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):i===t},t.prototype.matchesTreeDataDisplayType=function(t,i){var n=["auto","custom"];return n.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):i===t},t.MIN_COL_WIDTH=10,t.PROP_HEADER_HEIGHT="headerHeight",t.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",t.PROP_GROUP_DISPLAY_TYPE="groupDisplayType",t.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",t.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",t.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",t.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",t.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",t.PROP_TAB_TO_NEXT_CELL="tabToNextCell",t.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",t.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",t.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",t.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",t.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",t.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",t.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",t.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",t.PROP_GET_ROW_CLASS="getRowClass",t.PROP_GET_ROW_STYLE="getRowStyle",t.PROP_GET_ROW_HEIGHT="getRowHeight",t.PROP_POPUP_PARENT="popupParent",t.PROP_DOM_LAYOUT="domLayout",t.PROP_ROW_CLASS="rowClass",t.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",t.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",t.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",t.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",t.PROP_GET_CHILD_COUNT="getChildCount",t.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",t.PROP_GET_ROW_NODE_ID="getRowNodeId",t.PROP_GET_ROW_ID="getRowId",t.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",t.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",t.PROP_IS_ROW_SELECTABLE="isRowSelectable",t.PROP_IS_ROW_MASTER="isRowMaster",t.PROP_POST_SORT="postSort",t.PROP_POST_SORT_ROWS="postSortRows",t.PROP_GET_DOCUMENT="getDocument",t.PROP_POST_PROCESS_POPUP="postProcessPopup",t.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",t.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",t.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",t.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",t.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",t.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",t.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",t.PROP_SEND_TO_CLIPBOARD="sendToClipboard",t.PROP_PROCESS_PIVOT_RESULT_COL_DEF="processPivotResultColDef",t.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF="processPivotResultColGroupDef",t.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",t.PROP_GET_SERVER_SIDE_GROUP_PARAMS="getServerSideGroupLevelParams",t.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",t.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",t.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",t.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",t.PROP_AUTO_GROUP_COLUMN_DEF="autoGroupColumnDef",t.PROP_DEFAULT_COL_DEF="defaultColDef",En([Dt("gridOptions")],t.prototype,"gridOptions",void 0),En([Dt("eventService")],t.prototype,"eventService",void 0),En([Dt("environment")],t.prototype,"environment",void 0),En([Dt("eGridDiv")],t.prototype,"eGridDiv",void 0),En([Tn(0,Tt("gridApi")),Tn(1,Tt("columnApi"))],t.prototype,"agWire",null),En([kt],t.prototype,"destroy",null),En([Ft],t.prototype,"init",null),i=En([Pt("gridOptionsWrapper")],t)}(),Vn=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Un=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Kn=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},$n=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},qn=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat($n(arguments[i]));return t},Yn=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.primaryHeaderRowCount=0,i.secondaryHeaderRowCount=0,i.gridHeaderRowCount=0,i.displayedColumnsLeft=[],i.displayedColumnsRight=[],i.displayedColumnsCenter=[],i.displayedColumns=[],i.displayedColumnsAndGroupsMap={},i.viewportColumns=[],i.viewportColumnsHash="",i.headerViewportColumns=[],i.viewportColumnsCenter=[],i.headerViewportColumnsCenter=[],i.autoHeightActiveAtLeastOnce=!1,i.rowGroupColumns=[],i.valueColumns=[],i.pivotColumns=[],i.ready=!1,i.autoGroupsNeedBuilding=!1,i.forceRecreateAutoGroups=!1,i.pivotMode=!1,i.bodyWidth=0,i.leftWidth=0,i.rightWidth=0,i.bodyWidthDirty=!0,i.flexColsCalculatedAtLestOnce=!1,i}return Vn(i,t),i.prototype.init=function(){var t=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var i=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(i)&&(this.pivotMode=i),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_GROUP_DISPLAY_TYPE,(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_AUTO_GROUP_COLUMN_DEF,(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_DEFAULT_COL_DEF,(function(){return t.onDefaultColDefChanged()}))},i.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},i.prototype.onDefaultColDefChanged=function(){this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},i.prototype.setColumnDefs=function(t,i){void 0===i&&(i="api");var n=!!this.columnDefs;this.columnDefs=t,this.createColumnsFromColumnDefs(n,i)},i.prototype.createColumnsFromColumnDefs=function(t,i){var n=this;void 0===i&&(i="api");var e=t?this.compareColumnStatesAndRaiseEvents(i):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,o=this.columnFactory.createColumnTree(this.columnDefs,!0,this.primaryColumnTree);this.primaryColumnTree=o.columnTree,this.primaryHeaderRowCount=o.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(t){return n.primaryColumnsMap[t.getId()]=t})),this.extractRowGroupColumns(i,r),this.extractPivotColumns(i,r),this.extractValueColumns(i,r),this.ready=!0,(this.gridColsArePrimary||void 0===this.gridColsArePrimary)&&(this.updateGridColumns(),t&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(i),this.checkViewportColumns()),this.dispatchEverythingChanged(i),e&&e(),this.dispatchNewColumnsLoaded()},i.prototype.dispatchNewColumnsLoaded=function(){this.eventService.dispatchEvent({type:xi.EVENT_NEW_COLUMNS_LOADED})},i.prototype.dispatchEverythingChanged=function(t){void 0===t&&(t="api"),this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_EVERYTHING_CHANGED,source:t})},i.prototype.orderGridColumnsLikePrimary=function(){var t=this,i=this.primaryColumns;i&&(this.gridColumns.sort((function(n,e){var r=i.indexOf(n),o=i.indexOf(e),s=r>=0,u=o>=0;return s&&u?r-o:s?1:u?-1:t.gridColumns.indexOf(n)-t.gridColumns.indexOf(e)})),this.gridColumns=this.placeLockedColumns(this.gridColumns))},i.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},i.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},i.prototype.getDisplayedColumnsStartingAt=function(t){for(var i=t,n=[];null!=i;)n.push(i),i=this.getDisplayedColAfter(i);return n},i.prototype.checkViewportColumns=function(){null!=this.displayedColumnsCenter&&this.extractViewport()&&this.eventService.dispatchEvent({type:xi.EVENT_VIRTUAL_COLUMNS_CHANGED})},i.prototype.setViewportPosition=function(t,i){(t!==this.scrollWidth||i!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=i,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},i.prototype.isPivotMode=function(){return this.pivotMode},i.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},i.prototype.setPivotMode=function(t,i){void 0===i&&(i="api"),t!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=t,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(i),this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_PIVOT_MODE_CHANGED}))},i.prototype.getSecondaryPivotColumn=function(t,i){if(q(this.secondaryColumns))return null;var n=this.getPrimaryColumn(i),e=null;return this.secondaryColumns.forEach((function(i){var r=i.getColDef().pivotKeys,o=i.getColDef().pivotValueColumn;Zt(r,t)&&o===n&&(e=i)})),e},i.prototype.setBeans=function(t){this.logger=t.create("columnModel")},i.prototype.setFirstRightAndLastLeftPinned=function(t){var i,n;this.gridOptionsWrapper.isEnableRtl()?(i=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?Jt(this.displayedColumnsRight):null):(i=this.displayedColumnsLeft?Jt(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(e){e.setLastLeftPinned(e===i,t),e.setFirstRightPinned(e===n,t)}))},i.prototype.autoSizeColumns=function(t){var i=this,n=t.columns,e=t.skipHeader,r=t.skipHeaderGroups,o=t.stopAtGroup,s=t.source,u=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var h=[],c=-1,a=null!=e?e:this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),l=null!=r?r:a;0!==c;)c=0,this.actionOnGridColumns(n,(function(t){if(h.indexOf(t)>=0)return!1;var n=i.autoWidthCalculator.getPreferredWidthForColumn(t,a);if(n>0){var e=i.normaliseColumnWidth(t,n);t.setActualWidth(e,u),h.push(t),c++}return!0}),u);l||this.autoSizeColumnGroupsByColumns(n,o),this.fireColumnResizedEvent(h,!0,"autosizeColumns")},i.prototype.fireColumnResizedEvent=function(t,i,n,e){void 0===e&&(e=null),t&&t.length&&this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:e,finished:i,source:n})},i.prototype.autoSizeColumn=function(t,i,n){void 0===n&&(n="api"),t&&this.autoSizeColumns({columns:[t],skipHeader:i,skipHeaderGroups:!0,source:n})},i.prototype.autoSizeColumnGroupsByColumns=function(t,i){var n,e,r,o,s,u=new Set;this.getGridColumns(t).forEach((function(t){for(var n=t.getParent();n&&n!=i;)n.isPadding()||u.add(n),n=n.getParent()}));try{for(var h=Kn(u),c=h.next();!c.done;c=h.next()){var a=c.value;try{for(var l=(r=void 0,Kn(this.ctrlsService.getHeaderRowContainerCtrls())),f=l.next();!f.done&&!(s=f.value.getHeaderCtrlForColumn(a));f=l.next());}catch(t){r={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}s&&s.resizeLeafColumnsToFit()}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=h.return)&&e.call(h)}finally{if(n)throw n.error}}return[]},i.prototype.autoSizeAllColumns=function(t,i){void 0===i&&(i="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:t,source:i})},i.prototype.getColumnsFromTree=function(t){var i=[],n=function(t){for(var e=0;e<t.length;e++){var r=t[e];r instanceof qt?i.push(r):r instanceof hi&&n(r.getChildren())}};return n(t),i},i.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},i.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},i.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},i.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},i.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},i.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},i.prototype.isColumnDisplayed=function(t){return this.getAllDisplayedColumns().indexOf(t)>=0},i.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},i.prototype.getViewportColumns=function(){return this.viewportColumns},i.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsLeft):this.displayedColumnsLeft},i.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsRight):this.displayedColumnsRight},i.prototype.getDisplayedColumnsForRow=function(t,i,n,e){for(var r,o=[],s=null,u=function(u){var h,c=i[u],a=i.length-u,l=Math.min(c.getColSpan(t),a),f=[c];if(l>1){for(var d=l-1,v=1;v<=d;v++)f.push(i[u+v]);u+=d}n?(h=!1,f.forEach((function(t){n(t)&&(h=!0)}))):h=!0,h&&(0===o.length&&s&&e&&e(c)&&o.push(s),o.push(c)),s=c,r=u},h=0;h<i.length;h++)u(h),h=r;return o},i.prototype.getViewportCenterColumnsForRow=function(t){var i=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(t,this.displayedColumnsCenter,n,(function(t){var n=t.getLeft();return $(n)&&n>i.viewportLeft}))},i.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},i.prototype.isColumnInHeaderViewport=function(t){return!!t.isAutoHeaderHeight()||this.isColumnInRowViewport(t)},i.prototype.isColumnInRowViewport=function(t){if(t.isAutoHeight())return!0;var i=t.getLeft()||0,n=i+t.getActualWidth(),e=this.viewportLeft-200,r=this.viewportRight+200;return!(i<e&&n<e||i>r&&n>r)},i.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},i.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},i.prototype.updatePrimaryColumnList=function(t,i,n,e,r,o){var s=this;if(void 0===o&&(o="api"),t&&!Y(t)){var u=!1;t.forEach((function(t){var r=s.getPrimaryColumn(t);if(r){if(n){if(i.indexOf(r)>=0)return;i.push(r)}else{if(i.indexOf(r)<0)return;Qt(i,r)}e(r),u=!0}})),u&&(this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(o),this.eventService.dispatchEvent({type:r,columns:i,column:1===i.length?i[0]:null,source:o}))}},i.prototype.setRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),i)},i.prototype.setRowGroupActive=function(t,i,n){t!==i.isRowGroupActive()&&(i.setRowGroupActive(t,n),t&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&this.setColumnVisible(i,!1,n),t||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||this.setColumnVisible(i,!0,n))},i.prototype.addRowGroupColumn=function(t,i){void 0===i&&(i="api"),t&&this.addRowGroupColumns([t],i)},i.prototype.addRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),xi.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},i.prototype.removeRowGroupColumns=function(t,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),xi.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},i.prototype.removeRowGroupColumn=function(t,i){void 0===i&&(i="api"),t&&this.removeRowGroupColumns([t],i)},i.prototype.addPivotColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,i)}),xi.EVENT_COLUMN_PIVOT_CHANGED,i)},i.prototype.setPivotColumns=function(t,i){void 0===i&&(i="api"),this.setPrimaryColumnList(t,this.pivotColumns,xi.EVENT_COLUMN_PIVOT_CHANGED,(function(t,n){n.setPivotActive(t,i)}),i)},i.prototype.addPivotColumn=function(t,i){void 0===i&&(i="api"),this.addPivotColumns([t],i)},i.prototype.removePivotColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,i)}),xi.EVENT_COLUMN_PIVOT_CHANGED,i)},i.prototype.removePivotColumn=function(t,i){void 0===i&&(i="api"),this.removePivotColumns([t],i)},i.prototype.setPrimaryColumnList=function(t,i,n,e,r){var o=this;i.length=0,$(t)&&t.forEach((function(t){var n=o.getPrimaryColumn(t);n&&i.push(n)})),(this.primaryColumns||[]).forEach((function(t){var n=i.indexOf(t)>=0;e(n,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r),this.fireColumnEvent(n,i,r)},i.prototype.setValueColumns=function(t,i){void 0===i&&(i="api"),this.setPrimaryColumnList(t,this.valueColumns,xi.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),i)},i.prototype.setValueActive=function(t,i,n){if(t!==i.isValueActive()&&(i.setValueActive(t,n),t&&!i.getAggFunc())){var e=this.aggFuncService.getDefaultAggFunc(i);i.setAggFunc(e)}},i.prototype.addValueColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),xi.EVENT_COLUMN_VALUE_CHANGED,i)},i.prototype.addValueColumn=function(t,i){void 0===i&&(i="api"),t&&this.addValueColumns([t],i)},i.prototype.removeValueColumn=function(t,i){void 0===i&&(i="api"),this.removeValueColumns([t],i)},i.prototype.removeValueColumns=function(t,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),xi.EVENT_COLUMN_VALUE_CHANGED,i)},i.prototype.normaliseColumnWidth=function(t,i){var n=t.getMinWidth();$(n)&&i<n&&(i=n);var e=t.getMaxWidth();return $(e)&&t.isGreaterThanMax(i)&&(i=e),i},i.prototype.getPrimaryOrGridColumn=function(t){return this.getPrimaryColumn(t)||this.getGridColumn(t)},i.prototype.setColumnWidths=function(t,i,n,e){var r=this;void 0===e&&(e="api");var o=[];t.forEach((function(t){var n=r.getPrimaryOrGridColumn(t.key);if(n&&(o.push({width:t.newWidth,ratios:[1],columns:[n]}),"shift"===r.gridOptionsWrapper.getColResizeDefault()&&(i=!i),i)){var e=r.getDisplayedColAfter(n);if(!e)return;var s=n.getActualWidth()-t.newWidth,u=e.getActualWidth()+s;o.push({width:u,ratios:[1],columns:[e]})}})),0!==o.length&&this.resizeColumnSets({resizeSets:o,finished:n,source:e})},i.prototype.checkMinAndMaxWidthsForSet=function(t){var i=t.width,n=0,e=0,r=!0;return t.columns.forEach((function(t){var i=t.getMinWidth();n+=i||0;var o=t.getMaxWidth();$(o)&&o>0?e+=o:r=!1})),i>=n&&(!r||i<=e)},i.prototype.resizeColumnSets=function(t){var i=this,n=t.resizeSets,e=t.finished,r=t.source;if(!n||n.every((function(t){return i.checkMinAndMaxWidthsForSet(t)}))){var o=[],s=[];n.forEach((function(t){var i=t.width,n=t.columns,e=t.ratios,u={},h={};n.forEach((function(t){return s.push(t)}));for(var c=!0,a=0,l=function(){if(++a>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var t=[],r=0,o=i;n.forEach((function(i,n){h[i.getId()]?o-=u[i.getId()]:(t.push(i),r+=e[n])}));var s=1/r;t.forEach((function(n,r){var a;r===t.length-1?a=o:(a=Math.round(e[r]*i*s),o-=a);var l=n.getMinWidth(),f=n.getMaxWidth();$(l)&&a<l?(a=l,h[n.getId()]=!0,c=!0):$(f)&&f>0&&a>f&&(a=f,h[n.getId()]=!0,c=!0),u[n.getId()]=a}))};c&&"break"!==l(););n.forEach((function(t){var i=u[t.getId()];t.getActualWidth()!==i&&(t.setActualWidth(i,r),o.push(t))}))}));var u=o.length>0,h=[];u&&(h=this.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0}),this.setLeftValues(r),this.updateBodyWidths(),this.checkViewportColumns());var c=s.concat(h);(u||e)&&this.fireColumnResizedEvent(c,e,r,h)}else e&&this.fireColumnResizedEvent(n&&n.length>0?n[0].columns:null,e,r)},i.prototype.setColumnAggFunc=function(t,i,n){if(void 0===n&&(n="api"),t){var e=this.getPrimaryColumn(t);e&&(e.setAggFunc(i),this.fireColumnEvent(xi.EVENT_COLUMN_VALUE_CHANGED,[e],n))}},i.prototype.fireColumnEvent=function(t,i,n){this.eventService.dispatchEvent({type:t,columns:i,column:i&&1==i.length?i[0]:null,source:n})},i.prototype.moveRowGroupColumn=function(t,i,n){void 0===n&&(n="api");var e=this.rowGroupColumns[t];this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(i,0,e),this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:n})},i.prototype.moveColumns=function(t,i,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),i>this.gridColumns.length-t.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+i),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var e=this.getGridColumns(t);!this.doesMovePassRules(e,i)||(ni(this.gridColumns,e,i),this.updateDisplayedColumns(n),this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_MOVED,columns:e,column:1===e.length?e[0]:null,toIndex:i,source:n}),this.columnAnimationService.finish())},i.prototype.doesMovePassRules=function(t,i){var n=this.getProposedColumnOrder(t,i);return this.doesOrderPassRules(n)},i.prototype.doesOrderPassRules=function(t){return!!this.doesMovePassMarryChildren(t)&&!!this.doesMovePassLockedPositions(t)},i.prototype.getProposedColumnOrder=function(t,i){var n=this.gridColumns.slice();return ni(n,t,i),n},i.prototype.sortColumnsLikeGridColumns=function(t){var i=this;!t||t.length<=1||t.filter((function(t){return i.gridColumns.indexOf(t)<0})).length>0||t.sort((function(t,n){return i.gridColumns.indexOf(t)-i.gridColumns.indexOf(n)}))},i.prototype.doesMovePassLockedPositions=function(t){var i=0,n=!0;return t.forEach((function(t){var e,r=(e=t.getColDef().lockPosition)?!0===e||"left"===e?0:2:1;r<i&&(n=!1),i=r})),n},i.prototype.doesMovePassMarryChildren=function(t){var i=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof hi){var e=n,r=e.getColGroupDef();if(r&&r.marryChildren){var o=[];e.getLeafColumns().forEach((function(i){var n=t.indexOf(i);o.push(n)})),Math.max.apply(Math,o)-Math.min.apply(Math,o)>e.getLeafColumns().length-1&&(i=!1)}}})),i},i.prototype.moveColumn=function(t,i,n){void 0===n&&(n="api"),this.moveColumns([t],i,n)},i.prototype.moveColumnByIndex=function(t,i,n){void 0===n&&(n="api"),this.moveColumn(this.gridColumns[t],i,n)},i.prototype.getColumnDefs=function(){var t=this;if(this.primaryColumns){var i=this.primaryColumns.slice();return this.gridColsArePrimary?i.sort((function(i,n){return t.gridColumns.indexOf(i)-t.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&i.sort((function(i,n){return t.lastPrimaryOrder.indexOf(i)-t.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(i,this.rowGroupColumns,this.pivotColumns)}},i.prototype.getBodyContainerWidth=function(){return this.bodyWidth},i.prototype.getContainerWidth=function(t){switch(t){case Vt.PINNED_LEFT:return this.leftWidth;case Vt.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},i.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedColumnsCenter),i=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==t,(this.bodyWidth!==t||this.leftWidth!==i||this.rightWidth!==n)&&(this.bodyWidth=t,this.leftWidth=i,this.rightWidth=n,this.eventService.dispatchEvent({type:xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED}))},i.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},i.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},i.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},i.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},i.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},i.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},i.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},i.prototype.getDisplayedColumns=function(t){switch(t){case Vt.PINNED_LEFT:return this.getDisplayedLeftColumns();case Vt.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},i.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},i.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},i.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},i.prototype.getAllGridColumns=function(){return this.gridColumns},i.prototype.isEmpty=function(){return Y(this.gridColumns)},i.prototype.isRowGroupEmpty=function(){return Y(this.rowGroupColumns)},i.prototype.setColumnVisible=function(t,i,n){void 0===n&&(n="api"),this.setColumnsVisible([t],i,n)},i.prototype.setColumnsVisible=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n="api"),this.applyColumnState({state:t.map((function(t){return{colId:"string"==typeof t?t:t.getColId(),hide:!i}}))},n)},i.prototype.setColumnPinned=function(t,i,n){void 0===n&&(n="api"),t&&this.setColumnsPinned([t],i,n)},i.prototype.setColumnsPinned=function(t,i,n){var e;void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),e=!0===i||i===Vt.PINNED_LEFT?Vt.PINNED_LEFT:i===Vt.PINNED_RIGHT?Vt.PINNED_RIGHT:null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==e&&(t.setPinned(e),!0)}),n,(function(){return{type:xi.EVENT_COLUMN_PINNED,pinned:e,column:null,columns:null,source:n}})),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},i.prototype.actionOnGridColumns=function(t,i,n,e){var r=this;if(!Y(t)){var o=[];if(t.forEach((function(t){var n=r.getGridColumn(t);n&&!1!==i(n)&&o.push(n)})),o.length&&(this.updateDisplayedColumns(n),$(e)&&e)){var s=e();s.columns=o,s.column=1===o.length?o[0]:null,this.eventService.dispatchEvent(s)}}},i.prototype.getDisplayedColBefore=function(t){var i=this.getAllDisplayedColumns(),n=i.indexOf(t);return n>0?i[n-1]:null},i.prototype.getDisplayedColAfter=function(t){var i=this.getAllDisplayedColumns(),n=i.indexOf(t);return n<i.length-1?i[n+1]:null},i.prototype.getDisplayedGroupAfter=function(t){return this.getDisplayedGroupAtDirection(t,"After")},i.prototype.getDisplayedGroupBefore=function(t){return this.getDisplayedGroupAtDirection(t,"Before")},i.prototype.getDisplayedGroupAtDirection=function(t,i){for(var n=t.getProvidedColumnGroup().getLevel()+t.getPaddingLevel(),e=t.getDisplayedLeafColumns(),r="After"===i?Jt(e):e[0],o="getDisplayedCol"+i;;){var s=this[o](r);if(!s)return null;var u=this.getColumnGroupAtLevel(s,n);if(u!==t)return u}},i.prototype.getColumnGroupAtLevel=function(t,i){for(var n=t.getParent();!(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=i);)n=n.getParent();return n},i.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},i.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},i.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t;return(t=[]).concat.apply(t,qn([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},i.prototype.getPrimaryAndAutoGroupCols=function(){var t;return(t=[]).concat.apply(t,qn([this.primaryColumns||[],this.groupAutoColumns||[]]))},i.prototype.getPrimaryAndSecondaryColumns=function(){var t;return(t=[]).concat.apply(t,qn([this.primaryColumns||[],this.secondaryColumns||[]]))},i.prototype.createStateItemFromColumn=function(t){var i=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,n=t.isPivotActive()?this.pivotColumns.indexOf(t):null,e=t.isValueActive()?t.getAggFunc():null,r=null!=t.getSort()?t.getSort():null,o=null!=t.getSortIndex()?t.getSortIndex():null,s=null!=t.getFlex()&&t.getFlex()>0?t.getFlex():null;return{colId:t.getColId(),width:t.getActualWidth(),hide:!t.isVisible(),pinned:t.getPinned(),sort:r,sortIndex:o,aggFunc:e,rowGroup:t.isRowGroupActive(),rowGroupIndex:i,pivot:t.isPivotActive(),pivotIndex:n,flex:s}},i.prototype.getColumnState=function(){if(q(this.primaryColumns)||!this.isAlive())return[];var t=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(t),t},i.prototype.orderColumnStateList=function(t){var i=Ni(this.gridColumns.map((function(t,i){return[t.getColId(),i]})));t.sort((function(t,n){return(i.has(t.colId)?i.get(t.colId):-1)-(i.has(n.colId)?i.get(n.colId):-1)}))},i.prototype.resetColumnState=function(t){void 0===t&&(t="api");var i=this.getColumnsFromTree(this.primaryColumnTree),n=[],e=1e3,r=1e3,o=[];this.groupAutoColumns&&(o=o.concat(this.groupAutoColumns)),i&&(o=o.concat(i)),o.forEach((function(t){var i=function(t,i){return null!=t?t:null!=i?i:null},o=t.getColDef(),s=i(o.sort,o.initialSort),u=i(o.sortIndex,o.initialSortIndex),h=i(o.hide,o.initialHide),c=i(o.pinned,o.initialPinned),a=i(o.width,o.initialWidth),l=i(o.flex,o.initialFlex),f=i(o.rowGroupIndex,o.initialRowGroupIndex),d=i(o.rowGroup,o.initialRowGroup);null!=f||null!=d&&0!=d||(f=null,d=null);var v=i(o.pivotIndex,o.initialPivotIndex),p=i(o.pivot,o.initialPivot);null!=v||null!=p&&0!=p||(v=null,p=null);var g=i(o.aggFunc,o.initialAggFunc),m={colId:t.getColId(),sort:s,sortIndex:u,hide:h,pinned:c,width:a,flex:l,rowGroup:d,rowGroupIndex:f,pivot:p,pivotIndex:v,aggFunc:g};q(f)&&d&&(m.rowGroupIndex=e++),q(v)&&p&&(m.pivotIndex=r++),n.push(m)})),this.applyColumnState({state:n,applyOrder:!0},t)},i.prototype.applyColumnState=function(t,i){var n=this;if(Y(this.primaryColumns))return!1;if(t&&t.state&&!t.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;var e=function(e,r,o){var s=n.compareColumnStatesAndRaiseEvents(i);n.autoGroupsNeedBuilding=!0;var u=r.slice(),h={},c={},a=[],l=[],f=0,d=n.rowGroupColumns.slice(),v=n.pivotColumns.slice();e.forEach((function(e){var r=e.colId||"";if(r.startsWith(Vt.GROUP_AUTO_COLUMN_ID))return a.push(e),void l.push(e);var s=o(r);s?(n.syncColumnWithStateItem(s,e,t.defaultState,h,c,!1,i),Qt(u,s)):(l.push(e),f+=1)}));var p=function(e){return n.syncColumnWithStateItem(e,null,t.defaultState,h,c,!1,i)};u.forEach(p);var g=function(t,i,n,e){var r=t[n.getId()],o=t[e.getId()],s=null!=r,u=null!=o;if(s&&u)return r-o;if(s)return-1;if(u)return 1;var h=i.indexOf(n),c=i.indexOf(e),a=h>=0;return a&&c>=0?h-c:a?-1:1};n.rowGroupColumns.sort(g.bind(n,h,d)),n.pivotColumns.sort(g.bind(n,c,v)),n.updateGridColumns();var m=n.groupAutoColumns?n.groupAutoColumns.slice():[];return a.forEach((function(e){var r=n.getAutoColumn(e.colId);Qt(m,r),n.syncColumnWithStateItem(r,e,t.defaultState,null,null,!0,i)})),m.forEach(p),n.applyOrderAfterApplyState(t),n.updateDisplayedColumns(i),n.dispatchEverythingChanged(i),s(),{unmatchedAndAutoStates:l,unmatchedCount:f}};this.columnAnimationService.start();var r=e(t.state||[],this.primaryColumns||[],(function(t){return n.getPrimaryColumn(t)})),o=r.unmatchedAndAutoStates,s=r.unmatchedCount;return(o.length>0||$(t.defaultState))&&(s=e(o,this.secondaryColumns||[],(function(t){return n.getSecondaryColumn(t)})).unmatchedCount),this.columnAnimationService.finish(),0===s},i.prototype.applyOrderAfterApplyState=function(t){var i=this;if(t.applyOrder&&t.state){var n=[],e={};t.state.forEach((function(t){if(t.colId&&!e[t.colId]){var r=i.gridColumnsMap[t.colId];r&&(n.push(r),e[t.colId]=!0)}}));var r=0;this.gridColumns.forEach((function(t){var i=t.getColId();null!=e[i]||(i.startsWith(Vt.GROUP_AUTO_COLUMN_ID)?ii(n,t,r++):n.push(t))})),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},i.prototype.compareColumnStatesAndRaiseEvents=function(t){var i=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},e=this.getColumnState(),r={};return e.forEach((function(t){r[t.colId]=t})),function(){if(!i.gridOptionsWrapper.isSuppressColumnStateEvents()){var o=i.getPrimaryAndSecondaryAndAutoColumns(),s=function(n,e,r,o){Zt(e.map(o),r.map(o))||i.eventService.dispatchEvent({type:n,columns:r,column:1===r.length?r[0]:null,source:t})},u=function(t){var i=[];return o.forEach((function(n){var e=r[n.getColId()];e&&t(e,n)&&i.push(n)})),i},h=function(t){return t.getColId()};s(xi.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,i.rowGroupColumns,h),s(xi.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,i.pivotColumns,h),u((function(t,i){var n=null!=t.aggFunc,e=n!=i.isValueActive(),r=n&&t.aggFunc!=i.getAggFunc();return e||r})).length>0&&i.fireColumnEvent(xi.EVENT_COLUMN_VALUE_CHANGED,i.valueColumns,t),i.fireColumnResizedEvent(u((function(t,i){return t.width!=i.getActualWidth()})),!0,t),i.raiseColumnPinnedEvent(u((function(t,i){return t.pinned!=i.getPinned()})),t),i.raiseColumnVisibleEvent(u((function(t,i){return t.hide==i.isVisible()})),t),u((function(t,i){return t.sort!=i.getSort()||t.sortIndex!=i.getSortIndex()})).length>0&&i.sortController.dispatchSortChangedEvents(t),i.raiseColumnMovedEvent(e,t)}}},i.prototype.raiseColumnPinnedEvent=function(t,i){if(t.length){var n=1===t.length?t[0]:null,e=this.getCommonValue(t,(function(t){return t.getPinned()}));this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_PINNED,pinned:null!=e?e:null,columns:t,column:n,source:i})}},i.prototype.getCommonValue=function(t,i){if(t&&0!=t.length){for(var n=i(t[0]),e=1;e<t.length;e++)if(n!==i(t[e]))return;return n}},i.prototype.raiseColumnVisibleEvent=function(t,i){if(t.length){var n=1===t.length?t[0]:null,e=this.getCommonValue(t,(function(t){return t.isVisible()}));this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_VISIBLE,visible:e,columns:t,column:n,source:i})}},i.prototype.raiseColumnMovedEvent=function(t,i){var n=this,e=this.getColumnState(),r={};e.forEach((function(t){return r[t.colId]=t}));var o={};t.forEach((function(t){r[t.colId]&&(o[t.colId]=!0)}));var s=t.filter((function(t){return o[t.colId]})),u=e.filter((function(t){return o[t.colId]})),h=[];u.forEach((function(t,i){var e=s&&s[i];if(e&&e.colId!==t.colId){var r=n.getGridColumn(e.colId);r&&h.push(r)}})),h.length&&this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_MOVED,columns:h,column:null,source:i})},i.prototype.syncColumnWithStateItem=function(t,i,n,e,r,o,s){if(t){var u=function(t,e){var r={value1:void 0,value2:void 0},o=!1;return i&&(void 0!==i[t]&&(r.value1=i[t],o=!0),$(e)&&void 0!==i[e]&&(r.value2=i[e],o=!0)),!o&&n&&(void 0!==n[t]&&(r.value1=n[t]),$(e)&&void 0!==n[e]&&(r.value2=n[e])),r},h=u("hide").value1;void 0!==h&&t.setVisible(!h,s);var c=u("pinned").value1;void 0!==c&&t.setPinned(c);var a=this.columnUtils.calculateColMinWidth(t.getColDef()),l=u("flex").value1;if(void 0!==l&&t.setFlex(l),t.getFlex()<=0){var f=u("width").value1;null!=f&&null!=a&&f>=a&&t.setActualWidth(f,s)}var d=u("sort").value1;void 0!==d&&t.setSort(d===Vt.SORT_DESC||d===Vt.SORT_ASC?d:void 0,s);var v=u("sortIndex").value1;if(void 0!==v&&t.setSortIndex(v),!o&&t.isPrimary()){var p=u("aggFunc").value1;void 0!==p&&("string"==typeof p?(t.setAggFunc(p),t.isValueActive()||(t.setValueActive(!0,s),this.valueColumns.push(t))):($(p)&&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."),t.isValueActive()&&(t.setValueActive(!1,s),Qt(this.valueColumns,t))));var g=u("rowGroup","rowGroupIndex"),m=g.value1,b=g.value2;void 0===m&&void 0===b||("number"==typeof b||m?(t.isRowGroupActive()||(t.setRowGroupActive(!0,s),this.rowGroupColumns.push(t)),e&&"number"==typeof b&&(e[t.getId()]=b)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,s),Qt(this.rowGroupColumns,t)));var w=u("pivot","pivotIndex"),y=w.value1,C=w.value2;void 0===y&&void 0===C||("number"==typeof C||y?(t.isPivotActive()||(t.setPivotActive(!0,s),this.pivotColumns.push(t)),r&&"number"==typeof C&&(r[t.getId()]=C)):t.isPivotActive()&&(t.setPivotActive(!1,s),Qt(this.pivotColumns,t)))}}},i.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},i.prototype.getColumns=function(t,i){var n=[];return t&&t.forEach((function(t){var e=i(t);e&&n.push(e)})),n},i.prototype.getColumnWithValidation=function(t){if(null==t)return null;var i=this.getGridColumn(t);return i||console.warn("AG Grid: could not find column "+t),i},i.prototype.getPrimaryColumn=function(t){return this.primaryColumns?this.getColumn(t,this.primaryColumns,this.primaryColumnsMap):null},i.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns,this.gridColumnsMap)},i.prototype.getSecondaryColumn=function(t){return this.secondaryColumns?this.getColumn(t,this.secondaryColumns,this.secondaryColumnsMap):null},i.prototype.getColumn=function(t,i,n){if(!t)return null;if("string"==typeof t&&n[t])return n[t];for(var e=0;e<i.length;e++)if(this.columnsMatch(i[e],t))return i[e];return this.getAutoColumn(t)},i.prototype.getSourceColumnsForGroupColumn=function(t){var i=t.getColDef().showRowGroup;if(!i)return null;if(!0===i)return this.rowGroupColumns.slice(0);var n=this.getPrimaryColumn(i);return n?[n]:null},i.prototype.getAutoColumn=function(t){var i=this;return this.groupAutoColumns&&$(this.groupAutoColumns)&&!q(this.groupAutoColumns)&&this.groupAutoColumns.find((function(n){return i.columnsMatch(n,t)}))||null},i.prototype.columnsMatch=function(t,i){var n=t===i,e=t.getColDef()===i,r=t.getColId()==i;return n||e||r},i.prototype.getDisplayNameForColumn=function(t,i,n){if(void 0===n&&(n=!1),!t)return null;var e=this.getHeaderName(t.getColDef(),t,null,null,i);return n?this.wrapHeaderNameWithAggFunc(t,e):e},i.prototype.getDisplayNameForProvidedColumnGroup=function(t,i,n){var e=i?i.getColGroupDef():null;return e?this.getHeaderName(e,null,t,i,n):null},i.prototype.getDisplayNameForColumnGroup=function(t,i){return this.getDisplayNameForProvidedColumnGroup(t,t.getProvidedColumnGroup(),i)},i.prototype.getHeaderName=function(t,i,n,e,r){var o=t.headerValueGetter;if(o){var s={colDef:t,column:i,columnGroup:n,providedColumnGroup:e,location:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof o?o(s):"string"==typeof o?this.expressionService.evaluate(o,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=t.headerName?t.headerName:t.field?Ti(t.field):""},i.prototype.wrapHeaderNameWithAggFunc=function(t,i){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return i;var n,e=t.getColDef().pivotValueColumn,r=null;if($(e)){var o=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,s=void 0!==t.getColDef().pivotTotalColumnIds;if(o&&!s)return i;r=e?e.getAggFunc():null,n=!0}else{var u=t.isValueActive(),h=this.pivotMode||!this.isRowGroupEmpty();u&&h?(r=t.getAggFunc(),n=!0):n=!1}if(n){var c="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(c,c)+"("+i+")"}return i},i.prototype.getColumnGroup=function(t,i){if(!t)return null;if(t instanceof ui)return t;var n=this.getAllDisplayedTrees(),e="number"==typeof i,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof ui){var o=n;(e?t===o.getGroupId()&&i===o.getInstanceId():t===o.getGroupId())&&(r=o)}})),r},i.prototype.isReady=function(){return this.ready},i.prototype.extractValueColumns=function(t,i){this.valueColumns=this.extractColumns(i,this.valueColumns,(function(i,n){return i.setValueActive(n,t)}),(function(){}),(function(){}),(function(t){var i=t.aggFunc;return null===i||""===i?null:void 0!==i?!!i:void 0}),(function(t){return null!=t.initialAggFunc&&""!=t.initialAggFunc})),this.valueColumns.forEach((function(t){var i=t.getColDef();null!=i.aggFunc&&""!=i.aggFunc?t.setAggFunc(i.aggFunc):t.getAggFunc()||t.setAggFunc(i.initialAggFunc)}))},i.prototype.extractRowGroupColumns=function(t,i){this.rowGroupColumns=this.extractColumns(i,this.rowGroupColumns,(function(i,n){return i.setRowGroupActive(n,t)}),(function(t){return t.rowGroupIndex}),(function(t){return t.initialRowGroupIndex}),(function(t){return t.rowGroup}),(function(t){return t.initialRowGroup}))},i.prototype.extractColumns=function(t,i,n,e,r,o,s){void 0===t&&(t=[]),void 0===i&&(i=[]);var u=[],h=[];(this.primaryColumns||[]).forEach((function(n){var c=t.indexOf(n)<0,a=n.getColDef(),l=X(o(a)),f=X(s(a)),d=Z(e(a)),v=Z(r(a));(void 0!==l?l:void 0!==d?null!==d&&d>=0:c?void 0!==f?f:void 0!==v&&null!=v&&v>=0:i.indexOf(n)>=0)&&((c?null!=d||null!=v:null!=d)?u.push(n):h.push(n))}));var c=function(t){var i=e(t.getColDef()),n=r(t.getColDef());return null!=i?i:n};u.sort((function(t,i){var n=c(t),e=c(i);return n===e?0:n<e?-1:1}));var a=[].concat(u);return i.forEach((function(t){h.indexOf(t)>=0&&a.push(t)})),h.forEach((function(t){a.indexOf(t)<0&&a.push(t)})),i.forEach((function(t){a.indexOf(t)<0&&n(t,!1)})),a.forEach((function(t){i.indexOf(t)<0&&n(t,!0)})),a},i.prototype.extractPivotColumns=function(t,i){this.pivotColumns=this.extractColumns(i,this.pivotColumns,(function(i,n){return i.setPivotActive(n,t)}),(function(t){return t.pivotIndex}),(function(t){return t.initialPivotIndex}),(function(t){return t.pivot}),(function(t){return t.initialPivot}))},i.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var i=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof hi){var n=t.getColGroupDef(),e={groupId:t.getGroupId(),open:n?n.openByDefault:void 0};i.push(e)}})),this.setColumnGroupState(i,t)},i.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(i){i instanceof hi&&t.push({groupId:i.getGroupId(),open:i.isExpanded()})})),t},i.prototype.setColumnGroupState=function(t,i){var n=this;void 0===i&&(i="api"),this.columnAnimationService.start();var e=[];t.forEach((function(t){var i=t.open,r=n.getProvidedColumnGroup(t.groupId);r&&r.isExpanded()!==i&&(n.logger.log("columnGroupOpened("+r.getGroupId()+","+i+")"),r.setExpanded(i),e.push(r))})),this.updateGroupsAndDisplayedColumns(i),this.setFirstRightAndLastLeftPinned(i),e.forEach((function(t){n.eventService.dispatchEvent({type:xi.EVENT_COLUMN_GROUP_OPENED,columnGroup:t})})),this.columnAnimationService.finish()},i.prototype.setColumnGroupOpened=function(t,i,n){var e;void 0===n&&(n="api"),e=t instanceof hi?t.getId():t||"",this.setColumnGroupState([{groupId:e,open:i}],n)},i.prototype.getProvidedColumnGroup=function(t){"string"!=typeof t&&console.error("AG Grid: group key must be a string");var i=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){n instanceof hi&&n.getId()===t&&(i=n)})),i},i.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&q(this.secondaryColumns)?this.gridColumns.filter((function(i){var n=t.groupAutoColumns&&ei(t.groupAutoColumns,i),e=t.valueColumns&&ei(t.valueColumns,i);return n||e})):this.gridColumns.filter((function(i){return t.groupAutoColumns&&ei(t.groupAutoColumns,i)||i.isVisible()}))},i.prototype.checkColSpanActiveInCols=function(t){var i=!1;return t.forEach((function(t){$(t.getColDef().colSpan)&&(i=!0)})),i},i.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var i=function(i){var n=i.getColDef(),e=n.showRowGroup;n&&$(e)&&(t.groupDisplayColumns.push(i),"string"==typeof e?t.groupDisplayColumnsMap[e]=i:!0===e&&t.getRowGroupColumns().forEach((function(n){t.groupDisplayColumnsMap[n.getId()]=i})))};this.gridColumns.forEach(i),this.groupAutoColumns&&this.groupAutoColumns.forEach(i)},i.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},i.prototype.getGroupDisplayColumnForGroup=function(t){return this.groupDisplayColumnsMap[t]},i.prototype.updateDisplayedColumns=function(t){var i=this.calculateColumnsForDisplay();this.buildDisplayedTrees(i),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},i.prototype.isSecondaryColumnsPresent=function(){return $(this.secondaryColumns)},i.prototype.setSecondaryColumns=function(t,i){var n=this;void 0===i&&(i="api");var e=t&&t.length>0;if(e||!q(this.secondaryColumns)){if(e){this.processSecondaryColumnDefinitions(t);var r=this.columnFactory.createColumnTree(t,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(t){return n.secondaryColumnsMap[t.getId()]=t})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(i)}},i.prototype.processSecondaryColumnDefinitions=function(t){var i=this.gridOptionsWrapper.getProcessPivotResultColDefFunc(),n=this.gridOptionsWrapper.getProcessPivotResultColGroupDefFunc();if(i||n){var e=function(t){t.forEach((function(t){if($(t.children)){var r=t;n&&n(r),e(r.children)}else i&&i(t)}))};t&&e(t)}},i.prototype.updateGridColumns=function(){var t=this,i=this.gridBalancedTree;this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns;var n=void 0;if(this.secondaryColumns&&this.secondaryBalancedTree){var e=this.secondaryColumns.every((function(i){return void 0!==t.gridColumnsMap[i.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,e&&(n=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,n=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&n){var r=Ni(this.groupAutoColumns.map((function(t){return[t,!0]})));n=n.filter((function(t){return!r.has(t)})),n=qn(this.groupAutoColumns,n)}this.addAutoGroupToGridColumns(),this.orderGridColsLike(n),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(i){return t.gridColumnsMap[i.getId()]=i})),this.setAutoHeightActive(),Zt(i,this.gridBalancedTree)||this.eventService.dispatchEvent({type:xi.EVENT_GRID_COLUMNS_CHANGED})},i.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(t){return t.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var t=this.rowModel.getType();t!==Vt.ROW_MODEL_TYPE_CLIENT_SIDE&&t!==Vt.ROW_MODEL_TYPE_SERVER_SIDE&&gt((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}},i.prototype.orderGridColsLike=function(t){if(!q(t)){var i=Ni(t.map((function(t,i){return[t,i]}))),n=!0;if(this.gridColumns.forEach((function(t){i.has(t)&&(n=!1)})),!n){var e=Ni(this.gridColumns.map((function(t){return[t,!0]}))),r=t.filter((function(t){return e.has(t)})),o=Ni(r.map((function(t){return[t,!0]}))),s=this.gridColumns.filter((function(t){return!o.has(t)})),u=r.slice();s.forEach((function(t){var i=t.getOriginalParent();if(i){for(var n=[];!n.length&&i;)i.getLeafColumns().forEach((function(t){var i=u.indexOf(t)>=0,e=n.indexOf(t)<0;i&&e&&n.push(t)})),i=i.getOriginalParent();if(n.length){var e=n.map((function(t){return u.indexOf(t)})),r=Math.max.apply(Math,qn(e));ii(u,t,r+1)}else u.push(t)}else u.push(t)})),this.gridColumns=u}}},i.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},i.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},i.prototype.placeLockedColumns=function(t){var i=[],n=[],e=[];return t.forEach((function(t){var r=t.getColDef().lockPosition;"right"===r?e.push(t):"left"===r||!0===r?i.push(t):n.push(t)})),qn(i,n,e)},i.prototype.addAutoGroupToGridColumns=function(){if(!q(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=t.concat(this.gridBalancedTree)}},i.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},i.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(t),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths(),this.eventService.dispatchEvent({type:xi.EVENT_DISPLAYED_COLUMNS_CHANGED})},i.prototype.deriveDisplayedColumns=function(t){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(t),this.displayedAutoHeightCols=this.displayedColumns.filter((function(t){return t.isAutoHeight()}))},i.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},i.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},i.prototype.joinDisplayedColumns=function(){this.displayedColumns=this.gridOptionsWrapper.isEnableRtl()?this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},i.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},i.prototype.setLeftValuesOfColumns=function(t){var i=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),e=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(r){if(e){var o=i.getWidthOfColsInList(r);r.forEach((function(i){o-=i.getActualWidth(),i.setLeft(o,t)}))}else{var s=0;r.forEach((function(i){i.setLeft(s,t),s+=i.getActualWidth()}))}ti(n,r)})),n.forEach((function(i){i.setLeft(null,t)}))}},i.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(t){t.forEach((function(t){t instanceof ui&&t.checkLeft()}))}))},i.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,i){i.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof qt&&i.push(t)}))},i.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(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)},i.prototype.getVirtualHeaderGroupRow=function(t,i){var n;switch(t){case Vt.PINNED_LEFT:n=this.viewportRowLeft[i];break;case Vt.PINNED_RIGHT:n=this.viewportRowRight[i];break;default:n=this.viewportRowCenter[i]}return q(n)&&(n=[]),n},i.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var t={};this.headerViewportColumns.forEach((function(i){return t[i.getId()]=!0}));var i=function(n,e,r){for(var o=!1,s=0;s<n.length;s++){var u=n[s],h=!1;if(u instanceof qt)h=!0===t[u.getId()];else{var c=u.getDisplayedChildren();c&&(h=i(c,e,r+1))}h&&(o=!0,e[r]||(e[r]=[]),e[r].push(u))}return o};i(this.displayedTreeLeft,this.viewportRowLeft,0),i(this.displayedTreeRight,this.viewportRowRight,0),i(this.displayedTreeCentre,this.viewportRowCenter,0)},i.prototype.extractViewport=function(){this.extractViewportColumns();var t=this.viewportColumns.map((function(t){return t.getId()+"-"+(t.getPinned()||"normal")})).join("#"),i=this.viewportColumnsHash!==t;return i&&(this.viewportColumnsHash=t,this.calculateHeaderRows()),i},i.prototype.refreshFlexedColumns=function(t){var i=this;void 0===t&&(t={});var n=t.source?t.source:"flex";if(null!=t.viewportWidth&&(this.flexViewportWidth=t.viewportWidth),!this.flexViewportWidth)return[];var e=-1;t.resizingCols&&t.resizingCols.forEach((function(t){var n=i.displayedColumnsCenter.indexOf(t);e<n&&(e=n)}));var r=function(t){var n=i.displayedColumnsCenter.indexOf(t)>e;return t.getFlex()&&n},o=this.displayedColumnsCenter.filter((function(t){return!r(t)})),s=this.displayedColumnsCenter.filter((function(t){return r(t)})),u=[];if(!s.length)return[];var h,c=[];t:for(;;){var a=s.reduce((function(t,i){return t+i.getFlex()}),0);h=this.flexViewportWidth-this.getWidthOfColsInList(o);for(var l=0;l<s.length;l++){var f=s[l],d=h*f.getFlex()/a,v=0,p=f.getMinWidth(),g=f.getMaxWidth();if($(p)&&d<p?v=p:$(g)&&d>g&&(v=g),v){f.setActualWidth(v,n),Qt(s,f),u.push(f),o.push(f);continue t}c[l]=Math.round(d)}break}var m=h;return s.forEach((function(t,i){t.setActualWidth(Math.min(c[i],m),n),u.push(t),m-=c[i]})),t.skipSetLeft||this.setLeftValues(n),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.fireColumnResizedEvent(u,!0,n,s),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),s},i.prototype.sizeColumnsToFit=function(t,i,n,e){var r,o,s,u,h,c,a,l,f,d,v;void 0===i&&(i="sizeColumnsToFit");var p={};e&&(null===(o=null===(r=e)||void 0===r?void 0:r.columnLimits)||void 0===o||o.forEach((function(t){var i=t.key,n=function(t,i){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)i.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(n[e[r]]=t[e[r]])}return n}(t,["key"]);p["string"==typeof i?i:i.getColId()]=n})));var g=this.getAllDisplayedColumns(),m=t===this.getWidthOfColsInList(g);if(!(t<=0||!g.length||m)){var b=[],w=[];g.forEach((function(t){!0===t.getColDef().suppressSizeToFit?w.push(t):b.push(t)}));var y=b.slice(0),C=!1,S=function(t){Qt(b,t),w.push(t)};for(b.forEach((function(t){return t.resetActualWidth(i)}));!C;){C=!0;var R=t-this.getWidthOfColsInList(w);if(R<=0)b.forEach((function(t){var n,r,o,s,u=null!=(o=null===(r=null===(n=p)||void 0===n?void 0:n[t.getId()])||void 0===r?void 0:r.minWidth)?o:null===(s=e)||void 0===s?void 0:s.defaultMinWidth;"number"!=typeof u?t.setMinimum(i):t.setActualWidth(u)}));else for(var O=R/this.getWidthOfColsInList(b),A=R,j=b.length-1;j>=0;j--){var _=b[j],G=null===(s=p)||void 0===s?void 0:s[_.getId()],x=null!=(h=null===(u=G)||void 0===u?void 0:u.minWidth)?h:null===(c=e)||void 0===c?void 0:c.defaultMinWidth,M=null!=(l=null===(a=G)||void 0===a?void 0:a.maxWidth)?l:null===(f=e)||void 0===f?void 0:f.defaultMaxWidth,F=null!=(d=_.getMinWidth())?d:0,k=null!=(v=_.getMaxWidth())?v:Number.MAX_VALUE,P="number"==typeof x&&x>F?x:_.getMinWidth(),D="number"==typeof M&&M<k?M:_.getMaxWidth(),I=Math.round(_.getActualWidth()*O);$(P)&&I<P?(I=P,S(_),C=!1):$(D)&&I>D?(I=D,S(_),C=!1):0===j&&(I=A),_.setActualWidth(I,i,!0),A-=I}}y.forEach((function(t){t.fireColumnWidthChangedEvent(i)})),this.setLeftValues(i),this.updateBodyWidths(),n||this.fireColumnResizedEvent(y,!0,i)}},i.prototype.buildDisplayedTrees=function(t){var i=[],n=[],e=[];t.forEach((function(t){switch(t.getPinned()){case"left":i.push(t);break;case"right":n.push(t);break;default:e.push(t)}}));var r=new Mi;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,r,Vt.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,Vt.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(e,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},i.prototype.updateDisplayedMap=function(){var t=this;this.displayedColumnsAndGroupsMap={};var i=function(i){t.displayedColumnsAndGroupsMap[i.getUniqueId()]=i};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,i)},i.prototype.isDisplayed=function(t){return this.displayedColumnsAndGroupsMap[t.getUniqueId()]===t},i.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var t=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(t,(function(t){t instanceof ui&&t.calculateDisplayedColumns()}))},i.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},i.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),i=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||i||t)this.groupAutoColumns=null;else{var n=this.autoGroupColService.createAutoGroupColumns(this.groupAutoColumns||[],this.rowGroupColumns);if(!this.autoColsEqual(n,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=n,!0}return!1},i.prototype.autoColsEqual=function(t,i){return Zt(t,i,(function(t,i){return t.getColId()===i.getColId()}))},i.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,i){return t+i.getActualWidth()}),0)},i.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},i.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(t){return t.getColDef().floatingFilter}))},i.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsWrapper.isEnableRtl(),i=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&i.reverse();for(var n=0;n<i.length;n++){var e=this[i[n]]();if(e.length)return t?Jt(e):e[0]}return null},i.prototype.setColumnHeaderHeight=function(t,i){t.setAutoHeaderHeight(i)&&this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:t,columns:[t],source:"autosizeColumnHeaderHeight"})},i.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.gridOptionsWrapper.getPivotGroupHeaderHeight():this.gridOptionsWrapper.getGroupHeaderHeight()},i.prototype.getColumnHeaderRowHeight=function(){var t=this.isPivotMode()?this.gridOptionsWrapper.getPivotHeaderHeight():this.gridOptionsWrapper.getHeaderHeight(),i=this.getAllDisplayedColumns().filter((function(t){return t.isAutoHeaderHeight()})).map((function(t){return t.getAutoHeaderHeight()||0}));return Math.max.apply(Math,qn([t],i))},Un([Dt("expressionService")],i.prototype,"expressionService",void 0),Un([Dt("columnFactory")],i.prototype,"columnFactory",void 0),Un([Dt("displayedGroupCreator")],i.prototype,"displayedGroupCreator",void 0),Un([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Un([Dt("autoWidthCalculator")],i.prototype,"autoWidthCalculator",void 0),Un([Dt("columnUtils")],i.prototype,"columnUtils",void 0),Un([Dt("columnAnimationService")],i.prototype,"columnAnimationService",void 0),Un([Dt("autoGroupColService")],i.prototype,"autoGroupColService",void 0),Un([It("aggFuncService")],i.prototype,"aggFuncService",void 0),Un([It("valueCache")],i.prototype,"valueCache",void 0),Un([It("animationFrameService")],i.prototype,"animationFrameService",void 0),Un([Dt("rowModel")],i.prototype,"rowModel",void 0),Un([Dt("sortController")],i.prototype,"sortController",void 0),Un([Dt("columnDefFactory")],i.prototype,"columnDefFactory",void 0),Un([Ft],i.prototype,"init",null),Un([(n=0,e=Tt("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),Un([Pt("columnModel")],i);var n,e}(Ai),Jn=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Zn=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Jn(i,t),i.prototype.calculateColMinWidth=function(t){return null!=t.minWidth?t.minWidth:this.gridOptionsWrapper.getMinColWidth()},i.prototype.calculateColMaxWidth=function(t){return null!=t.maxWidth?t.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},i.prototype.calculateColInitialWidth=function(t){var i,n=this.calculateColMinWidth(t),e=this.calculateColMaxWidth(t),r=Z(t.width),o=Z(t.initialWidth);return i=null!=r?r:null!=o?o:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(i,e),n)},i.prototype.getOriginalPathForColumn=function(t,i){var n=[],e=!1,r=function(i,o){for(var s=0;s<i.length;s++){if(e)return;var u=i[s];u instanceof hi?(r(u.getChildren(),o+1),n[o]=u):u===t&&(e=!0)}};return r(i,0),e?n:null},i.prototype.depthFirstOriginalTreeSearch=function(t,i,n){var e=this;i&&i.forEach((function(i){i instanceof hi&&e.depthFirstOriginalTreeSearch(i,i.getChildren(),n),n(i,t)}))},i.prototype.depthFirstAllColumnTreeSearch=function(t,i){var n=this;t&&t.forEach((function(t){t instanceof ui&&n.depthFirstAllColumnTreeSearch(t.getChildren(),i),i(t)}))},i.prototype.depthFirstDisplayedColumnTreeSearch=function(t,i){var n=this;t&&t.forEach((function(t){t instanceof ui&&n.depthFirstDisplayedColumnTreeSearch(t.getDisplayedChildren(),i),i(t)}))},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("columnUtils")],i)}(Ai),Xn=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qn=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Xn(i,t),i.prototype.createDisplayedGroups=function(t,i,n,e,r){var o,s,u=this,h=[],c=this.mapOldGroupsById(r);return t.forEach((function(t){for(var r=u.getOriginalPathForColumn(i,t),a=[],l=!s,f=0;f<r.length;f++)if(l||r[f]!==s[f]){var d=u.createColumnGroup(r[f],n,c,e);a[f]=d,0==f?h.push(d):a[f-1].addChild(d)}else a[f]=o[f];0===a.length?h.push(t):Jt(a).addChild(t),o=a,s=r})),this.setupParentsIntoColumns(h,null),h},i.prototype.createColumnGroup=function(t,i,n,e){var r=t.getGroupId(),o=i.getInstanceIdForKey(r),s=n[ui.createUniqueId(r,o)];return s&&s.getProvidedColumnGroup()!==t&&(s=null),$(s)?s.reset():(s=new ui(t,r,o,e),this.context.createBean(s)),s},i.prototype.mapOldGroupsById=function(t){var i={},n=function(t){t.forEach((function(t){if(t instanceof ui){var e=t;i[t.getUniqueId()]=e,n(e.getChildren())}}))};return t&&n(t),i},i.prototype.setupParentsIntoColumns=function(t,i){var n=this;t.forEach((function(t){if(t.setParent(i),t instanceof ui){var e=t;n.setupParentsIntoColumns(e.getChildren(),e)}}))},i.prototype.getOriginalPathForColumn=function(t,i){var n=[],e=!1,r=function(t,o){for(var s=0;s<t.length;s++){if(e)return;var u=t[s];u instanceof hi?(r(u.getChildren(),o+1),n[o]=u):u===i&&(e=!0)}};return r(t,0),e?n:(console.warn("AG Grid: could not get path"),null)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("displayedGroupCreator")],i)}(Ai),te=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ie=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.componentsMappedByName={},i}return te(i,t),i.prototype.setupComponents=function(t){var i=this;t&&t.forEach((function(t){return i.addComponent(t)}))},i.prototype.addComponent=function(t){var i=t.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[i]=t.componentClass},i.prototype.getComponentClass=function(t){return this.componentsMappedByName[t]},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("agStackComponentsRegistry")],i)}(Ai),ne=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},ee=function(){function t(t,i,n,e){void 0===e&&(e=1),this.r=Math.min(1,Math.max(0,t||0)),this.g=Math.min(1,Math.max(0,i||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,e||0))}return t.fromString=function(i){if(i.indexOf("#")>=0)return t.fromHexString(i);var n=t.nameToHex[i];if(n)return t.fromHexString(n);if(i.indexOf("rgb")>=0)return t.fromRgbaString(i);throw new Error("Invalid color string: '"+i+"'")},t.parseHex=function(t){var i;switch((t=t.replace(/ /g,"").slice(1)).length){case 6:case 8:i=[];for(var n=0;n<t.length;n+=2)i.push(parseInt(""+t[n]+t[n+1],16));break;case 3:case 4:i=t.split("").map((function(t){return parseInt(t,16)})).map((function(t){return t+16*t}))}if(i.length>=3&&i.every((function(t){return t>=0})))return 3===i.length&&i.push(255),i},t.fromHexString=function(i){var n=t.parseHex(i);if(n){var e=ne(n,4);return new t(e[0]/255,e[1]/255,e[2]/255,e[3]/255)}throw new Error("Malformed hexadecimal color string: '"+i+"'")},t.stringToRgba=function(t){for(var i=ne([NaN,NaN],2),n=i[0],e=i[1],r=0;r<t.length;r++){var o=t[r];if(n||"("!==o){if(")"===o){e=r;break}}else n=r}var s=n&&e&&t.substring(n+1,e);if(s){var u=s.split(","),h=[];for(r=0;r<u.length;r++){var c=u[r],a=parseFloat(c);if(isNaN(a))return;c.indexOf("%")>=0?(a=Math.max(0,Math.min(100,a)),a/=100):3===r?a=Math.max(0,Math.min(1,a)):(a=Math.max(0,Math.min(255,a)),a/=255),h.push(a)}return h}},t.fromRgbaString=function(i){var n=t.stringToRgba(i);if(n){if(3===n.length)return new t(n[0],n[1],n[2]);if(4===n.length)return new t(n[0],n[1],n[2],n[3])}throw new Error("Malformed rgb/rgba color string: '"+i+"'")},t.fromArray=function(i){if(4===i.length)return new t(i[0],i[1],i[2],i[3]);if(3===i.length)return new t(i[0],i[1],i[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},t.fromHSB=function(i,n,e,r){void 0===r&&(r=1);var o=t.HSBtoRGB(i,n,e);return new t(o[0],o[1],o[2],r)},t.padHex=function(t){return 1===t.length?"0"+t:t},t.prototype.toHexString=function(){var i="#"+t.padHex(Math.round(255*this.r).toString(16))+t.padHex(Math.round(255*this.g).toString(16))+t.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(i+=t.padHex(Math.round(255*this.a).toString(16))),i},t.prototype.toRgbaString=function(t){void 0===t&&(t=3);var i=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,t);return 1!==this.a?(i.push(Math.round(this.a*n)/n),"rgba("+i.join(", ")+")"):"rgb("+i.join(", ")+")"},t.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},t.prototype.toHSB=function(){return t.RGBtoHSB(this.r,this.g,this.b)},t.RGBtoHSB=function(t,i,n){var e=Math.min(t,i,n),r=Math.max(t,i,n),o=NaN;if(e!==r){var s=r-e,u=(r-t)/s,h=(r-i)/s,c=(r-n)/s;o=t===r?c-h:i===r?2+u-c:4+h-u,(o/=6)<0&&(o+=1)}return[360*o,0!==r?(r-e)/r:0,r]},t.HSBtoRGB=function(t,i,n){isNaN(t)&&(t=0),t=(t%360+360)%360/360;var e=0,r=0,o=0;if(0===i)e=r=o=n;else{var s=6*(t-Math.floor(t)),u=s-Math.floor(s),h=n*(1-i),c=n*(1-i*u),a=n*(1-i*(1-u));switch(s>>0){case 0:e=n,r=a,o=h;break;case 1:e=c,r=n,o=h;break;case 2:e=h,r=n,o=a;break;case 3:e=h,r=c,o=n;break;case 4:e=a,r=h,o=n;break;case 5:e=n,r=h,o=c}}return[e,r,o]},t.prototype.derive=function(i,n,e,r){var o=t.RGBtoHSB(this.r,this.g,this.b),s=o[2];0==s&&e>1&&(s=.05);var u=((o[0]+i)%360+360)%360,h=Math.max(Math.min(o[1]*n,1),0);s=Math.max(Math.min(s*e,1),0);var c=Math.max(Math.min(this.a*r,1),0),a=t.HSBtoRGB(u,h,s);return a.push(c),t.fromArray(a)},t.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},t.prototype.darker=function(){return this.derive(0,1,.7,1)},t.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),t}();
113
+ /**
114
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
115
+ * @version v28.2.1
116
+ * @link https://www.ag-grid.com/
117
+ * @license MIT
118
+ */const re=Object.freeze({__proto__:null,stringToArray:
119
+ /**
120
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
121
+ * @version v28.2.1
122
+ * @link https://www.ag-grid.com/
123
+ * @license MIT
124
+ */
125
+ function(t,i){void 0===i&&(i=",");var n=[],e=function(t){return"\r"===t||"\n"===t},r=!1;if(""===t)return[[""]];for(var o,s,u,h=function(h,c,a){var l=t[a-1],f=t[a],d=t[a+1],v=function(){n[h]||(n[h]=[]),n[h][c]||(n[h][c]="")};if(v(),'"'===f){if(r)return'"'===d?(n[h][c]+='"',a++):r=!1,o=h,s=c,u=a,"continue";if(void 0===l||l===i||e(l))return r=!0,o=h,s=c,u=a,"continue"}if(!r){if(f===i)return c++,v(),o=h,s=c,u=a,"continue";if(e(f))return c=0,h++,v(),"\r"===f&&"\n"===d&&a++,o=h,s=c,u=a,"continue"}n[h][c]+=f,o=h,s=c,u=a},c=0,a=0,l=0;l<t.length;l++)h(c,a,l),c=o,a=s,l=u;return n}});
126
+ /**
127
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
128
+ * @version v28.2.1
129
+ * @link https://www.ag-grid.com/
130
+ * @license MIT
131
+ */var oe;function se(t){var i=Element.prototype.matches||Element.prototype.msMatchesSelector,n=i.call(t,Vt.INPUT_SELECTOR),e=i.call(t,Vt.FOCUSABLE_EXCLUDE),r=Ce(t);return n&&!e&&r}function ue(t,i){t.classList.toggle("ag-hidden",!i)}function he(t,i){t.classList.toggle("ag-invisible",!i)}function ce(t,i){var n="disabled",e=i?function(t){return t.setAttribute(n,"")}:function(t){return t.removeAttribute(n)};e(t),Be(t.querySelectorAll("input"),(function(t){return e(t)}))}function ae(t,i,n){for(var e=0;t;){if(t.classList.contains(i))return!0;if(t=t.parentElement,"number"==typeof n){if(++e>n)break}else if(t===n)break}return!1}function le(t){var i=window.getComputedStyle(t),n=i.width,e=i.paddingTop,r=i.paddingRight,o=i.paddingBottom,s=i.paddingLeft,u=i.marginTop,h=i.marginRight,c=i.marginBottom,a=i.marginLeft,l=i.boxSizing;return{height:parseFloat(i.height),width:parseFloat(n),paddingTop:parseFloat(e),paddingRight:parseFloat(r),paddingBottom:parseFloat(o),paddingLeft:parseFloat(s),marginTop:parseFloat(u),marginRight:parseFloat(h),marginBottom:parseFloat(c),marginLeft:parseFloat(a),boxSizing:l}}function fe(t){var i=le(t);return"border-box"===i.boxSizing?i.height-i.paddingTop-i.paddingBottom:i.height}function de(t){var i=le(t);return"border-box"===i.boxSizing?i.width-i.paddingLeft-i.paddingRight:i.width}function ve(t){var i=le(t);return Math.ceil(t.offsetHeight+(i.marginBottom+i.marginTop))}function pe(t){var i=le(t);return Math.ceil(t.offsetWidth+(i.marginLeft+i.marginRight))}function ge(){if("boolean"==typeof oe)return oe;var t=document.createElement("div");return t.style.direction="rtl",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="0px",t.style.overflow="hidden",t.dir="rtl",t.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(t),t.scrollLeft=1,oe=0===Math.floor(t.scrollLeft),document.body.removeChild(t),oe}function me(t,i){var n=t.scrollLeft;return i&&(n=Math.abs(n),ln()&&!ge()&&(n=t.scrollWidth-t.clientWidth-n)),n}function be(t,i,n){n&&(ge()?i*=-1:(an()||ln())&&(i=t.scrollWidth-t.clientWidth-i)),t.scrollLeft=i}function we(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function ye(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Ce(t){return null!==t.offsetParent}function Se(t){var i=document.createElement("div");return i.innerHTML=(t||"").trim(),i.firstChild}function Re(t){return t&&t.clientHeight?t.clientHeight:0}function Oe(t){return t&&t.clientWidth?t.clientWidth:0}function Ae(t,i,n){if(!n||n.nextSibling!==i){var e=document.activeElement,r=i.contains(e);n?n.nextSibling?t.insertBefore(i,n.nextSibling):t.appendChild(i):t.firstChild&&t.firstChild!==i&&t.insertAdjacentElement("afterbegin",i),r&&e&&pn()&&e.focus({preventScroll:!0})}}function je(t,i){for(var n=0;n<i.length;n++){var e=i[n],r=t.children[n];r!==e&&t.insertBefore(e,r)}}function _e(t,i,n){n?n.insertAdjacentElement("afterend",i):t.firstChild?t.insertAdjacentElement("afterbegin",i):t.appendChild(i)}function Ge(t,i){i&&Object.keys(i).forEach((function(n){var e=Di(n);e&&(t.style[e]=i[n])}))}function xe(t){return t.clientWidth<t.scrollWidth}function Me(t){return t.clientHeight<t.scrollHeight}function Fe(t,i){"flex"===i?(t.style.removeProperty("width"),t.style.removeProperty("minWidth"),t.style.removeProperty("maxWidth"),t.style.flex="1 1 auto"):ke(t,i)}function ke(t,i){i=De(i),t.style.width=i.toString(),t.style.maxWidth=i.toString(),t.style.minWidth=i.toString()}function Pe(t,i){i=De(i),t.style.height=i.toString(),t.style.maxHeight=i.toString(),t.style.minHeight=i.toString()}function De(t){return"number"==typeof t?t+"px":t}function Ie(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function Ee(t){return"function"==typeof HTMLElement?t instanceof HTMLElement:t&&dt(t)&&1===t.nodeType&&"string"==typeof t.nodeName}function Te(t){return Ie(t)||Ee(t)}function ze(t){if(null==t)return[];var i=[];return Be(t,(function(t){return i.push(t)})),i}function Ne(t,i){if(t)for(var n=0;n<t.length;n++){var e=t[n];i(e.name,e.value)}}function Le(t,i,n){null==n?t.removeAttribute(i):t.setAttribute(i,n.toString())}function Be(t,i){if(null!=t)for(var n=0;n<t.length;n++)i(t[n])}const He=Object.freeze({__proto__:null,radioCssClass:function(t,i,n){for(var e=t.parentElement,r=e&&e.firstChild;r;)i&&r.classList.toggle(i,r===t),n&&r.classList.toggle(n,r!==t),r=r.nextSibling},isFocusableFormField:se,setDisplayed:ue,setVisible:he,setDisabled:ce,isElementChildOfClass:ae,getElementSize:le,getInnerHeight:fe,getInnerWidth:de,getAbsoluteHeight:ve,getAbsoluteWidth:pe,isRtlNegativeScroll:ge,getScrollLeft:me,setScrollLeft:be,clearElement:we,removeElement:function(t,i){ye(t.querySelector(i))},removeFromParent:ye,isVisible:Ce,loadTemplate:Se,appendHtml:function(t,i){t.lastChild?t.insertAdjacentHTML("afterbegin",i):t.innerHTML=i},getElementAttribute:function(t,i){return t.attributes&&t.attributes[i]?t.attributes[i].value:null},offsetHeight:Re,offsetWidth:Oe,ensureDomOrder:Ae,setDomChildOrder:je,insertWithDomOrder:_e,prependDC:function(t,i){$(t.firstChild)?t.insertBefore(i,t.firstChild):t.appendChild(i)},addStylesToElement:Ge,isHorizontalScrollShowing:xe,isVerticalScrollShowing:Me,setElementWidth:Fe,setFixedWidth:ke,setElementHeight:function(t,i){"flex"===i?(t.style.removeProperty("height"),t.style.removeProperty("minHeight"),t.style.removeProperty("maxHeight"),t.style.flex="1 1 auto"):Pe(t,i)},setFixedHeight:Pe,formatSize:De,isNode:Ie,isElement:Ee,isNodeOrElement:Te,copyNodeList:ze,iterateNamedNodeMap:Ne,setCheckboxState:function(t,i){"boolean"==typeof i?(t.checked=i,t.indeterminate=!1):t.indeterminate=!0},addOrRemoveAttribute:Le,nodeListForEach:Be}),We=Object.freeze({__proto__:null,getNameOfClass:
132
+ /**
133
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
134
+ * @version v28.2.1
135
+ * @link https://www.ag-grid.com/
136
+ * @license MIT
137
+ */
138
+ function(t){var i=t.toString(),n=/function (.{1,})\(/.exec(i);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(t){var i=t.length,n=0;if(i<=1)return t;for(var e=0;e<t.length;e++){var r=t[e],o=r.toString().split("e-");o.length>1?n=Math.max(n,parseInt(o[1],10)):Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var s=0,u=0,h=0,c=0,a=0,l=0;l<i;l++)s+=l,u+=a=t[l],c+=l*l,h+=l*a;var f=(i*h-s*u)/(i*c-s*s),d=u/i-f*s/i,v=[];for(l=0;l<=i;l++)v.push(parseFloat((l*f+d).toFixed(n)));return v},cssStyleObjectToMarkup:function(t){if(!t)return"";var i=[];return nt(t,(function(t,n){var e=Pi(t);i.push(e+": "+n+";")})),i.join(" ")},message:function(t){var i=document.createElement("div"),n=document.querySelector("#__ag__message");i.innerHTML=t,n||(n=Se('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(n)),n.insertBefore(i,n.children[0])},bindCellRendererToHtmlElement:function(t,i){t.then((function(t){var n=t.getGui();null!=n&&("object"==typeof n?i.appendChild(n):i.innerHTML=n)}))}});
139
+ /**
140
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
141
+ * @version v28.2.1
142
+ * @link https://www.ag-grid.com/
143
+ * @license MIT
144
+ */
145
+ function Ve(t,i,n){t.setAttribute(Ke(i),n.toString())}function Ue(t,i){t.removeAttribute(Ke(i))}function Ke(t){return"aria-"+t}function $e(t,i){i?t.setAttribute("role",i):t.removeAttribute("role")}function qe(t){return t.isSortAscending()?"ascending":t.isSortDescending()?"descending":"none"}function Ye(t){return parseInt(t.getAttribute("aria-level"),10)}function Je(t){return parseInt(t.getAttribute("aria-posinset"),10)}function Ze(t,i){var n="label";null!=i&&""!==i?Ve(t,n,i):Ue(t,n)}function Xe(t,i){var n="labelledby";i?Ve(t,n,i):Ue(t,n)}function Qe(t,i){var n="description";i?Ve(t,n,i):Ue(t,n)}function tr(t,i){var n="describedby";i?Ve(t,n,i):Ue(t,n)}function ir(t,i){Ve(t,"level",i)}function nr(t,i){Ve(t,"disabled",i)}function er(t,i){i?Ve(t,"hidden",!0):Ue(t,"hidden")}function rr(t,i){Ve(t,"expanded",i)}function or(t){Ue(t,"expanded")}function sr(t,i){Ve(t,"setsize",i)}function ur(t,i){Ve(t,"posinset",i)}function hr(t,i){Ve(t,"multiselectable",i)}function cr(t,i){Ve(t,"rowcount",i)}function ar(t,i){Ve(t,"rowindex",i)}function lr(t,i){Ve(t,"colcount",i)}function fr(t,i){Ve(t,"colindex",i)}function dr(t,i){Ve(t,"colspan",i)}function vr(t,i){Ve(t,"sort",i)}function pr(t){Ue(t,"sort")}function gr(t,i){var n="selected";i?Ve(t,n,i):Ue(t,n)}function mr(t,i){Ve(t,"checked",void 0===i?"mixed":i)}const br=Object.freeze({__proto__:null,setAriaRole:$e,getAriaSortState:qe,getAriaLevel:Ye,getAriaPosInSet:Je,getAriaDescribedBy:function(t){return t.getAttribute("aria-describedby")||""},setAriaLabel:Ze,setAriaLabelledBy:Xe,setAriaDescription:Qe,setAriaDescribedBy:tr,setAriaLevel:ir,setAriaDisabled:nr,setAriaHidden:er,setAriaExpanded:rr,removeAriaExpanded:or,setAriaSetSize:sr,setAriaPosInSet:ur,setAriaMultiSelectable:hr,setAriaRowCount:cr,setAriaRowIndex:ar,setAriaColCount:lr,setAriaColIndex:fr,setAriaColSpan:dr,setAriaSort:vr,removeAriaSort:pr,setAriaSelected:gr,setAriaChecked:mr});
146
+ /**
147
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
148
+ * @version v28.2.1
149
+ * @link https://www.ag-grid.com/
150
+ * @license MIT
151
+ */var wr=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};function yr(t,i,n){if(void 0===i&&(i=!0),void 0===n&&(n="-"),!t)return null;var e=[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return Mn(t,2)})).join(n);return i&&(e+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return Mn(t,2)})).join(":")),e}var Cr=function(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Sr(t,i){void 0===i&&(i="YYYY-MM-DD");var n=Mn(t.getFullYear(),4),e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={YYYY:function(){return n.slice(n.length-4,n.length)},YY:function(){return n.slice(n.length-2,n.length)},Y:function(){return""+t.getFullYear()},MMMM:function(){return e[t.getMonth()]},MMM:function(){return e[t.getMonth()].slice(0,3)},MM:function(){return Mn(t.getMonth()+1,2)},Mo:function(){return""+(t.getMonth()+1)+Cr(t.getMonth()+1)},M:function(){return""+(t.getMonth()+1)},Do:function(){return""+t.getDate()+Cr(t.getDate())},DD:function(){return Mn(t.getDate(),2)},D:function(){return""+t.getDate()},dddd:function(){return r[t.getDay()]},ddd:function(){return r[t.getDay()].slice(0,3)},dd:function(){return r[t.getDay()].slice(0,2)},do:function(){return""+t.getDay()+Cr(t.getDay())},d:function(){return""+t.getDay()}},s=new RegExp(Object.keys(o).join("|"),"g");return i.replace(s,(function(t){return t in o?o[t]():t}))}function Rr(t){if(!t)return null;var i=wr(t.split(" "),2),n=i[0],e=i[1];if(!n)return null;var r=n.split("-").map((function(t){return parseInt(t,10)}));if(3!==r.filter((function(t){return!isNaN(t)})).length)return null;var o=wr(r,3),s=o[0],u=o[1],h=o[2],c=new Date(s,u-1,h);if(c.getFullYear()!==s||c.getMonth()!==u-1||c.getDate()!==h)return null;if(!e||"00:00:00"===e)return c;var a=wr(e.split(":").map((function(t){return parseInt(t,10)})),3),l=a[0],f=a[1],d=a[2];return l>=0&&l<24&&c.setHours(l),f>=0&&f<60&&c.setMinutes(f),d>=0&&d<60&&c.setSeconds(d),c}const Or=Object.freeze({__proto__:null,serialiseDate:yr,dateToFormattedString:Sr,parseDateTimeFromString:Rr});
152
+ /**
153
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
154
+ * @version v28.2.1
155
+ * @link https://www.ag-grid.com/
156
+ * @license MIT
157
+ */var Ar={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",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",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",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"};function jr(t,i,n){var e=_r(t,i,n);if(e&&e.className.indexOf("ag-icon")>-1)return e;var r=document.createElement("span");return r.appendChild(e),r}function _r(t,i,n,e){var r=null,o=n&&n.getColDef().icons;if(o&&(r=o[t]),i&&!r){var s=i.getIcons();s&&(r=s[t])}if(!r){var u=document.createElement("span"),h=Ar[t];return h||(e?h=t:(console.warn("AG Grid: Did not find icon "+t),h="")),u.setAttribute("class","ag-icon ag-icon-"+h),u.setAttribute("unselectable","on"),$e(u,"presentation"),u}var c=void 0;if("function"==typeof r)c=r();else{if("string"!=typeof r)throw new Error("icon from grid options needs to be a string or a function");c=r}return"string"==typeof c?Se(c):Te(c)?c:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}const Gr=Object.freeze({__proto__:null,iconNameClassMap:Ar,createIcon:jr,createIconNoSpan:_r});
158
+ /**
159
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
160
+ * @version v28.2.1
161
+ * @link https://www.ag-grid.com/
162
+ * @license MIT
163
+ */var xr=function(){function t(){}return t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.ESCAPE="Escape",t.SPACE=" ",t.LEFT="ArrowLeft",t.UP="ArrowUp",t.RIGHT="ArrowRight",t.DOWN="ArrowDown",t.DELETE="Delete",t.F2="F2",t.PAGE_UP="PageUp",t.PAGE_DOWN="PageDown",t.PAGE_HOME="Home",t.PAGE_END="End",t.A="KeyA",t.C="KeyC",t.V="KeyV",t.D="KeyD",t.Z="KeyZ",t.Y="KeyY",t}();
164
+ /**
165
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
166
+ * @version v28.2.1
167
+ * @link https://www.ag-grid.com/
168
+ * @license MIT
169
+ */function Mr(t){if(t.altKey||t.ctrlKey||t.metaKey)return!1;var i=1===t.key.length,n=function(t){return cn()&&"Del"===t.key&&46===t.charCode}(t);return i||n}function Fr(t,i,n,e,r){var o=t.getSuppressKeyboardEventFunc(),s=e?e.getColDef().suppressKeyboardEvent:void 0;if(!o&&!s)return!1;var u={event:i,editing:r,column:e,api:t.getApi(),node:n,data:n.data,colDef:e.getColDef(),context:t.getContext(),columnApi:t.getColumnApi()};return!(!s||!s(u))||!!o&&o(u)}function kr(t,i,n,e){var r=e.getDefinition(),o=r&&r.suppressHeaderKeyboardEvent;return!!$(o)&&!!o({api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext(),colDef:r,column:e,headerRowIndex:n,event:i})}function Pr(t){var i;switch(t.keyCode){case 65:i=xr.A;break;case 67:i=xr.C;break;case 86:i=xr.V;break;case 68:i=xr.D;break;case 90:i=xr.Z;break;case 89:i=xr.Y;break;default:i=t.code}return i}function Dr(t,i){return void 0===i&&(i=!1),t===xr.DELETE||!i&&t===xr.BACKSPACE&&dn()}const Ir=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Mr,isUserSuppressingKeyboardEvent:Fr,isUserSuppressingHeaderKeyboardEvent:kr,normaliseQwertyAzerty:Pr,isDeleteKey:Dr});
170
+ /**
171
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
172
+ * @version v28.2.1
173
+ * @link https://www.ag-grid.com/
174
+ * @license MIT
175
+ */function Er(t,i,n){if(0===n)return!1;var e=Math.abs(t.clientX-i.clientX),r=Math.abs(t.clientY-i.clientY);return Math.max(e,r)<=n}const Tr=Object.freeze({__proto__:null,areEventsNear:Er}),zr=Object.freeze({__proto__:null,sortRowNodesByOrder:
176
+ /**
177
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
178
+ * @version v28.2.1
179
+ * @link https://www.ag-grid.com/
180
+ * @license MIT
181
+ */
182
+ function(t,i){if(!t)return!1;for(var n=function(t,n){var e=i[t.id],r=i[n.id],o=void 0!==e,s=void 0!==r;return o&&s?e-r:o||s?o?1:-1:t.__objectId-n.__objectId},e=!1,r=0;r<t.length-1;r++)if(n(t[r],t[r+1])>0){e=!0;break}return!!e&&(t.sort(n),!0)},traverseNodesWithKey:function(t,i){var n=[];!function t(e){e&&e.forEach((function(e){if(e.group||e.hasChildren()){n.push(e.key);var r=n.join("|");i(e,r),t(e.childrenAfterGroup),n.pop()}}))}(t)}});
183
+ /**
184
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
185
+ * @version v28.2.1
186
+ * @link https://www.ag-grid.com/
187
+ * @license MIT
188
+ */
189
+ function Nr(t){var i=new Set;return t.forEach((function(t){return i.add(t)})),i}const Lr=Object.freeze({__proto__:null,convertToSet:Nr});
190
+ /**
191
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
192
+ * @version v28.2.1
193
+ * @link https://www.ag-grid.com/
194
+ * @license MIT
195
+ */var Br,Hr=function(){return Hr=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Hr.apply(this,arguments)},Wr=Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr(Hr({},We),br),si),Rn),re),Or),He),Si),Gt),xn),tt),Gr),Ir),Li),Tr),Dn),vt),zr),Lr),zi),Vr=function(){function t(t,i){void 0===t&&(t=0),void 0===i&&(i=1),this.nextValue=t,this.step=i}return t.prototype.next=function(){var t=this.nextValue;return this.nextValue+=this.step,t},t.prototype.peek=function(){return this.nextValue},t.prototype.skip=function(t){this.nextValue+=t},t}();!function(t){t[t.IN_PROGRESS=0]="IN_PROGRESS",t[t.RESOLVED=1]="RESOLVED"}(Br||(Br={}));var Ur,Kr=function(){function t(t){var i=this;this.status=Br.IN_PROGRESS,this.resolution=null,this.waiters=[],t((function(t){return i.onDone(t)}),(function(t){return i.onReject(t)}))}return t.all=function(i){return new t((function(t){var n=i.length,e=new Array(n);i.forEach((function(i,r){i.then((function(i){e[r]=i,0==--n&&t(e)}))}))}))},t.resolve=function(i){return void 0===i&&(i=null),new t((function(t){return t(i)}))},t.prototype.then=function(i){var n=this;return new t((function(t){n.status===Br.RESOLVED?t(i(n.resolution)):n.waiters.push((function(n){return t(i(n))}))}))},t.prototype.resolveNow=function(t,i){return this.status===Br.RESOLVED?i(this.resolution):t},t.prototype.onDone=function(t){this.status=Br.RESOLVED,this.resolution=t,this.waiters.forEach((function(i){return i(t)}))},t.prototype.onReject=function(){console.warn("TBI")},t}(),$r=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qr=function(){return qr=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},qr.apply(this,arguments)},Yr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
196
+ /**
197
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
198
+ * @version v28.2.1
199
+ * @link https://www.ag-grid.com/
200
+ * @license MIT
201
+ */!function(t){t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING"}(Ur||(Ur={}));var Jr=function(t){function i(i){var n=t.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Ur.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=i,n}return $r(i,t),i.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var t=this.parentComp.getGui();this.addManagedListener(t,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(t,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(t,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(t,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this))},i.prototype.destroy=function(){this.setToDoNothing(),t.prototype.destroy.call(this)},i.prototype.onMouseEnter=function(t){if(!vn()&&this.state==Ur.NOTHING){var i=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),i),this.lastMouseEvent=t,this.state=Ur.WAITING_TO_SHOW}},i.prototype.onMouseLeave=function(){this.setToDoNothing()},i.prototype.onKeyDown=function(){this.setToDoNothing()},i.prototype.setToDoNothing=function(){this.state===Ur.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Ur.NOTHING},i.prototype.onMouseMove=function(t){this.lastMouseEvent=t,this.tooltipMouseTrack&&this.state===Ur.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},i.prototype.onMouseDown=function(){this.setToDoNothing()},i.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),i.lastTooltipHideTime=(new Date).getTime()),this.state=Ur.NOTHING},i.prototype.destroyTooltipComp=function(){var t=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var i=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){i(),t.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},i.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-i.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},i.prototype.showTooltip=function(){var t=qr({},this.parentComp.getTooltipParams());if($(t.value)){this.state=Ur.SHOWING,this.tooltipInstanceCount++;var i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(t).newAgStackInstance().then(i)}else this.setToDoNothing()},i.prototype.newTooltipComponentCallback=function(t,i){if(this.state!==Ur.SHOWING||this.tooltipInstanceCount!==t)this.getContext().destroyBean(i);else{var n=i.getGui();this.tooltipComp=i,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var e=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.popupService.addPopup({eChild:n,ariaLabel:e("ariaLabelTooltip","Tooltip")});r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},i.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},i.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Yr([Dt("popupService")],i.prototype,"popupService",void 0),Yr([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),Yr([Dt("columnApi")],i.prototype,"columnApi",void 0),Yr([Dt("gridApi")],i.prototype,"gridApi",void 0),Yr([Ft],i.prototype,"postConstruct",null),i}(Ai),Zr=function(){function t(t){this.cssClassStates={},this.getGui=t}return t.prototype.addCssClass=function(t){var i=this,n=(t||"").split(" ");if(n.length>1)n.forEach((function(t){return i.addCssClass(t)}));else if(!0!==this.cssClassStates[t]&&t.length){var e=this.getGui();e&&e.classList.add(t),this.cssClassStates[t]=!0}},t.prototype.removeCssClass=function(t){var i=this,n=(t||"").split(" ");if(n.length>1)n.forEach((function(t){return i.removeCssClass(t)}));else if(!1!==this.cssClassStates[t]&&t.length){var e=this.getGui();e&&e.classList.remove(t),this.cssClassStates[t]=!1}},t.prototype.containsCssClass=function(t){var i=this.getGui();return!!i&&i.classList.contains(t)},t.prototype.addOrRemoveCssClass=function(t,i){var n=this;if(t){if(t.indexOf(" ")>=0){var e=(t||"").split(" ");if(e.length>1)return void e.forEach((function(t){return n.addOrRemoveCssClass(t,i)}))}if(this.cssClassStates[t]!==i&&t.length){var r=this.getGui();r&&r.classList.toggle(t,i),this.cssClassStates[t]=i}}},t}(),Xr=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qr=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},to=new Vr,io=function(t){function i(i){var n=t.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=to.next(),n.cssClassManager=new Zr((function(){return n.eGui})),i&&n.setTemplate(i),n}return Xr(i,t),i.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},i.prototype.getCompId=function(){return this.compId},i.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},i.prototype.setTooltip=function(t){var i=this;this.tooltipText!=t&&(this.tooltipText&&(i.usingBrowserTooltips?i.getGui().removeAttribute("title"):i.tooltipFeature=i.destroyBean(i.tooltipFeature)),null!=t&&(this.tooltipText=t,this.tooltipText&&(i.usingBrowserTooltips?i.getGui().setAttribute("title",i.tooltipText):i.tooltipFeature=i.createBean(new Jr(i)))))},i.prototype.createChildComponentsFromTags=function(t,i){var n=this;ze(t.childNodes).forEach((function(e){if(e instanceof HTMLElement){var r=n.createComponentFromElement(e,(function(t){t.getGui()&&n.copyAttributesFromNode(e,t.getGui())}),i);if(r){if(r.addItems&&e.children.length){n.createChildComponentsFromTags(e,i);var o=Array.prototype.slice.call(e.children);r.addItems(o)}n.swapComponentForNode(r,t,e)}else e.childNodes&&n.createChildComponentsFromTags(e,i)}}))},i.prototype.createComponentFromElement=function(t,n,e){var r=t.nodeName,o=e?e[t.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(r);if(s){i.elementGettingCreated=t;var u=new s(o);return u.setParentComponent(this),this.createBean(u,null,n),u}return null},i.prototype.copyAttributesFromNode=function(t,i){Ne(t.attributes,(function(t,n){return i.setAttribute(t,n)}))},i.prototype.swapComponentForNode=function(t,i,n){var e=t.getGui();i.replaceChild(e,n),i.insertBefore(document.createComment(n.nodeName),e),this.addDestroyFunc(this.destroyBean.bind(this,t)),this.swapInComponentForQuerySelectors(t,n)},i.prototype.swapInComponentForQuerySelectors=function(t,i){var n=this;this.iterateOverQuerySelectors((function(e){n[e.attributeName]===i&&(n[e.attributeName]=t)}))},i.prototype.iterateOverQuerySelectors=function(t){for(var i=Object.getPrototypeOf(this);null!=i;){var n=i.__agComponentMetaData,e=mt(i.constructor);n&&n[e]&&n[e].querySelectors&&n[e].querySelectors.forEach((function(i){return t(i)})),i=Object.getPrototypeOf(i)}},i.prototype.setTemplate=function(t,i){var n=Se(t);this.setTemplateFromElement(n,i)},i.prototype.setTemplateFromElement=function(t,i){this.eGui=t,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),i)},i.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},i.prototype.wireQuerySelectors=function(){var t=this;if(this.eGui){var i=this;this.iterateOverQuerySelectors((function(n){var e=function(t){return i[n.attributeName]=t};if(n.refSelector&&t.eGui.getAttribute("ref")===n.refSelector)e(t.eGui);else{var r=t.eGui.querySelector(n.querySelector);r&&e(r.__agComponent||r)}}))}},i.prototype.getGui=function(){return this.eGui},i.prototype.getFocusableElement=function(){return this.eGui},i.prototype.setParentComponent=function(t){this.parentComponent=t},i.prototype.getParentComponent=function(){return this.parentComponent},i.prototype.setGui=function(t){this.eGui=t},i.prototype.queryForHtmlElement=function(t){return this.eGui.querySelector(t)},i.prototype.queryForHtmlInputElement=function(t){return this.eGui.querySelector(t)},i.prototype.appendChild=function(t,i){null!=t&&(i||(i=this.eGui),Te(t)?i.appendChild(t):i.appendChild(t.getGui()))},i.prototype.isDisplayed=function(){return this.displayed},i.prototype.setVisible=function(t){t!==this.visible&&(this.visible=t,he(this.eGui,t))},i.prototype.setDisplayed=function(t){t!==this.displayed&&(this.displayed=t,ue(this.eGui,t),this.dispatchEvent({type:i.EVENT_DISPLAYED_CHANGED,visible:this.displayed}))},i.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),t.prototype.destroy.call(this)},i.prototype.addGuiEventListener=function(t,i){var n=this;this.eGui.addEventListener(t,i),this.addDestroyFunc((function(){return n.eGui.removeEventListener(t,i)}))},i.prototype.addCssClass=function(t){this.cssClassManager.addCssClass(t)},i.prototype.removeCssClass=function(t){this.cssClassManager.removeCssClass(t)},i.prototype.containsCssClass=function(t){return this.cssClassManager.containsCssClass(t)},i.prototype.addOrRemoveCssClass=function(t,i){this.cssClassManager.addOrRemoveCssClass(t,i)},i.prototype.getAttribute=function(t){var i=this.eGui;return i?i.getAttribute(t):null},i.prototype.getRefElement=function(t){return this.queryForHtmlElement('[ref="'+t+'"]')},i.EVENT_DISPLAYED_CHANGED="displayedChanged",Qr([Dt("agStackComponentsRegistry")],i.prototype,"agStackComponentsRegistry",void 0),Qr([Mt],i.prototype,"preConstructOnComponent",null),Qr([Mt],i.prototype,"createChildComponentsPreConstruct",null),i}(Ai);
202
+ /**
203
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
204
+ * @version v28.2.1
205
+ * @link https://www.ag-grid.com/
206
+ * @license MIT
207
+ */
208
+ /**
209
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
210
+ * @version v28.2.1
211
+ * @link https://www.ag-grid.com/
212
+ * @license MIT
213
+ */
214
+ function no(t){return eo.bind(this,"[ref="+t+"]",t)}function eo(t,i,n,e,r){var o,s,u,h;null!==t?"number"!=typeof r?(s="querySelectors",u={attributeName:e,querySelector:t,refSelector:i},(h=function(t,i){return t.__agComponentMetaData||(t.__agComponentMetaData={}),t.__agComponentMetaData[i]||(t.__agComponentMetaData[i]={}),t.__agComponentMetaData[i]}
215
+ /**
216
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
217
+ * @version v28.2.1
218
+ * @link https://www.ag-grid.com/
219
+ * @license MIT
220
+ */(o=n,mt(o.constructor)))[s]||(h[s]=[]),h[s].push(u)):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var ro,oo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),so=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},uo=function(t){function i(){return t.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return oo(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(t){this.params=t;var i=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(i+" "+n("ariaFilterInput","Filter Input"))},i.prototype.onParentModelChanged=function(t){var i=this;t?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var e=n.getModelAsString(t);i.eFloatingFilterText.setValue(e)}})):this.eFloatingFilterText.setValue("")},so([no("eFloatingFilterText")],i.prototype,"eFloatingFilterText",void 0),so([Dt("columnModel")],i.prototype,"columnModel",void 0),i}(io),ho=function(){function t(t,i,n,e){var r=this;this.alive=!0,this.context=t,this.eParent=e,i.getDateCompDetails(n).newAgStackInstance().then((function(i){r.alive?(r.dateComp=i,i&&(e.appendChild(i.getGui()),i.afterGuiAttached&&i.afterGuiAttached(),r.tempValue&&i.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):t.destroyBean(i)}))}return t.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},t.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},t.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},t.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},t.prototype.setDisplayed=function(t){ue(this.eParent,t)},t.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},t.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},t.prototype.afterGuiAttached=function(t){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(t)},t.prototype.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},t}(),co=function(){return co=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},co.apply(this,arguments)},ao=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(t,i){this.filterOptions=t.filterOptions||i,this.mapCustomOptions(),this.selectDefaultItem(t),this.checkForDeprecatedParams()},t.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(t){return"string"!=typeof t&&null!=t.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},t.prototype.getFilterOptions=function(){return this.filterOptions},t.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach((function(i){if("string"!=typeof i)if([["displayKey"],["displayName"],["predicate","test"]].every((function(t){return!!t.some((function(t){return null!=i[t]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+t+"'"),!1)}))){var n=i.test,e=co({},i);null!=n&&null==i.predicate&&(e.predicate=function(t,i){return n(t[0],i)},delete e.test),e.hideFilterInput&&null==e.numberOfInputs&&(e.numberOfInputs=0,delete e.hideFilterInput),t.customFilterOptions[i.displayKey]=e}else t.filterOptions=t.filterOptions.filter((function(t){return t===i}))||[]}))},t.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var i=this.filterOptions[0];"string"==typeof i?this.defaultOption=i:i.displayKey?this.defaultOption=i.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")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},t}(),lo={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:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},fo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vo=function(){return vo=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},vo.apply(this,arguments)},po=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},go=function(t){function i(i,n){void 0===n&&(n={});var e=t.call(this)||this;return e.eFocusableElement=i,e.callbacks=n,e.callbacks=vo({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(t){if(!t.defaultPrevented){var i=e.focusService.findNextFocusableElement(e.eFocusableElement,!1,t.shiftKey);i&&(i.focus(),t.preventDefault())}}},n),e}return fo(i,t),i.prototype.postConstruct=function(){this.eFocusableElement.classList.add(i.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)},i.prototype.addKeyDownListeners=function(t){var i=this;this.addManagedListener(t,"keydown",(function(t){t.defaultPrevented||vi(t)||(i.callbacks.shouldStopEventPropagation(t)?di(t):t.key===xr.TAB?i.callbacks.onTabKeyDown(t):i.callbacks.handleKeyDown&&i.callbacks.handleKeyDown(t))}))},i.FOCUS_MANAGED_CLASS="ag-focus-managed",po([Dt("focusService")],i.prototype,"focusService",void 0),po([Ft],i.prototype,"postConstruct",null),i}(Ai),mo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wo=function(t){function i(i){var n=t.call(this)||this;return n.filterNameKey=i,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return mo(i,t),i.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new go(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},i.prototype.handleKeyDown=function(){},i.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},i.prototype.isFilterActive=function(){return!!this.appliedModel},i.prototype.resetTemplate=function(t){var i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit);var n='\n <form class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n '+this.createBodyTemplate()+"\n </div>\n </form>";this.setTemplate(n,t),(i=this.getGui())&&i.addEventListener("submit",this.onFormSubmit)},i.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},i.prototype.init=function(t){var i=this;this.setParams(t),this.resetUiToDefaults(!0).then((function(){i.updateUiVisibility(),i.setupOnBtApplyDebounce()}))},i.prototype.setParams=function(t){this.providedFilterParams=t,this.applyActive=i.isUseApplyButton(t),this.createButtonPanel()},i.prototype.createButtonPanel=function(){var t=this,i=this.providedFilterParams.buttons;if(!(!i||i.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel"),Nr(i).forEach((function(i){return function(i){var e,r;switch(i){case"apply":e=t.translate("applyFilter"),r=function(i){return t.onBtApply(!1,!1,i)};break;case"clear":e=t.translate("clearFilter"),r=function(){return t.onBtClear()};break;case"reset":e=t.translate("resetFilter"),r=function(){return t.onBtReset()};break;case"cancel":e=t.translate("cancelFilter"),r=function(i){t.onBtCancel(i)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var o=Se('<button\n type="'+("apply"===i?"submit":"button")+'"\n ref="'+i+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+e+"\n </button>");n.appendChild(o),t.addManagedListener(o,"click",r)}(i)})),this.getGui().appendChild(n)}},i.prototype.getDefaultDebounceMs=function(){return 0},i.prototype.setupOnBtApplyDebounce=function(){var t=i.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=Ot(this.onBtApply.bind(this),t)},i.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},i.prototype.setModel=function(t){var i=this;return(null!=t?this.setModelIntoUi(t):this.resetUiToDefaults()).then((function(){i.updateUiVisibility(),i.applyModel()}))},i.prototype.onBtCancel=function(t){var i=this,n=this.getModel(),e=function(){i.onUiChanged(!1,"prevent"),i.providedFilterParams.closeOnApply&&i.close(t)};null!=n?this.setModelIntoUi(n).then(e):this.resetUiToDefaults().then(e)},i.prototype.onBtClear=function(){var t=this;this.resetUiToDefaults().then((function(){return t.onUiChanged()}))},i.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},i.prototype.applyModel=function(){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var i=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(i,t)},i.prototype.isModelValid=function(){return!0},i.prototype.onFormSubmit=function(t){t.preventDefault()},i.prototype.onBtApply=function(t,i,n){void 0===t&&(t=!1),void 0===i&&(i=!1),n&&n.preventDefault(),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:t,afterDataChange:i}),this.providedFilterParams.closeOnApply&&this.applyActive&&!t&&!i&&this.close(n)},i.prototype.onNewRowsLoaded=function(){},i.prototype.close=function(t){if(this.hidePopup){var i,n=t&&t.key;"Enter"!==n&&"Space"!==n||(i={keyboardEvent:t}),this.hidePopup(i),this.hidePopup=null}},i.prototype.onUiChanged=function(t,i){if(void 0===t&&(t=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());ce(this.getRefElement("applyFilterButton"),!n)}t&&!i||"immediately"===i?this.onBtApply(t):(this.applyActive||i)&&"debounce"!==i||this.onBtApplyDebounce()},i.prototype.afterGuiAttached=function(t){null!=t&&(this.hidePopup=t.hidePopup)},i.getDebounceMs=function(t,n){return i.isUseApplyButton(t)?(null!=t.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=t.debounceMs?t.debounceMs:n},i.isUseApplyButton=function(t){return!!t.buttons&&t.buttons.indexOf("apply")>=0},i.prototype.destroy=function(){var i=this.getGui();i&&i.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,t.prototype.destroy.call(this)},i.prototype.translate=function(t){return this.gridOptionsWrapper.getLocaleTextFunc()(t,lo[t])},i.prototype.getCellValue=function(t){var i=this.providedFilterParams;return this.providedFilterParams.valueGetter({api:i.api,colDef:i.colDef,column:i.column,columnApi:i.columnApi,context:i.context,data:t.data,getValue:function(i){return t.data[i]},node:t})},bo([Dt("rowModel")],i.prototype,"rowModel",void 0),bo([Ft],i.prototype,"postConstruct",null),i}(io),yo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Co=function(t){function i(i,n){var e=t.call(this,n)||this;return e.labelSeparator="",e.labelAlignment="left",e.disabled=!1,e.label="",e.config=i||{},e}return yo(i,t),i.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var t=this.config,i=t.labelSeparator,n=t.label,e=t.labelWidth,r=t.labelAlignment;null!=i&&this.setLabelSeparator(i),null!=n&&this.setLabel(n),null!=e&&this.setLabelWidth(e),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()},i.prototype.refreshLabel=function(){we(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),$e(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),$e(this.eLabel,null))},i.prototype.setLabelSeparator=function(t){return this.labelSeparator===t||(this.labelSeparator=t,null!=this.label&&this.refreshLabel()),this},i.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},i.prototype.getLabel=function(){return this.label},i.prototype.setLabel=function(t){return this.label===t||(this.label=t,this.refreshLabel()),this},i.prototype.setLabelAlignment=function(t){var i=this.getGui().classList;return i.toggle("ag-label-align-left","left"===t),i.toggle("ag-label-align-right","right"===t),i.toggle("ag-label-align-top","top"===t),this},i.prototype.setLabelWidth=function(t){return null==this.label||Fe(this.eLabel,t),this},i.prototype.setDisabled=function(t){t=!!t;var i=this.getGui();return ce(i,t),i.classList.toggle("ag-disabled",t),this.disabled=t,this},i.prototype.isDisabled=function(){return!!this.disabled},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Ft],i.prototype,"postConstruct",null),i}(io),So=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ro=function(t){function i(i,n,e){var r=t.call(this,i,n)||this;return r.className=e,r}return So(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},i.prototype.onValueChange=function(t){var n=this;return this.addManagedListener(this,i.EVENT_CHANGED,(function(){return t(n.getValue())})),this},i.prototype.getWidth=function(){return this.getGui().clientWidth},i.prototype.setWidth=function(t){return ke(this.getGui(),t),this},i.prototype.getPreviousValue=function(){return this.previousValue},i.prototype.getValue=function(){return this.value},i.prototype.setValue=function(t,n){return this.value===t||(this.previousValue=this.value,this.value=t,n||this.dispatchEvent({type:i.EVENT_CHANGED})),this},i.EVENT_CHANGED="valueChange",i}(Co),Oo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ao=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jo=function(t){function i(i,n,e,r){var o=t.call(this,i,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(r?'role="'+r+'"':"")+'\n >\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>',n)||this;return o.pickerIcon=e,o.isPickerDisplayed=!1,o.isDestroyingPicker=!1,o.skipClick=!1,o}return Oo(i,t),i.prototype.postConstruct=function(){var i=this;t.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),tr(this.eWrapper,n);var e=function(){i.skipClick?i.skipClick=!1:i.isDisabled()||(i.pickerComponent=i.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",(function(t){!i.skipClick&&i.pickerComponent&&i.pickerComponent.isAlive()&&Ce(i.pickerComponent.getGui())&&r.contains(t.target)&&(i.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(t){switch(t.key){case xr.UP:case xr.DOWN:case xr.ENTER:case xr.SPACE:e();case xr.ESCAPE:i.isPickerDisplayed&&t.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",e),this.addManagedListener(this.eLabel,"click",e),this.pickerIcon){var o=_r(this.pickerIcon,this.gridOptionsWrapper);o&&this.eIcon.appendChild(o)}},i.prototype.refreshLabel=function(){$(this.getLabel())?Xe(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},i.prototype.setAriaLabel=function(t){return Ze(this.eWrapper,t),this},i.prototype.setInputWidth=function(t){return Fe(this.eWrapper,t),this},i.prototype.getFocusableElement=function(){return this.eWrapper},Ao([no("eLabel")],i.prototype,"eLabel",void 0),Ao([no("eWrapper")],i.prototype,"eWrapper",void 0),Ao([no("eDisplayField")],i.prototype,"eDisplayField",void 0),Ao([no("eIcon")],i.prototype,"eIcon",void 0),i}(Ro),_o=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Go=function(t){function i(i){void 0===i&&(i="default");var n=t.call(this,'<div class="ag-list ag-'+i+'-list" role="listbox"></div>')||this;return n.cssIdentifier=i,n.options=[],n.itemEls=[],n}return _o(i,t),i.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},i.prototype.handleKeyDown=function(t){var i=t.key;switch(i){case xr.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case xr.DOWN:case xr.UP:var e=i===xr.DOWN,r=void 0;if(t.preventDefault(),this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl)+(e?1:-1);o=Math.min(Math.max(o,0),this.itemEls.length-1),r=this.itemEls[o]}else r=this.itemEls[e?0:this.itemEls.length-1];this.highlightItem(r)}},i.prototype.addOptions=function(t){var i=this;return t.forEach((function(t){return i.addOption(t)})),this},i.prototype.addOption=function(t){var i=t.value,n=Ei(t.text||i);return this.options.push({value:i,text:n}),this.renderOption(i,n),this.updateIndices(),this},i.prototype.updateIndices=function(){var t=this.getGui().querySelectorAll(".ag-list-item");t.forEach((function(i,n){ur(i,n+1),sr(i,t.length)}))},i.prototype.renderOption=function(t,i){var n=this,e=document.createElement("div");$e(e,"option"),e.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),e.innerHTML="<span>"+i+"</span>",e.tabIndex=-1,this.itemEls.push(e),this.addManagedListener(e,"mouseover",(function(){return n.highlightItem(e)})),this.addManagedListener(e,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(e,"click",(function(){return n.setValue(t)})),this.getGui().appendChild(e)},i.prototype.setValue=function(t,i){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var n=this.options.findIndex((function(i){return i.value===t}));if(-1!==n){var e=this.options[n];this.value=e.value,this.displayValue=null!=e.text?e.text:e.value,this.highlightItem(this.itemEls[n]),i||this.fireChangeEvent()}return this},i.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},i.prototype.getValue=function(){return this.value},i.prototype.getDisplayValue=function(){return this.displayValue},i.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var i=this.options.findIndex((function(i){return i.value===t.value}));-1!==i&&this.highlightItem(this.itemEls[i])},i.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},i.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,this.highlightedEl.classList.add(i.ACTIVE_CLASS),gr(this.highlightedEl,!0),this.highlightedEl.focus())},i.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(i.ACTIVE_CLASS),gr(this.highlightedEl,!1),this.highlightedEl=null)},i.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Ro.EVENT_CHANGED}),this.fireItemSelected()},i.prototype.fireItemSelected=function(){this.dispatchEvent({type:i.EVENT_ITEM_SELECTED})},i.EVENT_ITEM_SELECTED="selectedItem",i.ACTIVE_CLASS="ag-active-item",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Ft],i.prototype,"init",null),i}(io),xo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Mo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Fo=function(t){function i(i){return t.call(this,i,"ag-select","smallDown","listbox")||this}return xo(i,t),i.prototype.init=function(){var t=this;this.listComponent=this.createBean(new Go("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Go.EVENT_ITEM_SELECTED,(function(){t.hideList&&t.hideList()})),this.listComponent.addManagedListener(this.listComponent,Ro.EVENT_CHANGED,(function(){t.setValue(t.listComponent.getValue(),!1,!0),t.hideList&&t.hideList()}))},i.prototype.showPicker=function(){var t=this,i=this.listComponent.getGui(),n=this.gridOptionsWrapper.getDocument(),e=this.addManagedListener(n.body,"wheel",(function(n){!i.contains(n.target)&&t.hideList&&t.hideList()})),r=this.addManagedListener(i,"focusout",(function(n){!i.contains(n.relatedTarget)&&t.hideList&&t.hideList()})),o=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:function(){t.hideList=null,t.isPickerDisplayed=!1,r(),e(),t.isAlive()&&(rr(t.eWrapper,!1),t.getFocusableElement().focus())},ariaLabel:o("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Fe(i,pe(this.eWrapper)),rr(this.eWrapper,!0),i.style.maxHeight=fe(this.popupService.getPopupParent())+"px",i.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:i,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},i.prototype.addOptions=function(t){var i=this;return t.forEach((function(t){return i.addOption(t)})),this},i.prototype.addOption=function(t){return this.listComponent.addOption(t),this},i.prototype.setValue=function(i,n,e){return this.value===i?this:(e||this.listComponent.setValue(i,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,i,n)))},i.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),t.prototype.destroy.call(this)},Mo([Dt("popupService")],i.prototype,"popupService",void 0),Mo([Ft],i.prototype,"init",null),i}(jo),ko=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Po=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Do=function(t){function i(i,n,e,r){void 0===e&&(e="text"),void 0===r&&(r="input");var o=t.call(this,i,'\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 <'+r+' ref="eInput" class="ag-input-field-input"></'+r+">\n </div>\n </div>",n)||this;return o.inputType=e,o.displayFieldTag=r,o}return ko(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),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";var i=this.config,n=i.width,e=i.value;null!=n&&this.setWidth(n),null!=e&&this.setValue(e),this.addInputListeners()},i.prototype.refreshLabel=function(){$(this.getLabel())?Xe(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},i.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(i){return t.setValue(i.target.value)}))},i.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},i.prototype.getInputElement=function(){return this.eInput},i.prototype.setInputWidth=function(t){return Fe(this.eWrapper,t),this},i.prototype.setInputName=function(t){return this.getInputElement().setAttribute("name",t),this},i.prototype.getFocusableElement=function(){return this.eInput},i.prototype.setMaxLength=function(t){return this.eInput.maxLength=t,this},i.prototype.setInputPlaceholder=function(t){return Le(this.eInput,"placeholder",t),this},i.prototype.setInputAriaLabel=function(t){return Ze(this.eInput,t),this},i.prototype.setDisabled=function(i){return ce(this.eInput,i),t.prototype.setDisabled.call(this,i)},Po([no("eLabel")],i.prototype,"eLabel",void 0),Po([no("eWrapper")],i.prototype,"eWrapper",void 0),Po([no("eInput")],i.prototype,"eInput",void 0),i}(Ro),Io=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Eo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.One=0]="One",t[t.Two=1]="Two"}(ro||(ro={}));var To,zo=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Io(i,t),i.prototype.getNumberOfInputs=function(t){var n=this.optionsFactory.getCustomOption(t);if(n){var e=n.numberOfInputs;return null!=e?e:1}return t&&[i.EMPTY,i.NOT_BLANK,i.BLANK].indexOf(t)>=0?0:t===i.IN_RANGE?2:1},i.prototype.onFloatingFilterChanged=function(t,i){this.setTypeFromFloatingFilter(t),this.setValueFromFloatingFilter(i),this.onUiChanged(!0)},i.prototype.setTypeFromFloatingFilter=function(t){this.eType1.setValue(t),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},i.prototype.getModelFromUi=function(){return this.isConditionUiComplete(ro.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(ro.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(ro.One),condition2:this.createCondition(ro.Two)}:this.createCondition(ro.One):null},i.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},i.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},i.prototype.areModelsEqual=function(t,i){if(!t&&!i)return!0;if(!t&&i||t&&!i)return!1;var n,e=!t.operator,r=!i.operator;if(!e&&r||e&&!r)return!1;if(e)n=this.areSimpleModelsEqual(t,i);else{var o=t,s=i;n=o.operator===s.operator&&this.areSimpleModelsEqual(o.condition1,s.condition1)&&this.areSimpleModelsEqual(o.condition2,s.condition2)}return n},i.prototype.setModelIntoUi=function(t){if(t.operator){var i=t,n="OR"===i.operator;this.eJoinOperatorAnd.setValue(!n),this.eJoinOperatorOr.setValue(n),this.eType1.setValue(i.condition1.type),this.eType2.setValue(i.condition2.type),this.setConditionIntoUi(i.condition1,ro.One),this.setConditionIntoUi(i.condition2,ro.Two)}else{var e=t;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(e.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(e,ro.One),this.setConditionIntoUi(null,ro.Two)}return Kr.resolve()},i.prototype.doesFilterPass=function(t){var i=this,n=this.getModel();if(null==n)return!0;var e=n.operator,r=[];return e?r.push(n.condition1,n.condition2):r.push(n),r[e&&"OR"===e?"some":"every"]((function(n){return i.individualConditionPasses(t,n)}))},i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.optionsFactory=new ao,this.optionsFactory.init(i,this.getDefaultFilterOptions()),this.allowTwoConditions=!i.suppressAndOrCondition,this.alwaysShowBothConditions=!!i.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(i.defaultJoinOperator),this.filterPlaceholder=i.filterPlaceholder,this.putOptionsIntoDropdown(),this.addChangedListeners()},i.prototype.getDefaultJoinOperator=function(t){return ei(["AND","OR"],t)?t:"AND"},i.prototype.putOptionsIntoDropdown=function(){var t=this,i=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];i.forEach((function(i){var e="string"==typeof i?t.createBoilerplateListOption(i):t.createCustomListOption(i);n.forEach((function(t){return t.addOption(e)}))})),n.forEach((function(t){return t.setDisabled(i.length<=1)}))},i.prototype.createBoilerplateListOption=function(t){return{value:t,text:this.translate(t)}},i.prototype.createCustomListOption=function(t){var i=t.displayKey,n=this.optionsFactory.getCustomOption(t.displayKey);return{value:i,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(i)}},i.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},i.prototype.createBodyTemplate=function(){return'\n <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n '+this.createValueTemplate(ro.One)+'\n <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n </div>\n <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n '+this.createValueTemplate(ro.Two)},i.prototype.getCssIdentifier=function(){return"simple-filter"},i.prototype.updateUiVisibility=function(){var t=this,i=[this.eCondition1Body,this.eCondition2Body];[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]].forEach((function(i,n){var e=t.isConditionVisible(n),r=t.isConditionDisabled(n);i.forEach((function(t){t instanceof Do||t instanceof Fo?(t.setDisabled(r),t.setDisplayed(e)):(ce(t,r),ue(t,e))}))})),i.forEach((function(i,n){ue(i,t.isConditionBodyVisible(n))})),this.forEachInput((function(i,n,e,r){t.setElementDisplayed(i,n<r),t.setElementDisabled(i,t.isConditionDisabled(e))})),this.resetPlaceholder()},i.prototype.afterGuiAttached=function(i){if(t.prototype.afterGuiAttached.call(this,i),this.resetPlaceholder(),!i||!i.suppressFocus&&!this.isReadOnly()){var n=this.getInputs()[0][0];if(!n)return;n instanceof Do&&n.getInputElement().focus()}},i.prototype.getPlaceholderText=function(t,i){var n=this.translate(t);if(bt(this.filterPlaceholder)){var e=this.filterPlaceholder,r=0===i?this.eType1.getValue():this.eType2.getValue();n=e({filterOptionKey:r,filterOption:this.translate(r),placeholder:n})}else"string"==typeof this.filterPlaceholder&&(n=this.filterPlaceholder);return n},i.prototype.resetPlaceholder=function(){var t=this,i=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput((function(n,e,r,o){if(n instanceof Do){var s=0===e&&o>1?"inRangeStart":0===e?"filterOoo":"inRangeEnd",u=0===e&&o>1?i("ariaFilterFromValue","Filter from value"):0===e?i("ariaFilterValue","Filter Value"):i("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(t.getPlaceholderText(s,r)),n.setInputAriaLabel(u)}}))},i.prototype.setElementValue=function(t,i,n){t instanceof Do&&t.setValue(null!=i?String(i):null,n)},i.prototype.setElementDisplayed=function(t,i){t instanceof io&&ue(t.getGui(),i)},i.prototype.setElementDisabled=function(t,i){t instanceof io&&ce(t.getGui(),i)},i.prototype.attachElementOnChange=function(t,i){t instanceof Do&&t.onValueChange(i)},i.prototype.forEachInput=function(t){var i=this,n=this.getInputs();this.getConditionTypes().forEach((function(e,r){for(var o=i.getNumberOfInputs(e),s=0;s<n[r].length;s++){var u=n[r][s];null!=u&&t(u,s,r,o)}}))},i.prototype.isConditionVisible=function(t){return 0===t||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(t):!!this.alwaysShowBothConditions||this.isConditionUiComplete(t-1))},i.prototype.isConditionDisabled=function(t){return!!this.isReadOnly()||!this.isConditionVisible(t)||0!==t&&!this.isConditionUiComplete(t-1)},i.prototype.isConditionBodyVisible=function(t){if(!this.isConditionVisible(t))return!1;var i=this.getConditionTypes()[t];return this.getNumberOfInputs(i)>0},i.prototype.isConditionUiComplete=function(t){return this.getConditionTypes()[t]!==i.EMPTY&&!this.getValues(t).some((function(t){return null==t}))},i.prototype.resetUiToDefaults=function(t){var i=this,n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),e="ag-simple-filter-and-or-"+this.getCompId(),r=this.optionsFactory.getDefaultOption();return this.eType1.setValue(r,t).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),t).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),t).setName(e).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),t).setName(e).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){i.setElementValue(n,null,t),i.setElementDisabled(n,i.isReadOnly())})),this.resetPlaceholder(),Kr.resolve()},i.prototype.setConditionIntoUi=function(t,i){var n=this,e=this.mapValuesFromModel(t);this.forEachInput((function(t,r,o){o===i&&n.setElementValue(t,null!=e[r]?e[r]:null)}))},i.prototype.setValueFromFloatingFilter=function(t){var i=this;this.forEachInput((function(n,e,r){i.setElementValue(n,0===e&&0===r?t:null)}))},i.prototype.isDefaultOperator=function(t){return t===this.defaultJoinOperator},i.prototype.addChangedListeners=function(){var t=this;if(!this.isReadOnly()){var i=function(){return t.onUiChanged()};this.eType1.onValueChange(i),this.eType2.onValueChange(i),this.eJoinOperatorOr.onValueChange(i),this.eJoinOperatorAnd.onValueChange(i),this.forEachInput((function(n){t.attachElementOnChange(n,i)}))}},i.prototype.individualConditionPasses=function(t,i){var n=this.getCellValue(t.node),e=this.mapValuesFromModel(i),r=this.optionsFactory.getCustomOption(i.type),o=this.evaluateCustomFilter(r,e,n);return null!=o?o:null==n?this.evaluateNullValue(i.type):this.evaluateNonNullValue(e,n,i,t)},i.prototype.evaluateCustomFilter=function(t,i,n){if(null!=t){var e=t.predicate;return null==e||i.some((function(t){return null==t}))?void 0:e(i,n)}},i.prototype.isBlank=function(t){return null==t||"string"==typeof t&&0===t.trim().length},i.EMPTY="empty",i.BLANK="blank",i.NOT_BLANK="notBlank",i.EQUALS="equals",i.NOT_EQUAL="notEqual",i.LESS_THAN="lessThan",i.LESS_THAN_OR_EQUAL="lessThanOrEqual",i.GREATER_THAN="greaterThan",i.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",i.IN_RANGE="inRange",i.CONTAINS="contains",i.NOT_CONTAINS="notContains",i.STARTS_WITH="startsWith",i.ENDS_WITH="endsWith",Eo([no("eOptions1")],i.prototype,"eType1",void 0),Eo([no("eOptions2")],i.prototype,"eType2",void 0),Eo([no("eJoinOperatorPanel")],i.prototype,"eJoinOperatorPanel",void 0),Eo([no("eJoinOperatorAnd")],i.prototype,"eJoinOperatorAnd",void 0),Eo([no("eJoinOperatorOr")],i.prototype,"eJoinOperatorOr",void 0),Eo([no("eCondition1Body")],i.prototype,"eCondition1Body",void 0),Eo([no("eCondition2Body")],i.prototype,"eCondition2Body",void 0),i}(wo),No=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Lo=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return No(i,t),i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.scalarFilterParams=i},i.prototype.evaluateNullValue=function(t){switch(t){case i.EQUALS:case i.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case i.GREATER_THAN:case i.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case i.LESS_THAN:case i.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case i.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case i.BLANK:return!0;case i.NOT_BLANK:return!1}return!1},i.prototype.evaluateNonNullValue=function(t,n,e){var r=this.comparator(),o=null!=t[0]?r(t[0],n):0;switch(e.type){case i.EQUALS:return 0===o;case i.NOT_EQUAL:return 0!==o;case i.GREATER_THAN:return o>0;case i.GREATER_THAN_OR_EQUAL:return o>=0;case i.LESS_THAN:return o<0;case i.LESS_THAN_OR_EQUAL:return o<=0;case i.IN_RANGE:var s=r(t[1],n);return this.scalarFilterParams.inRangeInclusive?o>=0&&s<=0:o>0&&s<0;case i.BLANK:return this.isBlank(n);case i.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter "'+e.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},i}(zo),Bo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ho=function(){return Ho=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Ho.apply(this,arguments)},Wo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Vo=1/0,Uo=function(t){function i(){var i=t.call(this,"dateFilter")||this;return i.minValidYear=1e3,i.maxValidYear=Vo,i}return Bo(i,t),i.prototype.afterGuiAttached=function(i){t.prototype.afterGuiAttached.call(this,i),this.dateCondition1FromComp.afterGuiAttached(i)},i.prototype.mapValuesFromModel=function(t){var i=t||{},n=i.dateFrom,e=i.dateTo,r=i.type;return[n&&Rr(n)||null,e&&Rr(e)||null].slice(0,this.getNumberOfInputs(r))},i.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},i.prototype.defaultComparator=function(t,i){return null==i||i<t?-1:i>t?1:0},i.prototype.setParams=function(i){t.prototype.setParams.call(this,i),this.dateFilterParams=i;var n=function(t,n){if(null!=i[t]){if(!isNaN(i[t]))return null==i[t]?n:Number(i[t]);console.warn("AG Grid: DateFilter "+t+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",Vo),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},i.prototype.createDateComponents=function(){var t=this,i=function(i){return new ho(t.getContext(),t.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:t.dateFilterParams},i)};this.dateCondition1FromComp=i(this.eCondition1PanelFrom),this.dateCondition1ToComp=i(this.eCondition1PanelTo),this.dateCondition2FromComp=i(this.eCondition2PanelFrom),this.dateCondition2ToComp=i(this.eCondition2PanelTo),this.addDestroyFunc((function(){t.forEachInput((function(t){return t.destroy()}))}))},i.prototype.setElementValue=function(t,i){t.setDate(i)},i.prototype.setElementDisplayed=function(t,i){t.setDisplayed(i)},i.prototype.setElementDisabled=function(t,i){t.setDisabled(i)},i.prototype.getDefaultFilterOptions=function(){return i.DEFAULT_FILTER_OPTIONS},i.prototype.createValueTemplate=function(t){var i=t===ro.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body">\n <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+i+'PanelFrom"></div>\n <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+i+'PanelTo"></div>\n </div>'},i.prototype.isConditionUiComplete=function(i){var n=this;if(!t.prototype.isConditionUiComplete.call(this,i))return!1;var e=!0;return this.forEachInput((function(t,r,o,s){var u;o!==i||!e||r>=s||(e=e&&null!=(u=t.getDate())&&u.getUTCFullYear()>=n.minValidYear&&u.getUTCFullYear()<=n.maxValidYear)})),e},i.prototype.areSimpleModelsEqual=function(t,i){return t.dateFrom===i.dateFrom&&t.dateTo===i.dateTo&&t.type===i.type},i.prototype.getFilterType=function(){return"date"},i.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={},e=this.getValues(t);return e.length>0&&(n.dateFrom=yr(e[0])),e.length>1&&(n.dateTo=yr(e[1])),Ho({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:i},n)},i.prototype.resetPlaceholder=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.translate("dateFormatOoo"),n=t("ariaFilterValue","Filter Value");this.forEachInput((function(t){t.setInputPlaceholder(i),t.setInputAriaLabel(n)}))},i.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},i.prototype.getValues=function(t){var i=[];return this.forEachInput((function(n,e,r,o){t===r&&e<o&&i.push(n.getDate())})),i},i.DEFAULT_FILTER_OPTIONS=[Lo.EQUALS,Lo.GREATER_THAN,Lo.LESS_THAN,Lo.NOT_EQUAL,Lo.IN_RANGE,Lo.BLANK,Lo.NOT_BLANK],Wo([no("eCondition1PanelFrom")],i.prototype,"eCondition1PanelFrom",void 0),Wo([no("eCondition1PanelTo")],i.prototype,"eCondition1PanelTo",void 0),Wo([no("eCondition2PanelFrom")],i.prototype,"eCondition2PanelFrom",void 0),Wo([no("eCondition2PanelTo")],i.prototype,"eCondition2PanelTo",void 0),Wo([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),i}(Lo),Ko=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$o=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ko(i,t),i.prototype.getDefaultDebounceMs=function(){return 0},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.getTextFromModel=function(t){if(!t)return null;if(null!=t.operator){var i=t,n=i||{},e=n.condition2,r=this.getTextFromModel(n.condition1),o=this.getTextFromModel(e);return[r,i.operator,o].join(" ")}if(t.type===zo.BLANK||t.type===zo.NOT_BLANK)return this.gridOptionsWrapper.getLocaleTextFunc()(t.type,t.type);var s=t,u=this.optionsFactory.getCustomOption(s.type),h=u||{},c=h.displayKey,a=h.displayName;return c&&a&&0===h.numberOfInputs?(this.gridOptionsWrapper.getLocaleTextFunc()(c,a),a):this.conditionToString(s,u)},i.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},i.prototype.getLastType=function(){return this.lastType},i.prototype.isReadOnly=function(){return this.readOnly},i.prototype.setLastTypeFromModel=function(t){t?this.lastType=(t.operator?t.condition1:t).type:this.lastType=this.optionsFactory.getDefaultOption()},i.prototype.canWeEditAfterModelFromParentFilter=function(t){return t?!t.operator&&this.isTypeEditable(t.type):this.isTypeEditable(this.lastType)},i.prototype.init=function(t){this.optionsFactory=new ao,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!t.filterParams.readOnly;var i=this.isTypeEditable(this.lastType);this.setEditable(i)},i.prototype.doesFilterHaveSingleInput=function(t){var i=(this.optionsFactory.getCustomOption(t)||{}).numberOfInputs;return null==i||1==i},i.prototype.isTypeEditable=function(t){var i=[zo.IN_RANGE,zo.EMPTY,zo.BLANK,zo.NOT_BLANK];return!!t&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(t)&&i.indexOf(t)<0},i}(io),qo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yo=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Jo=function(t){function i(){return t.call(this,'\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>')||this}return qo(i,t),i.prototype.getDefaultFilterOptions=function(){return Uo.DEFAULT_FILTER_OPTIONS},i.prototype.conditionToString=function(t,i){var n=t.type,e=n==zo.IN_RANGE||2===(i||{}).numberOfInputs,r=Rr(t.dateFrom),o=Rr(t.dateTo),s=this.filterParams.inRangeFloatingFilterDateFormat;return e?(null!==r?Sr(r,s):"null")+"-"+(null!==o?Sr(o,s):"null"):null!=r?Sr(r,s):""+n},i.prototype.init=function(i){t.prototype.init.call(this,i),this.params=i,this.filterParams=i.filterParams,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},i.prototype.setEditable=function(t){ue(this.eDateWrapper,t),ue(this.eReadOnlyText.getGui(),!t)},i.prototype.onParentModelChanged=function(i,n){if(!this.isEventFromFloatingFilter(n)){t.prototype.setLastTypeFromModel.call(this,i);var e=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(i);this.setEditable(e),e?(this.dateComp.setDate(i?Rr(i.dateFrom):null),this.eReadOnlyText.setValue("")):(this.eReadOnlyText.setValue(this.getTextFromModel(i)),this.dateComp.setDate(null))}},i.prototype.onDateChanged=function(){var t=this,i=yr(this.dateComp.getDate());this.params.parentFilterInstance((function(n){if(n){var e=Rr(i);n.onFloatingFilterChanged(t.getLastType()||null,e)}}))},i.prototype.createDateComponent=function(){var t=this,i=wo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:Ot(this.onDateChanged.bind(this),i),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new ho(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return t.dateComp.destroy()}))},Yo([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),Yo([no("eReadOnlyText")],i.prototype,"eReadOnlyText",void 0),Yo([no("eDateWrapper")],i.prototype,"eDateWrapper",void 0),i}($o),Zo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xo=function(t){function i(){return t.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return Zo(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(t){var i=this,n=this.gridOptionsWrapper.getDocument(),e=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(t)&&(e.type="date"),this.addManagedListener(e,"mousedown",(function(){i.eDateInput.isDisabled()||e.focus()})),this.addManagedListener(e,"input",(function(e){e.target===n.activeElement&&(i.eDateInput.isDisabled()||t.onDateChanged())}));var r=t.filterParams||{},o=r.minValidYear,s=r.maxValidYear;o&&(e.min=o+"-01-01"),s&&(e.max=s+"-12-31")},i.prototype.getDate=function(){return Rr(this.eDateInput.getValue())},i.prototype.setDate=function(t){this.eDateInput.setValue(yr(t,!1))},i.prototype.setInputPlaceholder=function(t){this.eDateInput.setInputPlaceholder(t)},i.prototype.setDisabled=function(t){this.eDateInput.setDisabled(t)},i.prototype.afterGuiAttached=function(t){t&&t.suppressFocus||this.eDateInput.getInputElement().focus()},i.prototype.shouldUseBrowserDatePicker=function(t){return t.filterParams&&null!=t.filterParams.browserDatePicker?t.filterParams.browserDatePicker:ln()||fn()},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([no("eDateInput")],i.prototype,"eDateInput",void 0),i}(io),Qo=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ts=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},is=function(t){function i(){return t.call(this,"numberFilter")||this}return Qo(i,t),i.prototype.mapValuesFromModel=function(t){var i=t||{},n=i.filter,e=i.filterTo;return[null==n?null:n,null==e?null:e].slice(0,this.getNumberOfInputs(i.type))},i.prototype.getDefaultDebounceMs=function(){return 500},i.prototype.comparator=function(){return function(t,i){return t===i?0:t<i?1:-1}},i.prototype.setParams=function(i){this.numberFilterParams=i;var n=this.getAllowedCharPattern();if(n){var e={allowedCharPattern:n};this.resetTemplate({"eValue-index0-1":e,"eValue-index1-1":e,"eValue-index0-2":e,"eValue-index1-2":e})}t.prototype.setParams.call(this,i)},i.prototype.getDefaultFilterOptions=function(){return i.DEFAULT_FILTER_OPTIONS},i.prototype.createValueTemplate=function(t){var i=t===ro.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body" role="presentation">\n <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'"></'+n+">\n <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'"></'+n+">\n </div>"},i.prototype.getValues=function(t){var i=this,n=[];return this.forEachInput((function(e,r,o,s){t===o&&r<s&&n.push(i.stringToFloat(e.getValue()))})),n},i.prototype.areSimpleModelsEqual=function(t,i){return t.filter===i.filter&&t.filterTo===i.filterTo&&t.type===i.type},i.prototype.getFilterType=function(){return"number"},i.prototype.stringToFloat=function(t){if("number"==typeof t)return t;var i=K(t);return null!=i&&""===i.trim()&&(i=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(i):null==i||"-"===i.trim()?null:parseFloat(i)},i.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={filterType:this.getFilterType(),type:i},e=this.getValues(t);return e.length>0&&(n.filter=e[0]),e.length>1&&(n.filterTo=e[1]),n},i.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},i.prototype.getAllowedCharPattern=function(){return(this.numberFilterParams||{}).allowedCharPattern||(ln()||cn()?null:"\\d\\-\\.")},i.DEFAULT_FILTER_OPTIONS=[Lo.EQUALS,Lo.NOT_EQUAL,Lo.LESS_THAN,Lo.LESS_THAN_OR_EQUAL,Lo.GREATER_THAN,Lo.GREATER_THAN_OR_EQUAL,Lo.IN_RANGE,Lo.BLANK,Lo.NOT_BLANK],ts([no("eValue-index0-1")],i.prototype,"eValueFrom1",void 0),ts([no("eValue-index1-1")],i.prototype,"eValueTo1",void 0),ts([no("eValue-index0-2")],i.prototype,"eValueFrom2",void 0),ts([no("eValue-index1-2")],i.prototype,"eValueTo2",void 0),i}(Lo),ns=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),es=function(){return es=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},es.apply(this,arguments)},rs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},os=function(t){function i(){return t.call(this,"textFilter")||this}return ns(i,t),i.trimInput=function(t){var i=t&&t.trim();return""===i?t:i},i.prototype.getDefaultDebounceMs=function(){return 500},i.prototype.setParams=function(n){t.prototype.setParams.call(this,n),this.textFilterParams=n,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?i.DEFAULT_FORMATTER:i.DEFAULT_LOWERCASE_FORMATTER)},i.prototype.getTextMatcher=function(){var t=this.textFilterParams.textCustomComparator;return t?(Wr.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(i){return t(i.filterOption,i.value,i.filterText)}):this.textFilterParams.textMatcher||i.DEFAULT_MATCHER},i.prototype.createCondition=function(t){var i=this.getConditionTypes()[t],n={filterType:this.getFilterType(),type:i},e=this.getValues(t);return e.length>0&&(n.filter=e[0]),e.length>1&&(n.filterTo=e[1]),n},i.prototype.getFilterType=function(){return"text"},i.prototype.areSimpleModelsEqual=function(t,i){return t.filter===i.filter&&t.filterTo===i.filterTo&&t.type===i.type},i.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},i.prototype.getValues=function(t){var n=this,e=[];return this.forEachInput((function(r,o,s,u){if(t===s&&o<u){var h=K(r.getValue()),c=(n.textFilterParams.trimInput?i.trimInput(h):h)||null;e.push(c),r.setValue(c,!0)}})),e},i.prototype.getDefaultFilterOptions=function(){return i.DEFAULT_FILTER_OPTIONS},i.prototype.createValueTemplate=function(t){var i=t===ro.One?"1":"2";return'\n <div class="ag-filter-body" ref="eCondition'+i+'Body" role="presentation">\n <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'"></ag-input-text-field>\n <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'"></ag-input-text-field>\n </div>'},i.prototype.mapValuesFromModel=function(t){var i=t||{};return[i.filter||null,i.filterTo||null].slice(0,this.getNumberOfInputs(i.type))},i.prototype.evaluateNullValue=function(t){return!!t&&[zo.NOT_EQUAL,zo.NOT_CONTAINS,zo.BLANK].indexOf(t)>=0},i.prototype.evaluateNonNullValue=function(t,i,n,e){var r=this,o=t.map((function(t){return r.formatter(t)}))||[],s=this.formatter(i),u=this.textFilterParams,h=u.api,c=u.colDef,a=u.column,l=u.columnApi,f=u.context,d=u.textFormatter;if(n.type===zo.BLANK)return this.isBlank(i);if(n.type===zo.NOT_BLANK)return!this.isBlank(i);var v={api:h,colDef:c,column:a,columnApi:l,context:f,node:e.node,data:e.data,filterOption:n.type,value:s,textFormatter:d};return o.some((function(t){return r.matcher(es(es({},v),{filterText:t}))}))},i.DEFAULT_FILTER_OPTIONS=[zo.CONTAINS,zo.NOT_CONTAINS,zo.EQUALS,zo.NOT_EQUAL,zo.STARTS_WITH,zo.ENDS_WITH,zo.BLANK,zo.NOT_BLANK],i.DEFAULT_FORMATTER=function(t){return t},i.DEFAULT_LOWERCASE_FORMATTER=function(t){return null==t?null:t.toString().toLowerCase()},i.DEFAULT_MATCHER=function(t){var n=t.value,e=t.filterText;if(null==e)return!1;switch(t.filterOption){case i.CONTAINS:return n.indexOf(e)>=0;case i.NOT_CONTAINS:return n.indexOf(e)<0;case i.EQUALS:return n===e;case i.NOT_EQUAL:return n!=e;case i.STARTS_WITH:return 0===n.indexOf(e);case i.ENDS_WITH:var r=n.lastIndexOf(e);return r>=0&&r===n.length-e.length;default:return!1}},rs([no("eValue-index0-1")],i.prototype,"eValueFrom1",void 0),rs([no("eValue-index1-1")],i.prototype,"eValueTo1",void 0),rs([no("eValue-index0-2")],i.prototype,"eValueFrom2",void 0),rs([no("eValue-index1-2")],i.prototype,"eValueTo2",void 0),i}(zo),ss=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),us=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hs=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ss(i,t),i.prototype.postConstruct=function(){this.resetTemplate()},i.prototype.resetTemplate=function(t){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n </div>\n ',t)},i.prototype.getDefaultDebounceMs=function(){return 500},i.prototype.onParentModelChanged=function(t,i){this.isEventFromFloatingFilter(i)||(this.setLastTypeFromModel(t),this.eFloatingFilterInput.setValue(this.getTextFromModel(t)),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)))},i.prototype.init=function(i){t.prototype.init.call(this,i),this.params=i,this.applyActive=wo.isUseApplyButton(this.params.filterParams);var n=this.params.filterParams.allowedCharPattern;if(null!=n&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:n}}),!this.isReadOnly()){var e=wo.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=Ot(this.syncUpWithParentFilter.bind(this),e),o=this.eFloatingFilterInput.getGui();this.addManagedListener(o,"input",r),this.addManagedListener(o,"keypress",r),this.addManagedListener(o,"keydown",r)}var s=i.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var u=this.columnModel.getDisplayNameForColumn(i.column,"header",!0),h=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(u+" "+h("ariaFilterInput","Filter Input"))},i.prototype.syncUpWithParentFilter=function(t){var i=this;if(!this.applyActive||t.key===xr.ENTER){var n=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(n=os.trimInput(n),this.eFloatingFilterInput.setValue(n,!0)),this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(i.getLastType()||null,n||null)}))}},i.prototype.conditionToString=function(t,i){return t.type==zo.IN_RANGE||2===(i||{}).numberOfInputs?t.filter+"-"+t.filterTo:null!=t.filter?""+t.filter:""+t.type},i.prototype.setEditable=function(t){this.eFloatingFilterInput.setDisabled(!t)},us([Dt("columnModel")],i.prototype,"columnModel",void 0),us([no("eFloatingFilterInput")],i.prototype,"eFloatingFilterInput",void 0),us([Ft],i.prototype,"postConstruct",null),i}($o),cs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),as=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return cs(i,t),i.prototype.getDefaultFilterOptions=function(){return is.DEFAULT_FILTER_OPTIONS},i}(hs),ls=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fs=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ls(i,t),i.prototype.getDefaultFilterOptions=function(){return os.DEFAULT_FILTER_OPTIONS},i}(hs),ds=function(){function t(t,i){var n=this;void 0===i&&(i=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Wt,this.eElement=t,this.preventMouseClick=i;var e=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),o=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",e,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",o,{passive:!1}),this.destroyFuncs.push((function(){n.eElement.removeEventListener("touchstart",e,{passive:!0}),n.eElement.removeEventListener("touchmove",r,{passive:!0}),n.eElement.removeEventListener("touchend",o,{passive:!1})}))}return t.prototype.getActiveTouch=function(t){for(var i=0;i<t.length;i++)if(t[i].identifier===this.touchStart.identifier)return t[i];return null},t.prototype.addEventListener=function(t,i){this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService.removeEventListener(t,i)},t.prototype.onTouchStart=function(i){var n=this;if(!this.touching){this.touchStart=i.touches[0],this.touching=!0,this.moved=!1;var e=this.touchStart;window.setTimeout((function(){n.touching&&n.touchStart===e&&!n.moved&&(n.moved=!0,n.eventService.dispatchEvent({type:t.EVENT_LONG_TAP,touchStart:n.touchStart,touchEvent:i}))}),500)}},t.prototype.onTouchMove=function(t){if(this.touching){var i=this.getActiveTouch(t.touches);i&&!Er(i,this.touchStart,4)&&(this.moved=!0)}},t.prototype.onTouchEnd=function(i){this.touching&&(this.moved||(this.eventService.dispatchEvent({type:t.EVENT_TAP,touchStart:this.touchStart}),this.checkForDoubleTap()),this.preventMouseClick&&i.cancelable&&i.preventDefault(),this.touching=!1)},t.prototype.checkForDoubleTap=function(){var i=(new Date).getTime();this.lastTapTime&&this.lastTapTime>0&&i-this.lastTapTime>t.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:t.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=i},t.prototype.destroy=function(){this.destroyFuncs.forEach((function(t){return t()}))},t.EVENT_TAP="tap",t.EVENT_DOUBLE_TAP="doubleTap",t.EVENT_LONG_TAP="longTap",t.DOUBLE_TAP_MILLIS=500,t}(),vs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ps=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},gs=function(t){function i(n){var e=t.call(this)||this;return n||e.setTemplate(i.TEMPLATE),e}return vs(i,t),i.prototype.attachCustomElements=function(t,i,n,e,r){this.eSortOrder=t,this.eSortAsc=i,this.eSortDesc=n,this.eSortMixed=e,this.eSortNone=r},i.prototype.setupSort=function(t,i){var n=this;void 0===i&&(i=!1),this.column=t,this.suppressOrder=i,this.setupMultiSortIndicator(),this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,t),this.addInIcon("sortDescending",this.eSortDesc,t),this.addInIcon("sortUnSort",this.eSortNone,t),this.addManagedListener(this.eventService,xi.EVENT_SORT_CHANGED,(function(){return n.onSortChanged()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return n.onSortChanged()})),this.onSortChanged())},i.prototype.addInIcon=function(t,i,n){if(null!=i){var e=_r(t,this.gridOptionsWrapper,n);e&&i.appendChild(e)}},i.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},i.prototype.updateIcons=function(){var t=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!("asc"===t)),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!("desc"===t)),this.eSortNone){var i=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",i||!(null==t))}},i.prototype.setupMultiSortIndicator=function(){var t=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var i=this.column.getColDef().showRowGroup;this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&i&&(this.addManagedListener(this.eventService,xi.EVENT_SORT_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},i.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var t="mixed"===this.sortController.getDisplaySortForColumn(this.column);this.eSortMixed.classList.toggle("ag-hidden",!t)}},i.prototype.updateSortOrder=function(){var t,i=this;if(this.eSortOrder){var n=this.sortController.getColumnsWithSortingOrdered(),e=null!=(t=this.sortController.getDisplaySortIndexForColumn(this.column))?t:-1,r=n.some((function(t){var n;return null!=(n=i.sortController.getDisplaySortIndexForColumn(t))&&n}));ue(this.eSortOrder,e>=0&&r),e>=0?this.eSortOrder.innerHTML=(e+1).toString():we(this.eSortOrder)}},i.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>',ps([no("eSortOrder")],i.prototype,"eSortOrder",void 0),ps([no("eSortAsc")],i.prototype,"eSortAsc",void 0),ps([no("eSortDesc")],i.prototype,"eSortDesc",void 0),ps([no("eSortMixed")],i.prototype,"eSortMixed",void 0),ps([no("eSortNone")],i.prototype,"eSortNone",void 0),ps([Dt("columnModel")],i.prototype,"columnModel",void 0),ps([Dt("sortController")],i.prototype,"sortController",void 0),i}(io),ms=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ws=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.lastMovingChanged=0,i}return ms(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.refresh=function(t){return this.params=t,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(t),!0)},i.prototype.workOutTemplate=function(){var t=Yt(this.params.template,i.TEMPLATE);return t&&t.trim?t.trim():t},i.prototype.init=function(t){this.params=t,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(t.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(t)},i.prototype.setDisplayName=function(t){if(this.currentDisplayName!=t.displayName){this.currentDisplayName=t.displayName;var i=Ei(this.currentDisplayName);this.eText&&(this.eText.innerHTML=i)}},i.prototype.setupIcons=function(t){this.addInIcon("menu",this.eMenu,t),this.addInIcon("filter",this.eFilter,t)},i.prototype.addInIcon=function(t,i,n){if(null!=i){var e=_r(t,this.gridOptionsWrapper,n);e&&i.appendChild(e)}},i.prototype.setupTap=function(){var t=this,i=this.gridOptionsWrapper;if(!i.isSuppressTouch()){var n=new ds(this.getGui(),!0),e=i.isSuppressMenuHide(),r=e&&$(this.eMenu),o=r?new ds(this.eMenu,!0):n;this.params.enableMenu&&this.addManagedListener(o,ds[r?"EVENT_TAP":"EVENT_LONG_TAP"],(function(n){i.getApi().showColumnMenuAfterMouseClick(t.params.column,n.touchStart)})),this.params.enableSorting&&this.addManagedListener(n,ds.EVENT_TAP,(function(i){e&&t.eMenu.contains(i.touchStart.target)||t.sortController.progressSort(t.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return n.destroy()})),r&&this.addDestroyFunc((function(){return o.destroy()}))}},i.prototype.workOutShowMenu=function(){var t=!this.gridOptionsWrapper.isSuppressMenuHide(),i=vn()&&t;return this.params.enableMenu&&!i},i.prototype.setMenu=function(){var t=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var i=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return t.showMenu(t.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",i)}else ye(this.eMenu)},i.prototype.showMenu=function(t){t||(t=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,t,"columnMenu")},i.prototype.workOutSort=function(){return this.params.enableSorting},i.prototype.setupSort=function(){var t=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new gs(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var i=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,qt.EVENT_MOVING_CHANGED,(function(){t.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(n){var e=t.params.column.isMoving(),r=(new Date).getTime();e||r-t.lastMovingChanged<50||t.params.progressSort(i?n.ctrlKey||n.metaKey:n.shiftKey)}));var n=function(){var i;if(t.addOrRemoveCssClass("ag-header-cell-sorted-asc",t.params.column.isSortAscending()),t.addOrRemoveCssClass("ag-header-cell-sorted-desc",t.params.column.isSortDescending()),t.addOrRemoveCssClass("ag-header-cell-sorted-none",t.params.column.isSortNone()),t.params.column.getColDef().showRowGroup){var n=null===(i=t.columnModel.getSourceColumnsForGroupColumn(t.params.column))||void 0===i?void 0:i.every((function(i){return t.params.column.getSort()==i.getSort()}));t.addOrRemoveCssClass("ag-header-cell-sorted-mixed",!n)}};this.addManagedListener(this.eventService,xi.EVENT_SORT_CHANGED,n),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,n)}},i.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,qt.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},i.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!t)},i.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 <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>',bs([Dt("sortController")],i.prototype,"sortController",void 0),bs([Dt("menuFactory")],i.prototype,"menuFactory",void 0),bs([Dt("columnModel")],i.prototype,"columnModel",void 0),bs([no("eFilter")],i.prototype,"eFilter",void 0),bs([no("eSortIndicator")],i.prototype,"eSortIndicator",void 0),bs([no("eMenu")],i.prototype,"eMenu",void 0),bs([no("eLabel")],i.prototype,"eLabel",void 0),bs([no("eText")],i.prototype,"eText",void 0),bs([no("eSortOrder")],i.prototype,"eSortOrder",void 0),bs([no("eSortAsc")],i.prototype,"eSortAsc",void 0),bs([no("eSortDesc")],i.prototype,"eSortDesc",void 0),bs([no("eSortMixed")],i.prototype,"eSortMixed",void 0),bs([no("eSortNone")],i.prototype,"eSortNone",void 0),i}(io),ys=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ss=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return ys(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(t){this.params=t,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},i.prototype.checkWarnings=function(){this.params.template&&gt((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")},i.prototype.setupExpandIcons=function(){var t=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var i=function(i){if(!vi(i)){var n=!t.params.columnGroup.isExpanded();t.columnModel.setColumnGroupOpened(t.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,i),this.addTouchAndClickListeners(this.eOpenIcon,i);var n=function(t){di(t)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",i),this.updateIconVisibility();var e=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(e,hi.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(e,hi.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},i.prototype.addTouchAndClickListeners=function(t,i){var n=new ds(t,!0);this.addManagedListener(n,ds.EVENT_TAP,i),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(t,"click",i)},i.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var t=this.params.columnGroup.isExpanded();ue(this.eOpenIcon,t),ue(this.eCloseIcon,!t)}else ue(this.eOpenIcon,!1),ue(this.eCloseIcon,!1)},i.prototype.addInIcon=function(t,i){var n=_r(t,this.gridOptionsWrapper,null);n&&this.getRefElement(i).appendChild(n)},i.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return ue(this.eOpenIcon,!1),void ue(this.eCloseIcon,!1)},i.prototype.setupLabel=function(){var t=this.params.displayName;if($(t)){var i=Ei(t);this.getRefElement("agLabel").innerHTML=i}},i.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>',Cs([Dt("columnModel")],i.prototype,"columnModel",void 0),Cs([no("agOpened")],i.prototype,"eOpenIcon",void 0),Cs([no("agClosed")],i.prototype,"eCloseIcon",void 0),i}(io),Rs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Os=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Rs(i,t),i.prototype.isPopup=function(){return!0},i.prototype.setParentComponent=function(i){i.addCssClass("ag-has-popup"),t.prototype.setParentComponent.call(this,i)},i.prototype.destroy=function(){var i=this.parentComponent;i&&i.isAlive()&&i.getGui().classList.remove("ag-has-popup"),t.prototype.destroy.call(this)},i}(io),As=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),js=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return As(i,t),i.prototype.init=function(t){this.params=t,this.focusAfterAttached=t.cellStartedEdit,this.eTextArea.setMaxLength(t.maxLength||200).setCols(t.cols||60).setRows(t.rows||10),$(t.value)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},i.prototype.onKeyDown=function(t){var i=t.key;(i===xr.LEFT||i===xr.UP||i===xr.RIGHT||i===xr.DOWN||t.shiftKey&&i===xr.ENTER)&&t.stopPropagation()},i.prototype.afterGuiAttached=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},i.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},i.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([no("eTextArea")],i.prototype,"eTextArea",void 0),i}(Os),_s=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Gs=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},xs=function(t){function i(){var i=t.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return i.startedByEnter=!1,i}return _s(i,t),i.prototype.init=function(t){var i=this;if(this.focusAfterAttached=t.cellStartedEdit,q(t.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=t.eventKey&&t.eventKey===xr.ENTER;var n=!1;t.values.forEach((function(e){var r={value:e},o=i.valueFormatterService.formatValue(t.column,null,e);r.text=null!=o?o:e,i.eSelect.addOption(r),n=n||t.value===e})),n?this.eSelect.setValue(t.value,!0):t.values.length&&this.eSelect.setValue(t.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return t.stopEditing()}))}},i.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},i.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},i.prototype.getValue=function(){return this.eSelect.getValue()},i.prototype.isPopup=function(){return!1},Gs([Dt("valueFormatterService")],i.prototype,"valueFormatterService",void 0),Gs([no("eSelect")],i.prototype,"eSelect",void 0),i}(Os),Ms=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fs=function(t){function i(){var i=t.call(this)||this;return gt((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),i}return Ms(i,t),i.prototype.isPopup=function(){return!0},i}(xs),ks=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ps=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return ks(i,t),i.prototype.init=function(t){this.params=t;var i,n=this.eInput;t.cellStartedEdit?(this.focusAfterAttached=!0,t.eventKey===xr.BACKSPACE||t.eventKey===xr.DELETE?i="":t.charPress?i=t.charPress:(i=this.getStartValue(t),t.eventKey!==xr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,i=this.getStartValue(t)),null!=i&&n.setValue(i,!0),null!=t.maxLength&&n.setMaxLength(t.maxLength),this.addManagedListener(n.getGui(),"keydown",(function(t){var i=t.key;i!==xr.PAGE_UP&&i!==xr.PAGE_DOWN||t.preventDefault()}))},i.prototype.afterGuiAttached=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached){an()||i.getFocusableElement().focus();var n=i.getInputElement();if(this.highlightAllOnFocus)n.select();else{var e=i.getValue(),r=$(e)&&e.length||0;r&&n.setSelectionRange(r,r)}}},i.prototype.focusIn=function(){var t=this.eInput,i=t.getFocusableElement(),n=t.getInputElement();i.focus(),n.select()},i.prototype.getValue=function(){return this.params.parseValue(this.eInput.getValue())},i.prototype.getStartValue=function(t){return t.useFormatter||t.column.getColDef().refData?t.formatValue(t.value):t.value},i.prototype.isPopup=function(){return!1},i.TEMPLATE='<div class="ag-cell-edit-wrapper">\n <ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>\n </div>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([no("eInput")],i.prototype,"eInput",void 0),i}(Os),Ds=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Is=function(t){function i(){var i=t.call(this)||this;return gt((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),i}return Ds(i,t),i.prototype.isPopup=function(){return!0},i}(Ps),Es=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ts=function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.refreshCount=0,n}return Es(i,t),i.prototype.init=function(t){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(t)},i.prototype.showDelta=function(t,i){var n=Math.abs(i),e=t.formatValue(n),r=$(e)?e:n,o=i>=0;this.eDelta.innerHTML=o?"↑"+r:"↓"+r,this.eDelta.classList.toggle("ag-value-change-delta-up",o),this.eDelta.classList.toggle("ag-value-change-delta-down",!o)},i.prototype.setTimerToRemoveDelta=function(){var t=this;this.refreshCount++;var i=this.refreshCount;window.setTimeout((function(){i===t.refreshCount&&t.hideDeltaValue()}),2e3)},i.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),we(this.eDelta)},i.prototype.refresh=function(t){var i=t.value;return i!==this.lastValue&&($(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:$(t.value)?this.eValue.innerHTML=i:we(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&("number"==typeof i&&"number"==typeof this.lastValue&&this.showDelta(t,i-this.lastValue),this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=i,!0))},i.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Dt("filterManager")],i.prototype,"filterManager",void 0),i}(io),zs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ns=function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.refreshCount=0,n.eCurrent=n.queryForHtmlElement(".ag-value-slide-current"),n}return zs(i,t),i.prototype.init=function(t){this.refresh(t)},i.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=Se('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){i===t.refreshCount&&t.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){i===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},i.prototype.refresh=function(t){var i=t.value;return q(i)&&(i=""),i!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=i,$(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:$(t.value)?this.eCurrent.innerHTML=i:we(this.eCurrent),!0)},i.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Dt("filterManager")],i.prototype,"filterManager",void 0),i}(io);
221
+ /**
222
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
223
+ * @version v28.2.1
224
+ * @link https://www.ag-grid.com/
225
+ * @license MIT
226
+ */!function(t){t[t.Above=0]="Above",t[t.Below=1]="Below"}(To||(To={}));var Ls,Bs,Hs,Ws=function(){function t(i){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=t.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=i}return t.prototype.setData=function(t){this.setDataCommon(t,!1)},t.prototype.updateData=function(t){this.setDataCommon(t,!0)},t.prototype.setDataCommon=function(t,i){var n=this.data;this.data=t,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var e=this.createDataChangedEvent(t,n,i);this.dispatchLocalEvent(e)},t.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},t.prototype.createDataChangedEvent=function(i,n,e){return{type:t.EVENT_DATA_CHANGED,node:this,oldData:n,newData:i,update:e}},t.prototype.createLocalRowEvent=function(t){return{type:t,node:this}},t.prototype.getRowIndexString=function(){return this.rowPinned===Vt.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===Vt.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},t.prototype.createDaemonNode=function(){var i=new t(this.beans);return i.id=this.id,i.data=this.data,i.daemon=!0,i.selected=this.selected,i.level=this.level,i},t.prototype.setDataAndId=function(t,i){var n=$(this.id)?this.createDaemonNode():null,e=this.data;this.data=t,this.updateDataOnDetailNode(),this.setId(i),this.beans.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var r=this.createDataChangedEvent(t,e,!1);this.dispatchLocalEvent(r)},t.prototype.checkRowSelectable=function(){var t=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!t||t(this))},t.prototype.setRowSelectable=function(i){if(this.selectable!==i&&(this.selectable=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsWrapper.isGroupSelectsChildren())){var n=this.calculateSelectedFromChildren();this.setSelected(null!=n&&n)}},t.prototype.setId=function(i){var n=this.beans.gridOptionsWrapper.getRowIdFunc();if(n)if(this.data){var e=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:e.length>0?e:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(t.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+t.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=i},t.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var i=[],n=this;for(t&&(n=n.parent);n&&n.level>=0;)i.push(n.key),n=n.parent;return i.reverse(),i},t.prototype.isPixelInRange=function(t){return!(!$(this.rowTop)||!$(this.rowHeight))&&t>=this.rowTop&&t<this.rowTop+this.rowHeight},t.prototype.setFirstChild=function(i){this.firstChild!==i&&(this.firstChild=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_FIRST_CHILD_CHANGED)))},t.prototype.setLastChild=function(i){this.lastChild!==i&&(this.lastChild=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_LAST_CHILD_CHANGED)))},t.prototype.setChildIndex=function(i){this.childIndex!==i&&(this.childIndex=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_CHILD_INDEX_CHANGED)))},t.prototype.setRowTop=function(i){this.oldRowTop=this.rowTop,this.rowTop!==i&&(this.rowTop=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_TOP_CHANGED)),this.setDisplayed(null!==i))},t.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},t.prototype.setDisplayed=function(i){this.displayed!==i&&(this.displayed=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DISPLAYED_CHANGED)))},t.prototype.setDragging=function(i){this.dragging!==i&&(this.dragging=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DRAGGING_CHANGED)))},t.prototype.setHighlighted=function(i){i!==this.highlighted&&(this.highlighted=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HIGHLIGHT_CHANGED)))},t.prototype.setAllChildrenCount=function(i){this.allChildrenCount!==i&&(this.allChildrenCount=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},t.prototype.setMaster=function(i){this.master!==i&&(this.master&&!i&&(this.expanded=!1),this.master=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_MASTER_CHANGED)))},t.prototype.setGroup=function(i){this.group!==i&&(this.group&&!i&&(this.expanded=!1),this.group=i,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_GROUP_CHANGED)))},t.prototype.setRowHeight=function(i,n){void 0===n&&(n=!1),this.rowHeight=i,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HEIGHT_CHANGED))},t.prototype.setRowAutoHeight=function(t,i){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[i.getId()]=t,null!=t&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=Ot(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},t.prototype.checkAutoHeights=function(){var t=!1,i=!0,n=0,e=this.__autoHeights;if(null!=e&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(r){var o=e[r.getId()];null!=o?(i=!1,o>n&&(n=o)):t=!0})),!t&&((i||n<10)&&(n=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),n!=this.rowHeight))){this.setRowHeight(n);var r=this.beans.rowModel;r.onRowHeightChangedDebounced&&r.onRowHeightChangedDebounced()}},t.prototype.setRowIndex=function(i){this.rowIndex!==i&&(this.rowIndex=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ROW_INDEX_CHANGED)))},t.prototype.setUiLevel=function(i){this.uiLevel!==i&&(this.uiLevel=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_UI_LEVEL_CHANGED)))},t.prototype.setExpanded=function(i,n){if(this.expanded!==i){this.expanded=i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var e=Object.assign({},this.createGlobalRowEvent(xi.EVENT_ROW_GROUP_OPENED),{expanded:i,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(e),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},t.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},t.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},t.prototype.setDataValue=function(t,i,n){var e=this.beans.columnModel.getPrimaryColumn(t),r=this.beans.valueService.getValue(e,this),o=this.beans.valueService.setValue(this,e,i,n);return this.dispatchCellChangedEvent(e,i,r),this.checkRowSelectable(),o},t.prototype.setGroupValue=function(t,i){var n=this.beans.columnModel.getGridColumn(t);q(this.groupData)&&(this.groupData={});var e=n.getColId(),r=this.groupData[e];r!==i&&(this.groupData[e]=i,this.dispatchCellChangedEvent(n,i,r))},t.prototype.setAggData=function(t){var i=this,n=ht([this.aggData,t]),e=this.aggData;this.aggData=t,this.eventService&&n.forEach((function(t){var n=i.beans.columnModel.getGridColumn(t);i.dispatchCellChangedEvent(n,i.aggData?i.aggData[t]:void 0,e?e[t]:void 0)}))},t.prototype.updateHasChildren=function(){var i=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;i!==this.__hasChildren&&(this.__hasChildren=!!i,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HAS_CHILDREN_CHANGED)))},t.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},t.prototype.isEmptyRowGroupNode=function(){return this.group&&Y(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(i,n,e){this.dispatchLocalEvent({type:t.EVENT_CELL_CHANGED,node:this,column:i,newValue:n,oldValue:e})},t.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},t.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},t.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},t.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(i){return i.depthFirstSearch(t)})),t(this)},t.prototype.calculateSelectedFromChildren=function(){var t,i=!1,n=!1,e=!1;if(!(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length))return this.selectable?this.selected:null;for(var r=0;r<this.childrenAfterGroup.length;r++){var o=this.childrenAfterGroup[r],s=o.isSelected();if(!o.selectable){var u=o.calculateSelectedFromChildren();if(null===u)continue;s=u}switch(s){case!0:i=!0;break;case!1:n=!0;break;default:e=!0}}return e||i&&n?void 0:!!i||!n&&(this.selectable?this.selected:null)},t.prototype.setSelectedInitialValue=function(t){this.selected=t},t.prototype.setSelected=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:t,clearSelection:i,suppressFinishActions:n,rangeSelect:!1})},t.prototype.isRowPinned=function(){return this.rowPinned===Vt.PINNED_TOP||this.rowPinned===Vt.PINNED_BOTTOM},t.prototype.setSelectedParams=function(t){var i,n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),e=!0===t.newValue,r=!0===t.clearSelection,o=!0===t.suppressFinishActions,s=!0===t.rangeSelect,u=n&&!0===t.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(t);if(s&&this.beans.selectionService.getLastSelectedNode()){var h=this.beans.selectionService.getLastSelectedNode()!==this,c=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(h&&c){var a=this.doRowRangeSelection(t.newValue);return this.beans.selectionService.setLastSelectedNode(this),a}}var l=0;return u&&this.group||this.selectThisNode(e,t.event)&&l++,n&&(null===(i=this.childrenAfterGroup)||void 0===i?void 0:i.length)&&(l+=this.selectChildNodes(e,u)),o||(e&&(r||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(l+=this.beans.selectionService.clearOtherNodes(this)),l>0&&(this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:xi.EVENT_SELECTION_CHANGED})),e&&this.beans.selectionService.setLastSelectedNode(this)),l},t.prototype.doRowRangeSelection=function(t){var i=this;void 0===t&&(t=!0);var n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),e=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,e),o=0;return r.forEach((function(e){e.group&&n||!1===t&&i===e||e.selectThisNode(t)&&o++})),this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:xi.EVENT_SELECTION_CHANGED}),o},t.prototype.isParentOfNode=function(t){for(var i=this.parent;i;){if(i===t)return!0;i=i.parent}return!1},t.prototype.selectThisNode=function(i,n){if(!this.selectable&&i||this.selected===i)return!1;this.selected=i,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_ROW_SELECTED));var e=Object.assign({},this.createGlobalRowEvent(xi.EVENT_ROW_SELECTED),{event:n||null});return this.beans.eventService.dispatchEvent(e),!0},t.prototype.selectChildNodes=function(t,i){var n=i?this.childrenAfterAggFilter:this.childrenAfterGroup;if(q(n))return 0;for(var e=0,r=0;r<n.length;r++)e+=n[r].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:i});return e},t.prototype.addEventListener=function(t,i){this.eventService||(this.eventService=new Wt),this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService&&(this.eventService.removeEventListener(t,i),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},t.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_ENTER))},t.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_LEAVE))},t.prototype.getFirstChildOfFirstChild=function(t){for(var i=this,n=!0,e=!1,r=null;n&&!e;){var o=i.parent;$(o)&&i.firstChild?o.rowGroupColumn===t&&(e=!0,r=o):n=!1,i=o}return e?r:null},t.prototype.isFullWidthCell=function(){var t=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!t&&t({rowNode:this})},t.prototype.getRoute=function(){if(null!=this.key){for(var t=[],i=this;null!=i.key;)t.push(i.key),i=i.parent;return t.reverse()}},t.ID_PREFIX_ROW_GROUP="row-group-",t.ID_PREFIX_TOP_PINNED="t-",t.ID_PREFIX_BOTTOM_PINNED="b-",t.OBJECT_ID_SEQUENCE=0,t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_DATA_CHANGED="dataChanged",t.EVENT_CELL_CHANGED="cellChanged",t.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",t.EVENT_MASTER_CHANGED="masterChanged",t.EVENT_GROUP_CHANGED="groupChanged",t.EVENT_MOUSE_ENTER="mouseEnter",t.EVENT_MOUSE_LEAVE="mouseLeave",t.EVENT_HEIGHT_CHANGED="heightChanged",t.EVENT_TOP_CHANGED="topChanged",t.EVENT_DISPLAYED_CHANGED="displayedChanged",t.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",t.EVENT_LAST_CHILD_CHANGED="lastChildChanged",t.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",t.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",t.EVENT_SELECTABLE_CHANGED="selectableChanged",t.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",t.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",t.EVENT_DRAGGING_CHANGED="draggingChanged",t}(),Vs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Us=function(){return Us=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Us.apply(this,arguments)},Ks=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$s=function(t){function i(){return t.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return Vs(i,t),i.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},i.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},i.prototype.onDataChanged=function(){this.onSelectionChanged()},i.prototype.onSelectableChanged=function(){this.showOrHideSelect()},i.prototype.onSelectionChanged=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.rowNode.isSelected(),n=void 0===i?t("ariaIndeterminate","indeterminate"):!0===i?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),e=t("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(i,!0),this.eCheckbox.setInputAriaLabel(e+" ("+n+")")},i.prototype.onCheckedClicked=function(t){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:i})},i.prototype.onUncheckedClicked=function(t){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:t.shiftKey,groupSelectsFiltered:i})},i.prototype.init=function(t){var i=this;if(this.rowNode=t.rowNode,this.column=t.column,this.overrides=t.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){di(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){di(t);var n=i.eCheckbox.getValue();void 0===i.eCheckbox.getPreviousValue()||void 0===n?0===i.onUncheckedClicked(t||{})&&i.onCheckedClicked(t):n?i.onCheckedClicked(t):i.onUncheckedClicked(t||{})})),this.addManagedListener(this.rowNode,Ws.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||"function"==typeof this.getIsVisible()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Ws.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Ws.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},i.prototype.showOrHideSelect=function(){var t,i,n,e,r=this.rowNode.selectable,o=this.getIsVisible();if(r)if("function"==typeof o){var s=null===(t=this.overrides)||void 0===t?void 0:t.callbackParams,u=null===(i=this.column)||void 0===i?void 0:i.createColumnFunctionCallbackParams(this.rowNode);r=!!u&&o(Us(Us({},s),u))}else r=null!=o&&o;if(null===(n=this.column)||void 0===n?void 0:n.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!r),this.setVisible(!0),void this.setDisplayed(!0);(null===(e=this.overrides)||void 0===e?void 0:e.removeHidden)?this.setDisplayed(r):this.setVisible(r)},i.prototype.getIsVisible=function(){var t,i;return this.overrides?this.overrides.isVisible:null===(i=null===(t=this.column)||void 0===t?void 0:t.getColDef())||void 0===i?void 0:i.checkboxSelection},Ks([no("eCheckbox")],i.prototype,"eCheckbox",void 0),Ks([Ft],i.prototype,"postConstruct",null),i}(io),qs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ys=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Js=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")};
227
+ /**
228
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
229
+ * @version v28.2.1
230
+ * @link https://www.ag-grid.com/
231
+ * @license MIT
232
+ */!function(t){t[t.ToolPanel=0]="ToolPanel",t[t.HeaderCell=1]="HeaderCell",t[t.RowDrag=2]="RowDrag",t[t.ChartPanel=3]="ChartPanel"}(Ls||(Ls={})),function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"}(Bs||(Bs={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(Hs||(Hs={}));var Zs,Xs=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.dragSourceAndParamsList=[],i.dropTargets=[],i}var n;return qs(i,t),n=i,i.prototype.init=function(){this.ePinnedIcon=jr("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=jr("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=jr("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=jr("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=jr("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=jr("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=jr("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=jr("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=jr("dropNotAllowed",this.gridOptionsWrapper,null)},i.prototype.addDragSource=function(t,i){void 0===i&&(i=!1);var n={eElement:t.eElement,dragStartPixels:t.dragStartPixels,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:t}),this.dragService.addDragSource(n,i)},i.prototype.removeDragSource=function(t){var i=this.dragSourceAndParamsList.find((function(i){return i.dragSource===t}));i&&(this.dragService.removeDragSource(i.params),Qt(this.dragSourceAndParamsList,i))},i.prototype.clearDragSourceParamsList=function(){var t=this;this.dragSourceAndParamsList.forEach((function(i){return t.dragService.removeDragSource(i.params)})),this.dragSourceAndParamsList.length=0},i.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},i.prototype.onDragStart=function(t,i){this.dragging=!0,this.dragSource=t,this.eventLastTime=i,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},i.prototype.onDragStop=function(t){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var i=this.createDropTargetEvent(this.lastDropTarget,t,null,null,!1);this.lastDropTarget.onDragStop(i)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},i.prototype.onDragging=function(t,i){var n,e,r,o,s=this,u=this.getHorizontalDirection(t),h=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var c=this.dropTargets.filter((function(i){return s.isMouseOnDropTarget(t,i)})),a=this.findCurrentDropTarget(t,c);if(a!==this.lastDropTarget)this.leaveLastTargetIfExists(t,u,h,i),null!==this.lastDropTarget&&null===a&&(null===(e=(n=this.dragSource).onGridExit)||void 0===e||e.call(n,this.dragItem)),null===this.lastDropTarget&&null!==a&&(null===(o=(r=this.dragSource).onGridEnter)||void 0===o||o.call(r,this.dragItem)),this.enterDragTargetIfExists(a,t,u,h,i),this.lastDropTarget=a;else if(a&&a.onDragging){var l=this.createDropTargetEvent(a,t,u,h,i);a.onDragging(l)}},i.prototype.getAllContainersFromDropTarget=function(t){var i=t.getSecondaryContainers?t.getSecondaryContainers():null,n=[[t.getContainer()]];return i?n.concat(i):n},i.prototype.allContainersIntersect=function(t,i){var n,e;try{for(var r=Js(i),o=r.next();!o.done;o=r.next()){var s=o.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;if(!(t.clientX>=s.left&&t.clientX<s.right&&t.clientY>=s.top&&t.clientY<s.bottom))return!1}}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(n)throw n.error}}return!0},i.prototype.isMouseOnDropTarget=function(t,i){var n,e,r=this.getAllContainersFromDropTarget(i),o=!1;try{for(var s=Js(r),u=s.next();!u.done;u=s.next())if(this.allContainersIntersect(t,u.value)){o=!0;break}}catch(t){n={error:t}}finally{try{u&&!u.done&&(e=s.return)&&e.call(s)}finally{if(n)throw n.error}}return!(i.targetContainsSource&&!i.getContainer().contains(this.dragSource.eElement))&&o&&i.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},i.prototype.findCurrentDropTarget=function(t,i){var n,e,r,o,s=i.length;if(0===s)return null;if(1===s)return i[0];var u=this.gridOptionsWrapper.getDocument().elementsFromPoint(t.clientX,t.clientY);try{for(var h=Js(u),c=h.next();!c.done;c=h.next()){var a=c.value;try{for(var l=(r=void 0,Js(i)),f=l.next();!f.done;f=l.next()){var d=f.value;if(-1!==ri(this.getAllContainersFromDropTarget(d)).indexOf(a))return d}}catch(t){r={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=h.return)&&e.call(h)}finally{if(n)throw n.error}}return null},i.prototype.enterDragTargetIfExists=function(t,i,n,e,r){if(t){if(t.onDragEnter){var o=this.createDropTargetEvent(t,i,n,e,r);t.onDragEnter(o)}this.setGhostIcon(t.getIconName?t.getIconName():null)}},i.prototype.leaveLastTargetIfExists=function(t,i,n,e){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var r=this.createDropTargetEvent(this.lastDropTarget,t,i,n,e);this.lastDropTarget.onDragLeave(r)}this.setGhostIcon(null)}},i.prototype.addDropTarget=function(t){this.dropTargets.push(t)},i.prototype.removeDropTarget=function(t){this.dropTargets=this.dropTargets.filter((function(i){return i.getContainer()!==t.getContainer()}))},i.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(t){return t.external}))},i.prototype.findExternalZone=function(t){return this.dropTargets.filter((function(t){return t.external})).find((function(i){return i.getContainer()===t.getContainer()}))||null},i.prototype.getHorizontalDirection=function(t){var i=this.eventLastTime&&this.eventLastTime.clientX,n=t.clientX;return i===n?null:i>n?Hs.Left:Hs.Right},i.prototype.getVerticalDirection=function(t){var i=this.eventLastTime&&this.eventLastTime.clientY,n=t.clientY;return i===n?null:i>n?Bs.Up:Bs.Down},i.prototype.createDropTargetEvent=function(t,i,n,e,r){var o=t.getContainer(),s=o.getBoundingClientRect(),u=this;return{event:i,x:i.clientX-s.left,y:i.clientY-s.top,vDirection:e,hDirection:n,dragSource:u.dragSource,fromNudge:r,dragItem:u.dragItem,api:u.gridApi,columnApi:u.columnApi,dropZoneTarget:o}},i.prototype.positionGhost=function(t){var i=this.eGhost;if(i){var n=i.getBoundingClientRect().height,e=Cn()-2,r=Sn()-2,o=t.pageY-n/2,s=t.pageX-10,u=this.gridOptionsWrapper.getDocument(),h=u.defaultView||window,c=h.pageYOffset||u.documentElement.scrollTop,a=h.pageXOffset||u.documentElement.scrollLeft;e>0&&s+i.clientWidth>e+a&&(s=e+a-i.clientWidth),s<0&&(s=0),r>0&&o+i.clientHeight>r+c&&(o=r+c-i.clientHeight),o<0&&(o=0),i.style.left=s+"px",i.style.top=o+"px"}},i.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},i.prototype.createGhost=function(){this.eGhost=Se(n.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var t=this.environment.getTheme().theme;t&&this.eGhost.classList.add(t),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var i=this.eGhost.querySelector(".ag-dnd-ghost-label"),e=this.dragSource.dragItemName;bt(e)&&(e=e()),i.innerHTML=Ei(e)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument(),o=null;try{o=r.fullscreenElement}catch(t){}finally{o||(o=r.querySelector("body"))}this.eGhostParent=o,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},i.prototype.setGhostIcon=function(t,i){void 0===i&&(i=!1),we(this.eGhostIcon);var e=null;switch(t||(t=this.dragSource.defaultIconName||n.ICON_NOT_ALLOWED),t){case n.ICON_PINNED:e=this.ePinnedIcon;break;case n.ICON_MOVE:e=this.eMoveIcon;break;case n.ICON_LEFT:e=this.eLeftIcon;break;case n.ICON_RIGHT:e=this.eRightIcon;break;case n.ICON_GROUP:e=this.eGroupIcon;break;case n.ICON_AGGREGATE:e=this.eAggregateIcon;break;case n.ICON_PIVOT:e=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:e=this.eDropNotAllowedIcon;break;case n.ICON_HIDE:e=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",i),e===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||e&&this.eGhostIcon.appendChild(e)},i.ICON_PINNED="pinned",i.ICON_MOVE="move",i.ICON_LEFT="left",i.ICON_RIGHT="right",i.ICON_GROUP="group",i.ICON_AGGREGATE="aggregate",i.ICON_PIVOT="pivot",i.ICON_NOT_ALLOWED="notAllowed",i.ICON_HIDE="hide",i.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>',Ys([Dt("dragService")],i.prototype,"dragService",void 0),Ys([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),Ys([Dt("environment")],i.prototype,"environment",void 0),Ys([Dt("columnApi")],i.prototype,"columnApi",void 0),Ys([Dt("gridApi")],i.prototype,"gridApi",void 0),Ys([Ft],i.prototype,"init",null),Ys([kt],i.prototype,"clearDragSourceParamsList",null),n=Ys([Pt("dragAndDropService")],i)}(Ai),Qs=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),tu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},iu=function(t){function i(i,n,e,r,o,s){var u=t.call(this)||this;return u.cellValueFn=i,u.rowNode=n,u.column=e,u.customGui=r,u.dragStartPixels=o,u.suppressVisibilityChange=s,u.dragSource=null,u}return Qs(i,t),i.prototype.isCustomGui=function(){return null!=this.customGui},i.prototype.postConstruct=function(){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(_r("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var t=this.beans.gridOptionsWrapper.isRowDragManaged()?new ru(this,this.beans,this.rowNode,this.column):new eu(this,this.beans,this.rowNode,this.column);this.createManagedBean(t,this.beans.context)}},i.prototype.setDragElement=function(t,i){this.setTemplateFromElement(t),this.addDragSource(i)},i.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return[this.rowNode];var t=this.beans.selectionService.getSelectedNodes();return-1!==t.indexOf(this.rowNode)?t:[this.rowNode]},i.prototype.checkCompatibility=function(){var t=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&t&&gt((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},i.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},i.prototype.addDragSource=function(t){var i=this;void 0===t&&(t=4),this.dragSource&&this.removeDragSource();var n=this.gridOptionsWrapper.getRowDragText(this.column),e=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:Ls.RowDrag,eElement:this.getGui(),dragItemName:function(){var t,r=i.getDragItem(),o=(null===(t=r.rowNodes)||void 0===t?void 0:t.length)||1;return n?n(r,o):1===o?i.cellValueFn():o+" "+e("rowDragRows","rows")},getDragItem:function(){return i.getDragItem()},dragStartPixels:t,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},i.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},tu([Dt("beans")],i.prototype,"beans",void 0),tu([Ft],i.prototype,"postConstruct",null),tu([kt],i.prototype,"removeDragSource",null),i}(io),nu=function(t){function i(i,n,e){var r=t.call(this)||this;return r.parent=i,r.rowNode=n,r.column=e,r}return Qs(i,t),i.prototype.setDisplayedOrVisible=function(t){if(t)this.parent.setDisplayed(!1);else{var i=!0,n=!1;this.column&&(i=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=bt(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(i)):(this.parent.setDisplayed(i),this.parent.setVisible(!0))}},i}(Ai),eu=function(t){function i(i,n,e,r){var o=t.call(this,i,e,r)||this;return o.beans=n,o}return Qs(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},i.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},i.prototype.workOutVisibility=function(){var t=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(t)},tu([Ft],i.prototype,"postConstruct",null),i}(nu),ru=function(t){function i(i,n,e,r){var o=t.call(this,i,e,r)||this;return o.beans=n,o}return Qs(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,xi.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,xi.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},i.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},i.prototype.workOutVisibility=function(){var t=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),i=t&&t.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),e=this.beans.dragAndDropService.hasExternalDropZones();this.setDisplayedOrVisible(i&&!e||n)},tu([Ft],i.prototype,"postConstruct",null),i}(nu),ou=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),su=function(){return su=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},su.apply(this,arguments)},uu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hu=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ou(i,t),i.prototype.init=function(t,i,n,e,r,o,s){this.params=s,this.eGui=i,this.eCheckbox=n,this.eExpanded=e,this.eContracted=r,this.comp=t,this.compClass=o;var u=this.isTopLevelFooter(),h=this.isEmbeddedRowMismatch(),c=null==s.value,a=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var l=s.node;l.footer&&(a=(s.colDef&&s.colDef.showRowGroup)!==(l.rowGroupColumn&&l.rowGroupColumn.getColId()))}this.cellIsBlank=!u&&(h||c||a),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.expandListener=null},i.prototype.refreshAriaExpanded=function(){var t=this.params,i=t.node,n=t.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var e=function(){rr(n,!!i.expanded)};this.expandListener=this.addManagedListener(i,Ws.EVENT_EXPANDED_CHANGED,e)||null,e()}else or(n)},i.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var t=this.params.colDef;if(null==t)return!0;if(!0===t.showRowGroup)return!0;var i=this.columnModel.getRowGroupColumns();return!i||0===i.length||i[0].getId()===t.showRowGroup},i.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var t=this.params.pinned===Vt.PINNED_LEFT,i=this.params.pinned===Vt.PINNED_RIGHT,n=!t&&!i;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!i:!n:this.columnModel.isPinningLeft()?!t:!n},i.prototype.findDisplayedGroupNode=function(){var t=this.params.column,i=this.params.node;if(this.showingValueForOpenedParent)for(var n=i.parent;null!=n;){if(n.rowGroupColumn&&t.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}q(this.displayedGroupNode)&&(this.displayedGroupNode=i)},i.prototype.setupShowingValueForOpenedParent=function(){var t=this.params.node,i=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.groupData){if(null!=t.rowGroupColumn){var n=t.rowGroupColumn.getId();if(i.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var e=null!=t.groupData[i.getId()];this.showingValueForOpenedParent=e}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},i.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},i.prototype.addGroupValue=function(){var t=this.adjustParamsWithDetailsFromRelatedColumn(),i=this.getInnerCompDetails(t),n=t.valueFormatted;this.comp.setInnerRenderer(i,null!=n?n:t.value)},i.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var t=this.displayedGroupNode.rowGroupColumn,i=this.params.column;if(!t)return this.params;if(null!=i&&!i.isRowGroupDisplayed(t.getId()))return this.params;var n=this.params,e=this.params,r=this.valueFormatterService.formatValue(t,e.node,e.value);return su(su({},n),{valueFormatted:r})},i.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,i="";if(t){var n=et(this.params);n.value=this.params.value,"function"==typeof t?i=t(n):"string"==typeof t?i=this.expressionService.evaluate(t,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else i="Total "+(null!=this.params.value?this.params.value:"");var e=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(e,i)},i.prototype.getInnerCompDetails=function(t){var i=this;if(t.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,t);var n=this.userComponentFactory.getInnerRendererDetails(t,t),e=function(t){return t&&t.componentClass==i.compClass};if(n&&!e(n))return n;var r=this.displayedGroupNode.rowGroupColumn,o=r?r.getColDef():void 0;if(o){var s=this.userComponentFactory.getCellRendererDetails(o,t);if(s&&!e(s))return s;if(e(s)&&o.cellRendererParams&&o.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(o.cellRendererParams,t)}},i.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Ws.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},i.prototype.updateChildCount=function(){var t=this.displayedGroupNode.allChildrenCount,i=this.isShowRowGroupForThisRow();this.comp.setChildCount(i&&null!=t&&t>=0?"("+t+")":"")},i.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var t=this.displayedGroupNode.rowGroupColumn;if(!t)return!1;var i=this.params.column;return null==i||i.isRowGroupDisplayed(t.getId())},i.prototype.addExpandAndContract=function(){var t=this.params,i=_r("groupExpanded",this.gridOptionsWrapper,null),n=_r("groupContracted",this.gridOptionsWrapper,null);i&&this.eExpanded.appendChild(i),n&&this.eContracted.appendChild(n);var e=t.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(e,"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(e,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,Ws.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Ws.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ws.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ws.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Ws.EVENT_HAS_CHILDREN_CHANGED,r)},i.prototype.onExpandClicked=function(t){vi(t)||(di(t),this.onExpandOrContract(t))},i.prototype.onExpandOrContract=function(t){var i=this.displayedGroupNode,n=!i.expanded;!n&&i.sticky&&this.scrollToStickyNode(i),i.setExpanded(n,t)},i.prototype.scrollToStickyNode=function(t){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(t.rowTop-t.stickyRowTop)},i.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var t=this.displayedGroupNode,i=this.columnModel.isPivotMode()&&t.leafGroup;if(!t.isExpandable()||t.footer||i)return!1;var n=this.params.column;return null==n||"string"!=typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},i.prototype.showExpandAndContractIcons=function(){var t=this,i=t.displayedGroupNode,n=t.columnModel,e=t.params.node,r=this.isExpandable();if(r){var o=!!this.showingValueForOpenedParent||e.expanded;this.comp.setExpandedDisplayed(o),this.comp.setContractedDisplayed(!o)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=n.isPivotMode(),u=s&&i.leafGroup,h=r&&!u,c=e.footer&&-1===e.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",h),this.comp.addOrRemoveCssClass("ag-row-group",h),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",u):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!h)},i.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},i.prototype.setupIndent=function(){this.params.suppressPadding||(this.addManagedListener(this.params.node,Ws.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},i.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var t=this.params,i=t.node,n=!!t.colDef,e=this.gridOptionsWrapper.isTreeData(),r=!n||e||!0===t.colDef.showRowGroup?i.uiLevel:0;t.padding>=0&&gt((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},i.prototype.addFullWidthRowDraggerIfNeeded=function(){var t=this;if(this.params.fullWidth&&this.params.rowDrag){var i=new iu((function(){return t.params.value}),this.params.node);this.createManagedBean(i,this.context),this.eGui.insertAdjacentElement("afterbegin",i.getGui())}},i.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"==typeof t||!0===t},i.prototype.addCheckboxIfNeeded=function(){var t=this,i=this.displayedGroupNode,n=this.isUserWantsSelected()&&!i.footer&&!i.rowPinned&&!i.detail;if(n){var e=new $s;this.getContext().createBean(e),e.init({rowNode:i,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(e.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(e)}))}this.comp.setCheckboxVisible(n)},i.prototype.onKeyDown=function(t){t.key!==xr.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(t)},i.prototype.onCellDblClicked=function(t){vi(t)||bi(this.eExpanded,t)||bi(this.eContracted,t)||this.onExpandOrContract(t)},uu([Dt("expressionService")],i.prototype,"expressionService",void 0),uu([Dt("valueFormatterService")],i.prototype,"valueFormatterService",void 0),uu([Dt("columnModel")],i.prototype,"columnModel",void 0),uu([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),uu([Dt("gridOptions")],i.prototype,"gridOptions",void 0),uu([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),i}(Ai),cu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),au=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},lu=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return cu(i,t),i.prototype.init=function(t){var i=this,n={setInnerRenderer:function(t,n){return i.setRenderDetails(t,n)},setChildCount:function(t){return i.eChildCount.innerHTML=t},addOrRemoveCssClass:function(t,n){return i.addOrRemoveCssClass(t,n)},setContractedDisplayed:function(t){return ue(i.eContracted,t)},setExpandedDisplayed:function(t){return ue(i.eExpanded,t)},setCheckboxVisible:function(t){return i.eCheckbox.classList.toggle("ag-invisible",!t)}},e=this.createManagedBean(new hu),r=!t.colDef,o=this.getGui();e.init(n,o,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),r&&$e(o,"gridcell")},i.prototype.setRenderDetails=function(t,i){var n=this;if(t){var e=t.newAgStackInstance();if(!e)return;e.then((function(t){if(t){var i=function(){return n.context.destroyBean(t)};n.isAlive()?(n.eValue.appendChild(t.getGui()),n.addDestroyFunc(i)):i()}}))}else this.eValue.innerText=i},i.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},i.prototype.refresh=function(){return!1},i.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>',au([no("eExpanded")],i.prototype,"eExpanded",void 0),au([no("eContracted")],i.prototype,"eContracted",void 0),au([no("eCheckbox")],i.prototype,"eCheckbox",void 0),au([no("eValue")],i.prototype,"eValue",void 0),au([no("eChildCount")],i.prototype,"eChildCount",void 0),i}(io),fu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),du=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},vu=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return fu(i,t),i.prototype.init=function(t){t.node.failedLoad?this.setupFailed():this.setupLoading()},i.prototype.setupFailed=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingError","ERR")},i.prototype.setupLoading=function(){var t=_r("groupLoading",this.gridOptionsWrapper,null);t&&this.eLoadingIcon.appendChild(t);var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=i("loadingOoo","Loading")},i.prototype.refresh=function(){return!1},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.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>',du([no("eLoadingIcon")],i.prototype,"eLoadingIcon",void 0),du([no("eLoadingText")],i.prototype,"eLoadingText",void 0),i}(io),pu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),gu=function(t){function i(){return t.call(this)||this}return pu(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(){var t=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():i.DEFAULT_LOADING_OVERLAY_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),e=t.replace("[LOADING...]",n("loadingOoo","Loading..."));this.setTemplate(e)},i.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',i}(io),mu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bu=function(t){function i(){return t.call(this)||this}return mu(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this)},i.prototype.init=function(){var t=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():i.DEFAULT_NO_ROWS_TEMPLATE,n=this.gridOptionsWrapper.getLocaleTextFunc(),e=t.replace("[NO_ROWS_TO_SHOW]",n("noRowsToShow","No Rows To Show"));this.setTemplate(e)},i.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',i}(io),wu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),yu=function(t){function i(){return t.call(this,'<div class="ag-tooltip"></div>')||this}return wu(i,t),i.prototype.init=function(t){var i=t.value;this.getGui().innerHTML=Ei(i)},i}(Os),Cu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Su=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ru=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.agGridDefaults={agDateInput:Xo,agColumnHeader:ws,agColumnGroupHeader:Ss,agSortIndicator:gs,agTextColumnFloatingFilter:fs,agNumberColumnFloatingFilter:as,agDateColumnFloatingFilter:Jo,agReadOnlyFloatingFilter:uo,agAnimateShowChangeCellRenderer:Ts,agAnimateSlideCellRenderer:Ns,agGroupCellRenderer:lu,agGroupRowRenderer:lu,agLoadingCellRenderer:vu,agCellEditor:Ps,agTextCellEditor:Ps,agSelectCellEditor:xs,agPopupTextCellEditor:Is,agPopupSelectCellEditor:Fs,agLargeTextCellEditor:js,agTextColumnFilter:os,agNumberColumnFilter:is,agDateColumnFilter:Uo,agLoadingOverlay:gu,agNoRowsOverlay:bu,agTooltipComponent:yu},i.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},i.jsComps={},i.fwComps={},i}return Cu(i,t),i.prototype.init=function(){var t=this;null!=this.gridOptions.components&&nt(this.gridOptions.components,(function(i,n){return t.registerJsComponent(i,n)})),null!=this.gridOptions.frameworkComponents&&nt(this.gridOptions.frameworkComponents,(function(i,n){return t.registerFwComponent(i,n)}))},i.prototype.registerDefaultComponent=function(t,i){var n=this.translateIfDeprecated(t);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=i},i.prototype.registerJsComponent=function(t,i){var n=this.translateIfDeprecated(t);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=i},i.prototype.registerFwComponent=function(t,i){gt((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated");var n=this.translateIfDeprecated(t);this.fwComps[n]=i},i.prototype.retrieve=function(t){var i=this.translateIfDeprecated(t),n=function(t,i){return{componentFromFramework:i,component:t}},e=this.getFrameworkOverrides().frameworkComponent(i,this.gridOptions.components);if(null!=e)return n(e,!0);var r=this.fwComps[i];if(r)return n(r,!0);var o=this.jsComps[i];if(o)return n(o,this.getFrameworkOverrides().isFrameworkComponent(o));var s=this.agGridDefaults[i];return s?n(s,!1):(Object.keys(this.agGridDefaults).indexOf(i)<0&&console.warn("AG Grid: Looking for component ["+i+"] but it wasn't found."),null)},i.prototype.translateIfDeprecated=function(t){var i=this.agDeprecatedNames[t];return null!=i?(gt((function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+i.propertyHolder+":"+t+" to "+i.propertyHolder+":"+i.newComponentName)}),"DEPRECATE_COMPONENT_"+t),i.newComponentName):t},Su([Dt("gridOptions")],i.prototype,"gridOptions",void 0),Su([Dt("agComponentUtils")],i.prototype,"agComponentUtils",void 0),Su([Ft],i.prototype,"init",null),Su([Pt("userComponentRegistry")],i)}(Ai),Ou={propertyName:"dateComponent",cellRenderer:!1},Au={propertyName:"headerComponent",cellRenderer:!1},ju={propertyName:"headerGroupComponent",cellRenderer:!1},_u={propertyName:"cellRenderer",cellRenderer:!0},Gu={propertyName:"cellEditor",cellRenderer:!1},xu={propertyName:"innerRenderer",cellRenderer:!0},Mu={propertyName:"loadingOverlayComponent",cellRenderer:!1},Fu={propertyName:"noRowsOverlayComponent",cellRenderer:!1},ku={propertyName:"tooltipComponent",cellRenderer:!1},Pu={propertyName:"filter",cellRenderer:!1},Du={propertyName:"floatingFilterComponent",cellRenderer:!1},Iu={propertyName:"toolPanel",cellRenderer:!1},Eu={propertyName:"statusPanel",cellRenderer:!1},Tu={propertyName:"fullWidthCellRenderer",cellRenderer:!0},zu={propertyName:"loadingCellRenderer",cellRenderer:!0},Nu={propertyName:"groupRowRenderer",cellRenderer:!0},Lu={propertyName:"detailCellRenderer",cellRenderer:!0},Bu=function(){function t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}(),Hu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Wu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Vu=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Hu(i,t),i.prototype.getHeaderCompDetails=function(t,i){return this.getCompDetails(t,Au,"agColumnHeader",i)},i.prototype.getHeaderGroupCompDetails=function(t){var i=t.columnGroup.getColGroupDef();return this.getCompDetails(i,ju,"agColumnGroupHeader",t)},i.prototype.getFullWidthCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Tu,null,t,!0)},i.prototype.getFullWidthLoadingCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,zu,"agLoadingCellRenderer",t,!0)},i.prototype.getFullWidthGroupCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Nu,"agGroupRowRenderer",t,!0)},i.prototype.getFullWidthDetailCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,Lu,"agDetailCellRenderer",t,!0)},i.prototype.getInnerRendererDetails=function(t,i){return this.getCompDetails(t,xu,null,i)},i.prototype.getFullWidthGroupRowInnerCellRenderer=function(t,i){return this.getCompDetails(t,xu,null,i)},i.prototype.getCellRendererDetails=function(t,i){return this.getCompDetails(t,_u,null,i)},i.prototype.getCellEditorDetails=function(t,i){return this.getCompDetails(t,Gu,"agCellEditor",i,!0)},i.prototype.getFilterDetails=function(t,i,n){return this.getCompDetails(t,Pu,n,i,!0)},i.prototype.getDateCompDetails=function(t){return this.getCompDetails(this.gridOptions,Ou,"agDateInput",t,!0)},i.prototype.getLoadingOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,Mu,"agLoadingOverlay",t,!0)},i.prototype.getNoRowsOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,Fu,"agNoRowsOverlay",t,!0)},i.prototype.getTooltipCompDetails=function(t){return this.getCompDetails(t.colDef,ku,"agTooltipComponent",t,!0)},i.prototype.getSetFilterCellRendererDetails=function(t,i){return this.getCompDetails(t,_u,null,i)},i.prototype.getFloatingFilterCompDetails=function(t,i,n){return this.getCompDetails(t,Du,n,i)},i.prototype.getToolPanelCompDetails=function(t,i){return this.getCompDetails(t,Iu,null,i,!0)},i.prototype.getStatusPanelCompDetails=function(t,i){return this.getCompDetails(t,Eu,null,i,!0)},i.prototype.getCompDetails=function(t,i,n,e,r){var o=this;void 0===r&&(r=!1);var s=i.propertyName,u=i.cellRenderer,h=this.getCompKeys(t,i,e),c=h.compName,a=h.jsComp,l=h.fwComp,f=h.paramsFromSelector,d=h.popupFromSelector,v=h.popupPositionFromSelector,p=function(t){var i=o.userComponentRegistry.retrieve(t);i&&(a=i.componentFromFramework?void 0:i.component,l=i.componentFromFramework?i.component:void 0)};if(null!=c&&p(c),null==a&&null==l&&null!=n&&p(n),a&&u&&!this.agComponentUtils.doesImplementIComponent(a)&&(a=this.agComponentUtils.adaptFunction(s,a)),a||l){var g=this.mergeParamsWithApplicationProvidedParams(t,i,e,f),m=null==a,b=a||l;return{componentFromFramework:m,componentClass:b,params:g,type:i,popupFromSelector:d,popupPositionFromSelector:v,newAgStackInstance:function(){return o.newAgStackInstance(b,m,g,i)}}}r&&console.error("Could not find component "+c+", did you forget to configure this component?")},i.prototype.getCompKeys=function(t,i,n){var e,r,o,s,u,h,c=this,a=i.propertyName;if(t){var l=t,f=l[a+"Selector"],d=f?f(n):null,v=function(t,i){var n=function(){var t="AG Grid: As of v27, the property "+a+"Framework is deprecated. The property "+a+" can now be used for JavaScript AND Framework Components.";gt((function(){return console.warn(t)}),"UserComponentFactory."+a+"FrameworkDeprecated")};"string"==typeof t?e=t:"string"==typeof i?(n(),e=i):null!=t&&!0!==t?c.getFrameworkOverrides().isFrameworkComponent(t)?o=t:r=t:null!=i&&(n(),o=i)};if(d){if(null!=d.frameworkComponent){var p="AG Grid: As of v27, the return for "+a+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";gt((function(){return console.warn(p)}),"UserComponentFactory."+a+"FrameworkSelectorDeprecated"),v(d.frameworkComponent,void 0)}else v(d.component,void 0);s=d.params,u=d.popup,h=d.popupPosition}else v(l[a],l[a+"Framework"])}return{compName:e,jsComp:r,fwComp:o,paramsFromSelector:s,popupFromSelector:u,popupPositionFromSelector:h}},i.prototype.newAgStackInstance=function(t,i,n,e){var r;if(i){var o=this.componentMetadataProvider.retrieve(e.propertyName);r=this.frameworkComponentWrapper.wrap(t,o.mandatoryMethodList,o.optionalMethodList,e)}else r=new t;var s=this.initComponent(r,n);return null==s?Kr.resolve(r):s.then((function(){return r}))},i.prototype.mergeParamsWithApplicationProvidedParams=function(t,i,n,e){void 0===e&&(e=null);var r={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};at(r,n);var o=t&&t[i.propertyName+"Params"];return"function"==typeof o?at(r,o(n)):"object"==typeof o&&at(r,o),at(r,e),r},i.prototype.initComponent=function(t,i){if(this.context.createBean(t),null!=t.init)return t.init(i)},i.prototype.getDefaultFloatingFilterType=function(t){if(null==t)return null;var i=null,n=this.getCompKeys(t,Pu),e=n.compName,r=n.jsComp,o=n.fwComp;return e?i=Bu.getFloatingFilterType(e):null==r&&null==o&&!0===t.filter&&(i=Ut.isRegistered(Nt.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),i},Wu([Dt("gridOptions")],i.prototype,"gridOptions",void 0),Wu([Dt("agComponentUtils")],i.prototype,"agComponentUtils",void 0),Wu([Dt("componentMetadataProvider")],i.prototype,"componentMetadataProvider",void 0),Wu([Dt("userComponentRegistry")],i.prototype,"userComponentRegistry",void 0),Wu([It("frameworkComponentWrapper")],i.prototype,"frameworkComponentWrapper",void 0),Wu([Pt("userComponentFactory")],i)}(Ai);
233
+ /**
234
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
235
+ * @version v28.2.1
236
+ * @link https://www.ag-grid.com/
237
+ * @license MIT
238
+ */!function(t){t[t.SINGLE_SHEET=0]="SINGLE_SHEET",t[t.MULTI_SHEET=1]="MULTI_SHEET"}(Zs||(Zs={}));
239
+ /**
240
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
241
+ * @version v28.2.1
242
+ * @link https://www.ag-grid.com/
243
+ * @license MIT
244
+ */
245
+ var Uu,Ku=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$u=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},qu=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.dragEndFunctions=[],i.dragSources=[],i}return Ku(i,t),i.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},i.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},i.prototype.removeListener=function(t){var i=t.dragSource.eElement;i.removeEventListener("mousedown",t.mouseDownListener),t.touchEnabled&&i.removeEventListener("touchstart",t.touchStartListener,{passive:!0})},i.prototype.removeDragSource=function(t){var i=this.dragSources.find((function(i){return i.dragSource===t}));i&&(this.removeListener(i),Qt(this.dragSources,i))},i.prototype.isDragging=function(){return this.dragging},i.prototype.addDragSource=function(t,i){var n=this;void 0===i&&(i=!1);var e=this.onMouseDown.bind(this,t);t.eElement.addEventListener("mousedown",e);var r=null,o=this.gridOptionsWrapper.isSuppressTouch();i&&!o&&t.eElement.addEventListener("touchstart",r=function(i){se(i.target)||(i.cancelable&&i.preventDefault(),n.onTouchStart(t,i))},{passive:!1}),this.dragSources.push({dragSource:t,mouseDownListener:e,touchStartListener:r,touchEnabled:i})},i.prototype.onTouchStart=function(t,i){var n=this;this.currentDragParams=t,this.dragging=!1;var e=i.touches[0];this.touchLastTime=e,this.touchStart=e;var r=function(i){return n.onTouchUp(i,t.eElement)},o=i.target,s=[{target:document,type:"touchmove",listener:function(t){t.cancelable&&t.preventDefault()},options:{passive:!1}},{target:o,type:"touchmove",listener:function(i){return n.onTouchMove(i,t.eElement)},options:{passive:!0}},{target:o,type:"touchend",listener:r,options:{passive:!0}},{target:o,type:"touchcancel",listener:r,options:{passive:!0}}];this.addTemporaryEvents(s),0===t.dragStartPixels&&this.onCommonMove(e,this.touchStart,t.eElement)},i.prototype.onMouseDown=function(t,i){var n=this,e=i;if(!(t.skipMouseEvent&&t.skipMouseEvent(i)||e._alreadyProcessedByDragService||(e._alreadyProcessedByDragService=!0,0!==i.button))){this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=i;var r=this.gridOptionsWrapper.getDocument();this.addTemporaryEvents([{target:r,type:"mousemove",listener:function(i){return n.onMouseMove(i,t.eElement)}},{target:r,type:"mouseup",listener:function(i){return n.onMouseUp(i,t.eElement)}},{target:r,type:"contextmenu",listener:function(t){return t.preventDefault()}}]),0===t.dragStartPixels&&this.onMouseMove(i,t.eElement)}},i.prototype.addTemporaryEvents=function(t){t.forEach((function(t){t.target.addEventListener(t.type,t.listener,t.options)})),this.dragEndFunctions.push((function(){t.forEach((function(t){t.target.removeEventListener(t.type,t.listener,t.options)}))}))},i.prototype.isEventNearStartEvent=function(t,i){var n=this.currentDragParams.dragStartPixels;return Er(t,i,$(n)?n:4)},i.prototype.getFirstActiveTouch=function(t){for(var i=0;i<t.length;i++)if(t[i].identifier===this.touchStart.identifier)return t[i];return null},i.prototype.onCommonMove=function(t,i,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(t,i))return;this.dragging=!0,this.eventService.dispatchEvent({type:xi.EVENT_DRAG_STARTED,target:n}),this.currentDragParams.onDragStart(i),this.currentDragParams.onDragging(i)}this.currentDragParams.onDragging(t)},i.prototype.onTouchMove=function(t,i){var n=this.getFirstActiveTouch(t.touches);n&&this.onCommonMove(n,this.touchStart,i)},i.prototype.onMouseMove=function(t,i){(this.gridOptionsWrapper.isEnableCellTextSelect()||an())&&"mousemove"===t.type&&t.cancelable&&this.mouseEventService.isEventFromThisGrid(t)&&!this.isOverFormFieldElement(t)&&t.preventDefault(),this.onCommonMove(t,this.mouseStartEvent,i)},i.prototype.isOverFormFieldElement=function(t){var i,n;return!!(null===(n=null===(i=t.target)||void 0===i?void 0:i.tagName.toLocaleLowerCase())||void 0===n?void 0:n.match("^a$|textarea|input|select|button"))},i.prototype.onTouchUp=function(t,i){var n=this.getFirstActiveTouch(t.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,i)},i.prototype.onMouseUp=function(t,i){this.onUpCommon(t,i)},i.prototype.onUpCommon=function(t,i){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(t),this.eventService.dispatchEvent({type:xi.EVENT_DRAG_STOPPED,target:i})),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(t){return t()})),this.dragEndFunctions.length=0},$u([Dt("loggerFactory")],i.prototype,"loggerFactory",void 0),$u([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),$u([Ft],i.prototype,"init",null),$u([kt],i.prototype,"removeAllListeners",null),$u([Pt("dragService")],i)}(Ai),Yu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ju=function(){return Ju=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Ju.apply(this,arguments)},Zu=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xu=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.allColumnFilters=new Map,i.activeAggregateFilters=[],i.activeColumnFilters=[],i.quickFilter=null,i.quickFilterParts=null,i.processingFilterChange=!1,i}var n;return Yu(i,t),n=i,i.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VALUE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},i.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},i.prototype.setFilterModel=function(t){var i=this,n=[],e=this.getFilterModel();if(t){var r=Nr(Object.keys(t));this.allColumnFilters.forEach((function(e,o){n.push(i.setModelOnFilterWrapper(e.filterPromise,t[o])),r.delete(o)})),r.forEach((function(e){var r=i.columnModel.getPrimaryColumn(e)||i.columnModel.getGridColumn(e);if(r)if(r.isFilterAllowed()){var o=i.getOrCreateFilterWrapper(r,"NO_UI");o?n.push(i.setModelOnFilterWrapper(o.filterPromise,t[e])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+e)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+e);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+e)}))}else this.allColumnFilters.forEach((function(t){n.push(i.setModelOnFilterWrapper(t.filterPromise,null))}));Kr.all(n).then((function(){var t=i.getFilterModel(),n=[];i.allColumnFilters.forEach((function(i,r){Wr.jsonEquals(e?e[r]:null,t?t[r]:null)||n.push(i.column)})),n.length>0&&i.onFilterChanged({columns:n})}))},i.prototype.setModelOnFilterWrapper=function(t,i){return new Kr((function(n){t.then((function(t){"function"!=typeof t.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(t.setModel(i)||Kr.resolve()).then((function(){return n()}))}))}))},i.prototype.getFilterModel=function(){var t={};return this.allColumnFilters.forEach((function(i,n){var e=i.filterPromise.resolveNow(null,(function(t){return t}));if(null==e)return null;if("function"==typeof e.getModel){var r=e.getModel();$(r)&&(t[n]=r)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),t},i.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},i.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},i.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},i.prototype.doAggregateFiltersPass=function(t,i){return this.doColumnFiltersPass(t,i,!0)},i.prototype.updateActiveFilters=function(){var t=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var i=function(t){return!!t&&(t.isFilterActive?t.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},n=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach((function(e){if(e.filterPromise.resolveNow(!1,i)){var r=e.filterPromise.resolveNow(null,(function(t){return t}));!function(i){if(!i.isPrimary())return!0;var e=!t.columnModel.isPivotActive();return!(!i.isValueActive()||!e)&&(!!t.columnModel.isPivotMode()||n)}(e.column)?t.activeColumnFilters.push(r):t.activeAggregateFilters.push(r)}}))},i.prototype.updateFilterFlagInColumns=function(t,i){this.allColumnFilters.forEach((function(n){var e=n.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));n.column.setFilterActive(e,t,i)}))},i.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},i.prototype.doColumnFiltersPass=function(t,i,n){for(var e=n?this.activeAggregateFilters:this.activeColumnFilters,r=n?t.aggData:t.data,o=0;o<e.length;o++){var s=e[o];if(null!=s&&s!==i){if("function"!=typeof s.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!s.doesFilterPass({node:t,data:r}))return!1}}return!0},i.prototype.parseQuickFilter=function(t){return $(t)?this.gridOptionsWrapper.isRowModelDefault()?t.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},i.prototype.setQuickFilter=function(t){if(null==t||"string"==typeof t){var i=this.parseQuickFilter(t);this.quickFilter!==i&&(this.quickFilter=i,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof t)},i.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},i.prototype.callOnFilterChangedOutsideRenderCycle=function(t){var i=this;void 0===t&&(t={});var n=function(){return i.onFilterChanged(t)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},i.prototype.onFilterChanged=function(t){void 0===t&&(t={});var i=t.filterInstance,n=t.additionalEventAttributes,e=t.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent(),this.allColumnFilters.forEach((function(t){t.filterPromise&&t.filterPromise.then((function(t){t&&t!==i&&t.onAnyFilterChanged&&t.onAnyFilterChanged()}))}));var r={type:xi.EVENT_FILTER_CHANGED,columns:e||[]};n&&at(r,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},i.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},i.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},i.prototype.doesRowPassOtherFilters=function(t,i){return this.doesRowPassFilter({rowNode:i,filterInstanceToSkip:t})},i.prototype.doesRowPassQuickFilterNoCache=function(t,i){var n=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(e){var r=n.getQuickFilterTextForColumn(e,t);return $(r)&&r.indexOf(i)>=0}))},i.prototype.doesRowPassQuickFilterCache=function(t,i){return t.quickFilterAggregateText||this.aggregateRowForQuickFilter(t),t.quickFilterAggregateText.indexOf(i)>=0},i.prototype.doesRowPassQuickFilter=function(t){var i=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(e){return n?i.doesRowPassQuickFilterCache(t,e):i.doesRowPassQuickFilterNoCache(t,e)}))},i.prototype.doesRowPassAggregateFilters=function(t){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(t.rowNode,t.filterInstanceToSkip))},i.prototype.doesRowPassFilter=function(t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(t.rowNode)||this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(t.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(t.rowNode,t.filterInstanceToSkip))},i.prototype.getQuickFilterTextForColumn=function(t,i){var n=this.valueService.getValue(t,i,!0),e=t.getColDef();if(e.getQuickFilterText){var r={value:n,node:i,data:i.data,column:t,colDef:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};n=e.getQuickFilterText(r)}return $(n)?n.toString().toUpperCase():null},i.prototype.aggregateRowForQuickFilter=function(t){var i=this,e=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(n){var r=i.getQuickFilterTextForColumn(n,t);$(r)&&e.push(r)})),t.quickFilterAggregateText=e.join(n.QUICK_FILTER_SEPARATOR)},i.prototype.onNewRowsLoaded=function(t){this.allColumnFilters.forEach((function(t){t.filterPromise.then((function(t){t.onNewRowsLoaded&&t.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(t),this.updateActiveFilters()},i.prototype.createValueGetter=function(t){var i=this;return function(n){return i.valueService.getValue(t,n.node,!0)}},i.prototype.getFilterComponent=function(t,i,n){var e;if(void 0===n&&(n=!0),n)return(null===(e=this.getOrCreateFilterWrapper(t,i))||void 0===e?void 0:e.filterPromise)||null;var r=this.cachedFilter(t);return r?r.filterPromise:null},i.prototype.isFilterActive=function(t){var i=this.cachedFilter(t);return!!i&&i.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}))},i.prototype.getOrCreateFilterWrapper=function(t,i){if(!t.isFilterAllowed())return null;var n=this.cachedFilter(t);return n?"NO_UI"!==i&&this.putIntoGui(n,i):(n=this.createFilterWrapper(t,i),this.allColumnFilters.set(t.getColId(),n)),n},i.prototype.cachedFilter=function(t){return this.allColumnFilters.get(t.getColId())},i.prototype.createFilterInstance=function(t){var i,n=this,e=Ut.isRegistered(Nt.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",r=t.getColDef(),o=Ju(Ju({},this.createFilterParams(t,r)),{filterModifiedCallback:function(){n.eventService.dispatchEvent({type:xi.EVENT_FILTER_MODIFIED,column:t,filterInstance:i})},filterChangedCallback:function(e){n.callOnFilterChangedOutsideRenderCycle({filterInstance:i,additionalEventAttributes:e,columns:[t]})},doesRowPassOtherFilter:function(t){return n.doesRowPassOtherFilters(i,t)}}),s=this.userComponentFactory.getFilterDetails(r,o,e);if(!s)return null;var u=s.newAgStackInstance();return u&&u.then((function(t){return i=t})),u},i.prototype.createFilterParams=function(t,i){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:t,colDef:et(i),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(t),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},i.prototype.createFilterWrapper=function(t,i){var n={column:t,filterPromise:null,compiledElement:null,guiPromise:Kr.resolve(null)};return n.filterPromise=this.createFilterInstance(t),n.filterPromise&&this.putIntoGui(n,i),n},i.prototype.putIntoGui=function(t,i){var n=this,e=document.createElement("div");e.className="ag-filter",t.guiPromise=new Kr((function(r){t.filterPromise.then((function(o){var s=o.getGui();$(s)||console.warn("AG Grid: getGui method from filter returned "+s+", it should be a DOM element or an HTML template string."),"string"==typeof s&&(s=Se(s)),e.appendChild(s),r(e),n.eventService.dispatchEvent({type:xi.EVENT_FILTER_OPENED,column:t.column,source:i,eGui:e})}))}))},i.prototype.onColumnsChanged=function(){var t=this,i=[];this.allColumnFilters.forEach((function(n,e){(n.column.isPrimary()?t.columnModel.getPrimaryColumn(e):t.columnModel.getGridColumn(e))||(i.push(n.column),t.disposeFilterWrapper(n,"filterDestroyed"))})),i.length>0&&this.onFilterChanged({columns:i})},i.prototype.destroyFilter=function(t,i){void 0===i&&(i="api");var n=this.allColumnFilters.get(t.getColId());n&&(this.disposeFilterWrapper(n,i),this.onFilterChanged({columns:[t]}))},i.prototype.disposeFilterWrapper=function(t,i){var n=this;t.filterPromise.then((function(e){(e.setModel(null)||Kr.resolve()).then((function(){n.getContext().destroyBean(e),t.column.setFilterActive(!1,i),n.allColumnFilters.delete(t.column.getColId())}))}))},i.prototype.destroy=function(){var i=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach((function(t){return i.disposeFilterWrapper(t,"filterDestroyed")}))},i.QUICK_FILTER_SEPARATOR="\n",Zu([Dt("valueService")],i.prototype,"valueService",void 0),Zu([Dt("columnModel")],i.prototype,"columnModel",void 0),Zu([Dt("rowModel")],i.prototype,"rowModel",void 0),Zu([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),Zu([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),Zu([Ft],i.prototype,"init",null),Zu([kt],i.prototype,"destroy",null),n=Zu([Pt("filterManager")],i)}(Ai),Qu=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),th=function(t){function i(i,n){var e=t.call(this,i)||this;return e.ctrl=n,e}return Qu(i,t),i.prototype.getCtrl=function(){return this.ctrl},i}(io),ih=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},eh=function(t){function i(n){return t.call(this,i.TEMPLATE,n)||this}return ih(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui();this.ctrl.setComp({addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},addOrRemoveBodyCssClass:function(i,n){return t.eFloatingFilterBody.classList.toggle(i,n)},addOrRemoveButtonWrapperCssClass:function(i,n){return t.eButtonWrapper.classList.toggle(i,n)},setCompDetails:function(i){return t.setCompDetails(i)},getFloatingFilterComp:function(){return t.compPromise},setWidth:function(t){return i.style.width=t},setMenuIcon:function(i){return t.eButtonShowMainFilter.appendChild(i)}},i,this.eButtonShowMainFilter,this.eFloatingFilterBody)},i.prototype.setCompDetails=function(t){var i=this;this.compPromise=t.newAgStackInstance(),this.compPromise.then((function(t){return i.afterCompCreated(t)}))},i.prototype.afterCompCreated=function(t){var i=this;t&&(this.addDestroyFunc((function(){return i.context.destroyBean(t)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()))},i.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',nh([no("eFloatingFilterBody")],i.prototype,"eFloatingFilterBody",void 0),nh([no("eButtonWrapper")],i.prototype,"eButtonWrapper",void 0),nh([no("eButtonShowMainFilter")],i.prototype,"eButtonShowMainFilter",void 0),nh([Ft],i.prototype,"postConstruct",null),i}(th),rh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),oh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t.AUTO_HEIGHT="ag-layout-auto-height",t.NORMAL="ag-layout-normal",t.PRINT="ag-layout-print"}(Uu||(Uu={}));var sh,uh=function(t){function i(i){var n=t.call(this)||this;return n.view=i,n}return rh(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},i.prototype.updateLayoutClasses=function(){var t=this.gridOptionsWrapper.getDomLayout(),i={autoHeight:t===Vt.DOM_LAYOUT_AUTO_HEIGHT,normal:t===Vt.DOM_LAYOUT_NORMAL,print:t===Vt.DOM_LAYOUT_PRINT};this.view.updateLayoutClasses(i.autoHeight?Uu.AUTO_HEIGHT:i.print?Uu.PRINT:Uu.NORMAL,i)},oh([Dt("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),oh([Ft],i.prototype,"postConstruct",null),i}(Ai),hh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ch=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ah=function(t){function i(i){var n=t.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=i,n.resetLastHorizontalScrollElementDebounced=Ot(n.resetLastHorizontalScrollElement.bind(n),500),n}return hh(i,t),i.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(i){t.centerRowContainerCtrl=i.centerRowContainerCtrl,t.onDisplayedColumnsWidthChanged(),t.addScrollListener()}))},i.prototype.addScrollListener=function(){var t=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(t.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var i=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?Ot(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i)},i.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},i.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){if(null!=this.centerRowContainerCtrl){void 0===t&&(t=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var i=this.enableRtl?t:-t,n=this.ctrlsService.getTopCenterRowContainerCtrl(),e=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),r=this.ctrlsService.getBottomCenterRowContainerCtrl(),o=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(i),r.setContainerTranslateX(i),n.setContainerTranslateX(i),e.setContainerTranslateX(i);var s=this.centerRowContainerCtrl.getViewportElement();be(this.lastHorizontalScrollElement===s?o.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl)}},i.prototype.isControllingScroll=function(t){return this.lastHorizontalScrollElement?t===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=t,!0)},i.prototype.onFakeHorizontalScroll=function(){var t=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(t)&&this.onBodyHorizontalScroll(t)},i.prototype.onCenterViewportScroll=function(){var t=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(t)&&this.onBodyHorizontalScroll(t)},i.prototype.onBodyHorizontalScroll=function(t){var i=this.centerRowContainerCtrl.getViewportElement();this.shouldBlockScrollUpdate("horizontal",i.scrollLeft,!0)||(this.doHorizontalScroll(Math.round(me(t,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},i.prototype.onVerticalScroll=function(){var t=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",t,!0)||(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},i.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},i.prototype.doHorizontalScroll=function(t){var i=me(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===t&&t===i||(this.scrollLeft=t,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.onHorizontalViewportChanged())},i.prototype.fireScrollEvent=function(t){var i=this,n={type:xi.EVENT_BODY_SCROLL,direction:t,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var t=Object.assign({},n,{type:xi.EVENT_BODY_SCROLL_END});i.eventService.dispatchEvent(t)}),100)},i.prototype.shouldBlockScrollUpdate=function(t,i,n){if(void 0===n&&(n=!1),n&&!vn())return!1;if("vertical"===t){var e=fe(this.eBodyViewport);if(i<0||i+e>this.eBodyViewport.scrollHeight)return!0}if("horizontal"===t){var r=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&ge()){if(i>0)return!0}else if(i<0)return!0;if(Math.abs(i)+r>o)return!0}return!1},i.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},i.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},i.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},i.prototype.executeAnimationFrameScroll=function(){var t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),t},i.prototype.setHorizontalScrollPosition=function(t){var i=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",t)&&(t=this.enableRtl&&ge()?t>0?0:i:Math.min(Math.max(t,0),i)),be(this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl),this.doHorizontalScroll(t)},i.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},i.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},i.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},i.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},i.prototype.scrollHorizontally=function(t){var i=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(i+t),this.centerRowContainerCtrl.getViewportElement().scrollLeft-i},i.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},i.prototype.ensureNodeVisible=function(t,i){void 0===i&&(i=null);for(var n=this.rowModel.getRowCount(),e=-1,r=0;r<n;r++){var o=this.rowModel.getRow(r);if("function"==typeof t){if(o&&t(o)){e=r;break}}else if(t===o||t===o.data){e=r;break}}e>=0&&this.ensureIndexVisible(e,i)},i.prototype.ensureIndexVisible=function(t,i){if(this.gridOptionsWrapper.getDomLayout()!==Vt.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=n)console.warn("invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(t);var e,r=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),o=this.paginationProxy.getRow(t);do{var s=o.rowTop,u=o.rowHeight,h=this.paginationProxy.getPixelOffset(),c=o.rowTop-h,a=c+o.rowHeight,l=this.getVScrollPosition(),f=this.heightScaler.getDivStretchOffset(),d=l.top+f,v=l.bottom+f,p=v-d,g=this.heightScaler.getScrollPositionForPixel(c),m=this.heightScaler.getScrollPositionForPixel(a-p),b=Math.min((g+m)/2,c),w=null;"top"===i?w=g:"bottom"===i?w=m:"middle"===i?w=b:d+r>c?w=g-r:v<a&&(w=m),null!==w&&(this.eBodyViewport.scrollTop=w,this.rowRenderer.redrawAfterScroll()),e=s!==o.rowTop||u!==o.rowHeight}while(e);this.animationFrameService.flushAllFrames()}}},i.prototype.ensureColumnVisible=function(t,i){void 0===i&&(i="auto");var n=this.columnModel.getGridColumn(t);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var e=this.getPositionedHorizontalScroll(n,i);null!==e&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},i.prototype.getPositionedHorizontalScroll=function(t,i){var n=this.isColumnOutsideViewport(t),e=n.columnBeforeStart,r=n.columnAfterEnd,o=this.centerRowContainerCtrl.getCenterWidth()<t.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),u=this.enableRtl,h=(u?e:r)||o,c=u?r:e;"auto"!==i&&(h="start"===i,c="end"===i);var a="middle"===i;if(h||c||a){var l=this.getColumnBounds(t),f=l.colLeft,d=l.colRight;return a?l.colMiddle-s/2:h?u?d:f:u?f-s:d-s}return null},i.prototype.isColumnOutsideViewport=function(t){var i=this.getViewportBounds(),n=i.start,e=i.end,r=this.getColumnBounds(t),o=r.colLeft,s=r.colRight,u=this.enableRtl;return{columnBeforeStart:u?n>s:e<s,columnAfterEnd:u?e<o:n>o}},i.prototype.getColumnBounds=function(t){var i=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),e=t.getActualWidth(),r=t.getLeft(),o=i?-1:1,s=i?n-r:r;return{colLeft:s,colMiddle:s+e/2*o,colRight:s+e*o}},i.prototype.getViewportBounds=function(){var t=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:i,end:t+i,width:t}},ch([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),ch([Dt("animationFrameService")],i.prototype,"animationFrameService",void 0),ch([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),ch([Dt("rowModel")],i.prototype,"rowModel",void 0),ch([Dt("rowContainerHeightService")],i.prototype,"heightScaler",void 0),ch([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),ch([Dt("columnModel")],i.prototype,"columnModel",void 0),ch([Ft],i.prototype,"postConstruct",null),i}(Ai),lh=function(){function t(t){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=t.scrollContainer,this.scrollHorizontally=-1!==t.scrollAxis.indexOf("x"),this.scrollVertically=-1!==t.scrollAxis.indexOf("y"),this.scrollByTick=null!=t.scrollByTick?t.scrollByTick:20,t.onScrollCallback&&(this.onScrollCallback=t.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=t.getVerticalPosition,this.setVerticalPosition=t.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=t.getHorizontalPosition,this.setHorizontalPosition=t.setHorizontalPosition),this.shouldSkipVerticalScroll=t.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=t.shouldSkipHorizontalScroll||function(){return!1}}return t.prototype.check=function(t,i){void 0===i&&(i=!1);var n=i||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var e=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=t.clientX<e.left+r,this.tickRight=t.clientX>e.right-r,this.tickUp=t.clientY<e.top+r&&!n,this.tickDown=t.clientY>e.bottom-r&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},t.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},t.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var i=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(i-t),this.tickDown&&this.setVerticalPosition(i+t)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-t),this.tickRight&&this.setHorizontalPosition(n+t)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}(),fh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),dh=function(){return dh=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},dh.apply(this,arguments)},vh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ph=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},gh=function(t){function i(i){var n=t.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=i,n}return fh(i,t),i.prototype.postConstruct=function(){var t=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var i=function(){t.onSortChanged(),t.onFilterChanged(),t.onRowGroupChanged()};this.addManagedListener(this.eventService,xi.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_MODEL_UPDATED,(function(){i()})),i(),this.ctrlsService.whenReady((function(){var i=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new lh({scrollContainer:i.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return i.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(t){return i.getScrollFeature().setVerticalScrollPosition(t)},onScrollCallback:function(){t.onDragging(t.lastDraggingEvent)}})}))},i.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},i.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},i.prototype.onRowGroupChanged=function(){var t=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!Y(t)},i.prototype.getContainer=function(){return this.eContainer},i.prototype.isInterestedIn=function(t){return t===Ls.RowDrag},i.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?Xs.ICON_NOT_ALLOWED:Xs.ICON_MOVE},i.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},i.prototype.getRowNodes=function(t){var i=this;if(!this.isFromThisGrid(t))return t.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),e=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(ph(arguments[i]));return t}(this.selectionService.getSelectedNodes()).sort((function(t,n){return null==t.rowIndex||null==n.rowIndex?0:i.getRowIndexNumber(t)-i.getRowIndexNumber(n)})),r=t.dragItem.rowNode;return n&&-1!==e.indexOf(r)?(this.isMultiRowDrag=!0,e):(this.isMultiRowDrag=!1,[r])},i.prototype.onDragEnter=function(t){t.dragItem.rowNodes=this.getRowNodes(t),this.dispatchGridEvent(xi.EVENT_ROW_DRAG_ENTER,t),this.getRowNodes(t).forEach((function(t){t.setDragging(!0)})),this.onEnterOrDragging(t)},i.prototype.onDragging=function(t){this.onEnterOrDragging(t)},i.prototype.isFromThisGrid=function(t){return t.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},i.prototype.isDropZoneWithinThisGrid=function(t){return!this.ctrlsService.getGridBodyCtrl().getGui().contains(t.dropZoneTarget)},i.prototype.onEnterOrDragging=function(t){this.dispatchGridEvent(xi.EVENT_ROW_DRAG_MOVE,t),this.lastDraggingEvent=t;var i=this.mouseEventService.getNormalisedPosition(t).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(t,i),this.autoScrollService.check(t.event)},i.prototype.doManagedDrag=function(t,i){var n=this.isFromThisGrid(t),e=this.gridOptionsWrapper.isRowDragManaged(),r=t.dragItem.rowNodes;e&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!n?this.isDropZoneWithinThisGrid(t)||this.clientSideRowModel.highlightRowAtPixel(r[0],i):this.moveRows(r,i))},i.prototype.getRowIndexNumber=function(t){return parseInt(Jt(t.getRowIndexString().split("-")),10)},i.prototype.moveRowAndClearHighlight=function(t){var i=this,n=this.clientSideRowModel.getLastHighlightedRowNode(),e=n&&n.highlighted===To.Below,r=this.mouseEventService.getNormalisedPosition(t).y,o=t.dragItem.rowNodes,s=e?1:0;if(this.isFromThisGrid(t))o.forEach((function(t){t.rowTop<r&&(s-=1)})),this.moveRows(o,r,s);else{var u=this.gridOptionsWrapper.getRowIdFunc(),h=this.clientSideRowModel.getRowIndexAtPixel(r)+1;this.clientSideRowModel.getHighlightPosition(r)===To.Above&&h--,this.clientSideRowModel.updateRowData({add:o.map((function(t){return t.data})).filter((function(t){return!i.clientSideRowModel.getRowNode(u?u({data:t,level:0}):t.id)})),addIndex:h})}this.clearRowHighlight()},i.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},i.prototype.moveRows=function(t,i,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(t,i,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},i.prototype.addRowDropZone=function(t){var i=this;if(t.getContainer())if(this.dragAndDropService.findExternalZone(t))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var n={getContainer:t.getContainer};t.fromGrid?(t.fromGrid=void 0,n=t):(t.onDragEnter&&(n.onDragEnter=function(n){t.onDragEnter(i.draggingToRowDragEvent(xi.EVENT_ROW_DRAG_ENTER,n))}),t.onDragLeave&&(n.onDragLeave=function(n){t.onDragLeave(i.draggingToRowDragEvent(xi.EVENT_ROW_DRAG_LEAVE,n))}),t.onDragging&&(n.onDragging=function(n){t.onDragging(i.draggingToRowDragEvent(xi.EVENT_ROW_DRAG_MOVE,n))}),t.onDragStop&&(n.onDragStop=function(n){t.onDragStop(i.draggingToRowDragEvent(xi.EVENT_ROW_DRAG_END,n))})),this.dragAndDropService.addDropTarget(dh({isInterestedIn:function(t){return t===Ls.RowDrag},getIconName:function(){return Xs.ICON_MOVE},external:!0},n))}else gt((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},i.prototype.getRowDropZone=function(t){var i=this,n=this.getContainer.bind(this),e=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),o=this.onDragging.bind(this),s=this.onDragStop.bind(this);return t?{getContainer:n,onDragEnter:t.onDragEnter?function(n){e(n),t.onDragEnter(i.draggingToRowDragEvent(xi.EVENT_ROW_DRAG_ENTER,n))}:e,onDragLeave:t.onDragLeave?function(n){r(n),t.onDragLeave(i.draggingToRowDragEvent(xi.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:t.onDragging?function(n){o(n),t.onDragging(i.draggingToRowDragEvent(xi.EVENT_ROW_DRAG_MOVE,n))}:o,onDragStop:t.onDragStop?function(n){s(n),t.onDragStop(i.draggingToRowDragEvent(xi.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:e,onDragLeave:r,onDragging:o,onDragStop:s,fromGrid:!0}},i.prototype.draggingToRowDragEvent=function(t,i){var n,e,r=this.mouseEventService.getNormalisedPosition(i).y,o=-1;switch(r>this.paginationProxy.getCurrentPageHeight()||(o=this.rowModel.getRowIndexAtPixel(r),n=this.rowModel.getRow(o)),i.vDirection){case Bs.Down:e="down";break;case Bs.Up:e="up";break;default:e=null}return{type:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:i.event,node:i.dragItem.rowNode,nodes:i.dragItem.rowNodes,overIndex:o,overNode:n,y:r,vDirection:e}},i.prototype.dispatchGridEvent=function(t,i){var n=this.draggingToRowDragEvent(t,i);this.eventService.dispatchEvent(n)},i.prototype.onDragLeave=function(t){this.dispatchGridEvent(xi.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},i.prototype.onDragStop=function(t){this.dispatchGridEvent(xi.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},i.prototype.stopDragging=function(t){this.autoScrollService.ensureCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},vh([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),vh([Dt("rowModel")],i.prototype,"rowModel",void 0),vh([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),vh([Dt("columnModel")],i.prototype,"columnModel",void 0),vh([Dt("focusService")],i.prototype,"focusService",void 0),vh([Dt("sortController")],i.prototype,"sortController",void 0),vh([Dt("filterManager")],i.prototype,"filterManager",void 0),vh([Dt("selectionService")],i.prototype,"selectionService",void 0),vh([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),vh([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),vh([It("rangeService")],i.prototype,"rangeService",void 0),vh([Ft],i.prototype,"postConstruct",null),i}(Ai),mh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
246
+ /**
247
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
248
+ * @version v28.2.1
249
+ * @link https://www.ag-grid.com/
250
+ * @license MIT
251
+ */!function(t){t.ANIMATION_ON="ag-row-animation",t.ANIMATION_OFF="ag-row-no-animation"}(sh||(sh={}));var wh,yh,Ch="ag-selectable",Sh="ag-force-vertical-scroll",Rh="ag-column-moving",Oh=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.stickyTopHeight=0,i}return mh(i,t),i.prototype.getScrollFeature=function(){return this.bodyScrollFeature},i.prototype.getBodyViewportElement=function(){return this.eBodyViewport},i.prototype.setComp=function(t,i,n,e,r,o){this.comp=t,this.eGridBody=i,this.eBodyViewport=n,this.eTop=e,this.eBottom=r,this.eStickyTop=o,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new uh(this.comp)),this.bodyScrollFeature=this.createManagedBean(new ah(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([e,n,r,o]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},i.prototype.getComp=function(){return this.comp},i.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,xi.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},i.prototype.addFocusListeners=function(t){var i=this;t.forEach((function(t){i.addManagedListener(t,"focusin",(function(i){var n=ae(i.target,"ag-root",t);t.classList.toggle("ag-has-focus",!n)})),i.addManagedListener(t,"focusout",(function(i){var n=i.target,e=i.relatedTarget,r=t.contains(e),o=ae(e,"ag-root",t);ae(n,"ag-root",t)||r&&!o||t.classList.remove("ag-has-focus")}))}))},i.prototype.setColumnMovingCss=function(t){this.comp.setColumnMovingCss(t?Rh:null,t)},i.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1),this.comp.setCellSelectableCss(t?Ch:null,t)},i.prototype.onScrollVisibilityChanged=function(){var t=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(t),this.setStickyTopWidth(t)},i.prototype.onGridColumnsChanged=function(){var t=this.columnModel.getAllGridColumns();this.comp.setColumnCount(t?t.length:0)},i.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},i.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var i=function(i){var e=i.relatedTarget;if(null!==gn(e)){var r=n.some((function(t){return t.contains(e)}))&&t.mouseEventService.isElementInThisGrid(e);if(!r){var o=t.popupService;r=o.getActivePopups().some((function(t){return t.contains(e)}))||o.isElementWithinCustomPopup(e)}r||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];n.forEach((function(n){return t.addManagedListener(n,"focusout",i)}))}},i.prototype.updateRowCount=function(){var t=this.headerNavigationService.getHeaderRowCount(),i=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1;this.comp.setRowCount(-1===i?-1:t+i)},i.prototype.registerBodyViewportResizeListener=function(t){this.comp.registerBodyViewportResizeListener(t)},i.prototype.setVerticalScrollPaddingVisible=function(t){this.comp.setPinnedTopBottomOverflowY(t?"scroll":"hidden")},i.prototype.isVerticalScrollShowing=function(){var t=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),i=t?Sh:null,n=this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(i,t),t||n&&Me(this.eBodyViewport)},i.prototype.setupRowAnimationCssClass=function(){var t=this,i=function(){var i=t.gridOptionsWrapper.isAnimateRows()&&!t.rowContainerHeightService.isStretching();t.comp.setRowAnimationCssOnBodyViewport(i?sh.ANIMATION_ON:sh.ANIMATION_OFF,i)};i(),this.addManagedListener(this.eventService,xi.EVENT_HEIGHT_SCALE_CHANGED,i)},i.prototype.getGridBodyElement=function(){return this.eGridBody},i.prototype.addBodyViewportListener=function(){var t=this,i=function(i,n,e){if(i||e){t.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&(i||e).preventDefault();var r=(i||n).target;r!==t.eBodyViewport&&r!==t.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||t.contextMenuFactory&&(i?t.contextMenuFactory.onContextMenu(i,null,null,null,null,t.eGridBody):e&&t.contextMenuFactory.onContextMenu(null,e,null,null,null,t.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",i),this.mockContextMenuForIPad(i),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},i.prototype.mockContextMenuForIPad=function(t){if(vn()){var i=new ds(this.eBodyViewport);this.addManagedListener(i,ds.EVENT_LONG_TAP,(function(i){t(void 0,i.touchStart,i.touchEvent)})),this.addDestroyFunc((function(){return i.destroy()}))}},i.prototype.onBodyViewportWheel=function(t){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&t.preventDefault()},i.prototype.onStickyTopWheel=function(t){t.preventDefault(),t.offsetY&&this.scrollVertically(t.deltaY)},i.prototype.getGui=function(){return this.eGridBody},i.prototype.scrollVertically=function(t){var i=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(i+t),this.eBodyViewport.scrollTop-i},i.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new gh(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},i.prototype.getRowDragFeature=function(){return this.rowDragFeature},i.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},i.prototype.setFloatingHeights=function(){var t=this.pinnedRowModel,i=t.getPinnedTopTotalHeight();i&&(i+=1);var n=t.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(i),this.comp.setBottomHeight(n),this.comp.setTopDisplay(i?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none"),this.setStickyTopOffsetTop()},i.prototype.setStickyTopHeight=function(t){void 0===t&&(t=0),this.comp.setStickyTopHeight(t+"px"),this.stickyTopHeight=t},i.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},i.prototype.setStickyTopWidth=function(t){if(t){var i=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+i+"px)")}else this.comp.setStickyTopWidth("100%")},i.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},i.prototype.setStickyTopOffsetTop=function(){var t=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),i=this.pinnedRowModel.getPinnedTopTotalHeight(),n=0;t>0&&(n+=t+1),i>0&&(n+=i+1),this.comp.setStickyTopTop(n+"px")},i.prototype.sizeColumnsToFit=function(t,i){var n=this,e=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,r=de(this.eBodyViewport)-e;r>0?this.columnModel.sizeColumnsToFit(r,"sizeColumnsToFit",!1,t):void 0===i?window.setTimeout((function(){n.sizeColumnsToFit(t,100)}),0):100===i?window.setTimeout((function(){n.sizeColumnsToFit(t,500)}),100):500===i?window.setTimeout((function(){n.sizeColumnsToFit(t,-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?")},i.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t)},i.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},bh([Dt("rowContainerHeightService")],i.prototype,"rowContainerHeightService",void 0),bh([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),bh([Dt("columnModel")],i.prototype,"columnModel",void 0),bh([Dt("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),bh([It("contextMenuFactory")],i.prototype,"contextMenuFactory",void 0),bh([Dt("headerNavigationService")],i.prototype,"headerNavigationService",void 0),bh([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),bh([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),bh([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),bh([Dt("popupService")],i.prototype,"popupService",void 0),bh([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),bh([Dt("rowModel")],i.prototype,"rowModel",void 0),i}(Ai);!function(t){t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE"}(wh||(wh={})),function(t){t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION"}(yh||(yh={}));
252
+ /**
253
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
254
+ * @version v28.2.1
255
+ * @link https://www.ag-grid.com/
256
+ * @license MIT
257
+ */
258
+ var Ah,jh="ag-cell-range-selected",_h=function(){function t(t,i){this.beans=t,this.cellCtrl=i}return t.prototype.setComp=function(t,i){this.cellComp=t,this.eGui=i,this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(jh,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(jh+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(jh+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(jh+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(jh+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),gr(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},t.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),i=this.isSingleCell(),n=!i&&t.right,e=!i&&t.bottom,r=!i&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",!i&&t.top),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",e),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",r)},t.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},t.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var i=t.getCellRanges();return i.length>0&&i.every((function(t){return ei([yh.DIMENSION,yh.VALUE],t.type)}))},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var t,i,n=this,e=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,o=!1,s=!1,u=!1,h=this.cellCtrl.getCellPosition().column,c=this.beans,a=c.rangeService,l=c.columnModel;e?(t=l.getDisplayedColAfter(h),i=l.getDisplayedColBefore(h)):(t=l.getDisplayedColBefore(h),i=l.getDisplayedColAfter(h));var f=a.getCellRanges().filter((function(t){return a.isCellInSpecificRange(n.cellCtrl.getCellPosition(),t)}));t||(u=!0),i||(o=!0);for(var d=0;d<f.length&&!(r&&o&&s&&u);d++){var v=f[d],p=a.getRangeStartRow(v),g=a.getRangeEndRow(v);!r&&this.beans.rowPositionUtils.sameRow(p,this.cellCtrl.getCellPosition())&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(s=!0),!u&&t&&v.columns.indexOf(t)<0&&(u=!0),!o&&i&&v.columns.indexOf(i)<0&&(o=!0)}return{top:r,right:o,bottom:s,left:u}},t.prototype.refreshHandle=function(){if(this.beans.rangeService){var t=this.shouldHaveSelectionHandle();this.selectionHandle&&!t&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),t&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var t=this.beans,i=t.gridOptionsWrapper,n=t.rangeService,e=n.getCellRanges(),r=e.length;if(this.rangeCount<1||r<1)return!1;var o=Jt(e),s=this.cellCtrl.getCellPosition(),u=i.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),h=i.isEnableRangeHandle(),c=1===r&&!this.cellCtrl.isEditing()&&(u||h);if(this.hasChartRange){var a=e[0].type===yh.DIMENSION&&n.isCellInSpecificRange(s,e[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",a),c=o.type===yh.VALUE}return c&&null!=o.endRow&&n.isContiguousRange(o)&&n.isBottomRightCell(o,s)},t.prototype.addSelectionHandle=function(){var t=this.beans,i=t.gridOptionsWrapper,n=Jt(t.rangeService.getCellRanges()).type,e=i.isEnableFillHandle()&&q(n)?wh.FILL:wh.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(e)),this.selectionHandle.refresh(this.cellCtrl)},t.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},t}(),Gh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),xh=function(t){function i(i,n){var e=t.call(this)||this;return e.cellCtrl=i,e.beans=n,e.column=i.getColumn(),e.rowNode=i.getRowNode(),e.setupColSpan(),e.setupRowSpan(),e}return Gh(i,t),i.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},i.prototype.setComp=function(t){this.eGui=t,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},i.prototype.onDisplayColumnsChanged=function(){var t=this.getColSpanningList();Zt(this.colsSpanning,t)||(this.colsSpanning=t,this.onWidthChanged(),this.onLeftChanged())},i.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},i.prototype.onWidthChanged=function(){if(this.eGui){var t=this.getCellWidth();this.eGui.style.width=t+"px"}},i.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(t,i){return t+i.getActualWidth()}),0):this.column.getActualWidth()},i.prototype.getColSpanningList=function(){var t=this.column.getColSpan(this.rowNode),i=[];if(1===t)i.push(this.column);else for(var n=this.column,e=this.column.getPinned(),r=0;n&&r<t&&(i.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!q(n))&&e===n.getPinned();r++);return i},i.prototype.onLeftChanged=function(){if(this.eGui){var t=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=t+"px"}},i.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Jt(this.colsSpanning):this.column).getLeft()},i.prototype.modifyLeftForPrintLayout=function(t){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===Vt.PINNED_LEFT)return t;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===Vt.PINNED_RIGHT?i+this.beans.columnModel.getBodyContainerWidth()+(t||0):i+(t||0)},i.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var t=this.beans.gridOptionsWrapper.getRowHeightAsNumber();this.eGui.style.height=t*this.rowSpan+"px",this.eGui.style.zIndex="1"}},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(Ai),Mh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fh=function(t){function i(i,n){var e=t.call(this)||this;return e.staticClasses=[],e.cellCtrl=i,e.beans=n,e.column=i.getColumn(),e.rowNode=i.getRowNode(),e}return Mh(i,t),i.prototype.setComp=function(t){this.cellComp=t,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},i.prototype.applyCellClassRules=function(){var t=this,i=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:i,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(i.cellClassRules,n,(function(i){return t.cellComp.addOrRemoveCssClass(i,!0)}),(function(i){return t.cellComp.addOrRemoveCssClass(i,!1)}))},i.prototype.applyUserStyles=function(){var t=this.column.getColDef();if(t.cellStyle){var i;if("function"==typeof t.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:t,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};i=(0,t.cellStyle)(n)}else i=t.cellStyle;this.cellComp.setUserStyles(i)}},i.prototype.applyClassesFromColDef=function(){var t=this,i=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:i,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach((function(i){return t.cellComp.addOrRemoveCssClass(i,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(i,n),this.staticClasses.length&&this.staticClasses.forEach((function(i){return t.cellComp.addOrRemoveCssClass(i,!0)}))},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(Ai),kh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ph=function(t){function i(i,n){var e=t.call(this)||this;return e.ctrl=i,e.beans=n,e}return kh(i,t),i.prototype.setComp=function(t){this.comp=t,this.setupTooltip()},i.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},i.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},i.prototype.createTooltipFeatureIfNeeded=function(){var t=this;null==this.genericTooltipFeature&&(this.genericTooltipFeature=this.createManagedBean(new Jr({getTooltipParams:function(){return t.getTooltipParams()},getGui:function(){return t.ctrl.getGui()}}),this.beans.context))},i.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},i.prototype.getTooltipParams=function(){var t=this.ctrl,i=t.getColumn?t.getColumn():void 0,n=t.getColDef?t.getColDef():void 0,e=t.getRowNode?t.getRowNode():void 0;return{location:t.getLocation(),colDef:n,column:i,rowIndex:t.getRowIndex?t.getRowIndex():void 0,node:e,data:e?e.data:void 0,value:this.getTooltipText(),valueFormatted:t.getValueFormatted?t.getValueFormatted():void 0}},i.prototype.getTooltipText=function(){return this.tooltip},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(Ai),Dh=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ih=function(){function t(){}return t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Dh([Dt("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Dh([Dt("paginationProxy")],t.prototype,"paginationProxy",void 0),Dh([Dt("context")],t.prototype,"context",void 0),Dh([Dt("columnApi")],t.prototype,"columnApi",void 0),Dh([Dt("gridApi")],t.prototype,"gridApi",void 0),Dh([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Dh([Dt("expressionService")],t.prototype,"expressionService",void 0),Dh([Dt("rowRenderer")],t.prototype,"rowRenderer",void 0),Dh([Dt("templateService")],t.prototype,"templateService",void 0),Dh([Dt("valueService")],t.prototype,"valueService",void 0),Dh([Dt("eventService")],t.prototype,"eventService",void 0),Dh([Dt("columnModel")],t.prototype,"columnModel",void 0),Dh([Dt("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Dh([Dt("navigationService")],t.prototype,"navigationService",void 0),Dh([Dt("columnAnimationService")],t.prototype,"columnAnimationService",void 0),Dh([It("rangeService")],t.prototype,"rangeService",void 0),Dh([Dt("focusService")],t.prototype,"focusService",void 0),Dh([It("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Dh([Dt("popupService")],t.prototype,"popupService",void 0),Dh([Dt("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Dh([Dt("stylingService")],t.prototype,"stylingService",void 0),Dh([Dt("columnHoverService")],t.prototype,"columnHoverService",void 0),Dh([Dt("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Dh([Dt("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Dh([Dt("animationFrameService")],t.prototype,"animationFrameService",void 0),Dh([Dt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Dh([Dt("sortController")],t.prototype,"sortController",void 0),Dh([Dt("filterManager")],t.prototype,"filterManager",void 0),Dh([Dt("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Dh([Dt("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Dh([Dt("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Dh([Dt("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Dh([Dt("selectionService")],t.prototype,"selectionService",void 0),Dh([It("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),Dh([Dt("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Dh([Dt("rowModel")],t.prototype,"rowModel",void 0),Dh([Dt("ctrlsService")],t.prototype,"ctrlsService",void 0),Dh([Dt("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),Dh([Dt("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Dh([Dt("valueCache")],t.prototype,"valueCache",void 0),Dh([Dt("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),Dh([Ft],t.prototype,"postConstruct",null),Dh([Pt("beans")],t)}(),Eh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Th=function(t){function i(i,n,e){var r=t.call(this)||this;return r.cellCtrl=i,r.beans=n,r.column=e,r}return Eh(i,t),i.prototype.onMouseEvent=function(t,i){if(!vi(i))switch(t){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i)}},i.prototype.onCellClicked=function(t){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(t),void t.preventDefault();var i=this.beans,n=i.eventService,e=i.rangeService,r=i.gridOptionsWrapper;e&&(t.ctrlKey||t.metaKey)&&e.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&e.intersectLastRange(!0);var o=this.cellCtrl.createEvent(t,xi.EVENT_CELL_CLICKED);n.dispatchEvent(o);var s=this.column.getColDef();s.onCellClicked&&window.setTimeout((function(){return s.onCellClicked(o)}),0),(r.isSingleClickEdit()||s.singleClickEdit)&&!r.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},i.prototype.isDoubleClickOnIPad=function(){if(!vn()||gi("dblclick"))return!1;var t=(new Date).getTime(),i=t-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=t,i},i.prototype.onCellDoubleClicked=function(t){var i=this.column.getColDef(),n=this.cellCtrl.createEvent(t,xi.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"==typeof i.onCellDoubleClicked&&window.setTimeout((function(){return i.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,t)},i.prototype.onMouseDown=function(t){var i=t.ctrlKey,n=t.metaKey,e=t.shiftKey,r=t.target,o=this.beans,s=o.eventService,u=o.rangeService;if(!this.isRightClickInExistingRange(t)){var h=u&&0!=u.getCellRanges().length;if(!e||!h){var c=(cn()||an())&&!this.cellCtrl.isEditing()&&!se(r);this.cellCtrl.focusCell(c)}if(e&&h&&t.preventDefault(),!this.containsWidget(r)){if(u){var a=this.cellCtrl.getCellPosition();e?u.extendLatestRangeToCell(a):u.setRangeToCell(a,i||n)}s.dispatchEvent(this.cellCtrl.createEvent(t,xi.EVENT_CELL_MOUSE_DOWN))}}},i.prototype.isRightClickInExistingRange=function(t){var i=this.beans.rangeService;return!(!i||!i.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==t.button)},i.prototype.containsWidget=function(t){return ae(t,"ag-selection-checkbox",3)},i.prototype.onMouseOut=function(t){if(!this.mouseStayingInsideCell(t)){var i=this.cellCtrl.createEvent(t,xi.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.clearMouseOver()}},i.prototype.onMouseOver=function(t){if(!this.mouseStayingInsideCell(t)){var i=this.cellCtrl.createEvent(t,xi.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.setMouseOver([this.column])}},i.prototype.mouseStayingInsideCell=function(t){if(!t.target||!t.relatedTarget)return!1;var i=this.cellCtrl.getGui(),n=i.contains(t.target),e=i.contains(t.relatedTarget);return n&&e},i.prototype.destroy=function(){},i}(Ih),zh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Nh=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.cellCtrl=i,s.beans=n,s.rowNode=r,s.rowCtrl=o,s}return zh(i,t),i.prototype.setComp=function(t){this.eGui=t},i.prototype.onKeyDown=function(t){var i=t.key;switch(i){case xr.ENTER:this.onEnterKeyDown(t);break;case xr.F2:this.onF2KeyDown(t);break;case xr.ESCAPE:this.onEscapeKeyDown(t);break;case xr.TAB:this.onTabKeyDown(t);break;case xr.BACKSPACE:case xr.DELETE:this.onBackspaceOrDeleteKeyPressed(i,t);break;case xr.DOWN:case xr.UP:case xr.RIGHT:case xr.LEFT:this.onNavigationKeyPressed(t,i)}},i.prototype.onNavigationKeyPressed=function(t,i){this.cellCtrl.isEditing()||(t.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(t,i,this.cellCtrl.getCellPosition(),!0),t.preventDefault())},i.prototype.onShiftRangeSelect=function(t){if(this.beans.rangeService){var i=this.beans.rangeService.extendLatestRangeInDirection(t);i&&this.beans.navigationService.ensureCellVisible(i)}},i.prototype.onTabKeyDown=function(t){this.beans.navigationService.onTabKeyDown(this.cellCtrl,t)},i.prototype.onBackspaceOrDeleteKeyPressed=function(t,i){var n=this,e=n.cellCtrl,r=n.beans,o=n.rowNode,s=r.gridOptionsWrapper,u=r.rangeService,h=r.eventService;e.isEditing()||(h.dispatchEvent({type:xi.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Dr(t,s.isEnableCellEditingOnBackspace())?u&&s.isEnableRangeSelection()?u.clearCellRangeCellValues():e.isCellEditable()&&o.setDataValue(e.getColumn(),null,"cellKeyboardListenerFeature"):e.startRowOrCellEdit(t,void 0,i),h.dispatchEvent({type:xi.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},i.prototype.onEnterKeyDown=function(t){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,xr.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(xr.ENTER,void 0,t),this.cellCtrl.isEditing()&&t.preventDefault())},i.prototype.onF2KeyDown=function(t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(xr.F2,void 0,t)},i.prototype.onEscapeKeyDown=function(){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},i.prototype.onKeyPress=function(t){if(t.target===this.eGui&&!this.cellCtrl.isEditing()){var i=String.fromCharCode(t.charCode);" "===i?this.onSpaceKeyPressed(t):Mr(t)&&(this.cellCtrl.startRowOrCellEdit(null,i,t),t.preventDefault())}},i.prototype.onSpaceKeyPressed=function(t){var i=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&i.isRowSelection()){var n=this.rowNode.isSelected(),e=!n;if(e||!i.isSuppressRowDeselection()){var r=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),o=this.rowNode.setSelectedParams({newValue:e,rangeSelect:t.shiftKey,groupSelectsFiltered:r});void 0===n&&0===o&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:r})}}t.preventDefault()},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(Ai),Lh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bh=function(t){function i(i,n,e,r){var o=t.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return o.rowNode=i,o.column=n,o.beans=e,o.eCell=r,o}return Lh(i,t),i.prototype.postConstruct=function(){this.getGui().appendChild(_r("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation()})),this.addDragSource(),this.checkVisibility()},i.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},i.prototype.onDragStart=function(t){var i=this,n=this.column.getColDef().dndSourceOnRowDrag;t.dataTransfer.setDragImage(this.eCell,0,0),n?n({rowNode:this.rowNode,dragEvent:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var n=JSON.stringify(i.rowNode.data);t.dataTransfer.setData("application/json",n),t.dataTransfer.setData("text/plain",n)}catch(t){}}()},i.prototype.checkVisibility=function(){var t=this.column.isDndSource(this.rowNode);this.setDisplayed(t)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Ft],i.prototype,"postConstruct",null),i}(io),Hh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Wh=function(){return Wh=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Wh.apply(this,arguments)},Vh="ag-cell-not-inline-editing",Uh=0,Kh=function(t){function i(i,n,e,r){var o=t.call(this)||this;return o.suppressRefreshCell=!1,o.onCellCompAttachedFuncs=[],o.column=i,o.rowNode=n,o.beans=e,o.rowCtrl=r,o.instanceId=i.getId()+"-"+Uh++,o.createCellPosition(),o.addFeatures(),o}return Hh(i,t),i.prototype.addFeatures=function(){var t=this;this.cellPositionFeature=new xh(this,this.beans),this.addDestroyFunc((function(){return t.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new Fh(this,this.beans),this.addDestroyFunc((function(){return t.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new Th(this,this.beans,this.column),this.addDestroyFunc((function(){return t.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new Nh(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return t.cellKeyboardListenerFeature.destroy()})),this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRangeFeature=new _h(this.beans,this),this.addDestroyFunc((function(){return t.cellRangeFeature.destroy()}))),this.addTooltipFeature()},i.prototype.addTooltipFeature=function(){var t=this;this.tooltipFeature=new Ph({getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getRowIndex:function(){return t.cellPosition.rowIndex},getRowNode:function(){return t.rowNode},getGui:function(){return t.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var i=t.column.getColDef(),n=t.rowNode.data;if(i.tooltipField&&$(n))return lt(n,i.tooltipField,t.column.isTooltipFieldContainsDots());var e=i.tooltipValueGetter;return e?e({location:"cell",api:t.beans.gridOptionsWrapper.getApi(),columnApi:t.beans.gridOptionsWrapper.getColumnApi(),context:t.beans.gridOptionsWrapper.getContext(),colDef:t.column.getColDef(),column:t.column,rowIndex:t.cellPosition.rowIndex,node:t.rowNode,data:t.rowNode.data,value:t.value,valueFormatted:t.valueFormatted}):null},getValueFormatted:function(){return t.valueFormatted}},this.beans),this.addDestroyFunc((function(){return t.tooltipFeature.destroy()}))},i.prototype.setComp=function(t,i,n,e,r){this.cellComp=t,this.gow=this.beans.gridOptionsWrapper,this.eGui=i,this.printLayout=e,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),n&&this.setupAutoHeight(n),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var o=Ei(this.column.getId());this.cellComp.setColId(o),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(i),this.cellCustomStyleFeature.setComp(t),this.tooltipFeature.setComp(t),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(t,i),r&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((function(t){return t()})),this.onCellCompAttachedFuncs=[])},i.prototype.setupAutoHeight=function(t){var i=this;if(this.column.isAutoHeight()){var n=t.parentElement,e=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,r=function(o){if(!i.editing&&i.isAlive()){var s=le(n),u=t.offsetHeight+s.paddingTop+s.paddingBottom;if(o<5){var h=i.beans.gridOptionsWrapper.getDocument();if(!h||!h.contains(t)||0==u)return void i.beans.frameworkOverrides.setTimeout((function(){return r(o+1)}),0)}var c=Math.max(u,e);i.rowNode.setRowAutoHeight(c,i.column)}},o=function(){return r(0)};o();var s=this.beans.resizeObserverService.observeResize(t,o);this.addDestroyFunc((function(){s(),i.rowNode.setRowAutoHeight(void 0,i.column)}))}},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.showValue=function(t){void 0===t&&(t=!1);var i=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),e=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(e,i,t),this.refreshHandle()},i.prototype.setupControlComps=function(){var t=this.column.getColDef();this.includeSelection=this.isIncludeControl(t.checkboxSelection),this.includeRowDrag=this.isIncludeControl(t.rowDrag),this.includeDndSource=this.isIncludeControl(t.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},i.prototype.isForceWrapper=function(){return this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight()},i.prototype.isIncludeControl=function(t){return!(null!=this.rowNode.rowPinned||"function"!=typeof t&&!0!==t)},i.prototype.refreshShouldDestroy=function(){var t=this.column.getColDef(),i=this.includeSelection!=this.isIncludeControl(t.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(t.rowDrag),e=this.includeDndSource!=this.isIncludeControl(t.dndSource);return i||n||e},i.prototype.startEditing=function(t,i,n,e){var r,o,s=this;if(void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n=!1),void 0===e&&(e=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var u=this.createCellEditorParams(t,i,n),h=this.column.getColDef(),c=this.beans.userComponentFactory.getCellEditorDetails(h,u),a=null!=(null===(r=c)||void 0===r?void 0:r.popupFromSelector)?c.popupFromSelector:!!h.cellEditorPopup,l=null!=(null===(o=c)||void 0===o?void 0:o.popupPositionFromSelector)?c.popupPositionFromSelector:h.cellEditorPopupPosition;this.setEditing(!0,a),this.cellComp.setEditDetails(c,a,l);var f=this.createEvent(e,xi.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(f)}else this.onCellCompAttachedFuncs.push((function(){s.startEditing(t,i,n,e)}))},i.prototype.setEditing=function(t,i){void 0===i&&(i=!1),this.editing!==t&&(this.editing=t,this.editingInPopup=i,this.setInlineEditingClass(),this.refreshHandle())},i.prototype.stopRowOrCellEdit=function(t){void 0===t&&(t=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(t):this.stopEditing(t)},i.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},i.prototype.takeValueFromCellEditor=function(t){var i={newValueExists:!1};if(t)return i;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?i:{newValue:n.getValue(),newValueExists:!0}:i},i.prototype.saveNewValue=function(t,i){if(i===t)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(t,i),!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,i);return this.suppressRefreshCell=!1,n},i.prototype.dispatchEventForSaveValueReadOnly=function(t,i){var n=this.rowNode,e={type:xi.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:n.data,node:n,oldValue:t,newValue:i,value:i,source:void 0};this.beans.eventService.dispatchEvent(e)},i.prototype.stopEditing=function(t){if(void 0===t&&(t=!1),!this.editing)return!1;var i=this.takeValueFromCellEditor(t),n=i.newValue,e=i.newValueExists,r=this.getValueFromValueService(),o=!1;return e&&(o=this.saveNewValue(r,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,n,!t&&!!o),o},i.prototype.dispatchEditingStoppedEvent=function(t,i,n){var e=Wh(Wh({},this.createEvent(null,xi.EVENT_CELL_EDITING_STOPPED)),{oldValue:t,newValue:i,valueChanged:n});this.beans.eventService.dispatchEvent(e)},i.prototype.setInlineEditingClass=function(){var t=this;if(this.isAlive())if(this.cellComp){var i=this.editing&&!this.editingInPopup,n=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",i),this.cellComp.addOrRemoveCssClass(Vh,!i),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",n),this.rowCtrl.setInlineEditingCss(this.editing)}else this.onCellCompAttachedFuncs.push((function(){t.setInlineEditingClass()}))},i.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},i.prototype.createCellEditorParams=function(t,i,n){return{value:this.getValueFromValueService(),key:t,eventKey:t,charPress:i,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},i.prototype.createCellRendererParams=function(){var t=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(i){return t.beans.valueService.setValue(t.rowNode,t.column,i)},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,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(i,n,e,r){return t.registerRowDragger(i,n,r)},addRowCompListener:function(i,n){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),t.rowCtrl.addEventListener(i,n)}}},i.prototype.parseValue=function(t){var i=this.column.getColDef(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:t,colDef:i,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},e=i.valueParser;return $(e)?this.beans.expressionService.evaluate(e,n):t},i.prototype.setFocusOutOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusOut&&t.focusOut()}},i.prototype.setFocusInOnEditor=function(){if(this.editing){var t=this.cellComp.getCellEditor();t&&t.focusIn?t.focusIn():this.focusCell(!0)}},i.prototype.onCellChanged=function(t){this.cellComp&&t.column===this.column&&this.refreshCell({})},i.prototype.refreshCell=function(t){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var i=this.column.getColDef(),n=null!=t&&!!t.newData,e=null!=t&&!!t.suppressFlash||!!i.suppressCellFlash,r=t&&t.forceRefresh||null==i.field&&null==i.valueGetter&&null==i.showRowGroup||n,o=this.updateAndFormatValue();if(r||o){this.showValue(n);var s=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!e&&!s&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||i.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},i.prototype.stopEditingAndFocus=function(t){void 0===t&&(t=!1),this.stopRowOrCellEdit(),this.focusCell(!0),t||this.navigateAfterEdit()},i.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.navigationService.navigateToNextCell(null,xr.DOWN,this.getCellPosition(),!1)},i.prototype.flashCell=function(t){this.animateCell("data-changed",t&&t.flashDelay,t&&t.fadeDelay)},i.prototype.animateCell=function(t,i,n){var e=this,r="ag-cell-"+t,o="ag-cell-"+t+"-animation",s=this.beans.gridOptionsWrapper;i||(i=s.getCellFlashDelay()),$(n)||(n=s.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(r,!0),this.cellComp.addOrRemoveCssClass(o,!1),window.setTimeout((function(){e.isAlive()&&(e.cellComp.addOrRemoveCssClass(r,!1),e.cellComp.addOrRemoveCssClass(o,!0),e.eGui.style.transition="background-color "+n+"ms",window.setTimeout((function(){e.isAlive()&&(e.cellComp.addOrRemoveCssClass(o,!1),e.eGui.style.transition="")}),n))}),i)},i.prototype.onFlashCells=function(t){if(this.cellComp){var i=this.beans.cellPositionUtils.createId(this.getCellPosition());t.cells[i]&&this.animateCell("highlight")}},i.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},i.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},i.prototype.formatValue=function(t){var i=this.callValueFormatter(t);return null!=i?i:t},i.prototype.callValueFormatter=function(t){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,t)},i.prototype.updateAndFormatValue=function(t){void 0===t&&(t=!1);var i=this.value,n=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!t||!this.valuesAreEqual(i,this.value)||this.valueFormatted!=n},i.prototype.valuesAreEqual=function(t,i){var n=this.column.getColDef();return n.equals?n.equals(t,i):t===i},i.prototype.getComp=function(){return this.cellComp},i.prototype.getValueFromValueService=function(){var t=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),i=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!t,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),e=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader();return this.beans.valueService.getValue(this.column,this.rowNode,!1,i&&n&&!e)},i.prototype.getValue=function(){return this.value},i.prototype.getValueFormatted=function(){return this.valueFormatted},i.prototype.addDomData=function(){var t=this,n=this.getGui();this.beans.gridOptionsWrapper.setDomData(n,i.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return t.beans.gridOptionsWrapper.setDomData(n,i.DOM_DATA_KEY_CELL_CTRL,null)}))},i.prototype.createEvent=function(t,i){return{type:i,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:t,rowIndex:this.rowNode.rowIndex}},i.prototype.onKeyPress=function(t){this.cellKeyboardListenerFeature.onKeyPress(t)},i.prototype.onKeyDown=function(t){this.cellKeyboardListenerFeature.onKeyDown(t)},i.prototype.onMouseEvent=function(t,i){this.cellMouseListenerFeature.onMouseEvent(t,i)},i.prototype.getGui=function(){return this.eGui},i.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},i.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},i.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},i.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},i.prototype.setAriaColIndex=function(){var t=this.beans.columnModel.getAriaColumnIndex(this.column);fr(this.getGui(),t)},i.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},i.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},i.prototype.getColumn=function(){return this.column},i.prototype.getRowNode=function(){return this.rowNode},i.prototype.getBeans=function(){return this.beans},i.prototype.isPrintLayout=function(){return this.printLayout},i.prototype.appendChild=function(t){this.eGui.appendChild(t)},i.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},i.prototype.getCellPosition=function(){return this.cellPosition},i.prototype.isEditing=function(){return this.editing},i.prototype.startRowOrCellEdit=function(t,i,n){void 0===n&&(n=null),this.cellComp&&(this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(t,i,this):this.startEditing(t,i,!0,n))},i.prototype.getRowCtrl=function(){return this.rowCtrl},i.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},i.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},i.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},i.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},i.prototype.focusCell=function(t){void 0===t&&(t=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:t})},i.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},i.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var t=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",t)}},i.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var t=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",t)}},i.prototype.onCellFocused=function(t){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var i=this.beans.focusService.isCellFocused(this.cellPosition);this.cellComp.addOrRemoveCssClass("ag-cell-focus",i),i&&t&&t.forceBrowserFocus&&this.cellComp.getFocusableElement().focus({preventScroll:!!t.preventScrollOnBrowserFocus});var n=this.beans.gridOptionsWrapper.isFullRowEdit();i||n||!this.editing||this.stopRowOrCellEdit()}},i.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:K(this.rowNode.rowPinned),column:this.column}},i.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass(Vh,!0);var t=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",t),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!t)},i.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var t=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",t)}},i.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},i.prototype.setWrapText=function(){var t=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",t)},i.prototype.dispatchCellContextMenuEvent=function(t){var i=this.column.getColDef(),n=this.createEvent(t,xi.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),i.onCellContextMenu&&window.setTimeout((function(){return i.onCellContextMenu(n)}),0)},i.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},i.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},i.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],t.prototype.destroy.call(this)},i.prototype.createSelectionCheckbox=function(){var t=new $s;return this.beans.context.createBean(t),t.init({rowNode:this.rowNode,column:this.column}),t},i.prototype.createDndSource=function(){var t=new Bh(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(t),t},i.prototype.registerRowDragger=function(t,i,n){var e=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(t,i);else{var r=this.createRowDragComp(t,i,n);r&&(this.customRowDragComp=r,this.addDestroyFunc((function(){return e.beans.context.destroyBean(r)})))}},i.prototype.createRowDragComp=function(t,i,n){var e=this,r=this.beans.gridOptionsWrapper.isPagination(),o=this.beans.gridOptionsWrapper.isRowDragManaged(),s=this.beans.gridOptionsWrapper.isRowModelDefault();if(o){if(!s)return void gt((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(r)return void gt((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var u=new iu((function(){return e.value}),this.rowNode,this.column,t,i,n);return this.beans.context.createBean(u),u},i.DOM_DATA_KEY_CELL_CTRL="cellCtrl",i}(Ai),$h=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qh=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};!function(t){t.Normal="Normal",t.FullWidth="FullWidth",t.FullWidthLoading="FullWidthLoading",t.FullWidthGroup="FullWidthGroup",t.FullWidthDetail="FullWidthDetail"}(Ah||(Ah={}));var Yh,Jh,Zh=0,Xh=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.beans=n,s.rowNode=i,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=r,s.printLayout=o,s.instanceId=i.id+"-"+Zh++,s.setAnimateFlags(e),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s}return $h(i,t),i.prototype.isSticky=function(){return this.rowNode.sticky},i.prototype.getBeans=function(){return this.beans},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.setComp=function(t,i,n){var e={rowComp:t,element:i,containerType:n};this.allRowGuis.push(e),n===Jh.LEFT?this.leftGui=e:n===Jh.RIGHT?this.rightGui=e:n===Jh.FULL_WIDTH?this.fullWidthGui=e:this.centerGui=e,(null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui||null!=this.fullWidthGui)&&this.initialiseRowComps(),"FullWidthLoading"!==this.rowType&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},i.prototype.isCacheable=function(){return this.rowType===Ah.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},i.prototype.setCached=function(t){var i=t?"none":"";this.allRowGuis.forEach((function(t){return t.element.style.display=i}))},i.prototype.initialiseRowComps=function(){var t=this,n=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),n.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&St(this.onTopChanged.bind(this)),this.fadeRowIn&&St((function(){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var e=this.getRowBusinessKey(),r=Ei(this.rowNode.id),o=Ei(e);this.allRowGuis.forEach((function(e){var s=e.rowComp;s.setRole("row"),t.getInitialRowClasses(e.containerType).forEach((function(t){return s.addOrRemoveCssClass(t,!0)})),t.rowNode.group&&rr(e.element,1==t.rowNode.expanded),null!=r&&s.setRowId(r),null!=o&&s.setRowBusinessKey(o),t.isFullWidth()&&!t.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),n.setDomData(e.element,i.DOM_DATA_KEY_ROW_CTRL,t),t.addDestroyFunc((function(){return n.setDomData(e.element,i.DOM_DATA_KEY_ROW_CTRL,null)})),t.useAnimationFrameForCreate?t.beans.animationFrameService.createTask(t.addHoverFunctionality.bind(t,e.element),t.rowNode.rowIndex,"createTasksP2"):t.addHoverFunctionality(e.element),t.isFullWidth()&&t.setupFullWidth(e),n.isRowDragEntireRow()&&t.addRowDraggerToRow(e),t.useAnimationFrameForCreate&&t.beans.animationFrameService.addDestroyTask((function(){t.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},i.prototype.addRowDraggerToRow=function(t){var i=this.beans.gridOptionsWrapper;if(i.isEnableRangeSelection())gt((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var n=i.getLocaleTextFunc(),e=new iu((function(){return"1 "+n("rowDragRow","row")}),this.rowNode,void 0,t.element,void 0,!0);this.createManagedBean(e,this.beans.context)}},i.prototype.setupFullWidth=function(t){var i=this.getPinnedForContainer(t.containerType),n=this.createFullWidthParams(t.element,i),e=Ut.isRegistered(Nt.MasterDetailModule);if(this.rowType!=Ah.FullWidthDetail||e){var r;switch(this.rowType){case Ah.FullWidthDetail:r=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(n);break;case Ah.FullWidthGroup:r=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(n);break;case Ah.FullWidthLoading:r=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(n);break;default:r=this.beans.userComponentFactory.getFullWidthCellRendererDetails(n)}t.rowComp.showFullWidth(r)}else Ut.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+Nt.MasterDetailModule)},i.prototype.isPrintLayout=function(){return this.printLayout},i.prototype.getCellElement=function(t){var i=this.getCellCtrl(t);return i?i.getGui():null},i.prototype.executeProcessRowPostCreateFunc=function(){var t=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();t&&t({eRow:this.centerGui?this.centerGui.element:void 0,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)})},i.prototype.setRowType=function(){var t=this.rowNode.stub,i=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,e=this.beans.columnModel.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(e);this.rowType=t?Ah.FullWidthLoading:n?Ah.FullWidthDetail:i?Ah.FullWidth:r?Ah.FullWidthGroup:Ah.Normal},i.prototype.updateColumnLists=function(t){var i=this;void 0===t&&(t=!1),this.isFullWidth()||(t||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){i.active&&i.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},i.prototype.createCellCtrls=function(t,i,n){var e=this;void 0===n&&(n=null);var r={list:[],map:{}},o=function(t,i){r.list.push(i),r.map[t]=i};return i.forEach((function(i){var n=i.getInstanceId(),r=t.map[n];r||(r=new Kh(i,e.rowNode,e.beans,e)),o(n,r)})),t.list.forEach((function(t){null!=r.map[t.getColumn().getInstanceId()]||(e.isCellEligibleToBeRemoved(t,n)?t.destroy():o(t.getColumn().getInstanceId(),t))})),r},i.prototype.updateColumnListsImpl=function(){var t=this;this.updateColumnListsPending=!1;var i=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var n=i.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n);var e=i.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,e,Vt.PINNED_LEFT);var r=i.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,r,Vt.PINNED_RIGHT)}this.allRowGuis.forEach((function(i){i.rowComp.setCellCtrls((i.containerType===Jh.LEFT?t.leftCellCtrls:i.containerType===Jh.RIGHT?t.rightCellCtrls:t.centerCellCtrls).list)}))},i.prototype.isCellEligibleToBeRemoved=function(t,i){var n=!0;if(t.getColumn().getPinned()!=i)return n;var e=t.isEditing(),r=this.beans.focusService.isCellFocused(t.getCellPosition());if(e||r){var o=t.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(o)>=0)&&n}return n},i.prototype.setAnimateFlags=function(t){if(!this.isSticky()&&t){var i=$(this.rowNode.oldRowTop);this.slideRowIn=i,this.fadeRowIn=!i}else this.slideRowIn=!1,this.fadeRowIn=!1},i.prototype.isEditing=function(){return this.editingRow},i.prototype.stopRowEditing=function(t){this.stopEditing(t)},i.prototype.isFullWidth=function(){return this.rowType!==Ah.Normal},i.prototype.getRowType=function(){return this.rowType},i.prototype.refreshFullWidth=function(){var t=this,i=function(i,n){if(!i)return!0;var e=i.rowComp.getFullWidthCellRenderer();if(!e)return!1;if(!e.refresh)return!1;var r=t.createFullWidthParams(i.element,n);return e.refresh(r)},n=i(this.fullWidthGui,null),e=i(this.centerGui,null),r=i(this.leftGui,Vt.PINNED_LEFT),o=i(this.rightGui,Vt.PINNED_RIGHT);return n&&e&&r&&o},i.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Ws.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Ws.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,xi.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,xi.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,xi.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,xi.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(t,xi.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,xi.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,xi.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},i.prototype.onColumnMoved=function(){this.updateColumnLists()},i.prototype.addListenersForCellComps=function(){var t=this;this.addManagedListener(this.rowNode,Ws.EVENT_ROW_INDEX_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Ws.EVENT_CELL_CHANGED,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onCellChanged(i)}))}))},i.prototype.onRowNodeDataChanged=function(t){this.getAllCellCtrls().forEach((function(i){return i.refreshCell({suppressFlash:!t.update,newData:!t.update})})),this.onRowSelected(),this.postProcessCss()},i.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},i.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},i.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.allRowGuis.forEach((function(i){var n=t===To.Below;i.rowComp.addOrRemoveCssClass("ag-row-highlight-above",t===To.Above),i.rowComp.addOrRemoveCssClass("ag-row-highlight-below",n)}))},i.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},i.prototype.postProcessRowDragging=function(){var t=this.rowNode.dragging;this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-dragging",t)}))},i.prototype.updateExpandedCss=function(){var t=this.rowNode.isExpandable(),i=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",t),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",t&&i),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",t&&!i),rr(n.element,t&&i)}))},i.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},i.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},i.prototype.getRowPosition=function(){return{rowPinned:K(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},i.prototype.onKeyboardNavigate=function(t){var i=this.allRowGuis.find((function(i){return i.element.contains(t.target)}));if((i?i.element:null)===t.target){var n=this.rowNode,e=this.beans.focusService.getFocusedCell();this.beans.navigationService.navigateToNextCell(t,t.key,{rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:e&&e.column},!0),t.preventDefault()}},i.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented&&!vi(t)){var i=this.allRowGuis.find((function(i){return i.element.contains(t.target)})),n=i?i.element:null,e=n===t.target,r=null;e||(r=this.beans.focusService.findNextFocusableElement(n,!1,t.shiftKey)),(this.isFullWidth()&&e||!r)&&this.beans.navigationService.onTabKeyDown(this,t)}},i.prototype.onFullWidthRowFocused=function(t){var i,n=this.rowNode,e=this.isFullWidth()&&t.rowIndex===n.rowIndex&&t.rowPinned==n.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:null===(i=this.centerGui)||void 0===i?void 0:i.element;r&&(r.classList.toggle("ag-full-width-focus",e),e&&r.focus({preventScroll:!0}))},i.prototype.refreshCell=function(t){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,t),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,t),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,t),this.updateColumnLists()},i.prototype.removeCellCtrl=function(t,i){var n={list:[],map:{}};return t.list.forEach((function(t){t!==i&&(n.list.push(t),n.map[t.getInstanceId()]=t)})),n},i.prototype.onMouseEvent=function(t,i){switch(t){case"dblclick":this.onRowDblClick(i);break;case"click":this.onRowClick(i);break;case"touchstart":case"mousedown":this.onRowMouseDown(i)}},i.prototype.createRowEvent=function(t,i){return{type:t,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:i}},i.prototype.createRowEventWithSource=function(t,i){var n=this.createRowEvent(t,i);return n.source=this,n},i.prototype.onRowDblClick=function(t){if(!vi(t)){var i=this.createRowEventWithSource(xi.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(i)}},i.prototype.onRowMouseDown=function(t){if(this.lastMouseDownOnDragger=ae(t.target,"ag-row-drag",3),this.isFullWidth()){var i=this.rowNode,n=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:i.rowIndex,column:n.getAllDisplayedColumns()[0],rowPinned:i.rowPinned,forceBrowserFocus:!0})}},i.prototype.onRowClick=function(t){if(!vi(t)&&!this.lastMouseDownOnDragger){var i=this.createRowEventWithSource(xi.EVENT_ROW_CLICKED,t);this.beans.eventService.dispatchEvent(i);var n=t.ctrlKey||t.metaKey,e=t.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),o=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();this.rowNode.isSelected()?r?this.rowNode.setSelectedParams({newValue:!1,event:t}):n?o&&this.rowNode.setSelectedParams({newValue:!1,event:t}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!e,rangeSelect:e,event:t}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!r&&!n,rangeSelect:e,event:t})}}},i.prototype.setupDetailRowAutoHeight=function(t){var i=this;if(this.rowType===Ah.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=t.clientHeight;null!=n&&n>0&&i.beans.frameworkOverrides.setTimeout((function(){i.rowNode.setRowHeight(n),i.beans.clientSideRowModel?i.beans.clientSideRowModel.onRowHeightChanged():i.beans.serverSideRowModel&&i.beans.serverSideRowModel.onRowHeightChanged()}),0)},e=this.beans.resizeObserverService.observeResize(t,n);this.addDestroyFunc(e),n()}},i.prototype.createFullWidthParams=function(t,i){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:t,eParentOfValue:t,pinned:i,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(t,i,e,r){return n.addFullWidthRowDragging(t,i,e,r)}}},i.prototype.addFullWidthRowDragging=function(t,i,n,e){if(void 0===n&&(n=""),this.isFullWidth()){var r=new iu((function(){return n}),this.rowNode,void 0,t,i,e);this.createManagedBean(r,this.beans.context)}},i.prototype.onUiLevelChanged=function(){var t=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=t){var i="ag-row-level-"+t,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass(i,!0),t.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=t},i.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},i.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},i.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},i.prototype.refreshFirstAndLastRowStyles=function(){var t=this.isFirstRowOnPage(),i=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-first",t)}))),this.lastRowOnPage!==i&&(this.lastRowOnPage=i,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-last",i)})))},i.prototype.stopEditing=function(t){var i,n;if(void 0===t&&(t=!1),!this.stoppingRowEdit){var e=this.getAllCellCtrls(),r=this.editingRow;this.stoppingRowEdit=!0;var o=!1;try{for(var s=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),u=s.next();!u.done;u=s.next()){var h=u.value.stopEditing(t);r&&!t&&!o&&h&&(o=!0)}}catch(t){i={error:t}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}if(o){var c=this.createRowEvent(xi.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(c)}r&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},i.prototype.setInlineEditingCss=function(t){this.allRowGuis.forEach((function(i){i.rowComp.addOrRemoveCssClass("ag-row-inline-editing",t),i.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!t)}))},i.prototype.setEditingRow=function(t){this.editingRow=t,this.allRowGuis.forEach((function(i){return i.rowComp.addOrRemoveCssClass("ag-row-editing",t)}));var i=this.createRowEvent(t?xi.EVENT_ROW_EDITING_STARTED:xi.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)},i.prototype.startRowEditing=function(t,i,n,e){void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n=null),void 0===e&&(e=null),this.editingRow||this.getAllCellCtrls().reduce((function(r,o){var s=o===n;return s?o.startEditing(t,i,s,e):o.startEditing(null,null,s,e),!!r||o.isEditing()}),!1)&&this.setEditingRow(!0)},i.prototype.getAllCellCtrls=function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(qh(arguments[i]));return t}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},i.prototype.postProcessClassesFromGridOptions=function(){var t=this,i=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);i&&i.length&&i.forEach((function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!0)}))}))},i.prototype.postProcessRowClassRules=function(){var t=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!0)}))}),(function(i){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(i,!1)}))}))},i.prototype.setStylesFromGridOptions=function(){var t=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(i){return i.rowComp.setUserStyles(t)}))},i.prototype.getRowBusinessKey=function(){var t=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof t)return t(this.rowNode)},i.prototype.getPinnedForContainer=function(t){return t===Jh.LEFT?Vt.PINNED_LEFT:t===Jh.RIGHT?Vt.PINNED_RIGHT:null},i.prototype.getInitialRowClasses=function(t){var i=this.getPinnedForContainer(t),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,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:i};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},i.prototype.processStylesFromGridOptions=function(){var t=this.beans.gridOptionsWrapper.getRowStyle();if(!t||"function"!=typeof t){var i,n=this.beans.gridOptionsWrapper.getRowStyleFunc();return n&&(i=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),Object.assign({},t,i)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},i.prototype.onRowSelected=function(){var t=this,i=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-selected",i),gr(n.element,!!i||void 0);var e=t.createAriaLabel();Ze(n.element,null==e?"":e)}))},i.prototype.createAriaLabel=function(){var t=this.rowNode.isSelected();if(!t||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(t?"deselect":"select")+" this row.")},i.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},i.prototype.addHoverFunctionality=function(t){var i=this;this.active&&(this.addManagedListener(t,"mouseenter",(function(){return i.rowNode.onMouseEnter()})),this.addManagedListener(t,"mouseleave",(function(){return i.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Ws.EVENT_MOUSE_ENTER,(function(){i.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||t.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,Ws.EVENT_MOUSE_LEAVE,(function(){t.classList.remove("ag-row-hover")})))},i.prototype.roundRowTopToBounds=function(t){var i=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.applyPaginationOffset(i.top,!0)-100,e=this.applyPaginationOffset(i.bottom,!0)+100;return Math.min(Math.max(n,t),e)},i.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},i.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,i=this.beans.gridOptionsWrapper.getDefaultRowHeight(),n=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,e=n?Math.min(i,n)-2+"px":void 0;this.allRowGuis.forEach((function(i){i.element.style.height=t+"px",e&&i.element.style.setProperty("--ag-line-height",e)}))}},i.prototype.addEventListener=function(i,n){"renderedRowRemoved"!==i&&"rowRemoved"!==i||(i=xi.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+xi.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.addEventListener.call(this,i,n)},i.prototype.removeEventListener=function(i,n){"renderedRowRemoved"!==i&&"rowRemoved"!==i||(i=xi.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+xi.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.removeEventListener.call(this,i,n)},i.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var i=this.createRowEvent(xi.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(i),this.beans.eventService.dispatchEvent(i),t.prototype.destroy.call(this)},i.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var t=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(t)}else this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},i.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var t=function(t){return t.list.forEach((function(t){return t.destroy()})),{list:[],map:{}}};this.centerCellCtrls=t(this.centerCellCtrls),this.leftCellCtrls=t(this.leftCellCtrls),this.rightCellCtrls=t(this.rightCellCtrls)},i.prototype.setFocusedClasses=function(){var t=this;this.allRowGuis.forEach((function(i){i.rowComp.addOrRemoveCssClass("ag-row-focus",t.rowFocused),i.rowComp.addOrRemoveCssClass("ag-row-no-focus",!t.rowFocused)}))},i.prototype.onCellFocusChanged=function(){var t=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses()),!t&&this.editingRow&&this.stopEditing(!1)},i.prototype.onPaginationChanged=function(){var t=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},i.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},i.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},i.prototype.applyPaginationOffset=function(t,i){return void 0===i&&(i=!1),this.rowNode.isRowPinned()?t:t+this.beans.paginationProxy.getPixelOffset()*(i?1:-1)},i.prototype.setRowTop=function(t){if(!this.printLayout&&$(t)){var i=this.applyPaginationOffset(t),n=this.rowNode.isRowPinned()?i:this.beans.rowContainerHeightService.getRealPixelPosition(i);this.setRowTopStyle(n+"px")}},i.prototype.getInitialRowTop=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.getInitialRowTopShared():void 0},i.prototype.getInitialTransform=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?void 0:"translateY("+this.getInitialRowTopShared()+")"},i.prototype.getInitialRowTopShared=function(){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var i=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,n=this.applyPaginationOffset(i);t=this.rowNode.isRowPinned()?n:this.beans.rowContainerHeightService.getRealPixelPosition(n)}return t+"px"},i.prototype.setRowTopStyle=function(t){var i=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(n){return i?n.rowComp.setTop(t):n.rowComp.setTransform("translateY("+t+")")}))},i.prototype.getRowNode=function(){return this.rowNode},i.prototype.getCellCtrl=function(t){var i=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==t&&(i=n)})),null!=i||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(t)>=0&&(i=n)})),i},i.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},i.prototype.updateRowIndexes=function(){var t=this.rowNode.getRowIndexString(),i=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2==0,e=i+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(i){i.rowComp.setRowIndex(t),i.rowComp.addOrRemoveCssClass("ag-row-even",n),i.rowComp.addOrRemoveCssClass("ag-row-odd",!n),ar(i.element,e)}))},i.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},i.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},i.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},i.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},i.DOM_DATA_KEY_ROW_CTRL="renderedRow",i}(Ai),Qh=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),tc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ic=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return Qh(i,t),i.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},i.prototype.addKeyboardEvents=function(){var t=this;["keydown","keypress"].forEach((function(i){var n=t.processKeyboardEvent.bind(t,i);t.addManagedListener(t.element,i,n)}))},i.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click",gi("touchstart")?"touchstart":"mousedown"].forEach((function(i){var n=t.processMouseEvent.bind(t,i);t.addManagedListener(t.element,i,n)}))},i.prototype.processMouseEvent=function(t,i){if(this.mouseEventService.isEventFromThisGrid(i)&&!vi(i)){var n=this.getRowForEvent(i),e=this.mouseEventService.getRenderedCellForEvent(i);"contextmenu"===t?this.handleContextMenuMouseEvent(i,null,n,e):(e&&e.onMouseEvent(t,i),n&&n.onMouseEvent(t,i))}},i.prototype.mockContextMenuForIPad=function(){var t=this;if(vn()){var i=new ds(this.element);this.addManagedListener(i,ds.EVENT_LONG_TAP,(function(i){var n=t.getRowForEvent(i.touchEvent),e=t.mouseEventService.getRenderedCellForEvent(i.touchEvent);t.handleContextMenuMouseEvent(null,i.touchEvent,n,e)})),this.addDestroyFunc((function(){return i.destroy()}))}},i.prototype.getRowForEvent=function(t){for(var i=t.target;i;){var n=this.gridOptionsWrapper.getDomData(i,Xh.DOM_DATA_KEY_ROW_CTRL);if(n)return n;i=i.parentElement}return null},i.prototype.handleContextMenuMouseEvent=function(t,i,n,e){var r=n?n.getRowNode():null,o=e?e.getColumn():null,s=null;o&&(e.dispatchCellContextMenuEvent(t||i),s=this.valueService.getValue(o,r));var u=this.ctrlsService.getGridBodyCtrl(),h=e?e.getGui():u.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(t,i,r,o,s,h)},i.prototype.processKeyboardEvent=function(t,i){var n=mi(this.gridOptionsWrapper,i,Kh.DOM_DATA_KEY_CELL_CTRL),e=mi(this.gridOptionsWrapper,i,Xh.DOM_DATA_KEY_ROW_CTRL);i.defaultPrevented||(n?this.processCellKeyboardEvent(n,t,i):e&&e.isFullWidth()&&this.processFullWidthRowKeyboardEvent(e,t,i))},i.prototype.processCellKeyboardEvent=function(t,i,n){var e=t.getRowNode(),r=t.getColumn(),o=t.isEditing();if(!Fr(this.gridOptionsWrapper,n,e,r,o))switch(i){case"keydown":!o&&this.navigationService.handlePageScrollingKey(n)||t.onKeyDown(n),this.doGridOperations(n,t.isEditing());break;case"keypress":t.onKeyPress(n)}if("keydown"===i){var s=t.createEvent(n,xi.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===i){var u=t.createEvent(n,xi.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(u)}},i.prototype.processFullWidthRowKeyboardEvent=function(t,i,n){var e=t.getRowNode(),r=this.focusService.getFocusedCell();if(!Fr(this.gridOptionsWrapper,n,e,r&&r.column,!1)&&"keydown"===i)switch(n.key){case xr.UP:case xr.DOWN:t.onKeyboardNavigate(n);break;case xr.TAB:t.onTabKeyDown(n)}if("keydown"===i){var o=t.createRowEvent(xi.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(o)}if("keypress"===i){var s=t.createRowEvent(xi.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(s)}},i.prototype.doGridOperations=function(t,i){if((t.ctrlKey||t.metaKey)&&!i&&this.mouseEventService.isEventFromThisGrid(t)){var n=Pr(t);return n===xr.A?this.onCtrlAndA(t):n===xr.C?this.onCtrlAndC(t):n===xr.V?this.onCtrlAndV():n===xr.D?this.onCtrlAndD(t):n===xr.Z?this.onCtrlAndZ(t):n===xr.Y?this.onCtrlAndY():void 0}},i.prototype.onCtrlAndA=function(t){var i=this,n=i.pinnedRowModel,e=i.rangeService,r=Vt.PINNED_BOTTOM,o=Vt.PINNED_TOP;if(e&&i.paginationProxy.isRowsToRender()){var s=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}([n.isEmpty(o),n.isEmpty(r)],2),u=s[0]?null:o,h=void 0,c=void 0;s[1]?(h=null,c=this.paginationProxy.getRowCount()-1):(h=r,c=n.getPinnedBottomRowData().length-1);var a=this.columnModel.getAllDisplayedColumns();if(Y(a))return;e.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:c,rowEndPinned:h,columnStart:a[0],columnEnd:Jt(a)})}t.preventDefault()},i.prototype.onCtrlAndC=function(t){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),t.preventDefault())},i.prototype.onCtrlAndV=function(){Ut.isRegistered(Nt.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},i.prototype.onCtrlAndD=function(t){Ut.isRegistered(Nt.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),t.preventDefault()},i.prototype.onCtrlAndZ=function(t){this.gridOptionsWrapper.isUndoRedoCellEditing()&&(t.preventDefault(),t.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},i.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},tc([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),tc([Dt("valueService")],i.prototype,"valueService",void 0),tc([It("contextMenuFactory")],i.prototype,"contextMenuFactory",void 0),tc([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),tc([Dt("navigationService")],i.prototype,"navigationService",void 0),tc([Dt("focusService")],i.prototype,"focusService",void 0),tc([Dt("undoRedoService")],i.prototype,"undoRedoService",void 0),tc([Dt("columnModel")],i.prototype,"columnModel",void 0),tc([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),tc([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),tc([It("rangeService")],i.prototype,"rangeService",void 0),tc([It("clipboardService")],i.prototype,"clipboardService",void 0),tc([Ft],i.prototype,"postConstruct",null),i}(Ai),nc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ec=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},rc=function(t){function i(i){var n=t.call(this)||this;return n.centerContainerCtrl=i,n}return nc(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.listenForResize()})),this.addManagedListener(this.eventService,xi.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},i.prototype.listenForResize=function(){var t=this,i=function(){return t.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(i),this.gridBodyCtrl.registerBodyViewportResizeListener(i)},i.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},i.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var t=this.centerContainerCtrl.getCenterWidth();t!==this.centerWidth&&(this.centerWidth=t,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},i.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},i.prototype.getBodyHeight=function(){return this.bodyHeight},i.prototype.checkBodyHeight=function(){var t=fe(this.gridBodyCtrl.getBodyViewportElement());this.bodyHeight!==t&&(this.bodyHeight=t,this.eventService.dispatchEvent({type:xi.EVENT_BODY_HEIGHT_CHANGED}))},i.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},i.prototype.updateScrollVisibleServiceImpl=function(){var t={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(t),this.gridBodyCtrl.setVerticalScrollPaddingVisible(t.verticalScrollShowing)},i.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},i.prototype.onHorizontalViewportChanged=function(){var t=this.centerContainerCtrl.getCenterWidth(),i=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(t,i)},ec([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),ec([Dt("columnModel")],i.prototype,"columnModel",void 0),ec([Dt("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),ec([Ft],i.prototype,"postConstruct",null),i}(Ai),oc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},uc=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return oc(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,xi.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},i.prototype.onPinnedLeftWidthChanged=function(){var t=this.pinnedWidthService.getPinnedLeftWidth(),i=t>0;ue(this.element,i),i&&ke(this.element,t)},sc([Dt("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),sc([Ft],i.prototype,"postConstruct",null),i}(Ai),hc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),cc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ac=function(t){function i(i){var n=t.call(this)||this;return n.element=i,n}return hc(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,xi.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},i.prototype.onPinnedRightWidthChanged=function(){var t=this.pinnedWidthService.getPinnedRightWidth(),i=t>0;ue(this.element,i),i&&ke(this.element,t)},cc([Dt("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),cc([Ft],i.prototype,"postConstruct",null),i}(Ai),lc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},dc=function(t){function i(i,n){var e=t.call(this)||this;return e.eContainer=i,e.eWrapper=n,e}return lc(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,xi.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},i.prototype.onHeightChanged=function(){var t=this.maxDivHeightScaler.getUiContainerHeight(),i=null!=t?t+"px":"";this.eContainer.style.height=i,this.eWrapper&&(this.eWrapper.style.height=i)},fc([Dt("rowContainerHeightService")],i.prototype,"maxDivHeightScaler",void 0),fc([Ft],i.prototype,"postConstruct",null),i}(Ai),vc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},gc=function(t){function i(i){var n=t.call(this)||this;return n.eContainer=i,n}return vc(i,t),i.prototype.postConstruct=function(){var t=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!q(this.rangeService)){var i={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.dragService.addDragSource(i),this.addDestroyFunc((function(){return t.dragService.removeDragSource(i)}))}},pc([It("rangeService")],i.prototype,"rangeService",void 0),pc([Dt("dragService")],i.prototype,"dragService",void 0),pc([Ft],i.prototype,"postConstruct",null),i}(Ai),mc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wc=function(t){function i(i){var n=t.call(this)||this;return n.callback=i,n}return mc(i,t),i.prototype.postConstruct=function(){var t=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_DOM_LAYOUT,t),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.setWidth()},i.prototype.setWidth=function(){var t=this.columnModel,i=this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_PRINT,n=t.getBodyContainerWidth(),e=t.getDisplayedColumnsLeftWidth(),r=t.getDisplayedColumnsRightWidth();this.callback(i?n+e+r:n)},bc([Dt("columnModel")],i.prototype,"columnModel",void 0),bc([Ft],i.prototype,"postConstruct",null),i}(Ai),yc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Sc=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};!function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth",t.TOP_LEFT="topLeft",t.TOP_RIGHT="topRight",t.TOP_CENTER="topCenter",t.TOP_FULL_WIDTH="topFullWidth",t.STICKY_TOP_LEFT="stickyTopLeft",t.STICKY_TOP_RIGHT="stickyTopRight",t.STICKY_TOP_CENTER="stickyTopCenter",t.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",t.BOTTOM_LEFT="bottomLeft",t.BOTTOM_RIGHT="bottomRight",t.BOTTOM_CENTER="bottomCenter",t.BOTTOM_FULL_WIDTH="bottomFullWidth"}(Yh||(Yh={})),function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth"}(Jh||(Jh={}));var Rc,Oc=Ni([[Yh.CENTER,"ag-center-cols-container"],[Yh.LEFT,"ag-pinned-left-cols-container"],[Yh.RIGHT,"ag-pinned-right-cols-container"],[Yh.FULL_WIDTH,"ag-full-width-container"],[Yh.TOP_CENTER,"ag-floating-top-container"],[Yh.TOP_LEFT,"ag-pinned-left-floating-top"],[Yh.TOP_RIGHT,"ag-pinned-right-floating-top"],[Yh.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[Yh.STICKY_TOP_CENTER,"ag-sticky-top-container"],[Yh.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[Yh.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[Yh.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[Yh.BOTTOM_CENTER,"ag-floating-bottom-container"],[Yh.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[Yh.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[Yh.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),Ac=Ni([[Yh.CENTER,"ag-center-cols-viewport"],[Yh.TOP_CENTER,"ag-floating-top-viewport"],[Yh.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[Yh.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),jc=Ni([[Yh.CENTER,"ag-center-cols-clipper"]]),_c=function(t){function i(i){var n=t.call(this)||this;return n.name=i,n}return yc(i,t),i.getRowContainerCssClasses=function(t){return{container:Oc.get(t),viewport:Ac.get(t),wrapper:jc.get(t)}},i.getPinned=function(t){switch(t){case Yh.BOTTOM_LEFT:case Yh.TOP_LEFT:case Yh.STICKY_TOP_LEFT:case Yh.LEFT:return Vt.PINNED_LEFT;case Yh.BOTTOM_RIGHT:case Yh.TOP_RIGHT:case Yh.STICKY_TOP_RIGHT:case Yh.RIGHT:return Vt.PINNED_RIGHT;default:return null}},i.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([Yh.CENTER],(function(){return t.viewportSizeFeature=t.createManagedBean(new rc(t))}))},i.prototype.registerWithCtrlsService=function(){switch(this.name){case Yh.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case Yh.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case Yh.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case Yh.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case Yh.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case Yh.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case Yh.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case Yh.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case Yh.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case Yh.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case Yh.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case Yh.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},i.prototype.forContainers=function(t,i){t.indexOf(this.name)>=0&&i()},i.prototype.getContainerElement=function(){return this.eContainer},i.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},i.prototype.setComp=function(t,i,n,e){var r=this;this.comp=t,this.eContainer=i,this.eViewport=n,this.eWrapper=e,this.createManagedBean(new ic(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var o=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Sc(arguments[i]));return t}([Yh.TOP_CENTER,Yh.TOP_LEFT,Yh.TOP_RIGHT],[Yh.BOTTOM_CENTER,Yh.BOTTOM_LEFT,Yh.BOTTOM_RIGHT],[Yh.CENTER,Yh.LEFT,Yh.RIGHT],[Yh.STICKY_TOP_CENTER,Yh.STICKY_TOP_LEFT,Yh.STICKY_TOP_RIGHT]),s=[Yh.CENTER,Yh.LEFT,Yh.RIGHT,Yh.FULL_WIDTH],u=[Yh.CENTER,Yh.TOP_CENTER,Yh.STICKY_TOP_CENTER,Yh.BOTTOM_CENTER],h=[Yh.RIGHT,Yh.BOTTOM_RIGHT,Yh.TOP_RIGHT,Yh.STICKY_TOP_RIGHT];this.forContainers([Yh.LEFT,Yh.BOTTOM_LEFT,Yh.TOP_LEFT,Yh.STICKY_TOP_LEFT],(function(){return r.createManagedBean(new uc(r.eContainer))})),this.forContainers(h,(function(){return r.createManagedBean(new ac(r.eContainer))})),this.forContainers(s,(function(){return r.createManagedBean(new dc(r.eContainer,r.eWrapper))})),this.forContainers(o,(function(){return r.createManagedBean(new gc(r.eContainer))})),this.forContainers(u,(function(){return r.createManagedBean(new wc((function(t){return r.comp.setContainerWidth(t+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},i.prototype.addListeners=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return t.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return t.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return t.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return t.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},i.prototype.listenOnDomOrder=function(){var t=this;if([Yh.STICKY_TOP_CENTER,Yh.STICKY_TOP_LEFT,Yh.STICKY_TOP_RIGHT,Yh.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var i=function(){return t.comp.setDomOrder(t.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_DOM_LAYOUT,i),i()}},i.prototype.stopHScrollOnPinnedRows=function(){var t=this;this.forContainers([Yh.TOP_CENTER,Yh.STICKY_TOP_CENTER,Yh.BOTTOM_CENTER],(function(){t.addManagedListener(t.eViewport,"scroll",(function(){return t.eViewport.scrollLeft=0}))}))},i.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([Yh.CENTER],(function(){return t.onHorizontalViewportChanged()}))},i.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([Yh.CENTER],(function(){return t.onHorizontalViewportChanged()}))},i.prototype.onScrollVisibilityChanged=function(){if(this.name===Yh.CENTER){var t=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0;this.comp.setViewportHeight(0==t?"100%":"calc(100% + "+t+"px)")}},i.prototype.addPreventScrollWhileDragging=function(){var t=this,i=function(i){t.dragService.isDragging()&&i.cancelable&&i.preventDefault()};this.eContainer.addEventListener("touchmove",i,{passive:!1}),this.addDestroyFunc((function(){return t.eContainer.removeEventListener("touchmove",i)}))},i.prototype.onHorizontalViewportChanged=function(){var t=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,i)},i.prototype.getCenterWidth=function(){return de(this.eViewport)},i.prototype.getCenterViewportScrollLeft=function(){return me(this.eViewport,this.enableRtl)},i.prototype.registerViewportResizeListener=function(t){var i=this.resizeObserverService.observeResize(this.eViewport,t);this.addDestroyFunc((function(){return i()}))},i.prototype.isViewportVisible=function(){return Ce(this.eViewport)},i.prototype.isViewportHScrollShowing=function(){return xe(this.eViewport)},i.prototype.getViewportScrollLeft=function(){return me(this.eViewport,this.enableRtl)},i.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||xe(this.eViewport)},i.prototype.getViewportElement=function(){return this.eViewport},i.prototype.setContainerTranslateX=function(t){this.eContainer.style.transform="translateX("+t+"px)"},i.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},i.prototype.setCenterViewportScrollLeft=function(t){be(this.eViewport,t,this.enableRtl)},i.prototype.onDisplayedRowsChanged=function(){var t=this,i=this.name===Yh.TOP_FULL_WIDTH||this.name===Yh.STICKY_TOP_FULL_WIDTH||this.name===Yh.BOTTOM_FULL_WIDTH||this.name===Yh.FULL_WIDTH,n=this.getRowCtrls().filter((function(n){var e=n.isFullWidth(),r=t.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_PRINT,o=t.embedFullWidthRows||r;return i?!o&&e:o||!e}));this.comp.setRowCtrls(n)},i.prototype.getRowCtrls=function(){switch(this.name){case Yh.TOP_CENTER:case Yh.TOP_LEFT:case Yh.TOP_RIGHT:case Yh.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case Yh.STICKY_TOP_CENTER:case Yh.STICKY_TOP_LEFT:case Yh.STICKY_TOP_RIGHT:case Yh.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case Yh.BOTTOM_CENTER:case Yh.BOTTOM_LEFT:case Yh.BOTTOM_RIGHT:case Yh.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Cc([Dt("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),Cc([Dt("dragService")],i.prototype,"dragService",void 0),Cc([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Cc([Dt("columnModel")],i.prototype,"columnModel",void 0),Cc([Dt("resizeObserverService")],i.prototype,"resizeObserverService",void 0),Cc([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),Cc([Ft],i.prototype,"postConstruct",null),i}(Ai),Gc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),xc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Mc='<div class="ag-root ag-unselectable" role="grid">\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="'+Yh.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+Yh.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+Yh.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+Yh.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+Yh.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+Yh.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+Yh.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+Yh.FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n <ag-row-container ref="stickyTopLeftContainer" name="'+Yh.STICKY_TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="stickyTopCenterContainer" name="'+Yh.STICKY_TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="stickyTopRightContainer" name="'+Yh.STICKY_TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="stickyTopFullWidthContainer" name="'+Yh.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="'+Yh.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+Yh.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+Yh.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+Yh.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',Fc=function(t){function i(){return t.call(this,Mc)||this}return Gc(i,t),i.prototype.init=function(){var t=this,i=function(t,i){var n=t+"px";i.style.minHeight=n,i.style.height=n},n={setRowAnimationCssOnBodyViewport:function(i,n){return t.setRowAnimationCssOnBodyViewport(i,n)},setColumnCount:function(i){return lr(t.getGui(),i)},setRowCount:function(i){return cr(t.getGui(),i)},setTopHeight:function(n){return i(n,t.eTop)},setBottomHeight:function(n){return i(n,t.eBottom)},setTopDisplay:function(i){return t.eTop.style.display=i},setBottomDisplay:function(i){return t.eBottom.style.display=i},setStickyTopHeight:function(i){return t.eStickyTop.style.height=i},setStickyTopTop:function(i){return t.eStickyTop.style.top=i},setStickyTopWidth:function(i){return t.eStickyTop.style.width=i},setColumnMovingCss:function(i,n){return t.addOrRemoveCssClass(Rh,n)},updateLayoutClasses:function(i,n){var e=t.eBodyViewport.classList;e.toggle(Uu.AUTO_HEIGHT,n.autoHeight),e.toggle(Uu.NORMAL,n.normal),e.toggle(Uu.PRINT,n.print),t.addOrRemoveCssClass(Uu.AUTO_HEIGHT,n.autoHeight),t.addOrRemoveCssClass(Uu.NORMAL,n.normal),t.addOrRemoveCssClass(Uu.PRINT,n.print)},setAlwaysVerticalScrollClass:function(i,n){return t.eBodyViewport.classList.toggle(Sh,n)},registerBodyViewportResizeListener:function(i){var n=t.resizeObserverService.observeResize(t.eBodyViewport,i);t.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(i){return t.eTop.style.overflowY=t.eBottom.style.overflowY=i},setCellSelectableCss:function(i,n){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(t){return t.classList.toggle(Ch,n)}))}};this.ctrl=this.createManagedBean(new Oh),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&hr(this.getGui(),!0)},i.prototype.setRowAnimationCssOnBodyViewport=function(t,i){var n=this.eBodyViewport.classList;n.toggle(sh.ANIMATION_ON,i),n.toggle(sh.ANIMATION_OFF,!i)},i.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},xc([Dt("resizeObserverService")],i.prototype,"resizeObserverService",void 0),xc([It("rangeService")],i.prototype,"rangeService",void 0),xc([no("eBodyViewport")],i.prototype,"eBodyViewport",void 0),xc([no("eStickyTop")],i.prototype,"eStickyTop",void 0),xc([no("eTop")],i.prototype,"eTop",void 0),xc([no("eBottom")],i.prototype,"eBottom",void 0),xc([no("gridHeader")],i.prototype,"headerRootComp",void 0),xc([Ft],i.prototype,"init",null),i}(io),kc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Dc=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return kc(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},i.prototype.onDisplayedColumnsChanged=function(){this.update()},i.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},i.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},i.prototype.updateImpl=function(){var t=this.ctrlsService.getCenterRowContainerCtrl();if(t){var i={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(i)}},i.prototype.setScrollsVisible=function(t){this.horizontalScrollShowing===t.horizontalScrollShowing&&this.verticalScrollShowing===t.verticalScrollShowing||(this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing,this.eventService.dispatchEvent({type:xi.EVENT_SCROLL_VISIBILITY_CHANGED}))},i.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},i.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Pc([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Pc([Ft],i.prototype,"postConstruct",null),Pc([Pt("scrollVisibleService")],i)}(Ai),Ic=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ec=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Tc=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.gridInstanceId=n.gridInstanceSequence.next(),i}var n;return Ic(i,t),n=i,i.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[n.GRID_DOM_KEY]=this.gridInstanceId},i.prototype.getRenderedCellForEvent=function(t){return mi(this.gridOptionsWrapper,t,Kh.DOM_DATA_KEY_CELL_CTRL)},i.prototype.isEventFromThisGrid=function(t){return this.isElementInThisGrid(t.target)},i.prototype.isElementInThisGrid=function(t){for(var i=t;i;){var e=i[n.GRID_DOM_KEY];if($(e))return e===this.gridInstanceId;i=i.parentElement}return!1},i.prototype.getCellPositionForEvent=function(t){var i=this.getRenderedCellForEvent(t);return i?i.getCellPosition():null},i.prototype.getNormalisedPosition=function(t){var i,n,e=this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_NORMAL;if(null!=t.clientX||null!=t.clientY?(i=t.clientX,n=t.clientY):(i=t.x,n=t.y),e){var r=this.ctrlsService.getGridBodyCtrl(),o=r.getScrollFeature().getVScrollPosition();i+=r.getScrollFeature().getHScrollPosition().left,n+=o.top}return{x:i,y:n}},i.gridInstanceSequence=new Vr,i.GRID_DOM_KEY="__ag_grid_instance",Ec([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),n=Ec([Pt("mouseEventService")],i)}(Ai),zc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Nc=function(){return Nc=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Nc.apply(this,arguments)},Lc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Bc=function(t){function i(){var i=t.call(this)||this;return i.onPageDown=At(i.onPageDown,100),i.onPageUp=At(i.onPageUp,100),i}return zc(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCon=i.gridBodyCtrl}))},i.prototype.handlePageScrollingKey=function(t){var i=t.key,n=t.altKey,e=t.ctrlKey||t.metaKey,r=!!this.rangeService&&t.shiftKey,o=this.mouseEventService.getCellPositionForEvent(t);if(!o)return!1;var s=!1;switch(i){case xr.PAGE_HOME:case xr.PAGE_END:e||n||(this.onHomeOrEndKey(i),s=!0);break;case xr.LEFT:case xr.RIGHT:case xr.UP:case xr.DOWN:!e||n||r||(this.onCtrlUpDownLeftRight(i,o),s=!0);break;case xr.PAGE_DOWN:e||n||(this.onPageDown(o),s=!0);break;case xr.PAGE_UP:e||n||(this.onPageUp(o),s=!0)}return s&&t.preventDefault(),s},i.prototype.navigateTo=function(t){var i=t.scrollIndex,n=t.scrollType,e=t.scrollColumn,r=t.focusIndex,o=t.focusColumn;$(e)&&!e.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(e),$(i)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(i,n),t.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(r),this.focusService.setFocusedCell({rowIndex:r,column:o,rowPinned:null,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:r,rowPinned:null,column:o})},i.prototype.onPageDown=function(t){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),e=this.paginationProxy.getPixelOffset(),r=this.paginationProxy.getRowIndexAtPixel(i.top+n+e);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,r):this.navigateToNextPage(t,r)},i.prototype.onPageUp=function(t){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),e=this.paginationProxy.getRowIndexAtPixel(i.top+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,e,!0):this.navigateToNextPage(t,e,!0)},i.prototype.navigateToNextPage=function(t,i,n){var e,r;void 0===n&&(n=!1);var o,s=this.getViewportHeight(),u=this.paginationProxy.getPageFirstRow(),h=this.paginationProxy.getPageLastRow(),c=this.paginationProxy.getPixelOffset(),a=this.paginationProxy.getRow(t.rowIndex),l=n?(null===(e=a)||void 0===e?void 0:e.rowHeight)-s-c:s-c,f=(null===(r=a)||void 0===r?void 0:r.rowTop)+l,d=this.paginationProxy.getRowIndexAtPixel(f+c);d===t.rowIndex&&(i=d=t.rowIndex+(n?-1:1)),n?(o="bottom",d<u&&(d=u),i<u&&(i=u)):(o="top",d>h&&(d=h),i>h&&(i=h)),this.isRowTallerThanView(d)&&(i=d,o="top"),this.navigateTo({scrollIndex:i,scrollType:o,scrollColumn:null,focusIndex:d,focusColumn:t.column})},i.prototype.navigateToNextPageWithAutoHeight=function(t,i,n){var e=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:t.column}),setTimeout((function(){var r=e.getNextFocusIndexForAutoHeight(t,n);e.navigateTo({scrollIndex:i,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:t.column,isAsync:!0})}),50)},i.prototype.getNextFocusIndexForAutoHeight=function(t,i){var n;void 0===i&&(i=!1);for(var e=i?-1:1,r=this.getViewportHeight(),o=this.paginationProxy.getPageLastRow(),s=0,u=t.rowIndex;u>=0&&u<=o;){var h=this.paginationProxy.getRow(u);if(h){var c=null!=(n=h.rowHeight)?n:0;if(s+c>r)break;s+=c}u+=e}return Math.max(0,Math.min(u,o))},i.prototype.getViewportHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),i=this.gridOptionsWrapper.getScrollbarWidth(),n=t.bottom-t.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=i),n},i.prototype.isRowTallerThanView=function(t){var i=this.paginationProxy.getRow(t);if(!i)return!1;var n=i.rowHeight;return"number"==typeof n&&n>this.getViewportHeight()},i.prototype.onCtrlUpDownLeftRight=function(t,i){var n=this.cellNavigationService.getNextCellToFocus(t,i,!0),e=n.rowIndex,r=n.column;this.navigateTo({scrollIndex:e,scrollType:null,scrollColumn:r,focusIndex:e,focusColumn:r})},i.prototype.onHomeOrEndKey=function(t){var i=t===xr.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),e=i?n[0]:Jt(n),r=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:e,focusIndex:r,focusColumn:e})},i.prototype.onTabKeyDown=function(t,i){var n=i.shiftKey;if(this.tabToNextCellCommon(t,n,i))i.preventDefault();else if(n){var e=t.getRowPosition(),r=e.rowIndex;(e.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow())&&(i.preventDefault(),this.focusService.focusLastHeader(i))}else t instanceof Kh&&t.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&i.preventDefault()},i.prototype.tabToNextCell=function(t,i){var n=this.focusService.getFocusedCell();if(!n)return!1;var e=this.getCellByPosition(n);return!!(e||(e=this.rowRenderer.getRowByPosition(n))&&e.isFullWidth())&&this.tabToNextCellCommon(e,t,i)},i.prototype.tabToNextCellCommon=function(t,i,n){var e=t.isEditing();if(!e&&t instanceof Kh){var r=t.getRowCtrl();r&&(e=r.isEditing())}return(e?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(t,i,n):this.moveToNextEditingCell(t,i,n):this.moveToNextCellNotEditing(t,i))||!!this.focusService.getFocusedHeader()},i.prototype.moveToNextEditingCell=function(t,i,n){void 0===n&&(n=null);var e=t.getCellPosition();t.getGui().focus(),t.stopEditing();var r=this.findNextCellToFocusOn(e,i,!0);return null!=r&&(r.startEditing(null,null,!0,n),r.focusCell(!1),!0)},i.prototype.moveToNextEditingRow=function(t,i,n){void 0===n&&(n=null);var e=t.getCellPosition(),r=this.findNextCellToFocusOn(e,i,!0);if(null==r)return!1;var o=r.getCellPosition(),s=this.isCellEditable(e),u=this.isCellEditable(o),h=o&&e.rowIndex===o.rowIndex&&e.rowPinned===o.rowPinned;return s&&t.setFocusOutOnEditor(),h||(t.getRowCtrl().stopEditing(),r.getRowCtrl().startRowEditing(void 0,void 0,void 0,n)),u?(r.setFocusInOnEditor(),r.focusCell()):r.focusCell(!0),!0},i.prototype.moveToNextCellNotEditing=function(t,i){var n,e=this.columnModel.getAllDisplayedColumns();n=t instanceof Xh?Nc(Nc({},t.getRowPosition()),{column:i?e[0]:Jt(e)}):t.getCellPosition();var r=this.findNextCellToFocusOn(n,i,!1);if(r instanceof Kh)r.focusCell(!0);else if(r)return this.tryToFocusFullWidthRow(r.getRowPosition(),i);return $(r)},i.prototype.findNextCellToFocusOn=function(t,i,n){for(var e=t;;){t!==e&&(t=e),i||(e=this.getLastCellOfColSpan(e)),e=this.cellNavigationService.getNextTabbedCell(e,i);var r=this.gridOptionsWrapper.getTabToNextCellFunc();if($(r)){var o=r({backwards:i,editing:n,previousCellPosition:t,nextCellPosition:e||null});$(o)?(o.floating&&(gt((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),o.rowPinned=o.floating),e={rowIndex:o.rowIndex,column:o.column,rowPinned:o.rowPinned}):e=null}if(!e)return null;if(e.rowIndex<0){var s=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s+e.rowIndex,column:e.column}}),null}var u=this.gridOptionsWrapper.isFullRowEdit();if(!n||u||this.isCellEditable(e)){this.ensureCellVisible(e);var h=this.getCellByPosition(e);if(h){if(!h.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(e),h}else{var c=this.rowRenderer.getRowByPosition(e);if(c&&c.isFullWidth())return c}}}},i.prototype.isCellEditable=function(t){var i=this.lookupRowNodeForCell(t);return!!i&&t.column.isCellEditable(i)},i.prototype.getCellByPosition=function(t){var i=this.rowRenderer.getRowByPosition(t);return i?i.getCellCtrl(t.column):null},i.prototype.lookupRowNodeForCell=function(t){return t.rowPinned===Vt.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):t.rowPinned===Vt.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},i.prototype.navigateToNextCell=function(t,i,n,e){for(var r=n,o=!1;r&&(r===n||!this.isValidNavigateCell(r));)this.gridOptionsWrapper.isEnableRtl()?i===xr.LEFT&&(r=this.getLastCellOfColSpan(r)):i===xr.RIGHT&&(r=this.getLastCellOfColSpan(r)),o=q(r=this.cellNavigationService.getNextCellToFocus(i,r));if(o&&t&&t.key===xr.UP&&(r={rowIndex:-1,rowPinned:null,column:n.column}),e){var s=this.gridOptionsWrapper.getNavigateToNextCellFunc();if($(s)){var u=s({key:i,previousCellPosition:n,nextCellPosition:r||null,event:t});$(u)?(u.floating&&(gt((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),r={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):r=null}}if(r)if(r.rowIndex<0){var h=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:h+r.rowIndex,column:n.column},event:t||void 0})}else{var c=this.getNormalisedPosition(r);c?this.focusPosition(c):this.tryToFocusFullWidthRow(r)}},i.prototype.getNormalisedPosition=function(t){this.ensureCellVisible(t);var i=this.getCellByPosition(t);return i?(t=i.getCellPosition(),this.ensureCellVisible(t),t):null},i.prototype.tryToFocusFullWidthRow=function(t,i){void 0===i&&(i=!1);var n=this.columnModel.getAllDisplayedColumns(),e=this.rowRenderer.getRowByPosition(t);if(!e||!e.isFullWidth())return!1;var r=this.focusService.getFocusedCell(),o={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column||(i?Jt(n):n[0])};this.focusPosition(o);var s=null!=r&&this.rowPositionUtils.before(o,r);return this.eventService.dispatchEvent({type:xi.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:o.column,isFullWidthCell:!0,floating:o.rowPinned,fromBelow:s}),!0},i.prototype.focusPosition=function(t){this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(t)},i.prototype.isValidNavigateCell=function(t){return!!this.rowPositionUtils.getRowNode(t)},i.prototype.getLastCellOfColSpan=function(t){var i=this.getCellByPosition(t);if(!i)return t;var n=i.getColSpanningList();return 1===n.length?t:{rowIndex:t.rowIndex,column:Jt(n),rowPinned:t.rowPinned}},i.prototype.ensureCellVisible=function(t){var i,n=this.gridOptionsWrapper.isGroupRowsSticky(),e=this.rowModel.getRow(t.rowIndex);!(n&&(null===(i=e)||void 0===i?void 0:i.sticky))&&q(t.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(t.column)},Lc([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),Lc([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),Lc([Dt("focusService")],i.prototype,"focusService",void 0),Lc([It("rangeService")],i.prototype,"rangeService",void 0),Lc([Dt("columnModel")],i.prototype,"columnModel",void 0),Lc([Dt("rowModel")],i.prototype,"rowModel",void 0),Lc([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Lc([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),Lc([Dt("headerNavigationService")],i.prototype,"headerNavigationService",void 0),Lc([Dt("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),Lc([Dt("cellNavigationService")],i.prototype,"cellNavigationService",void 0),Lc([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Lc([Ft],i.prototype,"postConstruct",null),Lc([Pt("navigationService")],i)}(Ai),Hc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Wc=function(t){function i(i){var n=t.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=i,n}return Hc(i,t),i.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),i.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},i.prototype.addKeyDownListener=function(){var t=this,i=this.getGui(),n=this.params;this.addManagedListener(i,"keydown",(function(i){Fr(t.gridOptionsWrapper,i,n.node,n.column,!0)||n.onKeyDown(i)}))},i.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Ft],i.prototype,"postConstruct",null),i}(Os),Vc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Uc=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=i,s.column=n.getColumn(),s.rowNode=n.getRowNode(),s.rowCtrl=n.getRowCtrl(),s.eRow=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var u=s.getGui();s.forceWrapper=n.isForceWrapper(),s.refreshWrapper(!1);var h=function(t,i,n){var e=n||u;null!=i&&""!=i?e.setAttribute(t,i):e.removeAttribute(t)},c={addOrRemoveCssClass:function(t,i){return s.addOrRemoveCssClass(t,i)},setUserStyles:function(t){return Ge(u,t)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(t){return h("tabindex",t.toString())},setRole:function(t){return $e(u,t)},setColId:function(t){return h("col-id",t)},setTitle:function(t){return h("title",t)},setIncludeSelection:function(t){return s.includeSelection=t},setIncludeRowDrag:function(t){return s.includeRowDrag=t},setIncludeDndSource:function(t){return s.includeDndSource=t},setRenderDetails:function(t,i,n){return s.setRenderDetails(t,i,n)},setEditDetails:function(t,i,n){return s.setEditDetails(t,i,n)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=n,n.setComp(c,s.getGui(),s.eCellWrapper,e,o),s}return Vc(i,t),i.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},i.prototype.setRenderDetails=function(t,i,n){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var e=this.refreshWrapper(!1);t?!n&&!e&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(i))}},i.prototype.setEditDetails=function(t,i,n){t?this.createCellEditorInstance(t,i,n):this.destroyEditor()},i.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},i.prototype.refreshWrapper=function(t){var i=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=i||this.forceWrapper,e=n&&null==this.eCellWrapper;e&&(this.eCellWrapper=Se('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var r=!n&&null!=this.eCellWrapper;r&&(ye(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var o=!t&&n,s=o&&null==this.eCellValue;s&&(this.eCellValue=Se('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var u=!o&&null!=this.eCellValue;u&&(ye(this.eCellValue),this.eCellValue=void 0);var h=e||r||s||u;return h&&this.removeControls(),!t&&i&&this.addControls(),h},i.prototype.addControls=function(){var t=this.eCellValue.id="cell-"+this.getCompId(),i=[];er(this.eCellWrapper,!0),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)),i.push(this.checkboxSelectionComp.getCheckboxId())),i.push(t),tr(this.getGui(),i.join(" "))},i.prototype.createCellEditorInstance=function(t,i,n){var e=this,r=this.editorVersion,o=t.newAgStackInstance();if(o){var s=t.params;o.then((function(t){return e.afterCellEditorCreated(r,t,s,i,n)})),q(this.cellEditor)&&s.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},i.prototype.insertValueWithoutCellRenderer=function(t){var i=this.getParentOfValue();we(i);var n=null!=t?Ei(t):null;null!=n&&(i.innerHTML=n)},i.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},i.prototype.destroyRenderer=function(){this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),ye(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},i.prototype.destroyEditor=function(){var t=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),ye(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},i.prototype.refreshCellRenderer=function(t){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==t.componentClass)return!1;var i=this.cellRenderer.refresh(t.params);return!0===i||void 0===i},i.prototype.createCellRendererInstance=function(t){var i=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),e=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),r=this.rendererVersion,o=t.componentClass,s=function(){if(i.rendererVersion===r&&i.isAlive()){var n=t.newAgStackInstance(),e=i.afterCellRendererCreated.bind(i,r,o);n&&n.then(e)}};n||e||!this.firstRender?s():this.beans.animationFrameService.createTask(s,this.rowNode.rowIndex,"createTasksP2")},i.prototype.getCtrl=function(){return this.cellCtrl},i.prototype.getRowCtrl=function(){return this.rowCtrl},i.prototype.getCellRenderer=function(){return this.cellRenderer},i.prototype.getCellEditor=function(){return this.cellEditor},i.prototype.afterCellRendererCreated=function(t,i,n){if(this.isAlive()&&t===this.rendererVersion){if(this.cellRenderer=n,this.cellRendererClass=i,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var e=this.getParentOfValue();we(e),e.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(n)},i.prototype.afterCellEditorCreated=function(t,i,n,e,r){if(t!==this.editorVersion)this.beans.context.destroyBean(i);else{if(i.isCancelBeforeStart&&i.isCancelBeforeStart())return this.beans.context.destroyBean(i),void this.cellCtrl.stopEditing();if(!i.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(i);this.cellEditor=i,this.cellEditorGui=i.getGui(),e||void 0!==i.isPopup&&i.isPopup()?(e||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,r)):this.addInCellEditor(),i.afterGuiAttached&&i.afterGuiAttached()}},i.prototype.addInCellEditor=function(){var t=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();t.contains(i.activeElement)&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},i.prototype.addPopupCellEditor=function(t,i){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&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.");var e=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Wc(t));var r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);var o=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),u=null!=i?i:e.getPopupPosition?e.getPopupPosition():"over",h={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:r,keepWithinBounds:!0},c="under"===u?o.positionPopupUnderComponent.bind(o,h):o.positionPopupOverComponent.bind(o,h),a=this.beans.gridOptionsWrapper.getLocaleTextFunc(),l=o.addPopup({modal:s,eChild:r,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:a("ariaLabelCellEditor","Cell Editor")});l&&(this.hideEditorPopup=l.hideFunc)},i.prototype.detach=function(){this.eRow.removeChild(this.getGui())},i.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),t.prototype.destroy.call(this)},i.prototype.clearParentOfValue=function(){var t=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();t.contains(i.activeElement)&&pn()&&t.focus({preventScroll:!0}),we(this.getParentOfValue())},i}(io),Kc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$c=function(t){function i(i,n,e){var r=t.call(this)||this;r.cellComps={},r.beans=n,r.rowCtrl=i,r.setTemplate('<div comp-id="'+r.getCompId()+'" style="'+r.getInitialStyle()+'"/>');var o=r.getGui(),s=o.style;return i.setComp({setDomOrder:function(t){return r.domOrder=t},setCellCtrls:function(t){return r.setCellCtrls(t)},showFullWidth:function(t){return r.showFullWidth(t)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(t,i){return r.addOrRemoveCssClass(t,i)},setUserStyles:function(t){return Ge(o,t)},setTop:function(t){return s.top=t},setTransform:function(t){return s.transform=t},setRowIndex:function(t){return o.setAttribute("row-index",t)},setRole:function(t){return $e(o,t)},setRowId:function(t){return o.setAttribute("row-id",t)},setRowBusinessKey:function(t){return o.setAttribute("row-business-key",t)},setTabIndex:function(t){return o.setAttribute("tabindex",t.toString())}},r.getGui(),e),r}return Kc(i,t),i.prototype.getInitialStyle=function(){var t=this.rowCtrl.getInitialTransform(),i=this.rowCtrl.getInitialRowTop();return t?"transform: "+t:"top: "+i},i.prototype.showFullWidth=function(t){var i=this,n=t.newAgStackInstance();n&&n.then((function(t){if(i.isAlive()){var n=t.getGui();i.getGui().appendChild(n),i.rowCtrl.setupDetailRowAutoHeight(n),i.setFullWidthRowComp(t)}else i.beans.context.destroyBean(t)}))},i.prototype.setCellCtrls=function(t){var i=this,n=Object.assign({},this.cellComps);t.forEach((function(t){var e=t.getInstanceId();null==i.cellComps[e]?i.newCellComp(t):n[e]=null}));var e=ct(n).filter((function(t){return null!=t}));this.destroyCells(e),this.ensureDomOrder(t)},i.prototype.ensureDomOrder=function(t){var i=this;if(this.domOrder){var n=[];t.forEach((function(t){var e=i.cellComps[t.getInstanceId()];e&&n.push(e.getGui())})),je(this.getGui(),n)}},i.prototype.newCellComp=function(t){var i=new Uc(this.beans,t,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[t.getInstanceId()]=i,this.getGui().appendChild(i.getGui())},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.destroyAllCells()},i.prototype.destroyAllCells=function(){var t=ct(this.cellComps).filter((function(t){return null!=t}));this.destroyCells(t)},i.prototype.setFullWidthRowComp=function(t){var i=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=t,this.addDestroyFunc((function(){i.fullWidthCellRenderer=i.beans.context.destroyBean(i.fullWidthCellRenderer)}))},i.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},i.prototype.destroyCells=function(t){var i=this;t.forEach((function(t){if(t){var n=t.getCtrl().getInstanceId();i.cellComps[n]===t&&(t.detach(),t.destroy(),i.cellComps[n]=null)}}))},i}(io),qc=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yc=function(){return Yc=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Yc.apply(this,arguments)},Jc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zc=function(t){function i(){var i,n,e=t.call(this,(i=io.elementGettingCreated.getAttribute("name"),n=_c.getRowContainerCssClasses(i),i===Yh.CENTER?'<div class="'+n.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>\n </div>':i===Yh.TOP_CENTER||i===Yh.STICKY_TOP_CENTER||i===Yh.BOTTOM_CENTER?'<div class="'+n.viewport+'" ref="eViewport" role="presentation">\n <div class="'+n.container+'" ref="eContainer"></div>\n </div>':'<div class="'+n.container+'" ref="eContainer"></div>'))||this;return e.rowComps={},e.name=io.elementGettingCreated.getAttribute("name"),e.type=function(t){switch(t){case Yh.CENTER:case Yh.TOP_CENTER:case Yh.STICKY_TOP_CENTER:case Yh.BOTTOM_CENTER:return Jh.CENTER;case Yh.LEFT:case Yh.TOP_LEFT:case Yh.STICKY_TOP_LEFT:case Yh.BOTTOM_LEFT:return Jh.LEFT;case Yh.RIGHT:case Yh.TOP_RIGHT:case Yh.STICKY_TOP_RIGHT:case Yh.BOTTOM_RIGHT:return Jh.RIGHT;case Yh.FULL_WIDTH:case Yh.TOP_FULL_WIDTH:case Yh.STICKY_TOP_FULL_WIDTH:case Yh.BOTTOM_FULL_WIDTH:return Jh.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(e.name),e}return qc(i,t),i.prototype.postConstruct=function(){var t=this,i={setViewportHeight:function(i){return t.eViewport.style.height=i},setRowCtrls:function(i){return t.setRowCtrls(i)},setDomOrder:function(i){t.domOrder=i},setContainerWidth:function(i){return t.eContainer.style.width=i}};this.createManagedBean(new _c(this.name)).setComp(i,this.eContainer,this.eViewport,this.eWrapper)},i.prototype.preDestroy=function(){this.setRowCtrls([])},i.prototype.setRowCtrls=function(t){var i=this,n=Yc({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,t.forEach((function(t){var e=t.getInstanceId(),r=n[e];if(r)i.rowComps[e]=r,delete n[e],i.ensureDomOrder(r.getGui());else{var o=i.newRowComp(t);i.rowComps[e]=o,i.appendRow(o.getGui())}})),ct(n).forEach((function(t){i.eContainer.removeChild(t.getGui()),t.destroy()})),$e(this.eContainer,t.length?"rowgroup":"presentation")},i.prototype.appendRow=function(t){this.domOrder?_e(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t},i.prototype.ensureDomOrder=function(t){this.domOrder&&(Ae(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},i.prototype.newRowComp=function(t){return _c.getPinned(this.name),new $c(t,this.beans,this.type)},Jc([Dt("beans")],i.prototype,"beans",void 0),Jc([no("eViewport")],i.prototype,"eViewport",void 0),Jc([no("eContainer")],i.prototype,"eContainer",void 0),Jc([no("eWrapper")],i.prototype,"eWrapper",void 0),Jc([Ft],i.prototype,"postConstruct",null),Jc([kt],i.prototype,"preDestroy",null),i}(io),Xc=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Qc=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var i=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=t.dragItem.columns;n&&n.forEach((function(t){t.isPrimary()&&(t.isAnyFunctionActive()||(t.isAllowValue()?i.columnsToAggregate.push(t):t.isAllowRowGroup()?i.columnsToGroup.push(t):t.isAllowPivot()&&i.columnsToPivot.push(t)))}))}},t.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Xs.ICON_PINNED:Xs.ICON_MOVE:null},t.prototype.onDragLeave=function(){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(){},t.prototype.onDragStop=function(){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")},Xc([Dt("columnModel")],t.prototype,"columnModel",void 0),Xc([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),ta=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ia=function(){function t(t,i){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=t,this.eContainer=i,this.centerContainer=!$(t)}return t.prototype.init=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.getIconName=function(){return this.pinned?Xs.ICON_PINNED:Xs.ICON_MOVE},t.prototype.onDragEnter=function(t){var i=t.dragItem.columns;if(t.dragSource.type===Ls.ToolPanel)this.setColumnsVisible(i,!0,"uiColumnDragged");else{var n=t.dragItem.visibleState,e=(i||[]).filter((function(t){return n[t.getId()]}));this.setColumnsVisible(e,!0,"uiColumnDragged")}this.setColumnsPinned(i,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},t.prototype.onDragLeave=function(){this.ensureIntervalCleared()},t.prototype.setColumnsVisible=function(t,i,n){if(void 0===n&&(n="api"),t){var e=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnModel.setColumnsVisible(e,i,n)}},t.prototype.setColumnsPinned=function(t,i,n){if(void 0===n&&(n="api"),t){var e=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnModel.setColumnsPinned(e,i,n)}},t.prototype.onDragStop=function(){this.ensureIntervalCleared()},t.prototype.normaliseX=function(t){return this.gridOptionsWrapper.isEnableRtl()&&(t=this.eContainer.clientWidth-t),this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var i=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=i+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=t<i+50,this.needToMoveLeft=t>n-50):(this.needToMoveLeft=t<i+50,this.needToMoveRight=t>n-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(t,i,n){var e=this;if(void 0===i&&(i=!1),void 0===n&&(n=!1),this.lastDraggingEvent=t,!q(t.hDirection)){var r=this.normaliseX(t.x);i||this.checkCenterForScrolling(r);var o=this.normaliseDirection(t.hDirection),s=t.dragSource.type,u=t.dragSource.getDragItem().columns;u=u.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==e.pinned})),this.attemptMoveColumns(s,u,o,r,i,n)}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsWrapper.isEnableRtl())return t;switch(t){case Hs.Left:return Hs.Right;case Hs.Right:return Hs.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.calculateOldIndex=function(t){var i=this.columnModel.getAllGridColumns(),n=Xt(t.map((function(t){return i.indexOf(t)}))),e=n[0];return Jt(n)-e!=n.length-1?null:e},t.prototype.attemptMoveColumns=function(t,i,n,e,r,o){var s=n===Hs.Left,u=n===Hs.Right;if(t===Ls.HeaderCell){var h=[];i.forEach((function(t){for(var i=null,n=t.getParent();null!=n&&1===n.getDisplayedLeafColumns().length;)i=n,n=n.getParent();null!=i?i.getLeafColumns().forEach((function(t){h.includes(t)||h.push(t)})):h.includes(t)||h.push(t)})),i=h}var c=i.slice();this.columnModel.sortColumnsLikeGridColumns(c);var a=this.calculateValidMoves(c,u,e),l=this.calculateOldIndex(c);if(0!==a.length){var f=a[0],d=null!==l&&!r;if(t==Ls.HeaderCell&&(d=null!==l),d&&!o){if(s&&f>=l)return;if(u&&f<=l)return}for(var v=this.columnModel.getAllDisplayedColumns(),p=[],g=null,m=0;m<a.length;m++){var b=a[m],w=this.columnModel.getProposedColumnOrder(c,b);if(this.columnModel.doesOrderPassRules(w)){var y=w.filter((function(t){return v.includes(t)}));if(null===g)g=y;else if(!Wr.areEqual(y,g))break;var C=this.groupFragCount(w);p.push({move:b,fragCount:C})}}0!==p.length&&(p.sort((function(t,i){return t.fragCount-i.fragCount})),this.columnModel.moveColumns(c,p[0].move,"uiColumnDragged"))}},t.prototype.groupFragCount=function(t){function i(t){for(var i=[],n=t.getOriginalParent();null!=n;)i.push(n),n=n.getOriginalParent();return i}for(var n=0,e=function(e){var r,o=i(t[e]),s=i(t[e+1]);r=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(o.length>s.length?[o,s]:[s,o],2),s=r[1],(o=r[0]).forEach((function(t){-1===s.indexOf(t)&&n++}))},r=0;r<t.length-1;r++)e(r);return n},t.prototype.calculateValidMoves=function(t,i,n){if(this.gridOptionsWrapper.isSuppressMovableColumns()||t.some((function(t){return t.getColDef().suppressMovable})))return[];var e,r=this.columnModel.getDisplayedColumns(this.pinned),o=this.columnModel.getAllGridColumns(),s=r.filter((function(i){return ei(t,i)})),u=r.filter((function(i){return!ei(t,i)})),h=o.filter((function(i){return!ei(t,i)})),c=0,a=n;if(i){var l=0;s.forEach((function(t){return l+=t.getActualWidth()})),a-=l}if(a>0){for(var f=0;f<u.length&&!((a-=u[f].getActualWidth())<0);f++)c++;i&&c++}c>0?e=h.indexOf(u[c-1])+1:-1===(e=h.indexOf(u[0]))&&(e=0);var d=[e],v=function(t,i){return t-i};if(i){for(var p=e+1,g=o.length-1;p<=g;)d.push(p),p++;d.sort(v)}else{g=o.length-1;for(var m=o[p=e];p<=g&&this.isColumnHidden(r,m);)p++,d.push(p),m=o[p];for(p=e-1;p>=0;)d.push(p),p--;d.sort(v).reverse()}return d},t.prototype.isColumnHidden=function(t,i){return t.indexOf(i)<0},t.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?Xs.ICON_LEFT:Xs.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Xs.ICON_MOVE))},t.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var i=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?i=n.scrollHorizontally(-t):this.needToMoveRight&&(i=n.scrollHorizontally(t)),0!==i)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var e=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));e.length>0&&(this.dragAndDropService.setGhostIcon(Xs.ICON_PINNED),this.failedMoveAttempts>7&&(this.setColumnsPinned(e,this.needToMoveLeft?Vt.PINNED_LEFT:Vt.PINNED_RIGHT,"uiColumnDragged"),this.dragAndDropService.nudge()))}},ta([Dt("columnModel")],t.prototype,"columnModel",void 0),ta([Dt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ta([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ta([Dt("ctrlsService")],t.prototype,"ctrlsService",void 0),ta([Ft],t.prototype,"init",null),t}(),na=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ea=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ra=function(t){function i(i,n){var e=t.call(this)||this;return e.pinned=i,e.eContainer=n,e}return na(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){switch(t.pinned){case Vt.PINNED_LEFT:t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.leftRowContainerCtrl.getContainerElement()],[i.bottomLeftRowContainerCtrl.getContainerElement()],[i.topLeftRowContainerCtrl.getContainerElement()]];break;case Vt.PINNED_RIGHT:t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.rightRowContainerCtrl.getContainerElement()],[i.bottomRightRowContainerCtrl.getContainerElement()],[i.topRightRowContainerCtrl.getContainerElement()]];break;default:t.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.centerRowContainerCtrl.getViewportElement()],[i.bottomCenterRowContainerCtrl.getViewportElement()],[i.topCenterRowContainerCtrl.getViewportElement()]]}}))},i.prototype.isInterestedIn=function(t){return t===Ls.HeaderCell||t===Ls.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},i.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},i.prototype.getContainer=function(){return this.eContainer},i.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new ia(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Qc(this.pinned)),this.dragAndDropService.addDropTarget(this)},i.prototype.getIconName=function(){return this.currentDropListener.getIconName()},i.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===Ls.ToolPanel},i.prototype.onDragEnter=function(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(t)},i.prototype.onDragLeave=function(t){this.currentDropListener.onDragLeave(t)},i.prototype.onDragging=function(t){this.currentDropListener.onDragging(t)},i.prototype.onDragStop=function(t){this.currentDropListener.onDragStop(t)},ea([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),ea([Dt("columnModel")],i.prototype,"columnModel",void 0),ea([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),ea([Ft],i.prototype,"postConstruct",null),ea([Ft],i.prototype,"init",null),i}(Ai),oa=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},sa=function(){function t(){}return t.getHeaderClassesFromColDef=function(t,i,n,e){return q(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,i,n,e)},t.getToolPanelClassesFromColDef=function(t,i,n,e){return q(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,i,n,e)},t.getClassParams=function(t,i,n,e){return{colDef:t,column:n,columnGroup:e,api:i.getApi(),columnApi:i.getColumnApi(),context:i.getContext()}},t.getColumnClassesFromCollDef=function(t,i,n,e,r){return q(t)?[]:"string"==typeof(o="function"==typeof t?t(this.getClassParams(i,n,e,r)):t)?[o]:Array.isArray(o)?function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(oa(arguments[i]));return t}(o):[];var o},t}(),ua=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ha=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ca=function(t){function i(n){var e=t.call(this,i.TEMPLATE,n)||this;return e.headerCompVersion=0,e.column=n.getColumnGroupChild(),e.pinned=n.getPinned(),e}return ua(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui(),n=function(t,n,e){var r=e||i;null!=n&&""!=n?r.setAttribute(t,n):r.removeAttribute(t)};this.ctrl.setComp({setWidth:function(t){return i.style.width=t},addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setColId:function(t){return n("col-id",t)},setTitle:function(t){return n("title",t)},setAriaDescription:function(t){return Qe(i,t)},setAriaSort:function(t){return t?vr(i,t):pr(i)},setUserCompDetails:function(i){return t.setUserCompDetails(i)},getUserCompInstance:function(){return t.headerComp}},this.getGui(),this.eResize,this.eHeaderCompWrapper);var e=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",e)},i.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},i.prototype.setUserCompDetails=function(t){var i=this;this.headerCompVersion++;var n=this.headerCompVersion;t.newAgStackInstance().then((function(t){return i.afterCompCreated(n,t)}))},i.prototype.afterCompCreated=function(t,i){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=i,this.headerCompGui=i.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(i)},i.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\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>',ha([no("eResize")],i.prototype,"eResize",void 0),ha([no("eHeaderCompWrapper")],i.prototype,"eHeaderCompWrapper",void 0),ha([Ft],i.prototype,"postConstruct",null),ha([kt],i.prototype,"destroyHeaderComp",null),i}(th),aa=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),la=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},fa=function(t){function i(n){return t.call(this,i.TEMPLATE,n)||this}return aa(i,t),i.prototype.postConstruct=function(){var t=this,i=this.getGui(),n=function(t,n){return null!=n?i.setAttribute(t,n):i.removeAttribute(t)};this.ctrl.setComp({addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},addOrRemoveResizableCssClass:function(i,n){return t.eResize.classList.toggle(i,n)},setWidth:function(t){return i.style.width=t},setColId:function(t){return i.setAttribute("col-id",t)},setAriaExpanded:function(t){return n("aria-expanded",t)},setTitle:function(t){return n("title",t)},setUserCompDetails:function(i){return t.setUserCompDetails(i)}},i,this.eResize)},i.prototype.setUserCompDetails=function(t){var i=this;t.newAgStackInstance().then((function(t){return i.afterHeaderCompCreated(t)}))},i.prototype.afterHeaderCompCreated=function(t){var i=this,n=function(){return i.destroyBean(t)};this.isAlive()?(this.getGui().appendChild(t.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(t.getGui())):n()},i.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',la([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),la([no("eResize")],i.prototype,"eResize",void 0),la([Ft],i.prototype,"postConstruct",null),i}(th),da=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),va=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t.COLUMN_GROUP="group",t.COLUMN="column",t.FLOATING_FILTER="filter"}(Rc||(Rc={}));var pa,ga=function(t){function i(i){var n=t.call(this)||this;n.headerComps={};var e=i.getType()==Rc.COLUMN_GROUP?"ag-header-row-column-group":i.getType()==Rc.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return n.setTemplate('<div class="ag-header-row '+e+'" role="row"></div>'),n.ctrl=i,n}return da(i,t),i.prototype.init=function(){var t=this;this.ctrl.setComp({setTransform:function(i){return t.getGui().style.transform=i},setHeight:function(i){return t.getGui().style.height=i},setTop:function(i){return t.getGui().style.top=i},setHeaderCtrls:function(i){return t.setHeaderCtrls(i)},setWidth:function(i){return t.getGui().style.width=i},setAriaRowIndex:function(i){return ar(t.getGui(),i)}})},i.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},i.prototype.setHeaderCtrls=function(t){var i=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},t.forEach((function(t){var e=t.getInstanceId(),r=n[e];delete n[e],null==r&&(r=i.createHeaderComp(t),i.getGui().appendChild(r.getGui())),i.headerComps[e]=r})),nt(n,(function(t,n){i.getGui().removeChild(n.getGui()),i.destroyBean(n)})),this.gridOptionsWrapper.isEnsureDomOrder()){var e=ct(this.headerComps);e.sort((function(t,i){return t.getCtrl().getColumnGroupChild().getLeft()-i.getCtrl().getColumnGroupChild().getLeft()}));var r=e.map((function(t){return t.getGui()}));je(this.getGui(),r)}}},i.prototype.createHeaderComp=function(t){var i;switch(this.ctrl.getType()){case Rc.COLUMN_GROUP:i=new fa(t);break;case Rc.FLOATING_FILTER:i=new eh(t);break;default:i=new ca(t)}return this.createBean(i),i.setParentComponent(this),i},va([Ft],i.prototype,"init",null),va([kt],i.prototype,"destroyHeaderCtrls",null),i}(io),ma=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ba=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wa=0,ya=function(t){function i(i,n){var e=t.call(this)||this;return e.lastFocusEvent=null,e.columnGroupChild=i,e.parentRowCtrl=n,e.instanceId=i.getUniqueId()+"-"+wa++,e}return ma(i,t),i.prototype.shouldStopEventPropagation=function(t){var i=this.focusService.getFocusedHeader();return kr(this.gridOptionsWrapper,t,i.headerRowIndex,i.column)},i.prototype.getWrapperHasFocus=function(){return this.gridOptionsWrapper.getDocument().activeElement===this.eGui},i.prototype.setGui=function(t){this.eGui=t,this.addDomData()},i.prototype.handleKeyDown=function(t){var i=this.getWrapperHasFocus();switch(t.key){case xr.PAGE_DOWN:case xr.PAGE_UP:case xr.PAGE_HOME:case xr.PAGE_END:i&&t.preventDefault()}},i.prototype.addDomData=function(){var t=this,n=i.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return t.gridOptionsWrapper.setDomData(t.eGui,n,null)}))},i.prototype.getGui=function(){return this.eGui},i.prototype.focus=function(t){return!!this.eGui&&(this.lastFocusEvent=t||null,this.eGui.focus(),!0)},i.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},i.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},i.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.getColumnGroupChild=function(){return this.columnGroupChild},i.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",ba([Dt("focusService")],i.prototype,"focusService",void 0),ba([Dt("beans")],i.prototype,"beans",void 0),ba([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),i}(Ai);
259
+ /**
260
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
261
+ * @version v28.2.1
262
+ * @link https://www.ag-grid.com/
263
+ * @license MIT
264
+ */!function(t){t.EVERYTHING="group",t.FILTER="filter",t.SORT="sort",t.MAP="map",t.AGGREGATE="aggregate",t.FILTER_AGGREGATES="filter_aggregates",t.PIVOT="pivot",t.NOTHING="nothing"}(pa||(pa={}));
265
+ /**
266
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
267
+ * @version v28.2.1
268
+ * @link https://www.ag-grid.com/
269
+ * @license MIT
270
+ */
271
+ var Ca=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};function Sa(t){return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():t}var Ra,Oa=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},t.prototype.registerSideBarComp=function(t){this.sideBarComp=t},t.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case Vt.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case Vt.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case Vt.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.__getContext=function(){return this.context},t.prototype.addDetailGridInfo=function(t,i){this.detailGridInfoMap[t]=i},t.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},t.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},t.prototype.forEachDetailGridInfo=function(t){var i=0;nt(this.detailGridInfoMap,(function(n,e){$(e)&&(t(e,i),i++)}))},t.prototype.getDataAsCsv=function(t){if(Ut.assertRegistered(Nt.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){Ut.assertRegistered(Nt.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getExcelExportMode=function(t){var i=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},i,t).exportMode},t.prototype.getDataAsExcel=function(t){if(Ut.assertRegistered(Nt.ExcelExportModule,"api.getDataAsExcel")){var i=this.getExcelExportMode(t);if(this.excelCreator.getFactoryMode(i)!==Zs.MULTI_SHEET)return this.excelCreator.getDataAsExcel(t);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},t.prototype.exportDataAsExcel=function(t){if(Ut.assertRegistered(Nt.ExcelExportModule,"api.exportDataAsExcel")){var i=this.getExcelExportMode(t);this.excelCreator.getFactoryMode(i)!==Zs.MULTI_SHEET?this.excelCreator.exportDataAsExcel(t):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},t.prototype.getSheetDataForExcel=function(t){if(Ut.assertRegistered(Nt.ExcelExportModule,"api.getSheetDataForExcel")){var i=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(Zs.MULTI_SHEET,i),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(Ut.assertRegistered(Nt.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(Ut.assertRegistered(Nt.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setEnterpriseDatasource=function(t){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(t)},t.prototype.setGridAriaProperty=function(t,i){if(t){var n=this.ctrlsService.getGridBodyCtrl().getGui(),e="aria-"+t;null===i?n.removeAttribute(e):n.setAttribute(e,i)}},t.prototype.setServerSideDatasource=function(t){this.serverSideRowModel?this.serverSideRowModel.setDatasource(t):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+Vt.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setCacheBlockSize=function(t){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",t),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+Vt.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setDatasource=function(t){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(t):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+Vt.ROW_MODEL_TYPE_INFINITE+"'")},t.prototype.setViewportDatasource=function(t){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(t):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+Vt.ROW_MODEL_TYPE_VIEWPORT+"'")},t.prototype.setRowData=function(t){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(t):(this.selectionService.reset(),this.clientSideRowModel.setRowData(t))},t.prototype.setFloatingTopRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(t)},t.prototype.setFloatingBottomRowData=function(t){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(t)},t.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},t.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},t.prototype.getFloatingTopRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(t)},t.prototype.getFloatingBottomRow=function(t){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(t)},t.prototype.setPinnedTopRowData=function(t){this.pinnedRowModel.setPinnedTopRowData(t)},t.prototype.setPinnedBottomRowData=function(t){this.pinnedRowModel.setPinnedBottomRowData(t)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(t){return this.pinnedRowModel.getPinnedTopRow(t)},t.prototype.getPinnedBottomRow=function(t){return this.pinnedRowModel.getPinnedBottomRow(t)},t.prototype.setColumnDefs=function(t,i){void 0===i&&(i="api"),this.columnModel.setColumnDefs(t,i)},t.prototype.setAutoGroupColumnDef=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_AUTO_GROUP_COLUMN_DEF,t,!0)},t.prototype.setDefaultColDef=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_DEFAULT_COL_DEF,t,!0)},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},t.prototype.setAlwaysShowHorizontalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",t)},t.prototype.setAlwaysShowVerticalScroll=function(t){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",t)},t.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.refreshCells=function(t){void 0===t&&(t={}),Array.isArray(t)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(t)},t.prototype.flashCells=function(t){void 0===t&&(t={}),this.rowRenderer.flashCells(t)},t.prototype.redrawRows=function(t){void 0===t&&(t={}),this.rowRenderer.redrawRows(t?t.rowNodes:void 0)},t.prototype.setFunctionsReadOnly=function(t){this.gridOptionsWrapper.setProperty("functionsReadOnly",t)},t.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(t){return t.refresh()}))},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(t,i){t&&t.setExpanded(i)},t.prototype.onGroupExpandedOrCollapsed=function(t){q(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),$(t)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:pa.MAP})},t.prototype.refreshInMemoryRowModel=function(t){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(t)},t.prototype.refreshClientSideRowModel=function(t){q(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var i=pa.EVERYTHING,n={everything:pa.EVERYTHING,group:pa.EVERYTHING,filter:pa.FILTER,map:pa.MAP,aggregate:pa.AGGREGATE,sort:pa.SORT,pivot:pa.PIVOT};if($(t)&&(i=n[t]),q(i))console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(n).join(", "));else{var e=!this.gridOptionsWrapper.isSuppressAnimationFrame();this.clientSideRowModel.refreshModel({step:i,keepRenderedRows:!0,keepEditingRows:!0,animate:e})}},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},t.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},t.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},t.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},t.prototype.getToolPanelInstance=function(t){if(this.sideBarComp)return Sa(this.sideBarComp.getToolPanelInstance(t));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.addVirtualRowListener=function(t,i,n){"string"!=typeof t&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(t,i,n)},t.prototype.addRenderedRowListener=function(t,i,n){"virtualRowSelected"===t&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(t,i,n)},t.prototype.setQuickFilter=function(t){this.filterManager.setQuickFilter(t)},t.prototype.selectIndex=function(t,i,n){console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(t,i)},t.prototype.deselectIndex=function(t,i){void 0===i&&(i=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(t)},t.prototype.selectNode=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!0,clearSelection:!i})},t.prototype.deselectNode=function(t,i){void 0===i&&(i=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),t.setSelectedParams({newValue:!1})},t.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},t.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},t.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},t.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},t.prototype.recomputeAggregates=function(){q(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:pa.AGGREGATE})},t.prototype.sizeColumnsToFit=function(t){this.gridBodyCtrl.sizeColumnsToFit(t)},t.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},t.prototype.isNodeSelected=function(t){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),t.isSelected()},t.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColIndexVisible=function(){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},t.prototype.ensureColumnVisible=function(t,i){void 0===i&&(i="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(t,i)},t.prototype.ensureIndexVisible=function(t,i){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t,i)},t.prototype.ensureNodeVisible=function(t,i){void 0===i&&(i=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(t,i)},t.prototype.forEachLeafNode=function(t){q(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(t)},t.prototype.forEachNode=function(t){this.rowModel.forEachNode(t)},t.prototype.forEachNodeAfterFilter=function(t){q(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(t)},t.prototype.forEachNodeAfterFilterAndSort=function(t){q(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(t)},t.prototype.getFilterInstance=function(t,i){var n=this.getFilterInstanceImpl(t,(function(t){if(i){var n=Sa(t);i(n)}}));return Sa(n)},t.prototype.getFilterInstanceImpl=function(t,i){var n=this.columnModel.getPrimaryColumn(t);if(n){var e=this.filterManager.getFilterComponent(n,"NO_UI"),r=e&&e.resolveNow(null,(function(t){return t}));return r?setTimeout(i,0,r):e&&e.then((function(t){i(t)})),r}},t.prototype.destroyFilter=function(t){var i=this.columnModel.getPrimaryColumn(t);if(i)return this.filterManager.destroyFilter(i,"filterDestroyed")},t.prototype.getStatusPanel=function(t){if(this.statusBarService)return Sa(this.statusBarService.getStatusPanel(t))},t.prototype.getColumnDef=function(t){var i=this.columnModel.getPrimaryColumn(t);return i?i.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},t.prototype.setFilterModel=function(t){this.filterManager.setFilterModel(t)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},t.prototype.setFocusedCell=function(t,i,n){this.focusService.setFocusedCell({rowIndex:t,column:i,rowPinned:n,forceBrowserFocus:!0})},t.prototype.setSuppressRowDrag=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_SUPPRESS_ROW_DRAG,t)},t.prototype.setSuppressMoveWhenRowDragging=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,t)},t.prototype.setSuppressRowClickSelection=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_SUPPRESS_ROW_CLICK_SELECTION,t)},t.prototype.addRowDropZone=function(t){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(t)},t.prototype.removeRowDropZone=function(t){var i=this.dragAndDropService.findExternalZone(t);i&&this.dragAndDropService.removeDropTarget(i)},t.prototype.getRowDropZoneParams=function(t){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(t)},t.prototype.setHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_HEADER_HEIGHT,t)},t.prototype.setDomLayout=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_DOM_LAYOUT,t)},t.prototype.setEnableCellTextSelection=function(t){this.gridBodyCtrl.setCellTextSelection(t)},t.prototype.setFillHandleDirection=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_FILL_HANDLE_DIRECTION,t)},t.prototype.setGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GROUP_HEADER_HEIGHT,t)},t.prototype.setFloatingFiltersHeight=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_FLOATING_FILTERS_HEIGHT,t)},t.prototype.setPivotHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_PIVOT_HEADER_HEIGHT,t)},t.prototype.setPivotGroupHeaderHeight=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_PIVOT_GROUP_HEADER_HEIGHT,t)},t.prototype.setIsExternalFilterPresent=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_IS_EXTERNAL_FILTER_PRESENT,t)},t.prototype.setDoesExternalFilterPass=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_DOES_EXTERNAL_FILTER_PASS,t)},t.prototype.setNavigateToNextCell=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_NAVIGATE_TO_NEXT_CELL,t)},t.prototype.setTabToNextCell=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_TAB_TO_NEXT_CELL,t)},t.prototype.setTabToNextHeader=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_TAB_TO_NEXT_HEADER,t)},t.prototype.setNavigateToNextHeader=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_NAVIGATE_TO_NEXT_HEADER,t)},t.prototype.setRowGroupPanelShow=function(t){this.gridOptionsWrapper.setProperty("rowGroupPanelShow",t)},t.prototype.setGroupRowAggNodes=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GROUP_ROW_AGG_NODES,t)},t.prototype.setGetGroupRowAgg=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_GROUP_ROW_AGG,t)},t.prototype.setGetBusinessKeyForNode=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_BUSINESS_KEY_FOR_NODE,t)},t.prototype.setGetChildCount=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_CHILD_COUNT,t)},t.prototype.setProcessRowPostCreate=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_PROCESS_ROW_POST_CREATE,t)},t.prototype.setGetRowNodeId=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_ROW_NODE_ID,t)},t.prototype.setGetRowId=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_ROW_ID,t)},t.prototype.setGetRowClass=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_ROW_CLASS,t)},t.prototype.setIsFullWidthCell=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_IS_FULL_WIDTH_CELL,t)},t.prototype.setIsFullWidthRow=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_IS_FULL_WIDTH_ROW,t)},t.prototype.setIsRowSelectable=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_IS_ROW_SELECTABLE,t)},t.prototype.setIsRowMaster=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_IS_ROW_MASTER,t)},t.prototype.setPostSort=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_POST_SORT,t)},t.prototype.setPostSortRows=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_POST_SORT_ROWS,t)},t.prototype.setGetDocument=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_DOCUMENT,t)},t.prototype.setGetContextMenuItems=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_CONTEXT_MENU_ITEMS,t)},t.prototype.setGetMainMenuItems=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_MAIN_MENU_ITEMS,t)},t.prototype.setProcessCellForClipboard=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_PROCESS_CELL_FOR_CLIPBOARD,t)},t.prototype.setSendToClipboard=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_SEND_TO_CLIPBOARD,t)},t.prototype.setProcessCellFromClipboard=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_PROCESS_CELL_FROM_CLIPBOARD,t)},t.prototype.setProcessSecondaryColDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(t)},t.prototype.setProcessSecondaryColGroupDef=function(t){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(t)},t.prototype.setProcessPivotResultColDef=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_PROCESS_PIVOT_RESULT_COL_DEF,t)},t.prototype.setProcessPivotResultColGroupDef=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,t)},t.prototype.setPostProcessPopup=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_POST_PROCESS_POPUP,t)},t.prototype.setDefaultGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,t)},t.prototype.setInitialGroupOrderComparator=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_INITIAL_GROUP_ORDER_COMPARATOR,t)},t.prototype.setGetChartToolbarItems=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_CHART_TOOLBAR_ITEMS,t)},t.prototype.setPaginationNumberFormatter=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_PAGINATION_NUMBER_FORMATTER,t)},t.prototype.setGetServerSideStoreParams=function(t){this.setGetServerSideGroupLevelParams(t)},t.prototype.setGetServerSideGroupLevelParams=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_SERVER_SIDE_GROUP_PARAMS,t)},t.prototype.setIsServerSideGroupOpenByDefault=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,t)},t.prototype.setIsApplyServerSideTransaction=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,t)},t.prototype.setIsServerSideGroup=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_IS_SERVER_SIDE_GROUP,t)},t.prototype.setGetServerSideGroupKey=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_SERVER_SIDE_GROUP_KEY,t)},t.prototype.setGetRowStyle=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_ROW_STYLE,t)},t.prototype.setGetRowHeight=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GET_ROW_HEIGHT,t)},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(t){this.sideBarComp?this.sideBarComp.setDisplayed(t):t&&console.warn("AG Grid: sideBar is not loaded")},t.prototype.setSideBarPosition=function(t){this.sideBarComp?this.sideBarComp.setSideBarPosition(t):console.warn("AG Grid: sideBar is not loaded")},t.prototype.openToolPanel=function(t){this.sideBarComp?this.sideBarComp.openToolPanel(t):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},t.prototype.setSideBar=function(t){this.gridOptionsWrapper.setProperty("sideBar",un.parse(t))},t.prototype.setSuppressClipboardPaste=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_SUPPRESS_CLIPBOARD_PASTE,t)},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.doLayout=function(){gt((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},t.prototype.resetRowHeights=function(){if($(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()}},t.prototype.setGroupRemoveSingleChildren=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GROUP_REMOVE_SINGLE_CHILDREN,t)},t.prototype.setGroupRemoveLowestSingleChildren=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,t)},t.prototype.setGroupDisplayType=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_GROUP_DISPLAY_TYPE,t)},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(t,i){var n=this.columnModel.getPrimaryColumn(t);return q(n)&&(n=this.columnModel.getGridColumn(t)),q(n)?null:this.valueService.getValue(n,i)},t.prototype.addEventListener=function(t,i){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(t,i,n)},t.prototype.addGlobalListener=function(t){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(t,i)},t.prototype.removeEventListener=function(t,i){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(t,i,n)},t.prototype.removeGlobalListener=function(t){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(t,i)},t.prototype.dispatchEvent=function(t){this.eventService.dispatchEvent(t)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var t=this.ctrlsService.getGridCtrl();t&&t.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(ft.bind(window,this,"Grid API"),100)},t.prototype.warnIfDestroyed=function(t){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+t+" was called on a grid that was destroyed."),this.destroyCalled},t.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},t.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},t.prototype.camelCaseToHumanReadable=function(t){return Ti(t)},t.prototype.addRangeSelection=function(){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},t.prototype.addCellRange=function(t){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(t)},t.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(Ut.assertRegistered(Nt.RangeSelectionModule,"api.getChartModels")&&Ut.assertRegistered(Nt.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.getChartRef=function(t){if(Ut.assertRegistered(Nt.RangeSelectionModule,"api.getChartRef")&&Ut.assertRegistered(Nt.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(t)},t.prototype.getChartImageDataURL=function(t){if(Ut.assertRegistered(Nt.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(t)},t.prototype.downloadChart=function(t){if(Ut.assertRegistered(Nt.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(t)},t.prototype.openChartToolPanel=function(t){if(Ut.assertRegistered(Nt.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(t)},t.prototype.closeChartToolPanel=function(t){if(Ut.assertRegistered(Nt.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(t.chartId)},t.prototype.createRangeChart=function(t){if(Ut.assertRegistered(Nt.RangeSelectionModule,"api.createRangeChart")&&Ut.assertRegistered(Nt.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(t)},t.prototype.createCrossFilterChart=function(t){if(Ut.assertRegistered(Nt.RangeSelectionModule,"api.createCrossFilterChart")&&Ut.assertRegistered(Nt.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(t)},t.prototype.restoreChart=function(t,i){if(Ut.assertRegistered(Nt.RangeSelectionModule,"api.restoreChart")&&Ut.assertRegistered(Nt.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(t,i)},t.prototype.createPivotChart=function(t){if(Ut.assertRegistered(Nt.RangeSelectionModule,"api.createPivotChart")&&Ut.assertRegistered(Nt.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(t)},t.prototype.copyToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(t)},t.prototype.copySelectedRowsToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(t)},t.prototype.copySelectedRangeToClipboard=function(t){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(t)},t.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(t,i){var n=this.columnModel.getGridColumn(t);this.menuFactory.showMenuAfterButtonClick(n,i,"columnMenu")},t.prototype.showColumnMenuAfterMouseClick=function(t,i){var n=this.columnModel.getGridColumn(t);n||(n=this.columnModel.getPrimaryColumn(t)),n?this.menuFactory.showMenuAfterMouseEvent(n,i):console.error("AG Grid: column '"+t+"' not found")},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_POPUP_PARENT,t)},t.prototype.tabToNextCell=function(t){return this.navigationService.tabToNextCell(!1,t)},t.prototype.tabToPreviousCell=function(t){return this.navigationService.tabToNextCell(!0,t)},t.prototype.getCellRendererInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellRendererInstances(t).map(Sa)},t.prototype.getCellEditorInstances=function(t){return void 0===t&&(t={}),this.rowRenderer.getCellEditorInstances(t).map(Sa)},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.rowRenderer.stopEditing(t)},t.prototype.startEditingCell=function(t){var i=this.columnModel.getGridColumn(t.colKey);if(i){var n={rowIndex:t.rowIndex,rowPinned:t.rowPinned||null,column:i};null==t.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(t.rowIndex);var e=this.navigationService.getCellByPosition(n);e&&e.startRowOrCellEdit(t.key,t.charPress)}else console.warn("AG Grid: no column found for "+t.colKey)},t.prototype.addAggFunc=function(t,i){this.aggFuncService&&this.aggFuncService.addAggFunc(t,i)},t.prototype.addAggFuncs=function(t){this.aggFuncService&&this.aggFuncService.addAggFuncs(t)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.prototype.applyServerSideTransaction=function(t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyServerSideTransactionAsync=function(t,i){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(t,i);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},t.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyTransaction=function(t){if(this.clientSideRowModel){var i=this.clientSideRowModel.updateRowData(t);return this.rowRenderer.refreshFullWidthRows(i.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),i}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},t.prototype.setDeltaSort=function(t){this.gridOptionsWrapper.setProperty("deltaSort",t)},t.prototype.updateRowData=function(t){return gt((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(t)},t.prototype.applyTransactionAsync=function(t,i){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,i):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.batchUpdateRowData=function(t,i){gt((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(t,i)},t.prototype.insertItemsAtIndex=function(t,i){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:i,addIndex:t,update:null,remove:null})},t.prototype.removeItems=function(t){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var i=t.map((function(t){return t.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:i})},t.prototype.addItems=function(t){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:null,update:null,remove:null})},t.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},t.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeEnterpriseCache=function(t){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(t)},t.prototype.purgeServerSideCache=function(t){void 0===t&&(t=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:t,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},t.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},t.prototype.refreshServerSideStore=function(t){return gt((function(){return console.warn("AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0")}),"refreshServerSideStore-renamed"),this.refreshServerSide(t)},t.prototype.getServerSideStoreState=function(){return gt((function(){return console.warn("AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0")}),"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},t.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},t.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},t.prototype.setVirtualRowCount=function(t,i){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(t,i)},t.prototype.setInfiniteRowCount=function(t,i){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(t,i)},t.prototype.setRowCount=function(t,i){this.infiniteRowModel?this.infiniteRowModel.setRowCount(t,i):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},t.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},t.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gridOptionsWrapper.setProperty("paginationPageSize",t)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},t.prototype.setRowClass=function(t){this.gridOptionsWrapper.setProperty(Wn.PROP_ROW_CLASS,t)},Ca([It("immutableService")],t.prototype,"immutableService",void 0),Ca([It("csvCreator")],t.prototype,"csvCreator",void 0),Ca([It("excelCreator")],t.prototype,"excelCreator",void 0),Ca([Dt("rowRenderer")],t.prototype,"rowRenderer",void 0),Ca([Dt("navigationService")],t.prototype,"navigationService",void 0),Ca([Dt("filterManager")],t.prototype,"filterManager",void 0),Ca([Dt("columnModel")],t.prototype,"columnModel",void 0),Ca([Dt("selectionService")],t.prototype,"selectionService",void 0),Ca([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ca([Dt("valueService")],t.prototype,"valueService",void 0),Ca([Dt("alignedGridsService")],t.prototype,"alignedGridsService",void 0),Ca([Dt("eventService")],t.prototype,"eventService",void 0),Ca([Dt("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ca([Dt("context")],t.prototype,"context",void 0),Ca([Dt("rowModel")],t.prototype,"rowModel",void 0),Ca([Dt("sortController")],t.prototype,"sortController",void 0),Ca([Dt("paginationProxy")],t.prototype,"paginationProxy",void 0),Ca([Dt("focusService")],t.prototype,"focusService",void 0),Ca([Dt("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Ca([It("rangeService")],t.prototype,"rangeService",void 0),Ca([It("clipboardService")],t.prototype,"clipboardService",void 0),Ca([It("aggFuncService")],t.prototype,"aggFuncService",void 0),Ca([Dt("menuFactory")],t.prototype,"menuFactory",void 0),Ca([It("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Ca([Dt("valueCache")],t.prototype,"valueCache",void 0),Ca([Dt("animationFrameService")],t.prototype,"animationFrameService",void 0),Ca([It("statusBarService")],t.prototype,"statusBarService",void 0),Ca([It("chartService")],t.prototype,"chartService",void 0),Ca([It("undoRedoService")],t.prototype,"undoRedoService",void 0),Ca([It("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Ca([It("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),Ca([Dt("ctrlsService")],t.prototype,"ctrlsService",void 0),Ca([It("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),Ca([Ft],t.prototype,"init",null),Ca([kt],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),Ca([Pt("gridApi")],t)}(),Aa=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ja=function(t){function i(i,n,e,r){var o=t.call(this)||this;return o.columnOrGroup=i,o.eCell=n,o.ariaEl=o.eCell.querySelector("[role=columnheader]")||o.eCell,o.colsSpanning=r,o.beans=e,o}return Aa(i,t),i.prototype.setColsSpanning=function(t){this.colsSpanning=t,this.onLeftChanged()},i.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Jt(this.colsSpanning):this.columnOrGroup},i.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,qt.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,Wn.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},i.prototype.setLeftFirstTime=function(){var t=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),i=$(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&i&&!t?this.animateInLeft():this.onLeftChanged()},i.prototype.animateInLeft=function(){var t=this,i=this.getColumnOrGroup(),n=i.getLeft(),e=i.getOldLeft(),r=this.modifyLeftForPrintLayout(i,e),o=this.modifyLeftForPrintLayout(i,n);this.setLeft(r),this.actualLeft=o,this.beans.columnAnimationService.executeNextVMTurn((function(){t.actualLeft===o&&t.setLeft(o)}))},i.prototype.onLeftChanged=function(){var t=this.getColumnOrGroup(),i=t.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(t,i),this.setLeft(this.actualLeft)},i.prototype.modifyLeftForPrintLayout=function(t,i){if(this.beans.gridOptionsWrapper.getDomLayout()!==Vt.DOM_LAYOUT_PRINT)return i;if(t.getPinned()===Vt.PINNED_LEFT)return i;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return t.getPinned()===Vt.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+i:n+i},i.prototype.setLeft=function(t){var i;if($(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof qt)i=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&dr(this.ariaEl,n.length),i=n[0]}var e=this.beans.columnModel.getAriaColumnIndex(i);fr(this.ariaEl,e)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Ft],i.prototype,"postConstruct",null),i}(Ai),_a=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ga=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},xa=function(t){function i(i,n){var e=t.call(this)||this;return e.columns=i,e.element=n,e}return _a(i,t),i.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},i.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},i.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},i.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Ga([Dt("columnHoverService")],i.prototype,"columnHoverService",void 0),Ga([Ft],i.prototype,"postConstruct",null),i}(Ai),Ma=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ka=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.column=i,e}return Ma(i,t),i.prototype.setComp=function(i,n,e,r){t.prototype.setGui.call(this,n),this.comp=i,this.eButtonShowMainFilter=e,this.eFloatingFilterBody=r;var o=this.column.getColDef();this.active=!(!o.filter&&!o.filterFramework||!o.floatingFilter),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},i.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var t=_r("filter",this.gridOptionsWrapper,this.column);t&&this.eButtonShowMainFilter.appendChild(t)}},i.prototype.setupFocus=function(){this.createManagedBean(new go(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},i.prototype.onTabKeyDown=function(t){if(this.gridOptionsWrapper.getDocument().activeElement!==this.eGui){var i=this.focusService.findNextFocusableElement(this.eGui,null,t.shiftKey);if(i)return this.beans.headerNavigationService.scrollToColumn(this.column),t.preventDefault(),void i.focus();var n=this.findNextColumnWithFloatingFilter(t.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:t})&&t.preventDefault()}},i.prototype.findNextColumnWithFloatingFilter=function(t){var i=this.beans.columnModel,n=this.column;do{if(!(n=t?i.getDisplayedColBefore(n):i.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i);var n=this.getWrapperHasFocus();switch(i.key){case xr.UP:case xr.DOWN:n||i.preventDefault();case xr.LEFT:case xr.RIGHT:if(n)return;i.stopPropagation();case xr.ENTER:n&&this.focusService.focusInto(this.eGui)&&i.preventDefault();break;case xr.ESCAPE:n||this.eGui.focus()}},i.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var i=!!t.relatedTarget&&!t.relatedTarget.classList.contains("ag-floating-filter"),n=!!t.relatedTarget&&ae(t.relatedTarget,"ag-floating-filter");if(i&&n&&t.target===this.eGui){var e=this.lastFocusEvent;e&&e&&e.key===xr.TAB&&this.focusService.focusInto(this.eGui,e.shiftKey)}var r=this.getRowIndex();this.beans.focusService.setFocusedHeader(r,this.column)}},i.prototype.setupHover=function(){var t=this;this.createManagedBean(new xa([this.column],this.eGui));var i=function(){if(t.gridOptionsWrapper.isColumnHoverHighlight()){var i=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",i)}};this.addManagedListener(this.eventService,xi.EVENT_COLUMN_HOVER_CHANGED,i),i()},i.prototype.setupLeft=function(){var t=new ja(this.column,this.eGui,this.beans);this.createManagedBean(t)},i.prototype.setupUserComp=function(){var t=this;if(this.active){var i=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,i),e=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,Pu,n),r=this.userComponentFactory.getDefaultFloatingFilterType(i);null==r&&(r="agReadOnlyFloatingFilter");var o={column:this.column,filterParams:e,currentParentModel:function(){return t.currentParentModel()},parentFilterInstance:function(i){return t.parentFilterInstance(i)},showParentFilter:function(){return t.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(i,o,r);s&&this.comp.setCompDetails(s)}},i.prototype.currentParentModel=function(){var t=this.getFilterComponent(!1);return t?t.resolveNow(null,(function(t){return t&&t.getModel()})):null},i.prototype.getFilterComponent=function(t){return void 0===t&&(t=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",t)},i.prototype.parentFilterInstance=function(t){var i=this.getFilterComponent();null!=i&&i.then((function(i){t(Sa(i))}))},i.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter,"floatingFilter","filterMenuTab",["filterMenuTab"])},i.prototype.setupSyncWithFilter=function(){var t=this;if(this.active){var i=function(i){var n=t.comp.getFloatingFilterComp();if(n){var e=t.currentParentModel();n.then((function(t){t&&t.onParentModelChanged(e,i)}))}};this.addManagedListener(this.column,qt.EVENT_FILTER_CHANGED,i),this.filterManager.isFilterActive(this.column)&&i(null)}},i.prototype.setupWidth=function(){var t=this,i=function(){var i=t.column.getActualWidth()+"px";t.comp.setWidth(i)};this.addManagedListener(this.column,qt.EVENT_WIDTH_CHANGED,i),i()},Fa([Dt("filterManager")],i.prototype,"filterManager",void 0),Fa([Dt("columnHoverService")],i.prototype,"columnHoverService",void 0),Fa([Dt("menuFactory")],i.prototype,"menuFactory",void 0),i}(ya),Pa=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Da=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ia=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.pinned=i,s.column=n,s.eResize=e,s.comp=r,s.ctrl=o,s}return Pa(i,t),i.prototype.postConstruct=function(){var t,i,n=this,e=this.column.getColDef(),r=[],o=function(){r.forEach((function(t){return t()})),r.length=0},s=function(){var s=n.column.isResizable(),u=!n.gridOptionsWrapper.isSuppressAutoSize()&&!e.suppressAutoSize;(s!==t||u!==i)&&(t=s,i=u,o(),function(){if(ue(n.eResize,t),t){var e=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(r.push(e),i){var o=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){n.columnModel.autoSizeColumn(n.column,o,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var u=new ds(n.eResize);u.addEventListener(ds.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),u.removeEventListener(ds.EVENT_DOUBLE_TAP,s),u.destroy()}))}}}())};s(),this.addDestroyFunc(o),this.ctrl.addRefreshFunction(s)},i.prototype.onResizing=function(t,i){var n=this.normaliseResizeAmount(i);this.columnModel.setColumnWidths([{key:this.column,newWidth:this.resizeStartWidth+n}],this.resizeWithShiftKey,t,"uiColumnDragged"),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},i.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},i.prototype.normaliseResizeAmount=function(t){var i=t,n=this.pinned!==Vt.PINNED_LEFT,e=this.pinned===Vt.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(i*=-1):e&&(i*=-1),i},Da([Dt("horizontalResizeService")],i.prototype,"horizontalResizeService",void 0),Da([Dt("columnModel")],i.prototype,"columnModel",void 0),Da([Ft],i.prototype,"postConstruct",null),i}(Ai),Ea=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ta=function(t){function i(i,n,e){void 0===n&&(n="ag-checkbox"),void 0===e&&(e="checkbox");var r=t.call(this,i,n,e)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return Ea(i,t),i.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},i.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},i.prototype.setPassive=function(t){this.passive=t},i.prototype.isReadOnly=function(){return this.readOnly},i.prototype.setReadOnly=function(t){this.eWrapper.classList.toggle("ag-disabled",t),this.eInput.disabled=t,this.readOnly=t},i.prototype.setDisabled=function(i){return this.eWrapper.classList.toggle("ag-disabled",i),t.prototype.setDisabled.call(this,i)},i.prototype.toggle=function(){if(!this.eInput.disabled){var t=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,t):this.setValue(i)}},i.prototype.getValue=function(){return this.isSelected()},i.prototype.setValue=function(t,i){return this.refreshSelectedClass(t),this.setSelected(t,i),this},i.prototype.setName=function(t){return this.getInputElement().name=t,this},i.prototype.isSelected=function(){return this.selected},i.prototype.setSelected=function(t,i){this.isSelected()!==t&&(this.previousValue=this.isSelected(),t=this.selected="boolean"==typeof t?t:void 0,this.eInput.checked=t,this.eInput.indeterminate=void 0===t,i||this.dispatchChange(this.selected,this.previousValue))},i.prototype.dispatchChange=function(t,n,e){this.dispatchEvent({type:i.EVENT_CHANGED,selected:t,previousValue:n,event:e});var r=this.getInputElement();this.eventService.dispatchEvent({type:xi.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:t,previousValue:n})},i.prototype.onCheckboxClick=function(t){if(!this.passive&&!this.eInput.disabled){var i=this.isSelected(),n=this.selected=t.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,i,t)}},i.prototype.refreshSelectedClass=function(t){this.eWrapper.classList.toggle("ag-checked",!0===t),this.eWrapper.classList.toggle("ag-indeterminate",null==t)},i}(Do),za=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Na=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},La=function(t){function i(i){var n=t.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=i;var e=i.getColDef();return n.filteredOnly=!!e&&!!e.headerCheckboxSelectionFilteredOnly,n}return za(i,t),i.prototype.onSpaceKeyPressed=function(t){var i=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();i.isDisplayed()&&!i.getGui().contains(n.activeElement)&&(t.preventDefault(),i.setValue(!i.getValue()))},i.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},i.prototype.setComp=function(t){this.headerCellCtrl=t,this.cbSelectAll=this.createManagedBean(new Ta),this.cbSelectAll.addCssClass("ag-header-select-all"),$e(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Ta.EVENT_CHANGED,this.onCbSelectAll.bind(this)),er(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},i.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},i.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},i.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},i.prototype.getNextCheckboxState=function(t){return(0!==t.selected||0!==t.notSelected)&&(t.selected>0&&t.notSelected>0?null:t.selected>0)},i.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.getSelectionCount(),i=this.getNextCheckboxState(t);this.cbSelectAll.setValue(i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},i.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.cbSelectAll.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),n=t("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",n+" ("+i+")"),this.cbSelectAll.setInputAriaLabel(n+" ("+i+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},i.prototype.getSelectionCount=function(){var t=this,i=0,n=0,e=function(e){t.gridOptionsWrapper.isGroupSelectsChildren()&&e.group||(e.isSelected()?i++:e.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(e):this.gridApi.forEachNode(e),{notSelected:n,selected:i}},i.prototype.checkRightRowModelType=function(){var t=this.rowModel.getType();t===Vt.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+t)},i.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},i.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;return"function"==typeof t&&(t=t({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()})),!(!t||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),1)))},Na([Dt("gridApi")],i.prototype,"gridApi",void 0),Na([Dt("columnApi")],i.prototype,"columnApi",void 0),Na([Dt("rowModel")],i.prototype,"rowModel",void 0),Na([Dt("selectionService")],i.prototype,"selectionService",void 0),i}(Ai),Ba=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ha=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wa=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.refreshFunctions=[],e.userHeaderClasses=new Set,e.ariaDescriptionProperties=new Map,e.column=i,e}return Ba(i,t),i.prototype.setComp=function(i,n,e,r){var o=this;t.prototype.setGui.call(this,n),this.comp=i,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(r),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new Ia(this.getPinned(),this.column,e,i,this)),this.createManagedBean(new xa([this.column],n)),this.createManagedBean(new ja(this.column,n,this.beans)),this.createManagedBean(new go(n,{shouldStopEventPropagation:function(t){return o.shouldStopEventPropagation(t)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,qt.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},i.prototype.setupUserComp=function(){var t=this.lookupUserCompDetails();this.setCompDetails(t)},i.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setUserCompDetails(t)},i.prototype.lookupUserCompDetails=function(){var t=this.createParams(),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,t)},i.prototype.createParams=function(){var t=this,i=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:i.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(i){t.gridApi.showColumnMenuAfterButtonClick(t.column,i)},progressSort:function(i){t.sortController.progressSort(t.column,!!i,"uiColumnSorted")},setSort:function(i,n){t.sortController.setSortForColumn(t.column,i,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},i.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new La(this.column)),this.selectAllFeature.setComp(this)},i.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i),i.key===xr.SPACE&&this.selectAllFeature.onSpaceKeyPressed(i),i.key===xr.ENTER&&this.onEnterKeyPressed(i)},i.prototype.onEnterKeyPressed=function(t){var i=this.comp.getUserCompInstance();i&&(t.ctrlKey||t.metaKey?this.menuEnabled&&i.showMenu&&(t.preventDefault(),i.showMenu()):this.sortable&&this.sortController.progressSort(this.column,t.shiftKey,"uiColumnSorted"))},i.prototype.isMenuEnabled=function(){return this.menuEnabled},i.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var i=this.getRowIndex();this.focusService.setFocusedHeader(i,this.column)}this.setActiveHeader(!0)},i.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},i.prototype.setupTooltip=function(){var t=this,i=this.createManagedBean(new Ph({getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getGui:function(){return t.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return t.column.getColDef().headerTooltip}},this.beans));i.setComp(this.comp),this.refreshFunctions.push((function(){return i.refreshToolTip()}))},i.prototype.setupClassesFromColDef=function(){var t=this,i=function(){var i=t.column.getColDef(),n=sa.getHeaderClassesFromColDef(i,t.gridOptionsWrapper,t.column,null),e=t.userHeaderClasses;t.userHeaderClasses=new Set(n),n.forEach((function(i){e.has(i)?e.delete(i):t.comp.addOrRemoveCssClass(i,!0)})),e.forEach((function(i){return t.comp.addOrRemoveCssClass(i,!1)}))};this.refreshFunctions.push(i),i()},i.prototype.setDragSource=function(t){var i=this;if(this.dragSourceElement=t,this.removeDragSource(),t&&this.draggable){var n=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:Ls.HeaderCell,eElement:t,defaultIconName:n?Xs.ICON_HIDE:Xs.ICON_NOT_ALLOWED,getDragItem:function(){return i.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return i.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(t){var e,r;if(n){var o=(null===(r=null===(e=t)||void 0===e?void 0:e.columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(o,!0,"uiColumnMoved")}},onGridExit:function(t){var e,r;if(n){var o=(null===(r=null===(e=t)||void 0===e?void 0:e.columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(o,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},i.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},i.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},i.prototype.onColDefChanged=function(){this.refresh()},i.prototype.updateState=function(){var t=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu,this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},i.prototype.addRefreshFunction=function(t){this.refreshFunctions.push(t)},i.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(t){return t()}))},i.prototype.refreshHeaderComp=function(){var t=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==t.componentClass&&this.attemptHeaderCompRefresh(t.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(t)},i.prototype.attemptHeaderCompRefresh=function(t){var i=this.comp.getUserCompInstance();return!!i&&!!i.refresh&&i.refresh(t)},i.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},i.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},i.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!(this.gridOptionsWrapper.isSuppressMovableColumns()||t.suppressMovable||t.lockPosition)||!!t.enableRowGroup||!!t.enablePivot},i.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},i.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},i.prototype.onColumnValueChanged=function(){this.checkDisplayName()},i.prototype.setupWidth=function(){var t=this,i=function(){t.comp.setWidth(t.column.getActualWidth()+"px")};this.addManagedListener(this.column,qt.EVENT_WIDTH_CHANGED,i),i()},i.prototype.setupMovingCss=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.column.isMoving())};this.addManagedListener(this.column,qt.EVENT_MOVING_CHANGED,i),i()},i.prototype.setupMenuClass=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-column-menu-visible",t.column.isMenuVisible())};this.addManagedListener(this.column,qt.EVENT_MENU_VISIBLE_CHANGED,i),i()},i.prototype.setupSortableClass=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!t.sortable)};i(),this.addRefreshFunction(i),this.addManagedListener(this.column,qt.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},i.prototype.setupWrapTextClass=function(){var t=this,i=function(){var i=!!t.column.getColDef().wrapHeaderText;t.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",i)};i(),this.addRefreshFunction(i)},i.prototype.setupAutoHeight=function(t){var i,n=this,e=function(i){if(n.isAlive()){var r=le(n.getGui()),o=t.offsetHeight+r.paddingTop+r.paddingBottom;if(i<5){var s=n.beans.gridOptionsWrapper.getDocument();if(!s||!s.contains(t)||0==o)return void n.beans.frameworkOverrides.setTimeout((function(){return e(i+1)}),0)}n.columnModel.setColumnHeaderHeight(n.column,o)}},r=!1,o=function(){var t=n.column.isAutoHeaderHeight();t&&!r&&s(),!t&&r&&u()},s=function(){r=!0,e(0),n.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),i=n.resizeObserverService.observeResize(t,(function(){return e(0)}))},u=function(){r=!1,i&&i(),n.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),i=void 0};o(),this.addDestroyFunc((function(){return u()})),this.addManagedListener(this.column,qt.EVENT_WIDTH_CHANGED,(function(){return r&&e(0)})),this.addManagedListener(this.column,qt.EVENT_SORT_CHANGED,(function(){r&&n.beans.frameworkOverrides.setTimeout((function(){return e(0)}))})),this.addRefreshFunction(o)},i.prototype.refreshAriaSort=function(){if(this.sortable){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(qe(this.column)),this.setAriaDescriptionProperty("sort",t("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},i.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var t=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",t("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},i.prototype.setAriaDescriptionProperty=function(t,i){null!=i?this.ariaDescriptionProperties.set(t,i):this.ariaDescriptionProperties.delete(t)},i.prototype.refreshAriaDescription=function(){var t=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(t.length?t.join(" "):void 0)},i.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},i.prototype.addColumnHoverListener=function(){var t=this,i=function(){if(t.gridOptionsWrapper.isColumnHoverHighlight()){var i=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",i)}};this.addManagedListener(this.eventService,xi.EVENT_COLUMN_HOVER_CHANGED,i),i()},i.prototype.setupFilterCss=function(){var t=this,i=function(){t.comp.addOrRemoveCssClass("ag-header-cell-filtered",t.column.isFilterActive())};this.addManagedListener(this.column,qt.EVENT_FILTER_ACTIVE_CHANGED,i),i()},i.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},i.prototype.addActiveHeaderMouseListeners=function(){var t=this,i=function(i){return t.setActiveHeader("mouseenter"===i.type)};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i)},i.prototype.setActiveHeader=function(t){this.comp.addOrRemoveCssClass("ag-header-active",t)},Ha([Dt("columnModel")],i.prototype,"columnModel",void 0),Ha([Dt("columnHoverService")],i.prototype,"columnHoverService",void 0),Ha([Dt("sortController")],i.prototype,"sortController",void 0),Ha([Dt("menuFactory")],i.prototype,"menuFactory",void 0),Ha([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Ha([Dt("resizeObserverService")],i.prototype,"resizeObserverService",void 0),Ha([Dt("gridApi")],i.prototype,"gridApi",void 0),Ha([Dt("columnApi")],i.prototype,"columnApi",void 0),Ha([kt],i.prototype,"removeDragSource",null),i}(ya),Va=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ua=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ka=function(t){function i(i,n,e,r){var o=t.call(this)||this;return o.eResize=n,o.comp=i,o.pinned=e,o.columnGroup=r,o}return Va(i,t),i.prototype.postConstruct=function(){var t=this;if(this.columnGroup.isResizable()){var 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(this.addDestroyFunc(i),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var i=[];t.columnGroup.getDisplayedLeafColumns().forEach((function(t){t.getColDef().suppressAutoSize||i.push(t.getColId())})),i.length>0&&t.columnModel.autoSizeColumns({columns:i,skipHeader:n,stopAtGroup:t.columnGroup,source:"uiColumnResized"}),t.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},i.prototype.onResizeStart=function(t){var i=this;this.calculateInitialValues();var n=null;if(t&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var e=n.getDisplayedLeafColumns();this.resizeTakeFromCols=e.filter((function(t){return t.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(t){return i.resizeTakeFromStartWidth+=t.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(t){return i.resizeTakeFromRatios.push(t.getActualWidth()/i.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},i.prototype.onResizing=function(t,i){var n=this.normaliseDragChange(i);this.resizeColumns(this.resizeStartWidth+n,t)},i.prototype.resizeLeafColumnsToFit=function(){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),t>this.resizeStartWidth&&this.resizeColumns(t,!0)},i.prototype.resizeColumns=function(t,i){void 0===i&&(i=!0);var n=[];n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:t}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-(t-this.resizeStartWidth)}),this.columnModel.resizeColumnSets({resizeSets:n,finished:i,source:"uiColumnDragged"}),i&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},i.prototype.calculateInitialValues=function(){var t=this,i=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=i.filter((function(t){return t.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(i){return t.resizeStartWidth+=i.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(i){return t.resizeRatios.push(i.getActualWidth()/t.resizeStartWidth)}))},i.prototype.normaliseDragChange=function(t){var i=t;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==Vt.PINNED_LEFT&&(i*=-1):this.pinned===Vt.PINNED_RIGHT&&(i*=-1),i},Ua([Dt("horizontalResizeService")],i.prototype,"horizontalResizeService",void 0),Ua([Dt("autoWidthCalculator")],i.prototype,"autoWidthCalculator",void 0),Ua([Dt("columnModel")],i.prototype,"columnModel",void 0),Ua([Ft],i.prototype,"postConstruct",null),i}(Ai),$a=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),qa=function(t){function i(i,n){var e=t.call(this)||this;return e.removeChildListenersFuncs=[],e.columnGroup=n,e.comp=i,e}return $a(i,t),i.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,ui.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},i.prototype.addListenersToChildrenColumns=function(){var t=this;this.removeListenersOnChildrenColumns();var i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(qt.EVENT_WIDTH_CHANGED,i),n.addEventListener(qt.EVENT_VISIBLE_CHANGED,i),t.removeChildListenersFuncs.push((function(){n.removeEventListener(qt.EVENT_WIDTH_CHANGED,i),n.removeEventListener(qt.EVENT_VISIBLE_CHANGED,i)}))}))},i.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(t){return t()})),this.removeChildListenersFuncs=[]},i.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},i.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Ft],i.prototype,"postConstruct",null),i}(Ai),Ya=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ja=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Za=function(t){function i(i,n){var e=t.call(this,i,n)||this;return e.columnGroup=i,e}return Ya(i,t),i.prototype.setComp=function(i,n,e){t.prototype.setGui.call(this,n),this.comp=i,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),o=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new xa(o,n)),this.createManagedBean(new ja(this.columnGroup,n,this.beans)),this.createManagedBean(new qa(i,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new Ka(i,e,r,this.columnGroup)),this.createManagedBean(new go(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},i.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},i.prototype.setupUserComp=function(){var t=this,i=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(i){t.columnModel.setColumnGroupOpened(t.columnGroup.getProvidedColumnGroup(),i,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!i){for(var e=this.columnGroup,r=e.getLeafColumns();e.getParent()&&e.getParent().getLeafColumns().length===r.length;)e=e.getParent();var o=e.getColGroupDef();o&&(i=o.headerName),i||(i=r?this.columnModel.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(s)},i.prototype.setupTooltip=function(){var t=this,i=this.columnGroup.getColGroupDef(),n={getColumn:function(){return t.columnGroup},getGui:function(){return t.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return i&&i.headerTooltip}};i&&(n.getColDef=function(){return i}),this.createManagedBean(new Ph(n,this.beans)).setComp(this.comp)},i.prototype.setupExpandable=function(){var t=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(t,hi.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,hi.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},i.prototype.refreshExpanded=function(){var t=this.columnGroup;this.expandable=t.isExpandable();var i=t.isExpanded();this.comp.setAriaExpanded(this.expandable?i?"true":"false":void 0)},i.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},i.prototype.addClasses=function(){var t=this,i=this.columnGroup.getColGroupDef(),n=sa.getHeaderClassesFromColDef(i,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(i){return t.comp.addOrRemoveCssClass(i,!0)}))},i.prototype.setupMovingCss=function(){var t=this,i=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.columnGroup.isMoving())};i.forEach((function(i){t.addManagedListener(i,qt.EVENT_MOVING_CHANGED,n)})),n()},i.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.columnGroup)}},i.prototype.handleKeyDown=function(i){t.prototype.handleKeyDown.call(this,i);var n=this.getWrapperHasFocus();if(this.expandable&&n&&i.key===xr.ENTER){var e=this.columnGroup,r=!e.isExpanded();this.columnModel.setColumnGroupOpened(e.getProvidedColumnGroup(),r,"uiColumnExpanded")}},i.prototype.setDragSource=function(t){var i=this;if(!this.isSuppressMoving()){var n=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),e=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),r={type:Ls.HeaderCell,eElement:t,defaultIconName:e?Xs.ICON_HIDE:Xs.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return n.forEach((function(t){return t.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return n.forEach((function(t){return t.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(t){var n,r;if(e){var o=(null===(r=null===(n=t)||void 0===n?void 0:n.columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(o,!0,"uiColumnMoved")}},onGridExit:function(t){var n,r;if(e){var o=(null===(r=null===(n=t)||void 0===n?void 0:n.columns)||void 0===r?void 0:r.filter((function(t){return!t.getColDef().lockVisible})))||[];i.columnModel.setColumnsVisible(o,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return i.dragAndDropService.removeDragSource(r)}))}},i.prototype.getDragItemForGroup=function(){var t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i={};t.forEach((function(t){return i[t.getId()]=t.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(i){t.indexOf(i)>=0&&(n.push(i),Qt(t,i))})),t.forEach((function(t){return n.push(t)})),{columns:n,visibleState:i}},i.prototype.isSuppressMoving=function(){var t=!1;return this.columnGroup.getLeafColumns().forEach((function(i){(i.getColDef().suppressMovable||i.getColDef().lockPosition)&&(t=!0)})),t||this.gridOptionsWrapper.isSuppressMovableColumns()},Ja([Dt("columnModel")],i.prototype,"columnModel",void 0),Ja([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Ja([Dt("gridApi")],i.prototype,"gridApi",void 0),Ja([Dt("columnApi")],i.prototype,"columnApi",void 0),i}(ya),Xa=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qa=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},tl=0,il=function(t){function i(i,n,e){var r=t.call(this)||this;return r.instanceId=tl++,r.headerCellCtrls={},r.rowIndex=i,r.pinned=n,r.type=e,r}return Xa(i,t),i.prototype.getInstanceId=function(){return this.instanceId},i.prototype.setComp=function(t){this.comp=t,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),an()&&this.comp.setTransform("translateZ(0)"),t.setAriaRowIndex(this.rowIndex+1)},i.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,xi.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},i.prototype.getHeaderCellCtrl=function(t){return Q(this.headerCellCtrls).find((function(i){return i.getColumnGroupChild()===t}))},i.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},i.prototype.getType=function(){return this.type},i.prototype.onColumnResized=function(){this.setWidth()},i.prototype.setWidth=function(){var t=this.getWidthForRow();this.comp.setWidth(t+"px")},i.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(Vt.PINNED_RIGHT)+this.columnModel.getContainerWidth(Vt.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},i.prototype.onRowHeightChanged=function(){var t=this.columnModel.getHeaderRowCount(),i=[],n=0;this.columnModel.hasFloatingFilters()&&(t++,n=1);for(var e=this.columnModel.getColumnGroupHeaderRowHeight(),r=this.columnModel.getColumnHeaderRowHeight(),o=t-(1+n),s=0;s<o;s++)i.push(e);for(i.push(r),s=0;s<n;s++)i.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var u=0;for(s=0;s<this.rowIndex;s++)u+=i[s];var h=i[this.rowIndex]+"px";this.comp.setTop(u+"px"),this.comp.setHeight(h)},i.prototype.getPinned=function(){return this.pinned},i.prototype.getRowIndex=function(){return this.rowIndex},i.prototype.onVirtualColumnsChanged=function(){var t=this,i=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(n){if(!n.isEmptyGroup()){var e=n.getUniqueId(),r=i[e];if(delete i[e],r&&r.getColumnGroupChild()!=n&&(t.destroyBean(r),r=void 0),null==r)switch(t.type){case Rc.FLOATING_FILTER:r=t.createBean(new ka(n,t));break;case Rc.COLUMN_GROUP:r=t.createBean(new Za(n,t));break;default:r=t.createBean(new Wa(n,t))}t.headerCellCtrls[e]=r}})),nt(i,(function(i,n){var e;t.focusService.isHeaderWrapperFocused(e=n)&&t.columnModel.isDisplayed(e.getColumnGroupChild())?t.headerCellCtrls[i]=n:t.destroyBean(n)}));var n=ct(this.headerCellCtrls);this.comp.setHeaderCtrls(n)},i.prototype.destroyCtrls=function(){var t=this;nt(this.headerCellCtrls,(function(i,n){t.destroyBean(n)})),this.headerCellCtrls={}},i.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},i.prototype.getColumnsInViewportPrintLayout=function(){var t=this;if(null!=this.pinned)return[];var i=[],n=this.getActualDepth();return[Vt.PINNED_LEFT,null,Vt.PINNED_RIGHT].forEach((function(e){var r=t.columnModel.getVirtualHeaderGroupRow(e,n);i=i.concat(r)})),i},i.prototype.getActualDepth=function(){return this.type==Rc.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},i.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},i.prototype.focusHeader=function(t,i){var n=ct(this.headerCellCtrls).find((function(i){return i.getColumnGroupChild()==t}));return!!n&&(n.focus(i),!0)},Qa([Dt("columnModel")],i.prototype,"columnModel",void 0),Qa([Dt("focusService")],i.prototype,"focusService",void 0),Qa([kt],i.prototype,"destroyCtrls",null),i}(Ai),nl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),el=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},rl=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},ol=function(t){function i(i){var n=t.call(this)||this;return n.groupsRowCtrls=[],n.pinned=i,n}return nl(i,t),i.prototype.setComp=function(t,i){this.comp=t,this.eViewport=i,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,xi.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},i.prototype.setupDragAndDrop=function(t){var i=new ra(this.pinned,t);this.createManagedBean(i)},i.prototype.refresh=function(t){var i=this;void 0===t&&(t=!1);var n,e=new Vr,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var t=i.columnModel.getHeaderRowCount()-1;i.groupsRowCtrls=i.destroyBeans(i.groupsRowCtrls);for(var n=0;n<t;n++){var r=i.createBean(new il(e.next(),i.pinned,Rc.COLUMN_GROUP));i.groupsRowCtrls.push(r)}}(),n=e.next(),(null==i.columnsRowCtrl||!t||i.columnsRowCtrl.getRowIndex()!==n)&&(i.destroyBean(i.columnsRowCtrl),i.columnsRowCtrl=i.createBean(new il(n,i.pinned,Rc.COLUMN))),function(){var n=function(){i.filtersRowCtrl=i.destroyBean(i.filtersRowCtrl)};if(i.columnModel.hasFloatingFilters()){var r=e.next();if(i.filtersRowCtrl){var o=i.filtersRowCtrl.getRowIndex()!==r;t&&!o||n()}i.filtersRowCtrl||(i.filtersRowCtrl=i.createBean(new il(r,i.pinned,Rc.FLOATING_FILTER)))}else n()}();var o=this.getAllCtrls();this.comp.setCtrls(o),this.restoreFocusOnHeader(r)},i.prototype.restoreFocusOnHeader=function(t){null!=t&&t.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:t})},i.prototype.getAllCtrls=function(){var t=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(rl(arguments[i]));return t}(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&t.push(this.filtersRowCtrl),t},i.prototype.onGridColumnsChanged=function(){this.refresh(!0)},i.prototype.setupCenterWidth=function(){var t=this;null==this.pinned&&this.createManagedBean(new wc((function(i){return t.comp.setCenterWidth(i+"px")})))},i.prototype.setHorizontalScroll=function(t){this.comp.setContainerTransform("translateX("+t+"px)")},i.prototype.resetScrollLeft=function(){this.eViewport.scrollLeft=0},i.prototype.setupPinnedWidth=function(){var t=this;if(null!=this.pinned){var i=this.pinned===Vt.PINNED_LEFT,n=this.pinned===Vt.PINNED_RIGHT,e=function(){var e=i?t.pinnedWidthService.getPinnedLeftWidth():t.pinnedWidthService.getPinnedRightWidth();if(null!=e){var r=0==e,o=t.gridOptionsWrapper.isEnableRtl(),s=t.gridOptionsWrapper.getScrollbarWidth(),u=t.scrollVisibleService.isVerticalScrollShowing()&&(o&&i||!o&&n);t.comp.setPinnedContainerWidth((u?e+s:e)+"px"),t.comp.addOrRemoveCssClass("ag-hidden",r)}};this.addManagedListener(this.eventService,xi.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,xi.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,xi.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,xi.EVENT_SCROLLBAR_WIDTH_CHANGED,e)}},i.prototype.getHeaderCtrlForColumn=function(t){if(t instanceof qt){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(t)}if(0!==this.groupsRowCtrls.length)for(var i=0;i<this.groupsRowCtrls.length;i++){var n=this.groupsRowCtrls[i].getHeaderCellCtrl(t);if(n)return n}},i.prototype.getHtmlElementForColumnHeader=function(t){var i=this.getHeaderCtrlForColumn(t);return i?i.getGui():null},i.prototype.getRowType=function(t){var i=this.getAllCtrls()[t];return i?i.getType():void 0},i.prototype.focusHeader=function(t,i,n){var e=this.getAllCtrls()[t];return!!e&&e.focusHeader(i,n)},i.prototype.getRowCount=function(){return this.getAllCtrls().length},el([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),el([Dt("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),el([Dt("pinnedWidthService")],i.prototype,"pinnedWidthService",void 0),el([Dt("columnModel")],i.prototype,"columnModel",void 0),el([Dt("focusService")],i.prototype,"focusService",void 0),i}(Ai),sl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ul=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hl=function(t){function i(i){var n=t.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=i,n}return sl(i,t),i.prototype.init=function(){var t=this;this.selectAndSetTemplate();var i={addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setCtrls:function(i){return t.setCtrls(i)},setCenterWidth:function(i){return t.eCenterContainer.style.width=i},setContainerTransform:function(i){return t.eCenterContainer.style.transform=i},setPinnedContainerWidth:function(i){var n=t.getGui();n.style.width=i,n.style.maxWidth=i,n.style.minWidth=i}};this.createManagedBean(new ol(this.pinned)).setComp(i,this.getGui())},i.prototype.selectAndSetTemplate=function(){this.setTemplate(this.pinned==Vt.PINNED_LEFT?i.PINNED_LEFT_TEMPLATE:this.pinned==Vt.PINNED_RIGHT?i.PINNED_RIGHT_TEMPLATE:i.CENTER_TEMPLATE),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},i.prototype.destroyRowComps=function(){this.setCtrls([])},i.prototype.destroyRowComp=function(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())},i.prototype.setCtrls=function(t){var i,n=this,e=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],t.forEach((function(t){var r=t.getInstanceId(),o=e[r];delete e[r];var s=o||n.createBean(new ga(t));n.headerRowComps[r]=s,n.rowCompsList.push(s),function(t){var e=t.getGui();e.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(e),i&&Ae(n.eRowContainer,e,i),i=e}(s)})),ct(e).forEach((function(t){return n.destroyRowComp(t)}))},i.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',i.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',i.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',ul([no("eCenterContainer")],i.prototype,"eCenterContainer",void 0),ul([Ft],i.prototype,"init",null),ul([kt],i.prototype,"destroyRowComps",null),i}(io),cl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),al=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};
272
+ /**
273
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
274
+ * @version v28.2.1
275
+ * @link https://www.ag-grid.com/
276
+ * @license MIT
277
+ */!function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(Ra||(Ra={}));var ll,fl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return cl(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCon=i.gridBodyCtrl}))},i.prototype.getHeaderRowCount=function(){var t=this.ctrlsService.getHeaderRowContainerCtrl();return t?t.getRowCount():0},i.prototype.getHeaderRowType=function(t){var i=this.ctrlsService.getHeaderRowContainerCtrl();if(i)return i.getRowType(t)},i.prototype.navigateVertically=function(t,i,n){if(i||(i=this.focusService.getFocusedHeader()),!i)return!1;var e=i.headerRowIndex,r=i.column,o=this.getHeaderRowCount(),s=t===Ra.UP,u=s?e-1:e+1,h=null,c=!1;u<0&&(u=0,h=r,c=!0),u>=o&&(u=-1);var a=this.getHeaderRowType(e);if(!c){if(a===Rc.COLUMN_GROUP){var l=r;h=s?r.getParent():l.getDisplayedChildren()[0]}else a===Rc.FLOATING_FILTER?h=r:(l=r,h=s?l.getParent():l);if(!h)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u,column:h},allowUserOverride:!0,event:n})},i.prototype.navigateHorizontally=function(t,i,n){void 0===i&&(i=!1);var e,r,o=this.focusService.getFocusedHeader(),s=t===Ra.LEFT,u=this.gridOptionsWrapper.isEnableRtl();return(e=this.headerPositionUtils.findHeader(o,r=s!==u?"Before":"After"))||!i?this.focusService.focusHeaderPosition({headerPosition:e,direction:r,fromTab:i,allowUserOverride:!0,event:n}):this.focusNextHeaderRow(o,r,n)},i.prototype.focusNextHeaderRow=function(t,i,n){var e=t.headerRowIndex,r=null;return"Before"===i?e>0&&(r=this.headerPositionUtils.findColAtEdgeForHeaderRow(e-1,"end")):r=this.headerPositionUtils.findColAtEdgeForHeaderRow(e+1,"start"),this.focusService.focusHeaderPosition({headerPosition:r,direction:i,fromTab:!0,allowUserOverride:!0,event:n})},i.prototype.scrollToColumn=function(t,i){if(void 0===i&&(i="After"),!t.getPinned()){var n;if(t instanceof ui){var e=t.getDisplayedLeafColumns();n="Before"===i?Jt(e):e[0]}else n=t;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n)}},al([Dt("focusService")],i.prototype,"focusService",void 0),al([Dt("headerPositionUtils")],i.prototype,"headerPositionUtils",void 0),al([Dt("animationFrameService")],i.prototype,"animationFrameService",void 0),al([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),al([Ft],i.prototype,"postConstruct",null),al([Pt("headerNavigationService")],i)}(Ai),dl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},pl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return dl(i,t),i.prototype.setComp=function(t,i,n){this.comp=t,this.eGui=i,this.createManagedBean(new go(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},i.prototype.setupHeaderHeight=function(){var t=this.setHeaderHeight.bind(this);t(),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_PIVOT_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_GROUP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_PIVOT_GROUP_HEADER_HEIGHT,t),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_FLOATING_FILTERS_HEIGHT,t),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,t)},i.prototype.getHeaderHeight=function(){return this.headerHeight},i.prototype.setHeaderHeight=function(){var t,i=this.columnModel,n=this.gridOptionsWrapper,e=0,r=i.getHeaderRowCount();i.hasFloatingFilters()&&(r++,e=1);var o=this.columnModel.getColumnGroupHeaderRowHeight(),s=this.columnModel.getColumnHeaderRowHeight(),u=r-(1+e);t=e*n.getFloatingFiltersHeight(),t+=u*o,this.headerHeight!==(t+=s)&&(this.headerHeight=t,this.comp.setHeightAndMinHeight(t+1+"px"),this.eventService.dispatchEvent({type:xi.EVENT_HEADER_HEIGHT_CHANGED}))},i.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)},i.prototype.onTabKeyDown=function(t){var i=this.gridOptionsWrapper.isEnableRtl();(this.headerNavigationService.navigateHorizontally(t.shiftKey!==i?Ra.LEFT:Ra.RIGHT,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},i.prototype.handleKeyDown=function(t){var i=null;switch(t.key){case xr.LEFT:i=Ra.LEFT;case xr.RIGHT:$(i)||(i=Ra.RIGHT),this.headerNavigationService.navigateHorizontally(i,!1,t);break;case xr.UP:i=Ra.UP;case xr.DOWN:$(i)||(i=Ra.DOWN),this.headerNavigationService.navigateVertically(i,null,t)&&t.preventDefault();break;default:return}},i.prototype.onFocusOut=function(t){var i=this.gridOptionsWrapper.getDocument(),n=t.relatedTarget;!n&&this.eGui.contains(i.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},vl([Dt("headerNavigationService")],i.prototype,"headerNavigationService",void 0),vl([Dt("focusService")],i.prototype,"focusService",void 0),vl([Dt("columnModel")],i.prototype,"columnModel",void 0),vl([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),i}(Ai),gl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ml=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return gl(i,t),i.prototype.postConstruct=function(){var t=this,i={addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setHeightAndMinHeight:function(i){t.getGui().style.height=i,t.getGui().style.minHeight=i}};this.createManagedBean(new pl).setComp(i,this.getGui(),this.getFocusableElement());var n=function(i){t.createManagedBean(i),t.appendChild(i)};n(new hl(Vt.PINNED_LEFT)),n(new hl(null)),n(new hl(Vt.PINNED_RIGHT))},i.TEMPLATE='<div class="ag-header" role="presentation"/>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Ft],i.prototype,"postConstruct",null),i}(io),bl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),wl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},yl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return bl(i,t),i.prototype.addResizeBar=function(t){var i=this,n={dragStartPixels:t.dragStartPixels||0,eElement:t.eResizeBar,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this,t),onDragging:this.onDragging.bind(this,t)};return this.dragService.addDragSource(n,!0),function(){return i.dragService.removeDragSource(n)}},i.prototype.onDragStart=function(t,i){this.dragStartX=i.clientX,this.setResizeIcons();var n=i instanceof MouseEvent&&!0===i.shiftKey;t.onResizeStart(n)},i.prototype.setResizeIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!0),t.disableUserSelect(!0)},i.prototype.onDragStop=function(t){t.onResizeEnd(this.resizeAmount),this.resetIcons()},i.prototype.resetIcons=function(){var t=this.ctrlsService.getGridCtrl();t.setResizeCursor(!1),t.disableUserSelect(!1)},i.prototype.onDragging=function(t,i){this.resizeAmount=i.clientX-this.dragStartX,t.onResizing(this.resizeAmount)},wl([Dt("dragService")],i.prototype,"dragService",void 0),wl([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),wl([Pt("horizontalResizeService")],i)}(Ai),Cl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Sl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Rl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Cl(i,t),i.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},i.prototype.showMenuAfterMouseEvent=function(t,i){var n=this;this.showPopup(t,(function(e){n.popupService.positionPopupUnderMouseEvent({column:t,type:"columnMenu",mouseEvent:i,ePopup:e})}),i.target)},i.prototype.showMenuAfterButtonClick=function(t,i,n){var e=this;this.showPopup(t,(function(r){e.popupService.positionPopupUnderComponent({type:n,eventSource:i,ePopup:r,keepWithinBounds:!0,column:t})}),i)},i.prototype.showPopup=function(t,i,n){var e=this,r=this.filterManager.getOrCreateFilterWrapper(t,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var o,s=document.createElement("div");$e(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(t){return e.trapFocusWithin(t,s)})),r.guiPromise.then((function(t){return s.appendChild(t)}));var u=n||this.ctrlsService.getGridBodyCtrl().getGui(),h=this.gridOptionsWrapper.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(i){t.setMenuVisible(!1,"contextMenu");var r=i instanceof KeyboardEvent;if(e.tabListener&&(e.tabListener=e.tabListener()),r&&n&&Ce(n)){var o=e.focusService.findTabbableParent(n);o&&o.focus()}},positionCallback:function(){return i(s)},anchorToElement:u,ariaLabel:h("ariaLabelColumnMenu","Column Menu")});c&&(this.hidePopup=o=c.hideFunc),r.filterPromise.then((function(t){i(s),t.afterGuiAttached&&t.afterGuiAttached({container:"columnMenu",hidePopup:o})})),t.setMenuVisible(!0,"contextMenu")},i.prototype.trapFocusWithin=function(t,i){t.key!==xr.TAB||t.defaultPrevented||this.focusService.findNextFocusableElement(i,!1,t.shiftKey)||(t.preventDefault(),this.focusService.focusInto(i,t.shiftKey))},i.prototype.isMenuEnabled=function(t){return t.isFilterAllowed()},Sl([Dt("filterManager")],i.prototype,"filterManager",void 0),Sl([Dt("popupService")],i.prototype,"popupService",void 0),Sl([Dt("focusService")],i.prototype,"focusService",void 0),Sl([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Sl([Pt("menuFactory")],i)}(Ai),Ol=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Al=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},jl=function(t){function i(n){var e=t.call(this,i.getTemplate(n.cssClass))||this;return e.items=[],e.tabbedItemScrollMap=new Map,e.params=n,n.items&&n.items.forEach((function(t){return e.addItem(t)})),e}return Ol(i,t),i.prototype.postConstruct=function(){this.createManagedBean(new go(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},i.getTemplate=function(t){return'<div class="ag-tabs '+t+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(t?t+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(t?t+"-body":"")+'"></div>\n </div>'},i.prototype.handleKeyDown=function(t){var i=this.gridOptionsWrapper.getDocument();switch(t.key){case xr.RIGHT:case xr.LEFT:if(!this.eHeader.contains(i.activeElement))return;var n=t.key===xr.RIGHT,e=this.gridOptionsWrapper.isEnableRtl(),r=this.items.indexOf(this.activeItem),o=n!==e?Math.min(r+1,this.items.length-1):Math.max(r-1,0);if(r===o)return;t.preventDefault();var s=this.items[o];this.showItemWrapper(s),s.eHeaderButton.focus();break;case xr.UP:case xr.DOWN:t.stopPropagation()}},i.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var i=this,n=i.focusService,e=i.eHeader,r=i.eBody,o=i.activeItem,s=this.gridOptionsWrapper.getDocument().activeElement;if(t.preventDefault(),e.contains(s))n.focusInto(r,t.shiftKey);else if(n.isFocusUnderManagedComponent(r))o.eHeaderButton.focus();else{var u=n.findNextFocusableElement(r,!1,t.shiftKey);u?u.focus():o.eHeaderButton.focus()}}},i.prototype.setAfterAttachedParams=function(t){this.afterAttachedParams=t},i.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},i.prototype.addItem=function(t){var i=document.createElement("span");$e(i,"tab"),i.setAttribute("tabIndex","-1"),i.appendChild(t.title),i.classList.add("ag-tab"),this.eHeader.appendChild(i),Ze(i,t.titleLabel);var n={tabbedItem:t,eHeaderButton:i};this.items.push(n),i.addEventListener("click",this.showItemWrapper.bind(this,n))},i.prototype.showItem=function(t){var i=this.items.find((function(i){return i.tabbedItem===t}));i&&this.showItemWrapper(i)},i.prototype.showItemWrapper=function(t){var i=this,n=t.tabbedItem,e=t.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==t?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),we(this.eBody),n.bodyPromise.then((function(t){i.eBody.appendChild(t);var e=!i.focusService.isKeyboardMode();if(i.focusService.focusInto(i.eBody,!1,e),n.afterAttachedCallback&&n.afterAttachedCallback(i.afterAttachedParams),i.params.keepScrollPosition){var r=n.getScrollableContainer&&n.getScrollableContainer()||t;i.lastScrollListener=i.addManagedListener(r,"scroll",(function(){i.tabbedItemScrollMap.set(n.name,r.scrollTop)}));var o=i.tabbedItemScrollMap.get(n.name);void 0!==o&&setTimeout((function(){r.scrollTop=o}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),e.classList.add("ag-tab-selected"),this.activeItem=t):_t(this.params.onActiveItemClicked)},Al([Dt("focusService")],i.prototype,"focusService",void 0),Al([no("eHeader")],i.prototype,"eHeader",void 0),Al([no("eBody")],i.prototype,"eBody",void 0),Al([Ft],i.prototype,"postConstruct",null),i}(io),_l=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Gl=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.polyfillFunctions=[],i}return _l(i,t),i.prototype.observeResize=function(t,i){var n,e,r,o,s,u=this,h=this.gridOptionsWrapper.getDocument().defaultView||window,c=Ot(i,50),a=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return h.ResizeObserver&&!a?((n=new h.ResizeObserver(c)).observe(t),function(){return n.disconnect()}):(e=Oe(t),r=Re(t),o=!0,(s=function(){if(o){var n=Oe(t),h=Re(t);(n!==e||h!==r)&&(e=n,r=h,i()),u.doNextPolyfillTurn(s)}})(),function(){return o=!1})},i.prototype.doNextPolyfillTurn=function(t){this.polyfillFunctions.push(t),this.schedulePolyfill()},i.prototype.schedulePolyfill=function(){var t=this;this.polyfillScheduled||(this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var i=t.polyfillFunctions;t.polyfillScheduled=!1,t.polyfillFunctions=[],i.forEach((function(t){return t()}))}),50))},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("resizeObserverService")],i)}(Ai),xl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ml=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Fl=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.createTasksP1={list:[],sorted:!1},i.createTasksP2={list:[],sorted:!1},i.destroyTasks=[],i.ticking=!1,i.scrollGoingDown=!0,i.lastScrollTop=0,i.taskCount=0,i.cancelledTasks=new Set,i}return xl(i,t),i.prototype.setScrollTop=function(t){this.scrollGoingDown=t>this.lastScrollTop,this.lastScrollTop=t},i.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},i.prototype.isOn=function(){return this.useAnimationFrame},i.prototype.verifyAnimationFrameOn=function(t){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+t+" called but animation frames are off")},i.prototype.createTask=function(t,i,n){this.verifyAnimationFrameOn(n);var e={task:t,index:i,createOrder:++this.taskCount};this.addTaskToList(this[n],e),this.schedule()},i.prototype.cancelTask=function(t){this.cancelledTasks.add(t)},i.prototype.addTaskToList=function(t,i){t.list.push(i),t.sorted=!1},i.prototype.sortTaskList=function(t){if(!t.sorted){var i=this.scrollGoingDown?1:-1;t.list.sort((function(t,n){return t.index!==n.index?i*(n.index-t.index):n.createOrder-t.createOrder})),t.sorted=!0}},i.prototype.addDestroyTask=function(t){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(t),this.schedule()},i.prototype.executeFrame=function(t){this.verifyAnimationFrameOn("executeFrame");for(var i=this.createTasksP1,n=i.list,e=this.createTasksP2,r=e.list,o=this.destroyTasks,s=(new Date).getTime(),u=(new Date).getTime()-s,h=t<=0,c=this.ctrlsService.getGridBodyCtrl();h||u<t;){if(!c.getScrollFeature().executeAnimationFrameScroll()){var a=void 0;if(n.length)this.sortTaskList(i),a=n.pop().task;else if(r.length)this.sortTaskList(e),a=r.pop().task;else{if(!o.length){this.cancelledTasks.clear();break}a=o.pop()}this.cancelledTasks.has(a)||a()}u=(new Date).getTime()-s}n.length||r.length||o.length?this.requestFrame():this.stopTicking()},i.prototype.stopTicking=function(){this.ticking=!1},i.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},i.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},i.prototype.requestFrame=function(){var t=this.executeFrame.bind(this,60),i=this.gridOptionsWrapper.getDocument().defaultView||window;i.requestAnimationFrame?i.requestAnimationFrame(t):i.webkitRequestAnimationFrame?i.webkitRequestAnimationFrame(t):i.setTimeout(t,0)},i.prototype.isQueueEmpty=function(){return!this.ticking},i.prototype.debounce=function(t){var i=this,n=!1;return function(){i.isOn()?n||(n=!0,i.addDestroyTask((function(){n=!1,t()}))):i.getFrameworkOverrides().setTimeout(t,0)}},Ml([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Ml([Ft],i.prototype,"init",null),Ml([Pt("animationFrameService")],i)}(Ai),kl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Dl="ag-resizer-wrapper",Il='<div class="'+Dl+'">\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>',El=function(t){function i(i,n){var e=t.call(this)||this;return e.element=i,e.dragStartPosition={x:0,y:0},e.position={x:0,y:0},e.lastSize={width:-1,height:-1},e.positioned=!1,e.resizersAdded=!1,e.resizeListeners=[],e.boundaryEl=null,e.isResizing=!1,e.isMoving=!1,e.resizable={},e.movable=!1,e.currentResizer=null,e.config=Object.assign({},{popup:!1},n),e}return kl(i,t),i.prototype.center=function(){var t=this.offsetParent,i=t.clientHeight,n=t.clientWidth/2-this.getWidth()/2,e=i/2-this.getHeight()/2;this.offsetElement(n,e)},i.prototype.initialisePosition=function(){var t=this.config,i=t.centered,n=t.forcePopupParentAsOffsetParent,e=t.minWidth,r=t.width,o=t.minHeight,s=t.height,u=t.x,h=t.y;this.offsetParent||this.setOffsetParent();var c=0,a=0,l=!!this.element.offsetParent;if(l){var f=this.findBoundaryElement(),d=window.getComputedStyle(f);if(null!=d.minWidth){var v=f.offsetWidth-this.element.offsetWidth;a=parseInt(d.minWidth,10)-v}if(null!=d.minHeight){var p=f.offsetHeight-this.element.offsetHeight;c=parseInt(d.minHeight,10)-p}}if(this.minHeight=o||c,this.minWidth=e||a,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),i)this.center();else if(u||h)this.offsetElement(u,h);else if(l&&n&&this.boundaryEl){var g=parseFloat(this.boundaryEl.style.top),m=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(m)?0:m,isNaN(g)?0:g)}this.positioned=!!this.offsetParent},i.prototype.isPositioned=function(){return this.positioned},i.prototype.getPosition=function(){return this.position},i.prototype.setMovable=function(t,i){if(this.config.popup&&t!==this.movable){this.movable=t;var n=this.moveElementDragListener||{eElement:i,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},i.prototype.setResizable=function(t){var i=this;if(this.clearResizeListeners(),t?this.addResizers():this.removeResizers(),"boolean"==typeof t){if(!1===t)return;t={topLeft:t,top:t,topRight:t,right:t,bottomRight:t,bottom:t,bottomLeft:t,left:t}}Object.keys(t).forEach((function(n){var e=!!t[n],r=i.getResizerElement(n),o={dragStartPixels:0,eElement:r,onDragStart:function(t){return i.onResizeStart(t,n)},onDragging:i.onResize.bind(i),onDragStop:function(t){return i.onResizeEnd(t,n)}};!!i.resizable[n]===e&&(i.isAlive()||e)||(e?(i.dragService.addDragSource(o),i.resizeListeners.push(o),r.style.pointerEvents="all"):r.style.pointerEvents="none",i.resizable[n]=e)}))},i.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},i.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var t=this.lastSize,i=t.height,n=t.width;-1!==n&&(this.element.style.width=n+"px"),-1!==i&&(this.element.style.height=i+"px")},i.prototype.getHeight=function(){return this.element.offsetHeight},i.prototype.setHeight=function(t){var i=this.config.popup,n=this.element,e=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Pe(n,t),t=ve(n),e=!0;else if(this.positioned){var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect();t=Math.max(this.minHeight,t);var s=this.offsetParent.clientHeight,u=i?this.position.y:r.top;s&&t+u>s+(i?0:o.top)&&(t=s-u)}this.getHeight()!==t&&(e?(n.style.maxHeight="unset",n.style.minHeight="unset"):i?Pe(n,t):(n.style.height=t+"px",n.style.flex="0 0 auto",this.lastSize.height="number"==typeof t?t:parseFloat(t)))},i.prototype.getWidth=function(){return this.element.offsetWidth},i.prototype.setWidth=function(t){var i=this.element,n=this.config.popup,e=!1;if("string"==typeof t&&-1!==t.indexOf("%"))ke(i,t),t=pe(i),e=!0;else if(this.positioned){t=Math.max(this.minWidth,t);var r=this.offsetParent.clientWidth,o=n?this.position.x:this.element.getBoundingClientRect().left;r&&t+o>r&&(t=r-o)}this.getWidth()!==t&&(e?(i.style.maxWidth="unset",i.style.minWidth="unset"):this.config.popup?ke(i,t):(i.style.width=t+"px",i.style.flex=" unset",this.lastSize.width="number"==typeof t?t:parseFloat(t)))},i.prototype.offsetElement=function(t,i){void 0===t&&(t=0),void 0===i&&(i=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,x:t,y:i,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable()}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},i.prototype.setPosition=function(t,i){this.position.x=t,this.position.y=i},i.prototype.updateDragStartPosition=function(t,i){this.dragStartPosition={x:t,y:i}},i.prototype.calculateMouseMovement=function(t){var i=t.e,n=t.isTop,e=t.topBuffer,r=i.clientX-this.dragStartPosition.x,o=i.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(i,!!t.isLeft,!!t.anywhereWithin,r)?0:r,movementY:this.shouldSkipY(i,!!n,e,o)?0:o}},i.prototype.shouldSkipX=function(t,i,n,e){var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.x:r.left,h=u<=0&&o.left>=t.clientX||o.right<=t.clientX&&o.right<=s.right;return!!h||(i?e<0&&t.clientX>u+o.left||e>0&&t.clientX<u+o.left:n?e<0&&t.clientX>s.right||e>0&&t.clientX<u+o.left:e<0&&t.clientX>s.right||e>0&&t.clientX<s.right)},i.prototype.shouldSkipY=function(t,i,n,e){void 0===n&&(n=0);var r=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),u=this.config.popup?this.position.y:r.top,h=u<=0&&o.top>=t.clientY||o.bottom<=t.clientY&&o.bottom<=s.bottom;return!!h||(i?e<0&&t.clientY>u+o.top+n||e>0&&t.clientY<u+o.top:e<0&&t.clientY>s.bottom||e>0&&t.clientY<s.bottom)},i.prototype.createResizeMap=function(){var t=this.element;this.resizerMap={topLeft:{element:t.querySelector("[ref=eTopLeftResizer]")},top:{element:t.querySelector("[ref=eTopResizer]")},topRight:{element:t.querySelector("[ref=eTopRightResizer]")},right:{element:t.querySelector("[ref=eRightResizer]")},bottomRight:{element:t.querySelector("[ref=eBottomRightResizer]")},bottom:{element:t.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:t.querySelector("[ref=eBottomLeftResizer]")},left:{element:t.querySelector("[ref=eLeftResizer]")}}},i.prototype.addResizers=function(){if(!this.resizersAdded){var t=this.element;if(t){var i=(new DOMParser).parseFromString(Il,"text/html").body;t.appendChild(i.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},i.prototype.removeResizers=function(){this.resizerMap=void 0;var t=this.element.querySelector("."+Dl);t&&this.element.removeChild(t),this.resizersAdded=!1},i.prototype.getResizerElement=function(t){return this.resizerMap[t].element},i.prototype.onResizeStart=function(t,i){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!i.match(/top/i),isRight:!!i.match(/right/i),isBottom:!!i.match(/bottom/i),isLeft:!!i.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[i].element.classList.add("ag-active");var n=this.config;n.popup||n.forcePopupParentAsOffsetParent||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(t.clientX,t.clientY)},i.prototype.getSiblings=function(){var t=this.element.parentElement;return t?Array.prototype.slice.call(t.children).filter((function(t){return!t.classList.contains("ag-hidden")})):null},i.prototype.getMinSizeOfSiblings=function(){for(var t=this.getSiblings()||[],i=0,n=0,e=0;e<t.length;e++){var r=t[e];if(r!==this.element){var o=this.minHeight||0,s=this.minWidth||0;if(r.style.flex&&"0 0 auto"!==r.style.flex){var u=window.getComputedStyle(r);u.minHeight&&(o=parseInt(u.minHeight,10)),u.minWidth&&(s=parseInt(u.minWidth,10))}else o=r.offsetHeight,s=r.offsetWidth;i+=o,n+=s}}return{height:i,width:n}},i.prototype.applySizeToSiblings=function(t){var i=null,n=this.getSiblings();if(n){for(var e=0;e<n.length;e++){var r=n[e];r!==i&&(t?r.style.height=r.offsetHeight+"px":r.style.width=r.offsetWidth+"px",r.style.flex="0 0 auto",r===this.element&&(i=n[e+1]))}i&&(i.style.removeProperty("height"),i.style.removeProperty("min-height"),i.style.removeProperty("max-height"),i.style.flex="1 1 auto")}},i.prototype.isResizable=function(){return Object.values(this.resizable).some((function(t){return t}))},i.prototype.onResize=function(t){if(this.isResizing&&this.currentResizer){var i=this.config,n=i.popup,e=i.forcePopupParentAsOffsetParent,r=this.currentResizer,o=r.isTop,s=r.isLeft,u=r.isRight||s,h=r.isBottom||o,c=this.calculateMouseMovement({e:t,isLeft:s,isTop:o}),a=c.movementX,l=c.movementY,f=this.position.x,d=this.position.y,v=0,p=0;if(u&&a){var g=s?-1:1,m=this.getWidth(),b=m+a*g,w=!1;s&&(f+(v=m-b)<=0||b<=this.minWidth)&&(w=!0,v=0),w||this.setWidth(b)}if(h&&l){g=o?-1:1;var y=this.getHeight(),C=y+l*g,S=!1;o?(d+(p=y-C)<=0||C<=this.minHeight)&&(S=!0,p=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&y<C&&this.getMinSizeOfSiblings().height+C>this.element.parentElement.offsetHeight&&(S=!0),S||this.setHeight(C)}this.updateDragStartPosition(t.clientX,t.clientY),((n||e)&&v||p)&&this.offsetElement(f+v,d+p)}},i.prototype.onResizeEnd=function(t,i){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[i].element.classList.remove("ag-active"),this.dispatchEvent(n)},i.prototype.refreshSize=function(){var t=this.element;this.config.popup&&(this.config.width||this.setWidth(t.offsetWidth),this.config.height||this.setHeight(t.offsetHeight))},i.prototype.onMoveStart=function(t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(t.clientX,t.clientY)},i.prototype.onMove=function(t){if(this.isMoving){var i,n=this.position,e=n.x,r=n.y;this.config.calculateTopBuffer&&(i=this.config.calculateTopBuffer());var o=this.calculateMouseMovement({e:t,isTop:!0,anywhereWithin:!0,topBuffer:i});this.offsetElement(e+o.movementX,r+o.movementY),this.updateDragStartPosition(t.clientX,t.clientY)}},i.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},i.prototype.setOffsetParent=function(){this.offsetParent=this.config.forcePopupParentAsOffsetParent?this.popupService.getPopupParent():this.element.offsetParent},i.prototype.findBoundaryElement=function(){for(var t=this.element;t;){if("static"!==window.getComputedStyle(t).position)return t;t=t.parentElement}return this.element},i.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var t=this.resizeListeners.pop();this.dragService.removeDragSource(t)}},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},Pl([Dt("popupService")],i.prototype,"popupService",void 0),Pl([Dt("dragService")],i.prototype,"dragService",void 0),i}(Ai),Tl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Nl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Tl(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.centerRowContainerCtrl=i.centerRowContainerCtrl}))},i.prototype.getPreferredWidthForColumn=function(t,i){var n=this.getHeaderCellForColumn(t);if(!n)return-1;var e=this.rowRenderer.getAllCellsForColumn(t);return i||e.push(n),this.addElementsToContainerAndGetWidth(e)},i.prototype.getPreferredWidthForColumnGroup=function(t){var i=this.getHeaderCellForColumn(t);return i?this.addElementsToContainerAndGetWidth([i]):-1},i.prototype.addElementsToContainerAndGetWidth=function(t){var i=this,n=document.createElement("form");n.style.position="fixed";var e=this.centerRowContainerCtrl.getContainerElement();e.appendChild(n),t.forEach((function(t){return i.cloneItemIntoDummy(t,n)}));var r=n.offsetWidth;return e.removeChild(n),r+this.gridOptionsWrapper.getAutoSizePadding()},i.prototype.getHeaderCellForColumn=function(t){var i=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(n){var e=n.getHtmlElementForColumnHeader(t);null!=e&&(i=e)})),i},i.prototype.cloneItemIntoDummy=function(t,i){var n=t.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var e=document.createElement("div"),r=e.classList;["ag-header-cell","ag-header-group-cell"].some((function(t){return n.classList.contains(t)}))?(r.add("ag-header","ag-header-row"),e.style.position="static"):r.add("ag-row");for(var o=t.parentElement;o;){if(["ag-header-row","ag-row"].some((function(t){return o.classList.contains(t)}))){for(var s=0;s<o.classList.length;s++){var u=o.classList[s];"ag-row-position-absolute"!=u&&r.add(u)}break}o=o.parentElement}e.appendChild(n),i.appendChild(e)},zl([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),zl([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),zl([Dt("rowCssClassCalculator")],i.prototype,"rowCssClassCalculator",void 0),zl([Ft],i.prototype,"postConstruct",null),zl([Pt("autoWidthCalculator")],i)}(Ai),Ll=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Hl=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Wl=function(t){function i(i,n){var e=t.call(this)||this;return e.createRowCon=i,e.destroyRowCtrls=n,e.stickyRowCtrls=[],e.containerHeight=0,e}return Ll(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridBodyCtrl=i.gridBodyCtrl}))},i.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},i.prototype.checkStickyRows=function(){var t=0;if(this.gridOptionsWrapper.isGroupRowsSticky()){for(var i=[],n=this.rowRenderer.getFirstVisibleVerticalPixel(),e=function(e){i.push(e);for(var r=e;r.expanded;)r=Jt(r.childrenAfterSort);var o=r.rowTop+r.rowHeight,s=n+t+e.rowHeight;e.stickyRowTop=o<s?t+(o-s):t,t=0,i.forEach((function(i){var n=i.stickyRowTop+i.rowHeight;t<n&&(t=n)}))};;){var r=n+t,o=this.rowModel.getRowIndexAtPixel(r),s=this.rowModel.getRow(o);if(null==s)break;if(s.level<0)break;for(var u=[],h=s.parent;h.level>=0;)u.push(h),h=h.parent;var c=u.reverse().find((function(t){return i.indexOf(t)<0&&t.displayed}));if(c)e(c);else{if(!(s.group&&s.expanded&&!s.footer&&s.rowTop<r))break;e(s)}}this.refreshNodesAndContainerHeight(i,t)}else this.refreshNodesAndContainerHeight([],t)},i.prototype.refreshNodesAndContainerHeight=function(t,i){var n,e,r,o=this,s=this.stickyRowCtrls.filter((function(i){return-1===t.indexOf(i.getRowNode())})),u=t.filter((function(t){return-1===o.stickyRowCtrls.findIndex((function(i){return i.getRowNode()===t}))})),h={};s.forEach((function(t){h[t.getRowNode().id]=t,o.stickyRowCtrls=o.stickyRowCtrls.filter((function(i){return i!==t}))}));try{for(var c=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(h)),a=c.next();!a.done;a=c.next())a.value.getRowNode().sticky=!1}catch(t){n={error:t}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(n)throw n.error}}this.destroyRowCtrls(h,!1);var l=u.map((function(t){return t.sticky=!0,o.createRowCon(t,!1,!1)}));(r=this.stickyRowCtrls).push.apply(r,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Hl(arguments[i]));return t}(l)),this.stickyRowCtrls.forEach((function(t){return t.setRowTop(t.getRowNode().stickyRowTop)})),this.stickyRowCtrls.sort((function(t,i){return i.getRowNode().rowIndex-t.getRowNode().rowIndex})),this.containerHeight!==i&&(this.containerHeight=i,this.gridBodyCtrl.setStickyTopHeight(i))},Bl([Dt("rowModel")],i.prototype,"rowModel",void 0),Bl([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),Bl([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Bl([Ft],i.prototype,"postConstruct",null),i}(Ai),Vl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ul=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Kl=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},$l=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Kl(arguments[i]));return t},ql=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.destroyFuncsForColumnListeners=[],i.rowCtrlsByRowIndex={},i.zombieRowCtrls={},i.allRowCtrls=[],i.topRowCtrls=[],i.bottomRowCtrls=[],i.refreshInProgress=!1,i.dataFirstRenderedFired=!1,i}return Vl(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.initialise()}))},i.prototype.initialise=function(){this.addManagedListener(this.eventService,xi.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.gridOptionsWrapper.isGroupRowsSticky()&&(this.rowModel.getType()!=Vt.ROW_MODEL_TYPE_CLIENT_SIDE?gt((function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model")}),"rowRenderer.stickyWorksWithCsrmOnly"):this.gridOptionsWrapper.isTreeData()?gt((function(){return console.warn("AG Grid: The feature Sticky Row Groups does not work with Tree Data.")}),"rowRenderer.stickyDoesNotWorkWithTreeData"):this.stickyRowFeature=this.createManagedBean(new Wl(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},i.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var t=this.gridOptionsWrapper.getKeepDetailRowsCount();this.cachedRowCtrls=new Yl(null!=t?t:3)}},i.prototype.getRowCtrls=function(){return this.allRowCtrls},i.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},i.prototype.updateAllRowCtrls=function(){var t=ct(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&t.sort((function(t,i){return t.getRowNode().rowIndex-i.getRowNode.rowIndex}));var i=ct(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=$l(t,i,n)},i.prototype.registerCellEventListeners=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_CELL_FOCUSED,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onCellFocused(i)})),t.getFullWidthRowCtrls().forEach((function(t){t.onFullWidthRowFocused(i)}))})),this.addManagedListener(this.eventService,xi.EVENT_FLASH_CELLS,(function(i){t.getAllCellCtrls().forEach((function(t){return t.onFlashCells(i)}))})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_HOVER_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onColumnHover()}))})),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){t.printLayout&&t.getAllCellCtrls().forEach((function(t){return t.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,xi.EVENT_RANGE_SELECTION_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_MOVED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PINNED,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VISIBLE,(function(){t.getAllCellCtrls().forEach((function(t){return t.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,xi.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},i.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(t){return t()})),this.destroyFuncsForColumnListeners.length=0},i.prototype.refreshListenersToColumnsForCellComps=function(){var t=this;this.removeGridColumnListeners();var i=this.columnModel.getAllGridColumns();i&&i.forEach((function(i){var n=function(n){t.getAllCellCtrls().forEach((function(t){t.getColumn()===i&&n(t)}))},e=function(){n((function(t){return t.onLeftChanged()}))},r=function(){n((function(t){return t.onWidthChanged()}))},o=function(){n((function(t){return t.onFirstRightPinnedChanged()}))},s=function(){n((function(t){return t.onLastLeftPinnedChanged()}))},u=function(){n((function(t){return t.onColDefChanged()}))};i.addEventListener(qt.EVENT_LEFT_CHANGED,e),i.addEventListener(qt.EVENT_WIDTH_CHANGED,r),i.addEventListener(qt.EVENT_FIRST_RIGHT_PINNED_CHANGED,o),i.addEventListener(qt.EVENT_LAST_LEFT_PINNED_CHANGED,s),i.addEventListener(qt.EVENT_COL_DEF_CHANGED,u),t.destroyFuncsForColumnListeners.push((function(){i.removeEventListener(qt.EVENT_LEFT_CHANGED,e),i.removeEventListener(qt.EVENT_WIDTH_CHANGED,r),i.removeEventListener(qt.EVENT_FIRST_RIGHT_PINNED_CHANGED,o),i.removeEventListener(qt.EVENT_LAST_LEFT_PINNED_CHANGED,s),i.removeEventListener(qt.EVENT_COL_DEF_CHANGED,u)}))}))},i.prototype.onDomLayoutChanged=function(){var t=this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_PRINT,i=t||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=i!==this.embedFullWidthRows||this.printLayout!==t;this.printLayout=t,this.embedFullWidthRows=i,n&&this.redrawAfterModelUpdate()},i.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},i.prototype.onPageLoaded=function(t){this.redrawAfterModelUpdate({recycleRows:t.keepRenderedRows,animate:t.animate,newData:t.newData,newPage:t.newPage,onlyBody:!0})},i.prototype.getAllCellsForColumn=function(t){var i=[];return this.getAllRowCtrls().forEach((function(n){var e=n.getCellElement(t);e&&i.push(e)})),i},i.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},i.prototype.getTopRowCtrls=function(){return this.topRowCtrls},i.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},i.prototype.refreshFloatingRows=function(t,i){var n=this;t.forEach((function(t){t.destroyFirstPass(),t.destroySecondPass()})),t.length=0,i&&i.forEach((function(i){var e=new Xh(i,n.beans,!1,!1,n.printLayout);t.push(e)}))},i.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},i.prototype.getRenderedIndexesForRowNodes=function(t){var i=[];return q(t)||nt(this.rowCtrlsByRowIndex,(function(n,e){var r=e.getRowNode();t.indexOf(r)>=0&&i.push(n)})),i},i.prototype.redrawRows=function(t){var i=null!=t&&t.length>0;if(i){var n=this.getRenderedIndexesForRowNodes(t);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:i})},i.prototype.getCellToRestoreFocusToAfterRefresh=function(t){var i,n=(null===(i=t)||void 0===i?void 0:i.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==n)return null;var e=this.gridOptionsWrapper.getDocument().activeElement,r=this.gridOptionsWrapper.getDomData(e,Kh.DOM_DATA_KEY_CELL_CTRL),o=this.gridOptionsWrapper.getDomData(e,Xh.DOM_DATA_KEY_ROW_CTRL);return r||o?n:null},i.prototype.redrawAfterModelUpdate=function(t){void 0===t&&(t={}),this.getLockOnRefresh();var i=this.getCellToRestoreFocusToAfterRefresh(t);this.updateContainerHeights(),this.scrollToTopIfNewData(t);var n=!this.printLayout&&!!t.recycleRows,e=t.animate&&this.gridOptionsWrapper.isAnimateRows(),r=n?this.recycleRows():null;n||this.removeAllRowComps();var o=function(){if(null==i||null==r)return!1;var t=!1;return nt(r,(function(n,e){var r=e.getRowNode();r.rowIndex==i.rowIndex&&r.rowPinned==i.rowPinned&&(t=!0)})),t}();this.redraw(r,e),this.gridBodyCtrl.updateRowCount(),t.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),o||this.restoreFocusedCell(i),this.releaseLockOnRefresh()},i.prototype.scrollToTopIfNewData=function(t){var i=t.newData||t.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();i&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},i.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.rowContainerHeightService.setModelHeight(t)}},i.prototype.getLockOnRefresh=function(){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},i.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},i.prototype.isRefreshInProgress=function(){return this.refreshInProgress},i.prototype.restoreFocusedCell=function(t){t&&this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})},i.prototype.stopEditing=function(t){void 0===t&&(t=!1),this.getAllRowCtrls().forEach((function(i){i.stopEditing(t)}))},i.prototype.getAllCellCtrls=function(){var t=[];return this.getAllRowCtrls().forEach((function(i){return t=t.concat(i.getAllCellCtrls())})),t},i.prototype.getAllRowCtrls=function(){var t=this,i=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],n=$l(this.topRowCtrls,this.bottomRowCtrls,i);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(i){return n.push(t.rowCtrlsByRowIndex[i])})),n},i.prototype.addRenderedRowListener=function(t,i,n){var e=this.rowCtrlsByRowIndex[i];e&&e.addEventListener(t,n)},i.prototype.flashCells=function(t){void 0===t&&(t={});var i=t.flashDelay,n=t.fadeDelay;this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){return t.flashCell({flashDelay:i,fadeDelay:n})}))},i.prototype.refreshCells=function(t){void 0===t&&(t={});var i={forceRefresh:t.force,newData:!1,suppressFlash:t.suppressFlash};this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){if(t.refreshShouldDestroy()){var n=t.getRowCtrl();n&&n.refreshCell(t)}else t.refreshCell(i)})),this.getFullWidthRowCtrls(t.rowNodes).forEach((function(t){t.refreshFullWidth()}))},i.prototype.getCellRendererInstances=function(t){return this.getCellCtrls(t.rowNodes,t.columns).map((function(t){return t.getCellRenderer()})).filter((function(t){return null!=t}))},i.prototype.getCellEditorInstances=function(t){var i=[];return this.getCellCtrls(t.rowNodes,t.columns).forEach((function(t){var n=t.getCellEditor();n&&i.push(n)})),i},i.prototype.getEditingCells=function(){var t=[];return this.getAllCellCtrls().forEach((function(i){if(i.isEditing()){var n=i.getCellPosition();t.push(n)}})),t},i.prototype.mapRowNodes=function(t){if(t){var i={top:{},bottom:{},normal:{}};return t.forEach((function(t){var n=t.id;t.rowPinned===Vt.PINNED_TOP?i.top[n]=t:t.rowPinned===Vt.PINNED_BOTTOM?i.bottom[n]=t:i.normal[n]=t})),i}},i.prototype.isRowInMap=function(t,i){var n=t.id,e=t.rowPinned;return e===Vt.PINNED_BOTTOM?null!=i.bottom[n]:e===Vt.PINNED_TOP?null!=i.top[n]:null!=i.normal[n]},i.prototype.getCellCtrls=function(t,i){var n,e=this,r=this.mapRowNodes(t),o=[];$(i)&&(n={},i.forEach((function(t){var i=e.columnModel.getGridColumn(t);$(i)&&(n[i.getId()]=!0)})));var s=function(t){var i=t.getRowNode();(null==r||e.isRowInMap(i,r))&&t.getAllCellCtrls().forEach((function(t){var i=t.getColumn().getId();n&&!n[i]||o.push(t)}))};return nt(this.rowCtrlsByRowIndex,(function(t,i){s(i)})),this.topRowCtrls&&this.topRowCtrls.forEach(s),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(s),o},i.prototype.destroy=function(){this.removeAllRowComps(),t.prototype.destroy.call(this)},i.prototype.removeAllRowComps=function(){var t=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(t)},i.prototype.recycleRows=function(){var t=[];nt(this.rowCtrlsByRowIndex,(function(i,n){null==n.getRowNode().id&&t.push(i)})),this.removeRowCtrls(t);var i={};return nt(this.rowCtrlsByRowIndex,(function(t,n){var e=n.getRowNode();i[e.id]=n})),this.rowCtrlsByRowIndex={},i},i.prototype.removeRowCtrls=function(t){var i=this;t.forEach((function(t){var n=i.rowCtrlsByRowIndex[t];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete i.rowCtrlsByRowIndex[t]}))},i.prototype.redrawAfterScroll=function(){var t;if(this.stickyRowFeature&&pn()&&(t=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=t){var i=this.getCellToRestoreFocusToAfterRefresh();null!=t&&null==i&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(t))}},i.prototype.removeRowCompsNotToDraw=function(t){var i={};t.forEach((function(t){return i[t]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(t){return!i[t]}));this.removeRowCtrls(n)},i.prototype.calculateIndexesToDraw=function(t){var i=this,n=Fn(this.firstRenderedRow,this.lastRenderedRow),e=function(t,e){var r=e.getRowNode().rowIndex;null!=r&&(r<i.firstRenderedRow||r>i.lastRenderedRow)&&i.doNotUnVirtualiseRow(e)&&n.push(r)};return nt(this.rowCtrlsByRowIndex,e),nt(t,e),n.sort((function(t,i){return t-i})),n=n.filter((function(t){var n=i.paginationProxy.getRow(t);return n&&!n.sticky}))},i.prototype.redraw=function(t,i,n){var e=this;void 0===i&&(i=!1),void 0===n&&(n=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var r=this.calculateIndexesToDraw(t);this.removeRowCompsNotToDraw(r),this.printLayout&&(i=!1),r.forEach((function(r){$(e.createOrUpdateRowCtrl(r,t,i,n))})),t&&(!n||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowCtrls(t,i):this.beans.animationFrameService.addDestroyTask((function(){e.destroyRowCtrls(t,i),e.updateAllRowCtrls(),e.dispatchDisplayedRowsChanged()}))),this.updateAllRowCtrls()},i.prototype.dispatchDisplayedRowsChanged=function(){this.eventService.dispatchEvent({type:xi.EVENT_DISPLAYED_ROWS_CHANGED})},i.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.isPinningLeft(),i=this.columnModel.isPinningRight();(this.pinningLeft!==t||i!==this.pinningRight)&&(this.pinningLeft=t,this.pinningRight=i,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},i.prototype.redrawFullWidthEmbeddedRows=function(){var t=[];this.getFullWidthRowCtrls().forEach((function(i){var n=i.getRowNode().rowIndex;t.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(t),this.redrawAfterScroll()},i.prototype.getFullWidthRowCtrls=function(t){var i=this,n=this.mapRowNodes(t);return ct(this.rowCtrlsByRowIndex).filter((function(t){if(!t.isFullWidth())return!1;var e=t.getRowNode();return!(null!=n&&!i.isRowInMap(e,n))}))},i.prototype.refreshFullWidthRows=function(t){var i=[],n=!!t,e=n?{}:void 0;n&&e&&t.forEach((function(t){return e[t.id]=!0})),this.getFullWidthRowCtrls().forEach((function(t){var r=t.getRowNode();if((!n||!e||e[r.id]||e[r.level>0&&r.parent?r.parent.id:void 0])&&!t.refreshFullWidth()){var o=t.getRowNode().rowIndex;i.push(o.toString())}})),this.removeRowCtrls(i),this.redrawAfterScroll()},i.prototype.createOrUpdateRowCtrl=function(t,i,n,e){var r,o=this.rowCtrlsByRowIndex[t];if(o||$(r=this.paginationProxy.getRow(t))&&$(i)&&i[r.id]&&r.alreadyRendered&&(o=i[r.id],i[r.id]=null),!o){if(r||(r=this.paginationProxy.getRow(t)),!$(r))return;o=this.createRowCon(r,n,e)}return r&&(r.alreadyRendered=!0),this.rowCtrlsByRowIndex[t]=o,o},i.prototype.destroyRowCtrls=function(t,i){var n=this,e=[];nt(t,(function(t,r){r&&(n.cachedRowCtrls&&r.isCacheable()?n.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),i?(n.zombieRowCtrls[r.getInstanceId()]=r,e.push((function(){r.destroySecondPass(),delete n.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),i&&(e.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),wt(e))},i.prototype.workOutFirstAndLastRowsToRender=function(){var t,i;if(this.paginationProxy.isRowsToRender())if(this.printLayout)t=this.paginationProxy.getPageFirstRow(),i=this.paginationProxy.getPageLastRow();else{var n=this.gridOptionsWrapper.getRowBufferInPixels(),e=this.ctrlsService.getGridBodyCtrl(),r=this.gridOptionsWrapper.isSuppressRowVirtualisation(),o=!1,s=void 0,u=void 0;do{var h=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),a=c.pageFirstPixel,l=c.pageLastPixel,f=this.rowContainerHeightService.getDivStretchOffset(),d=e.getScrollFeature().getVScrollPosition(),v=d.top,p=d.bottom;r?(s=a+f,u=l+f):(s=Math.max(v+h-n,a)+f,u=Math.min(p+h+n,l)+f),this.firstVisibleVPixel=Math.max(v+h,a)+f,o=this.ensureAllRowsInRangeHaveHeightsCalculated(s,u)}while(o);var g=this.paginationProxy.getRowIndexAtPixel(s),m=this.paginationProxy.getRowIndexAtPixel(u),b=this.paginationProxy.getPageFirstRow(),w=this.paginationProxy.getPageLastRow();g<b&&(g=b),m>w&&(m=w),t=g,i=m}else t=0,i=-1;var y=this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_NORMAL,C=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),S=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);y&&!C&&i-t>S&&(i=t+S),(t!==this.firstRenderedRow||i!==this.lastRenderedRow)&&(this.firstRenderedRow=t,this.lastRenderedRow=i,this.eventService.dispatchEvent({type:xi.EVENT_VIEWPORT_CHANGED,firstRow:t,lastRow:i}))},i.prototype.dispatchFirstDataRenderedEvent=function(){var t=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var i={type:xi.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((function(){t.beans.eventService.dispatchEvent(i)}))}},i.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(t,i){var n=this.paginationProxy.ensureRowHeightsValid(t,i,-1,-1);return n&&this.updateContainerHeights(),n},i.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},i.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},i.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},i.prototype.doNotUnVirtualiseRow=function(t){var i=t.getRowNode(),n=this.focusService.isRowNodeFocused(i),e=t.isEditing();return!!(n||e||i.detail)&&!!this.paginationProxy.isRowPresent(i)},i.prototype.createRowCon=function(t,i,n){var e=this.cachedRowCtrls?this.cachedRowCtrls.getRow(t):null;if(e)return e;var r=this.gridOptionsWrapper.isSuppressAnimationFrame();return new Xh(t,this.beans,i,n&&!r&&!this.printLayout,this.printLayout)},i.prototype.getRenderedNodes=function(){var t=this.rowCtrlsByRowIndex;return Object.keys(t).map((function(i){return t[i].getRowNode()}))},i.prototype.getRowByPosition=function(t){var i,n=t.rowIndex;switch(t.rowPinned){case Vt.PINNED_TOP:i=this.topRowCtrls[n];break;case Vt.PINNED_BOTTOM:i=this.bottomRowCtrls[n];break;default:(i=this.rowCtrlsByRowIndex[n])||(i=this.getStickyTopRowCtrls().find((function(t){return t.getRowNode().rowIndex===n}))||null)}return i},i.prototype.getRowNode=function(t){switch(t.rowPinned){case Vt.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case Vt.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},i.prototype.isRangeInRenderedViewport=function(t,i){return!(null==t||null==i||i<this.firstRenderedRow||t>this.lastRenderedRow)},Ul([Dt("animationFrameService")],i.prototype,"animationFrameService",void 0),Ul([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),Ul([Dt("columnModel")],i.prototype,"columnModel",void 0),Ul([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Ul([Dt("rowModel")],i.prototype,"rowModel",void 0),Ul([Dt("focusService")],i.prototype,"focusService",void 0),Ul([Dt("beans")],i.prototype,"beans",void 0),Ul([Dt("rowContainerHeightService")],i.prototype,"rowContainerHeightService",void 0),Ul([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Ul([Ft],i.prototype,"postConstruct",null),Ul([Pt("rowRenderer")],i)}(Ai),Yl=function(){function t(t){this.entriesMap={},this.entriesList=[],this.maxCount=t}return t.prototype.addRow=function(t){if(this.entriesMap[t.getRowNode().id]=t,this.entriesList.push(t),t.setCached(!0),this.entriesList.length>this.maxCount){var i=this.entriesList[0];i.destroyFirstPass(),i.destroySecondPass(),this.removeFromCache(i)}},t.prototype.getRow=function(t){if(null==t||null==t.id)return null;var i=this.entriesMap[t.id];return i?(this.removeFromCache(i),i.setCached(!1),i.getRowNode()!=t?null:i):null},t.prototype.removeFromCache=function(t){var i=t.getRowNode().id;delete this.entriesMap[i],Qt(this.entriesList,t)},t.prototype.getEntries=function(){return this.entriesList},t}(),Jl=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Zl=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Xl=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Jl(i,t),i.prototype.formatValue=function(t,i,n,e,r){void 0===r&&(r=!0);var o,s=null,u=t.getColDef();if(e?o=e:r&&(o=i&&i.rowPinned&&u.pinnedRowValueFormatter?u.pinnedRowValueFormatter:u.valueFormatter),o){var h={value:n,node:i,data:i?i.data:null,colDef:u,column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=this.expressionService.evaluate(o,h)}else if(u.refData)return u.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},Zl([Dt("expressionService")],i.prototype,"expressionService",void 0),Zl([Pt("valueFormatterService")],i)}(Ai),Ql=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),tf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},nf=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ql(i,t),i.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},i.prototype.isEmpty=function(t){return Y(t===Vt.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},i.prototype.isRowsToRender=function(t){return!this.isEmpty(t)},i.prototype.getRowAtPixel=function(t,i){var n=i===Vt.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(Y(n))return 0;for(var e=0;e<n.length;e++){var r=n[e];if(r.rowTop+r.rowHeight-1>=t)return e}return n.length-1},i.prototype.setPinnedTopRowData=function(t){this.pinnedTopRows=this.createNodesFromData(t,!0),this.eventService.dispatchEvent({type:xi.EVENT_PINNED_ROW_DATA_CHANGED})},i.prototype.setPinnedBottomRowData=function(t){this.pinnedBottomRows=this.createNodesFromData(t,!1),this.eventService.dispatchEvent({type:xi.EVENT_PINNED_ROW_DATA_CHANGED})},i.prototype.createNodesFromData=function(t,i){var n=this,e=[];if(t){var r=0;t.forEach((function(t,o){var s=new Ws(n.beans);s.data=t,s.id=(i?Ws.ID_PREFIX_TOP_PINNED:Ws.ID_PREFIX_BOTTOM_PINNED)+o,s.rowPinned=i?Vt.PINNED_TOP:Vt.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(o),r+=s.rowHeight,e.push(s)}))}return e},i.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},i.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},i.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},i.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},i.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},i.prototype.getPinnedTopRow=function(t){return this.pinnedTopRows[t]},i.prototype.getPinnedBottomRow=function(t){return this.pinnedBottomRows[t]},i.prototype.forEachPinnedTopRow=function(t){Y(this.pinnedTopRows)||this.pinnedTopRows.forEach(t)},i.prototype.forEachPinnedBottomRow=function(t){Y(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(t)},i.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},i.prototype.getTotalHeight=function(t){if(!t||0===t.length)return 0;var i=Jt(t);return i.rowTop+i.rowHeight},tf([Dt("beans")],i.prototype,"beans",void 0),tf([Ft],i.prototype,"init",null),tf([Pt("pinnedRowModel")],i)}(Ai);
278
+ /**
279
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
280
+ * @version v28.2.1
281
+ * @link https://www.ag-grid.com/
282
+ * @license MIT
283
+ */!function(t){t.Applied="Applied",t.StoreNotFound="StoreNotFound",t.StoreLoading="StoreLoading",t.StoreWaitingToLoad="StoreWaitingToLoad",t.StoreLoadingFailed="StoreLoadingFailed",t.StoreWrongType="StoreWrongType",t.Cancelled="Cancelled"}(ll||(ll={}));
284
+ /**
285
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
286
+ * @version v28.2.1
287
+ * @link https://www.ag-grid.com/
288
+ * @license MIT
289
+ */
290
+ var ef,rf=function(){function t(t,i){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=t,this.pathRoot={rowNode:i,children:null},this.mapToItems[i.id]=this.pathRoot}return t.prototype.setInactive=function(){this.active=!1},t.prototype.isActive=function(){return this.active},t.prototype.depthFirstSearchChangedPath=function(t,i){if(t.children)for(var n=0;n<t.children.length;n++)this.depthFirstSearchChangedPath(t.children[n],i);i(t.rowNode)},t.prototype.depthFirstSearchEverything=function(t,i,n){if(t.childrenAfterGroup)for(var e=0;e<t.childrenAfterGroup.length;e++){var r=t.childrenAfterGroup[e];r.childrenAfterGroup?this.depthFirstSearchEverything(t.childrenAfterGroup[e],i,n):n&&i(r)}i(t)},t.prototype.forEachChangedNodeDepthFirst=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1),this.active&&!n?this.depthFirstSearchChangedPath(this.pathRoot,t):this.depthFirstSearchEverything(this.pathRoot.rowNode,t,i)},t.prototype.executeFromRootNode=function(t){t(this.pathRoot.rowNode)},t.prototype.createPathItems=function(t){for(var i=t,n=0;!this.mapToItems[i.id];)this.mapToItems[i.id]={rowNode:i,children:null},n++,i=i.parent;return n},t.prototype.populateColumnsMap=function(t,i){var n=this;if(this.keepingColumns&&i)for(var e=t;e;)this.nodeIdsToColumns[e.id]||(this.nodeIdsToColumns[e.id]={}),i.forEach((function(t){return n.nodeIdsToColumns[e.id][t.getId()]=!0})),e=e.parent},t.prototype.linkPathItems=function(t,i){for(var n=t,e=0;e<i;e++){var r=this.mapToItems[n.id],o=this.mapToItems[n.parent.id];o.children||(o.children=[]),o.children.push(r),n=n.parent}},t.prototype.addParentNode=function(t,i){if(t&&!t.isRowPinned()){var n=this.createPathItems(t);this.linkPathItems(t,n),this.populateColumnsMap(t,i)}},t.prototype.canSkip=function(t){return this.active&&!this.mapToItems[t.id]},t.prototype.getValueColumnsForNode=function(t,i){if(!this.keepingColumns)return i;var n=this.nodeIdsToColumns[t.id];return i.filter((function(t){return n[t.getId()]}))},t.prototype.getNotValueColumnsForNode=function(t,i){if(!this.keepingColumns)return null;var n=this.nodeIdsToColumns[t.id];return i.filter((function(t){return!n[t.getId()]}))},t}(),of=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sf=function(t){function i(n){var e=t.call(this)||this;return e.state=i.STATE_WAITING_TO_LOAD,e.version=0,e.id=n,e}return of(i,t),i.prototype.getId=function(){return this.id},i.prototype.load=function(){this.state=i.STATE_LOADING,this.loadFromDatasource()},i.prototype.getVersion=function(){return this.version},i.prototype.setStateWaitingToLoad=function(){this.version++,this.state=i.STATE_WAITING_TO_LOAD},i.prototype.getState=function(){return this.state},i.prototype.pageLoadFailed=function(t){this.isRequestMostRecentAndLive(t)&&(this.state=i.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},i.prototype.success=function(t,i){this.successCommon(t,i)},i.prototype.pageLoaded=function(t,i,n){this.successCommon(t,{rowData:i,rowCount:n})},i.prototype.isRequestMostRecentAndLive=function(t){var i=t===this.version,n=this.isAlive();return i&&n},i.prototype.successCommon=function(t,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(t)&&(this.state=i.STATE_LOADED,this.processServerResult(n))},i.prototype.dispatchLoadCompleted=function(t){void 0===t&&(t=!0),this.dispatchEvent({type:i.EVENT_LOAD_COMPLETE,success:t,block:this})},i.EVENT_LOAD_COMPLETE="loadComplete",i.STATE_WAITING_TO_LOAD="needsLoading",i.STATE_LOADING="loading",i.STATE_LOADED="loaded",i.STATE_FAILED="failed",i}(Ai),uf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),hf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},cf=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.activeBlockLoadsCount=0,i.blocks=[],i.active=!0,i}var n,e,r;return uf(i,t),n=i,i.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();t&&t>0&&(this.checkBlockToLoadDebounce=Wr.debounce(this.performCheckBlocksToLoad.bind(this),t))},i.prototype.setBeans=function(t){this.logger=t.create("RowNodeBlockLoader")},i.prototype.addBlock=function(t){this.blocks.push(t),t.addEventListener(sf.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},i.prototype.removeBlock=function(t){Wr.removeFromArray(this.blocks,t)},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},i.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},i.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},i.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var t=void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0,i=this.blocks.filter((function(t){return t.getState()===sf.STATE_WAITING_TO_LOAD})).slice(0,t);this.activeBlockLoadsCount+=i.length,i.forEach((function(t){return t.load()})),this.printCacheStatus()}},i.prototype.getBlockState=function(){var t={};return this.blocks.forEach((function(i){var n=i.getBlockStateJson();t[n.id]=n.state})),t},i.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},i.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},i.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",hf([Ft],i.prototype,"postConstruct",null),hf([(e=0,r=Tt("loggerFactory"),function(t,i){r(t,i,e)})],i.prototype,"setBeans",null),n=hf([Pt("rowNodeBlockLoader")],i)}(Ai),af=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),lf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ff=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.currentPage=0,i.topDisplayedRowIndex=0,i.bottomDisplayedRowIndex=0,i.pixelOffset=0,i.masterRowCount=0,i}return af(i,t),i.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,xi.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},i.prototype.ensureRowHeightsValid=function(t,i){var n=this.rowModel.ensureRowHeightsValid(t,i,this.getPageFirstRow(),this.getPageLastRow());return n&&this.calculatePages(),n},i.prototype.onModelUpdated=function(t){this.calculatePages(),this.eventService.dispatchEvent({type:xi.EVENT_PAGINATION_CHANGED,animate:!!t&&t.animate,newData:!!t&&t.newData,newPage:!!t&&t.newPage,keepRenderedRows:!!t&&t.keepRenderedRows})},i.prototype.onPaginationPageSizeChanged=function(){this.calculatePages(),this.eventService.dispatchEvent({type:xi.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0})},i.prototype.goToPage=function(t){this.active&&this.currentPage!==t&&(this.currentPage=t,this.onModelUpdated({type:xi.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0}))},i.prototype.getPixelOffset=function(){return this.pixelOffset},i.prototype.getRow=function(t){return this.rowModel.getRow(t)},i.prototype.getRowNode=function(t){return this.rowModel.getRowNode(t)},i.prototype.getRowIndexAtPixel=function(t){return this.rowModel.getRowIndexAtPixel(t)},i.prototype.getCurrentPageHeight=function(){return q(this.topRowBounds)||q(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},i.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},i.prototype.isRowPresent=function(t){return!!this.rowModel.isRowPresent(t)&&t.rowIndex>=this.topDisplayedRowIndex&&t.rowIndex<=this.bottomDisplayedRowIndex},i.prototype.isEmpty=function(){return this.rowModel.isEmpty()},i.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},i.prototype.getNodesInRangeForSelection=function(t,i){return this.rowModel.getNodesInRangeForSelection(t,i)},i.prototype.forEachNode=function(t){return this.rowModel.forEachNode(t)},i.prototype.getType=function(){return this.rowModel.getType()},i.prototype.getRowBounds=function(t){var i=this.rowModel.getRowBounds(t);return i.rowIndex=t,i},i.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},i.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},i.prototype.getRowCount=function(){return this.rowModel.getRowCount()},i.prototype.getPageForIndex=function(t){return Math.floor(t/this.pageSize)},i.prototype.goToPageWithIndex=function(t){if(this.active){var i=this.getPageForIndex(t);this.goToPage(i)}},i.prototype.isRowInPage=function(t){return!this.active||this.getPageForIndex(t.rowIndex)===this.currentPage},i.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},i.prototype.getCurrentPage=function(){return this.currentPage},i.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},i.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},i.prototype.goToFirstPage=function(){this.goToPage(0)},i.prototype.goToLastPage=function(){var t=this.rowModel.getRowCount(),i=Math.floor(t/this.pageSize);this.goToPage(i)},i.prototype.getPageSize=function(){return this.pageSize},i.prototype.getTotalPages=function(){return this.totalPages},i.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},i.prototype.calculatePages=function(){this.active?(this.setPageSize(),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($(this.topRowBounds)?this.topRowBounds.rowTop:0)},i.prototype.setPixelOffset=function(t){this.pixelOffset!==t&&(this.pixelOffset=t,this.eventService.dispatchEvent({type:xi.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},i.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},i.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!kn(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var i=this.pageSize*(this.currentPage+1)-1;if(i>t&&(i=t),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(this.pageSize*this.currentPage),i===t)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var n=this.rowModel.getTopLevelRowDisplayedIndex(i+1);this.bottomDisplayedRowIndex=n-1}}},i.prototype.getMasterRowCount=function(){return this.masterRowCount},i.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var t=this.masterRowCount-1;this.totalPages=Math.floor(t/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!kn(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>t&&(this.bottomDisplayedRowIndex=t)}else this.setZeroRows()},i.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},lf([Dt("rowModel")],i.prototype,"rowModel",void 0),lf([Ft],i.prototype,"postConstruct",null),lf([Pt("paginationProxy")],i)}(Ai),df=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},pf=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return df(i,t),i.prototype.processAllCellClasses=function(t,i,n,e){this.processClassRules(t.cellClassRules,i,n,e),this.processStaticCellClasses(t,i,n)},i.prototype.processClassRules=function(t,i,n,e){if(null!=t){for(var r=Object.keys(t),o={},s={},u=function(n){var e,u=r[n],c=t[u];"string"==typeof c?e=h.expressionService.evaluate(c,i):"function"==typeof c&&(e=c(i)),u.split(" ").forEach((function(t){null!=t&&""!=t.trim()&&(e?o[t]=!0:s[t]=!0)}))},h=this,c=0;c<r.length;c++)u(c);e&&Object.keys(s).forEach(e),Object.keys(o).forEach(n)}},i.prototype.getStaticCellClasses=function(t,i){var n,e=t.cellClass;return e?("string"==typeof(n="function"==typeof e?e(i):e)&&(n=[n]),n||[]):[]},i.prototype.processStaticCellClasses=function(t,i,n){this.getStaticCellClasses(t,i).forEach((function(t){n(t)}))},vf([Dt("expressionService")],i.prototype,"expressionService",void 0),vf([Pt("stylingService")],i)}(Ai),gf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mf=function(t){function i(i){return t.call(this,i,"ag-radio-button","radio")||this}return gf(i,t),i.prototype.isSelected=function(){return this.eInput.checked},i.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},i.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,xi.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},i.prototype.onChange=function(t){t.selected&&t.name&&this.eInput.name&&this.eInput.name===t.name&&t.id&&this.eInput.id!==t.id&&this.setValue(!1,!0)},i}(Ta),bf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),wf=function(t){function i(i){return t.call(this,i,"ag-toggle-button")||this}return bf(i,t),i.prototype.setValue=function(i,n){return t.prototype.setValue.call(this,i,n),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},i}(Ta),yf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cf=function(t){function i(i,n,e){return void 0===n&&(n="ag-text-field"),void 0===e&&(e="text"),t.call(this,i,n,e)||this}return yf(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},i.prototype.setValue=function(i,n){var e=t.prototype.setValue.call(this,i,n);return this.eInput.value!==i&&(this.eInput.value=$(i)?i:""),e},i.prototype.preventDisallowedCharacters=function(){var t=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(i){i.key&&!t.test(i.key)&&i.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(i){var n,e=null===(n=i.clipboardData)||void 0===n?void 0:n.getData("text");e&&e.split("").some((function(i){return!t.test(i)}))&&i.preventDefault()}))},i}(Do),Sf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rf=function(t){function i(i){return t.call(this,i,"ag-text-area",null,"textarea")||this}return Sf(i,t),i.prototype.setValue=function(i,n){var e=t.prototype.setValue.call(this,i,n);return this.eInput.value=i,e},i.prototype.setCols=function(t){return this.eInput.cols=t,this},i.prototype.setRows=function(t){return this.eInput.rows=t,this},i}(Do),Of=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Af=function(t){function i(i){return t.call(this,i,"ag-number-field","number")||this}return Of(i,t),i.prototype.postConstruct=function(){var i=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(i.eInput.value),n=isNaN(t)?"":i.normalizeValue(t.toString());i.value!==n&&i.setValue(n)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},i.prototype.onWheel=function(t){document.activeElement===this.eInput&&t.preventDefault()},i.prototype.normalizeValue=function(t){if(""===t)return"";this.precision&&(t=this.adjustPrecision(t));var i=parseFloat(t);return null!=this.min&&i<this.min?t=this.min.toString():null!=this.max&&i>this.max&&(t=this.max.toString()),t},i.prototype.adjustPrecision=function(t){if(this.precision){var i=parseFloat(t).toFixed(this.precision);t=parseFloat(i).toString()}return t},i.prototype.setMin=function(t){return this.min===t||(this.min=t,Le(this.eInput,"min",t)),this},i.prototype.setMax=function(t){return this.max===t||(this.max=t,Le(this.eInput,"max",t)),this},i.prototype.setPrecision=function(t){return this.precision=t,this},i.prototype.setStep=function(t){return this.step===t||(this.step=t,Le(this.eInput,"step",t)),this},i.prototype.setValue=function(i,n){return(i=this.adjustPrecision(i))!=this.normalizeValue(i)?this:t.prototype.setValue.call(this,i,n)},i}(Cf),jf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_f=function(t){function i(i){return t.call(this,i,"ag-range-field","range")||this}return jf(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var i=this.config,n=i.min,e=i.max,r=i.step;null!=n&&this.setMinValue(n),null!=e&&this.setMaxValue(e),this.setStep(r||1)},i.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(i){t.setValue(i.target.value)}))},i.prototype.setMinValue=function(t){return this.min=t,this.eInput.setAttribute("min",t.toString()),this},i.prototype.setMaxValue=function(t){return this.max=t,this.eInput.setAttribute("max",t.toString()),this},i.prototype.setStep=function(t){return this.eInput.setAttribute("step",t.toString()),this},i.prototype.setValue=function(i,n){null!=this.min&&(i=Math.max(parseFloat(i),this.min).toString()),null!=this.max&&(i=Math.min(parseFloat(i),this.max).toString());var e=t.prototype.setValue.call(this,i,n);return this.eInput.value=i,e},i}(Do),Gf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),xf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Mf=function(t){function i(n){var e=t.call(this,n,i.TEMPLATE)||this;return e.labelAlignment="top",e}return Gf(i,t),i.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},i.prototype.onValueChange=function(t){var i=this,n=Ro.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(i.eText.getValue());i.eSlider.setValue(n.toString(),!0),t(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=i.eSlider.getValue();i.eText.setValue(n,!0),t(parseFloat(n))})),this},i.prototype.setSliderWidth=function(t){return this.eSlider.setWidth(t),this},i.prototype.setTextFieldWidth=function(t){return this.eText.setWidth(t),this},i.prototype.setMinValue=function(t){return this.eSlider.setMinValue(t),this.eText.setMin(t),this},i.prototype.setMaxValue=function(t){return this.eSlider.setMaxValue(t),this.eText.setMax(t),this},i.prototype.getValue=function(){return this.eText.getValue()},i.prototype.setValue=function(t){return this.getValue()===t||(this.eText.setValue(t,!0),this.eSlider.setValue(t,!0),this.dispatchEvent({type:Ro.EVENT_CHANGED})),this},i.prototype.setStep=function(t){return this.eSlider.setStep(t),this.eText.setStep(t),this},i.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>',xf([no("eLabel")],i.prototype,"eLabel",void 0),xf([no("eSlider")],i.prototype,"eSlider",void 0),xf([no("eText")],i.prototype,"eText",void 0),xf([Ft],i.prototype,"init",null),i}(Co),Ff=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),kf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Pf=function(t){function i(n){var e=t.call(this,n,i.TEMPLATE)||this;return e.radius=0,e.offsetX=0,e.offsetY=0,e}return Ff(i,t),i.prototype.postConstruct=function(){var i=this;t.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(){i.parentCircleRect=i.eParentCircle.getBoundingClientRect()},onDragging:function(t){return i.calculateAngleDrag(t)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(t){null!=t&&""!==t||(t="0"),t=i.eAngleValue.normalizeValue(t);var n=parseFloat(t);n>180&&(n-=360),i.setValue(n)})),this.updateNumberInput(),$(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,Ro.EVENT_CHANGED,(function(){var t=i.gridOptionsWrapper.getDocument();i.eAngleValue.getInputElement().contains(t.activeElement)||i.updateNumberInput()}))},i.prototype.updateNumberInput=function(){var t=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(t.toString())},i.prototype.positionChildCircle=function(t){var i=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,e=i.height/2;n.style.left=i.width/2+8*Math.cos(t)+"px",n.style.top=e+8*Math.sin(t)+"px"},i.prototype.calculatePolar=function(){var t=this.offsetX,i=this.offsetY,n=Math.atan2(i,t);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(t*t+i*i),this.positionChildCircle(n)},i.prototype.calculateCartesian=function(){var t=this.toRadians(this.getValue()),i=this.getRadius();this.setOffsetX(Math.cos(t)*i).setOffsetY(Math.sin(t)*i)},i.prototype.setOffsetX=function(t){return this.offsetX!==t&&(this.offsetX=t,this.calculatePolar()),this},i.prototype.setOffsetY=function(t){return this.offsetY!==t&&(this.offsetY=t,this.calculatePolar()),this},i.prototype.calculateAngleDrag=function(t){var i=this.parentCircleRect,n=Math.atan2(t.clientY-i.top-i.height/2,t.clientX-i.left-i.width/2);this.setValue(n,!0)},i.prototype.toDegrees=function(t){return t/Math.PI*180},i.prototype.toRadians=function(t){return t/180*Math.PI},i.prototype.normalizeNegativeValue=function(t){return t<0?360+t:t},i.prototype.normalizeAngle180=function(t){return(t%=2*Math.PI)<-Math.PI?t+=2*Math.PI:t>=Math.PI&&(t-=2*Math.PI),t},i.prototype.getRadius=function(){return this.radius},i.prototype.setRadius=function(t){return this.radius===t||(this.radius=t,this.calculateCartesian()),this},i.prototype.onValueChange=function(t){var i=this;return this.addManagedListener(this,Ro.EVENT_CHANGED,(function(){t(i.degrees)})),this},i.prototype.getValue=function(t){return t?this.toRadians(this.degrees):this.degrees},i.prototype.setValue=function(t,i){var n;return n=i?t:this.normalizeAngle180(this.toRadians(t)),t=this.toDegrees(n),this.degrees!==t&&(this.degrees=Math.floor(t),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Ro.EVENT_CHANGED})),this},i.prototype.setWidth=function(t){return ke(this.getGui(),t),this},i.prototype.setDisabled=function(i){return t.prototype.setDisabled.call(this,i),this.eAngleValue.setDisabled(i),this},i.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),t.prototype.destroy.call(this)},i.TEMPLATE='<div class="ag-angle-select">\n <div ref="eLabel"></div>\n <div class="ag-wrapper ag-angle-select-wrapper">\n <div ref="eAngleSelectField" class="ag-angle-select-field">\n <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n </div>\n </div>\n <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n </div>\n </div>',kf([no("eLabel")],i.prototype,"eLabel",void 0),kf([no("eParentCircle")],i.prototype,"eParentCircle",void 0),kf([no("eChildCircle")],i.prototype,"eChildCircle",void 0),kf([no("eAngleValue")],i.prototype,"eAngleValue",void 0),kf([Dt("dragService")],i.prototype,"dragService",void 0),i}(Co),Df=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),If=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ef=function(t){function i(n){var e=t.call(this,i.TEMPLATE)||this;return e.H=1,e.S=1,e.B=1,e.A=1,e.isSpectrumDragging=!1,e.isSpectrumHueDragging=!1,e.isSpectrumAlphaDragging=!1,e.colorChanged=!1,e.picker=n.picker,e}return Df(i,t),i.prototype.postConstruct=function(){var t=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(t,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},i.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},i.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},i.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},i.prototype.onSpectrumDraggerDown=function(t){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(t)},i.prototype.onSpectrumDraggerMove=function(t){this.isSpectrumDragging&&this.moveDragger(t)},i.prototype.onSpectrumHueDown=function(t){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(t)},i.prototype.onSpectrumHueMove=function(t){this.isSpectrumHueDragging&&this.moveHueSlider(t)},i.prototype.onSpectrumAlphaDown=function(t){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(t)},i.prototype.onSpectrumAlphaMove=function(t){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(t)},i.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},i.prototype.moveDragger=function(t){var i=this.spectrumValRect;if(i){var n=t.clientX-i.left,e=t.clientY-i.top;n=Math.max(n,0),n=Math.min(n,i.width),e=Math.max(e,0),e=Math.min(e,i.height),this.setSpectrumValue(n/i.width,1-e/i.height)}},i.prototype.moveHueSlider=function(t){var i=this.spectrumHueRect;if(i){var n=this.spectrumHueSlider,e=n.getBoundingClientRect(),r=t.clientX-i.left;r=Math.max(r,0),r=Math.min(r,i.width),this.H=1-r/i.width,n.style.left=r+e.width/2+"px",this.update()}},i.prototype.moveAlphaSlider=function(t){var i=this.spectrumAlphaRect;if(i){var n=this.spectrumAlphaSlider,e=n.getBoundingClientRect(),r=t.clientX-i.left;r=Math.max(r,0),r=Math.min(r,i.width),this.A=r/i.width,n.style.left=r+e.width/2+"px",this.update()}},i.prototype.update=function(){var t=ee.fromHSB(360*this.H,this.S,this.B,this.A),i=ee.fromHSB(360*this.H,1,1),n=t.toRgbaString(),e=this.picker;ee.fromString(e.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),e.setValue(n),this.spectrumColor.style.backgroundColor=i.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},i.prototype.setSpectrumValue=function(t,i){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var e=this.spectrumDragger,r=e.getBoundingClientRect();t=Math.max(0,t),t=Math.min(1,t),i=Math.max(0,i),i=Math.min(1,i),this.S=t,this.B=i,e.style.left=t*n.width-r.width/2+"px",e.style.top=(1-i)*n.height-r.height/2+"px",this.update()}},i.prototype.initRecentColors=function(){var t=i.recentColors.map((function(t,i){return'<div class="ag-recent-color" id='+i+' style="background-color: '+t+'; width: 15px; height: 15px;" recent-color="'+t+'"></div>'}));this.recentColors.innerHTML=t.join("")},i.prototype.setValue=function(t){var i=ee.fromString(t),n=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(i.toHSB(),3),e=n[0],r=n[1],o=n[2];this.H=(isNaN(e)?0:e)/360,this.A=i.a;var s=this.spectrumHueRect||this.refreshHueRect(),u=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*u.width+"px",this.setSpectrumValue(r,o)},i.prototype.onRecentColorClick=function(t){var n=t.target;if($(n.id)){var e=parseInt(n.id,10);this.setValue(i.recentColors[e]),this.destroy()}},i.prototype.addRecentColor=function(){var t=ee.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=i.recentColors;this.colorChanged&&n[0]!==t&&(n=n.filter((function(i){return i!=t})),(n=[t].concat(n)).length>i.maxRecentColors&&(n=n.slice(0,i.maxRecentColors)),i.recentColors=n)},i.prototype.destroy=function(){this.addRecentColor(),t.prototype.destroy.call(this)},i.maxRecentColors=8,i.recentColors=[],i.TEMPLATE='<div class="ag-color-panel">\n <div ref="spectrumColor" class="ag-spectrum-color">\n <div class="ag-spectrum-sat ag-spectrum-fill">\n <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n </div>\n </div>\n </div>\n <div class="ag-spectrum-tools">\n <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n <div class="ag-spectrum-hue-background"></div>\n <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n <div class="ag-spectrum-alpha-background"></div>\n <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n </div>\n <div ref="recentColors" class="ag-recent-colors"></div>\n </div>\n </div>',If([no("spectrumColor")],i.prototype,"spectrumColor",void 0),If([no("spectrumVal")],i.prototype,"spectrumVal",void 0),If([no("spectrumDragger")],i.prototype,"spectrumDragger",void 0),If([no("spectrumHue")],i.prototype,"spectrumHue",void 0),If([no("spectrumHueSlider")],i.prototype,"spectrumHueSlider",void 0),If([no("spectrumAlpha")],i.prototype,"spectrumAlpha",void 0),If([no("spectrumAlphaSlider")],i.prototype,"spectrumAlphaSlider",void 0),If([no("recentColors")],i.prototype,"recentColors",void 0),If([Ft],i.prototype,"postConstruct",null),i}(io),Tf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Nf=function(t){function i(n){var e=t.call(this,i.getTemplate(n))||this;return e.closable=!0,e.config=n,e}return Tf(i,t),i.getTemplate=function(t){var i=t&&t.cssIdentifier||"default";return'<div class="ag-panel ag-'+i+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+i+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+i+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+i+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+i+'-panel-content-wrapper"></div>\n </div>'},i.prototype.postConstruct=function(){var t=this,i=this.config,n=i.component,e=i.closable,r=i.hideTitleBar,o=i.title,s=i.minWidth,u=void 0===s?250:s,h=i.width,c=i.minHeight,a=void 0===c?250:c,l=i.height,f=i.centered,d=i.popup,v=i.x,p=i.y;this.positionableFeature=new El(this.getGui(),{minWidth:u,width:h,minHeight:a,height:l,centered:f,x:v,y:p,popup:d,calculateTopBuffer:function(){return t.positionableFeature.getHeight()-t.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var g=this.getGui();n&&this.setBodyComponent(n),r?this.eTitleBar.classList.add("ag-hidden"):(o&&this.setTitle(o),this.setClosable(null!=e?e:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(i){var n=t.gridOptionsWrapper.getDocument();if(g.contains(i.relatedTarget)||g.contains(n.activeElement)||t.eTitleBarButtons.contains(i.target))i.preventDefault();else{var e=t.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");e&&e.focus()}})),d&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},i.prototype.renderComponent=function(){var t=this,i=this.getGui();i.focus(),this.close=function(){i.parentElement.removeChild(i),t.destroy()}},i.prototype.getHeight=function(){return this.positionableFeature.getHeight()},i.prototype.setHeight=function(t){this.positionableFeature.setHeight(t)},i.prototype.getWidth=function(){return this.positionableFeature.getWidth()},i.prototype.setWidth=function(t){this.positionableFeature.setWidth(t)},i.prototype.setClosable=function(t){if(t!==this.closable&&(this.closable=t),t){var n=this.closeButtonComp=new io(i.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var e=n.getGui(),r=_r("close",this.gridOptionsWrapper);r.classList.add("ag-panel-title-bar-button-icon"),e.appendChild(r),this.addTitleBarButton(n),n.addManagedListener(e,"click",this.onBtClose.bind(this))}else this.closeButtonComp&&((e=this.closeButtonComp.getGui()).parentElement.removeChild(e),this.closeButtonComp=this.destroyBean(this.closeButtonComp))},i.prototype.setBodyComponent=function(t){t.setParentComponent(this),this.eContentWrapper.appendChild(t.getGui())},i.prototype.addTitleBarButton=function(t,i){var n=this.eTitleBarButtons,e=n.children,r=e.length;null==i&&(i=r),i=Math.max(0,Math.min(i,r)),t.addCssClass("ag-panel-title-bar-button");var o=t.getGui();0===i?n.insertAdjacentElement("afterbegin",o):i===r?n.insertAdjacentElement("beforeend",o):e[i-1].insertAdjacentElement("afterend",o),t.setParentComponent(this)},i.prototype.getBodyHeight=function(){return fe(this.eContentWrapper)},i.prototype.getBodyWidth=function(){return de(this.eContentWrapper)},i.prototype.setTitle=function(t){this.eTitle.innerText=t},i.prototype.onBtClose=function(){this.close()},i.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var i=this.getGui();i&&i.offsetParent&&this.close(),t.prototype.destroy.call(this)},i.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',zf([no("eContentWrapper")],i.prototype,"eContentWrapper",void 0),zf([no("eTitleBar")],i.prototype,"eTitleBar",void 0),zf([no("eTitleBarButtons")],i.prototype,"eTitleBarButtons",void 0),zf([no("eTitle")],i.prototype,"eTitle",void 0),zf([Ft],i.prototype,"postConstruct",null),i}(io),Lf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bf=function(){return Bf=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Bf.apply(this,arguments)},Hf=function(t){function i(i){var n=t.call(this,Bf(Bf({},i),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return Lf(i,t),i.prototype.postConstruct=function(){var i=this,n=this.getGui(),e=this.config,r=e.movable,o=e.resizable,s=e.maximizable;this.addCssClass("ag-dialog"),t.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(t){n.contains(t.relatedTarget)||i.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),o&&this.setResizable(o)},i.prototype.renderComponent=function(){var t=this.getGui(),i=this.config,n=i.alwaysOnTop,e=i.modal,r=i.title,o=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:e,eChild:t,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:r||o("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},i.prototype.toggleMaximize=function(){var t=this.positionableFeature.getPosition();if(this.isMaximized){var i=this.lastPosition,n=i.x,e=i.y,r=i.height;this.setWidth(i.width),this.setHeight(r),this.positionableFeature.offsetElement(n,e)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=t.x,this.lastPosition.y=t.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},i.prototype.refreshMaximizeIcon=function(){ue(this.maximizeIcon,!this.isMaximized),ue(this.minimizeIcon,this.isMaximized)},i.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(t){return t()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},i.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),t.prototype.destroy.call(this)},i.prototype.setResizable=function(t){this.positionableFeature.setResizable(t)},i.prototype.setMovable=function(t){this.positionableFeature.setMovable(t,this.eTitleBar)},i.prototype.setMaximizable=function(t){var i=this;if(!t)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&t!==this.isMaximizable){var e=this.maximizeButtonComp=this.createBean(new io('<div class="ag-dialog-button"></span>')),r=e.getGui();r.appendChild(this.maximizeIcon=_r("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=_r("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),e.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(e,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){i.isMaximized=!1,i.refreshMaximizeIcon()}))}},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Dt("popupService")],i.prototype,"popupService",void 0),i}(Nf),Wf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vf=function(t){function i(i){var n=t.call(this,i,"ag-color-picker","colorPicker")||this;return i&&i.color&&(n.value=i.color),n}return Wf(i,t),i.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},i.prototype.showPicker=function(){var t=this,i=this.getGui().getBoundingClientRect(),n=this.createBean(new Hf({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:i.right-190,y:i.top-250}));this.isPickerDisplayed=!0,n.addCssClass("ag-color-dialog"),rr(this.eWrapper,!0);var e=this.createBean(new Ef({picker:this}));return e.addDestroyFunc((function(){n.isAlive()&&t.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(e),e.setValue(this.getValue()),n.addDestroyFunc((function(){t.isDestroyingPicker?t.isDestroyingPicker=!1:(t.isDestroyingPicker=!0,e.isAlive()&&t.destroyBean(e)),t.isAlive()&&(rr(t.eWrapper,!1),t.getFocusableElement().focus()),t.isPickerDisplayed=!1})),n},i.prototype.setValue=function(i){return this.value===i?this:(this.eDisplayField.style.backgroundColor=i,t.prototype.setValue.call(this,i))},i.prototype.getValue=function(){return this.value},i}(jo),Uf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Kf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$f=function(t){function i(n){void 0===n&&(n={});var e=t.call(this,i.getTemplate(n))||this;e.suppressEnabledCheckbox=!0,e.suppressOpenCloseIcons=!1;var r=n.enabled,o=n.items,s=n.suppressEnabledCheckbox,u=n.suppressOpenCloseIcons;return e.title=n.title,e.cssIdentifier=n.cssIdentifier||"default",e.enabled=null==r||r,e.items=o||[],e.alignItems=n.alignItems||"center",null!=s&&(e.suppressEnabledCheckbox=s),null!=u&&(e.suppressOpenCloseIcons=u),e}return Uf(i,t),i.getTemplate=function(t){var i=t.cssIdentifier||"default";return'<div class="ag-group ag-'+i+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+i+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+i+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+i+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+i+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+i+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(t.direction||"vertical")+" ag-"+i+'-group-container"></div>\n </div>'},i.prototype.postConstruct=function(){if(this.items.length){var t=this.items;this.items=[],this.addItems(t)}var i=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(i("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},i.prototype.setupExpandContract=function(){var t=this;this.eGroupClosedIcon.appendChild(jr("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(jr("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return t.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(i){switch(i.key){case xr.ENTER:case xr.SPACE:i.preventDefault(),t.toggleGroupExpand();break;case xr.RIGHT:case xr.LEFT:i.preventDefault(),t.toggleGroupExpand(i.key===xr.RIGHT)}}))},i.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||rr(this.eTitleBar,this.expanded)},i.prototype.refreshChildDisplay=function(){var t=!this.suppressOpenCloseIcons;ue(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),ue(this.eGroupOpenedIcon,t&&this.expanded),ue(this.eGroupClosedIcon,t&&!this.expanded)},i.prototype.isExpanded=function(){return this.expanded},i.prototype.setAlignItems=function(t){return this.alignItems!==t&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=t,this.addCssClass("ag-group-item-alignment-"+this.alignItems),this},i.prototype.toggleGroupExpand=function(t){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),ue(this.eContainer,!0),this):(this.expanded===(t=null!=t?t:!this.expanded)||(this.expanded=t,this.refreshAriaStatus(),this.refreshChildDisplay(),ue(this.eContainer,t),this.dispatchEvent({type:this.expanded?i.EVENT_EXPANDED:i.EVENT_COLLAPSED})),this)},i.prototype.addItems=function(t){var i=this;t.forEach((function(t){return i.addItem(t)}))},i.prototype.addItem=function(t){var i=this.eContainer,n=t instanceof io?t.getGui():t;n.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),i.appendChild(n),this.items.push(n)},i.prototype.hideItem=function(t,i){this.items[i].classList.toggle("ag-hidden",t)},i.prototype.setTitle=function(t){return this.eTitle.innerText=t,this},i.prototype.addCssClassToTitleBar=function(t){this.eTitleBar.classList.add(t)},i.prototype.setEnabled=function(t,i){return this.enabled=t,this.refreshDisabledStyles(),this.toggleGroupExpand(t),i||this.cbGroupEnabled.setValue(t),this},i.prototype.isEnabled=function(){return this.enabled},i.prototype.onEnableChange=function(t){var i=this;return this.cbGroupEnabled.onValueChange((function(n){i.setEnabled(n,!0),t(n)})),this},i.prototype.hideEnabledCheckbox=function(t){return this.suppressEnabledCheckbox=t,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},i.prototype.hideOpenCloseIcons=function(t){return this.suppressOpenCloseIcons=t,t&&this.toggleGroupExpand(!0),this},i.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},i.EVENT_EXPANDED="expanded",i.EVENT_COLLAPSED="collapsed",Kf([no("eTitleBar")],i.prototype,"eTitleBar",void 0),Kf([no("eGroupOpenedIcon")],i.prototype,"eGroupOpenedIcon",void 0),Kf([no("eGroupClosedIcon")],i.prototype,"eGroupClosedIcon",void 0),Kf([no("eToolbar")],i.prototype,"eToolbar",void 0),Kf([no("cbGroupEnabled")],i.prototype,"cbGroupEnabled",void 0),Kf([no("eTitle")],i.prototype,"eTitle",void 0),Kf([no("eContainer")],i.prototype,"eContainer",void 0),Kf([Ft],i.prototype,"postConstruct",null),i}(io),qf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yf=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Jf=function(t){function i(i){var n=t.call(this)||this;n.skipTabGuardFocus=!1;var e=i.eTopGuard,r=i.eBottomGuard,o=i.focusInnerElement,s=i.onFocusIn,u=i.onFocusOut,h=i.shouldStopEventPropagation,c=i.onTabKeyDown,a=i.handleKeyDown,l=i.eFocusableElement;return n.comp=i.comp,n.eTopGuard=e,n.eBottomGuard=r,n.providedFocusInnerElement=o,n.eFocusableElement=l,n.providedFocusIn=s,n.providedFocusOut=u,n.providedShouldStopEventPropagation=h,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=a,n}return qf(i,t),i.prototype.postConstruct=function(){var t=this;this.createManagedBean(new go(this.eFocusableElement,{shouldStopEventPropagation:function(){return t.shouldStopEventPropagation()},onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)},onFocusIn:function(i){return t.onFocusIn(i)},onFocusOut:function(i){return t.onFocusOut(i)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(i){return t.addManagedListener(i,"focus",t.onFocus.bind(t))}))},i.prototype.handleKeyDown=function(t){this.providedHandleKeyDown&&this.providedHandleKeyDown(t)},i.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},i.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},i.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},i.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},i.prototype.onFocus=function(t){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var i=t.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(i):this.focusInnerElement(i)}},i.prototype.onFocusIn=function(t){this.providedFocusIn&&this.providedFocusIn(t)||this.deactivateTabGuards()},i.prototype.onFocusOut=function(t){this.providedFocusOut&&this.providedFocusOut(t)||this.eFocusableElement.contains(t.relatedTarget)||this.activateTabGuards()},i.prototype.onTabKeyDown=function(t){var i=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(t);else if(!t.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var e=this.getNextFocusableElement(t.shiftKey);n&&setTimeout((function(){return i.activateTabGuards()}),0),e&&(e.focus(),t.preventDefault())}},i.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},i.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var i=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(i.splice(0,1),i.splice(i.length-1,1)),i.length&&i[t?i.length-1:0].focus()},i.prototype.getNextFocusableElement=function(t){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,t)},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1);var i=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,i.focus()},Yf([Dt("focusService")],i.prototype,"focusService",void 0),Yf([Ft],i.prototype,"postConstruct",null),i}(Ai),Zf=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xf=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Qf=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Zf(i,t),i.prototype.initialiseTabGuard=function(t){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var i=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(t){i.forEach((function(i){return null!=t?i.setAttribute("tabIndex",t):i.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new Jf({comp:n,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:t.onFocusIn,onFocusOut:t.onFocusOut,focusInnerElement:t.focusInnerElement,handleKeyDown:t.handleKeyDown,onTabKeyDown:t.onTabKeyDown,shouldStopEventPropagation:t.shouldStopEventPropagation}))},i.prototype.createTabGuard=function(t){var i=document.createElement("div");return i.classList.add("ag-tab-guard","ag-tab-guard-"+t),$e(i,"presentation"),i},i.prototype.addTabGuards=function(t,i){this.eFocusableElement.insertAdjacentElement("afterbegin",t),this.eFocusableElement.insertAdjacentElement("beforeend",i)},i.prototype.removeAllChildrenExceptTabGuards=function(){var t=[this.eTopGuard,this.eBottomGuard];we(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Xf(arguments[i]));return t}(t))},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.tabGuardCtrl.forceFocusOutOfContainer(t)},i.prototype.appendChild=function(i,n){Te(i)||(i=i.getGui());var e=this.eBottomGuard;e?e.insertAdjacentElement("beforebegin",i):t.prototype.appendChild.call(this,i,n)},i}(io),td=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),id=function(){return id=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},id.apply(this,arguments)},nd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ed=function(t){function i(i){void 0===i&&(i=1);var n=t.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return n.level=i,n.menuItems=[],n}return td(i,t),i.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}})},i.prototype.onTabKeyDown=function(t){var i=this.getParentComponent(),n=i&&i.getGui();n&&n.classList.contains("ag-focus-managed")||t.preventDefault(),t.shiftKey&&this.closeIfIsChild(t)},i.prototype.handleKeyDown=function(t){switch(t.key){case xr.UP:case xr.RIGHT:case xr.DOWN:case xr.LEFT:t.preventDefault(),this.handleNavKey(t.key);break;case xr.ESCAPE:var i=this.findTopMenu();i&&this.focusService.focusInto(i.getGui())}},i.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},i.prototype.addMenuItems=function(t){var i=this;null!=t&&t.forEach((function(t){"separator"===t?i.addSeparator():"string"==typeof t?console.warn("AG Grid: unrecognised menu item "+t):i.addItem(t)}))},i.prototype.addItem=function(t){var i=this,n=this.createManagedBean(new hd(id(id({},t),{isAnotherSubMenuOpen:function(){return i.menuItems.some((function(t){return t.isSubMenuOpen()}))}})));n.setParentComponent(this),ir(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,hd.EVENT_MENU_ITEM_SELECTED,(function(t){i.dispatchEvent(t)})),this.addManagedListener(n,hd.EVENT_MENU_ITEM_ACTIVATED,(function(t){i.activeMenuItem&&i.activeMenuItem!==t.menuItem&&i.activeMenuItem.deactivate(),i.activeMenuItem=t.menuItem}))},i.prototype.activateFirstItem=function(){var t=this.menuItems.filter((function(t){return!t.isDisabled()}))[0];t&&t.activate()},i.prototype.addSeparator=function(){this.appendChild(Se('\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>'))},i.prototype.findTopMenu=function(){var t=this.getParentComponent();if(!t&&this instanceof i)return this;for(;;){var n=t&&t.getParentComponent&&t.getParentComponent();if(!n||!(n instanceof i||n instanceof hd))break;t=n}return t instanceof i?t:void 0},i.prototype.handleNavKey=function(t){switch(t){case xr.UP:case xr.DOWN:var i=this.findNextItem(t===xr.UP);return void(i&&i!==this.activeMenuItem&&i.activate())}t===(this.gridOptionsWrapper.isEnableRtl()?xr.RIGHT:xr.LEFT)?this.closeIfIsChild():this.openChild()},i.prototype.closeIfIsChild=function(t){var i=this.getParentComponent();i&&i instanceof hd&&(t&&t.preventDefault(),i.closeSubMenu(),i.getGui().focus())},i.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},i.prototype.findNextItem=function(t){var i=this.menuItems.filter((function(t){return!t.isDisabled()}));if(i.length){if(!this.activeMenuItem)return t?Jt(i):i[0];var n;t&&i.reverse();for(var e=!1,r=0;r<i.length;r++){var o=i[r];if(e){n=o;break}o===this.activeMenuItem&&(e=!0)}return n||this.activeMenuItem}},i.prototype.destroy=function(){this.clearActiveItem(),t.prototype.destroy.call(this)},nd([Dt("focusService")],i.prototype,"focusService",void 0),nd([Ft],i.prototype,"postConstruct",null),i}(Qf),rd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),od=function(t){function i(i){var n=t.call(this)||this;return n.wrappedComponent=i,n.setTemplateFromElement(i.getGui()),n}return rd(i,t),i.prototype.postConstruct=function(){var t=this;this.initialiseTabGuard({onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}})},i.prototype.handleKeyDown=function(t){t.key===xr.ESCAPE&&this.closePanel()},i.prototype.onTabKeyDown=function(t){t.defaultPrevented||(this.closePanel(),t.preventDefault())},i.prototype.closePanel=function(){var t=this.parentComponent;t.closeSubMenu(),setTimeout((function(){return t.getGui().focus()}),0)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Ft],i.prototype,"postConstruct",null),i}(Qf),sd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ud=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hd=function(t){function i(i){var n=t.call(this)||this;return n.params=i,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return sd(i,t),i.prototype.init=function(){var t=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var i=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),nr(i,!0)):(this.addGuiEventListener("click",(function(i){return t.onItemSelected(i)})),this.addGuiEventListener("keydown",(function(i){i.key!==xr.ENTER&&i.key!==xr.SPACE||(i.preventDefault(),t.onItemSelected(i))})),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation(),t.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return t.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return t.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(i){return t.addCssClass(i)}))},i.prototype.isDisabled=function(){return!!this.params.disabled},i.prototype.openSubMenu=function(t){var n=this;if(void 0===t&&(t=!1),this.closeSubMenu(),this.params.subMenu){var e,r=Se('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var o=Ye(this.getGui()),s=isNaN(o)?1:o+1,u=this.createBean(new ed(s));u.setParentComponent(this),u.addMenuItems(this.params.subMenu),r.appendChild(u.getGui()),this.addManagedListener(u,i.EVENT_MENU_ITEM_SELECTED,(function(t){return n.dispatchEvent(t)})),u.addGuiEventListener("mouseenter",(function(){return n.cancelDeactivate()})),e=function(){return n.destroyBean(u)},t&&setTimeout((function(){return u.activateFirstItem()}),0)}else{var h=this.params.subMenu,c=this.createBean(new od(h));c.setParentComponent(this);var a=c.getGui(),l="mouseenter",f=function(){return n.cancelDeactivate()};a.addEventListener(l,f),e=function(){return a.removeEventListener(l,f)},r.appendChild(a),h.afterGuiAttached&&setTimeout((function(){return h.afterGuiAttached()}),0)}var d=this.getGui(),v=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:d,ePopup:r}),p=this.gridOptionsWrapper.getLocaleTextFunc(),g=this.popupService.addPopup({modal:!0,eChild:r,positionCallback:v,anchorToElement:d,ariaLabel:p("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,rr(d,!0),this.hideSubMenu=function(){g&&g.hideFunc(),n.subMenuIsOpen=!1,rr(d,!1),e()}}},i.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,rr(this.getGui(),!1))},i.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},i.prototype.activate=function(t){var i=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),t&&this.params.subMenu&&window.setTimeout((function(){i.isAlive()&&i.isActive&&i.openSubMenu()}),300),this.onItemActivated())},i.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},i.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var t=Se('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?t.appendChild(_r("check",this.gridOptionsWrapper)):this.params.icon&&(Te(this.params.icon)?t.appendChild(this.params.icon):"string"==typeof this.params.icon?t.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(t)}},i.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var t=Se('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(t)}},i.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Jr(this)))},i.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},i.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var t=Se('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(t)}},i.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var t=Se('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),i=this.getGui();if(this.params.subMenu){var n=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";rr(i,!1),t.appendChild(_r(n,this.gridOptionsWrapper))}i.appendChild(t)}},i.prototype.onItemSelected=function(t){this.params.action?this.params.action():this.openSubMenu(t&&"keydown"===t.type),(!this.params.subMenu||this.params.action)&&this.dispatchEvent({type:i.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:t})},i.prototype.onItemActivated=function(){this.dispatchEvent({type:i.EVENT_MENU_ITEM_ACTIVATED,menuItem:this})},i.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},i.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},i.prototype.onMouseEnter=function(){var t=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return t.activate(!0)}),i.ACTIVATION_DELAY):this.activate(!0)},i.prototype.onMouseLeave=function(){var t=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return t.deactivate()}),i.ACTIVATION_DELAY):this.deactivate()},i.prototype.getClassName=function(t){var i=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return t?i+"-"+t:i},i.EVENT_MENU_ITEM_SELECTED="menuItemSelected",i.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",i.ACTIVATION_DELAY=80,ud([Dt("popupService")],i.prototype,"popupService",void 0),ud([Ft],i.prototype,"init",null),i}(io),cd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ad=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ld=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},fd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var n;return cd(i,t),n=i,i.addKeyboardModeEvents=function(t,i){var e=n.instancesMonitored.get(t);e&&e.length>0?-1===e.indexOf(i)&&e.push(i):(n.instancesMonitored.set(t,[i]),t.addEventListener("keydown",n.toggleKeyboardMode),t.addEventListener("mousedown",n.toggleKeyboardMode))},i.removeKeyboardModeEvents=function(t,i){var e=n.instancesMonitored.get(t),r=[];e&&e.length&&(r=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(ld(arguments[i]));return t}(e).filter((function(t){return t!==i})),n.instancesMonitored.set(t,r)),0===r.length&&(t.removeEventListener("keydown",n.toggleKeyboardMode),t.removeEventListener("mousedown",n.toggleKeyboardMode))},i.toggleKeyboardMode=function(t){var i=n.keyboardModeActive,e="keydown"===t.type;if(!(e&&(t.ctrlKey||t.metaKey||t.altKey)||i&&e||!i&&!e)){n.keyboardModeActive=e;var r=t.target.ownerDocument;if(r){var o=n.instancesMonitored.get(r);o&&o.forEach((function(t){t.dispatchEvent({type:e?xi.EVENT_KEYBOARD_FOCUS:xi.EVENT_MOUSE_FOCUS})}))}}},i.prototype.init=function(){var t=this,i=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,i),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_GROUP_OPENED,i),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,i),this.ctrlsService.whenReady((function(i){t.gridCtrl=i.gridCtrl;var e=t.gridOptionsWrapper.getDocument();n.addKeyboardModeEvents(e,t.gridCtrl),t.addDestroyFunc((function(){return t.unregisterGridCompController(t.gridCtrl)}))}))},i.prototype.unregisterGridCompController=function(t){var i=this.gridOptionsWrapper.getDocument();n.removeKeyboardModeEvents(i,t)},i.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,i=this.columnModel.getGridColumn(t.getId());t!==i&&this.clearFocusedCell()}},i.prototype.isKeyboardMode=function(){return n.keyboardModeActive},i.prototype.getFocusCellToUseAfterRefresh=function(){var t=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(t.activeElement,Xh.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},i.prototype.getFocusHeaderToUseAfterRefresh=function(){var t=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(t.activeElement,ya.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},i.prototype.isDomDataMissingInHierarchy=function(t,i){for(var n=t;n;){if(this.gridOptionsWrapper.getDomData(n,i))return!1;n=n.parentNode}return!0},i.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1,!1)},i.prototype.getFocusedCell=function(){return this.focusedCellPosition},i.prototype.setFocusedCell=function(t){var i=t.rowIndex,n=t.rowPinned,e=t.forceBrowserFocus,r=void 0!==e&&e,o=t.preventScrollOnBrowserFocus,s=void 0!==o&&o,u=this.columnModel.getGridColumn(t.column);u?(this.focusedCellPosition=u?{rowIndex:i,rowPinned:K(n),column:u}:null,this.onCellFocused(r,s)):this.focusedCellPosition=null},i.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&this.focusedCellPosition.column===t.column&&this.isRowFocused(t.rowIndex,t.rowPinned)},i.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},i.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var i=t.getColumnGroupChild(),n=t.getRowIndex(),e=t.getPinned(),r=this.focusedHeaderPosition,o=r.column;return i===o&&n===r.headerRowIndex&&e==o.getPinned()},i.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},i.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},i.prototype.setFocusedHeader=function(t,i){this.focusedHeaderPosition={headerRowIndex:t,column:i}},i.prototype.focusHeaderPosition=function(t){var i=t.direction,n=t.fromTab,e=t.event,r=t.headerPosition;if(t.allowUserOverride){var o,s=this.gridOptionsWrapper,u=this.getFocusedHeader(),h=this.headerNavigationService.getHeaderRowCount();n?(o=s.getTabToNextHeaderFunc())&&(r=o({backwards:"Before"===i,previousHeaderPosition:u,nextHeaderPosition:r,headerRowCount:h})):(o=s.getNavigateToNextHeaderFunc())&&e&&(r=o({key:e.key,previousHeaderPosition:u,nextHeaderPosition:r,headerRowCount:h,event:e}))}return!!r&&(-1===r.headerRowIndex?this.focusGridView(r.column):(this.headerNavigationService.scrollToColumn(r.column,i),this.ctrlsService.getHeaderRowContainerCtrl(r.column.getPinned()).focusHeader(r.headerRowIndex,r.column,e)))},i.prototype.focusFirstHeader=function(){var t=this.columnModel.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnModel.getColumnGroupAtLevel(t,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:t}}))},i.prototype.focusLastHeader=function(t){var i=this.headerNavigationService.getHeaderRowCount()-1,n=Jt(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:i,column:n},event:t})},i.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},i.prototype.isRowFocused=function(t,i){return null!=this.focusedCellPosition&&this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===K(i)},i.prototype.findFocusableElements=function(t,i,n){void 0===n&&(n=!1);var e=Vt.FOCUSABLE_EXCLUDE;i&&(e+=", "+i),n&&(e+=', [tabindex="-1"]');var r,o=Array.prototype.slice.apply(t.querySelectorAll(Vt.FOCUSABLE_SELECTOR)),s=Array.prototype.slice.apply(t.querySelectorAll(e));return s.length?(r=s,o.filter((function(t){return-1===r.indexOf(t)}))):o},i.prototype.focusInto=function(t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var e=this.findFocusableElements(t,null,n),r=i?Jt(e):e[0];return!!r&&(r.focus(),!0)},i.prototype.findNextFocusableElement=function(t,i,n){void 0===t&&(t=this.eGridDiv);var e=this.findFocusableElements(t,i?':not([tabindex="-1"])':null),r=this.gridOptionsWrapper.getDocument().activeElement,o=(i?e.findIndex((function(t){return t.contains(r)})):e.indexOf(r))+(n?-1:1);return o<0||o>=e.length?null:e[o]},i.prototype.isFocusUnderManagedComponent=function(t){var i=this.gridOptionsWrapper.getDocument(),n=t.querySelectorAll("."+go.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var e=0;e<n.length;e++)if(n[e].contains(i.activeElement))return!0;return!1},i.prototype.findTabbableParent=function(t,i){void 0===i&&(i=5);for(var n=0;t&&null===gn(t)&&++n<=i;)t=t.parentElement;return null===gn(t)?null:t},i.prototype.onCellFocused=function(t,i){var n={type:xi.EVENT_CELL_FOCUSED,forceBrowserFocus:t,preventScrollOnBrowserFocus:i,rowIndex:null,column:null,floating:null,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var e=n.rowIndex=this.focusedCellPosition.rowIndex,r=n.rowPinned=this.focusedCellPosition.rowPinned;n.column=this.focusedCellPosition.column;var o=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:r});o&&(n.isFullWidthCell=o.isFullWidth())}this.eventService.dispatchEvent(n)},i.prototype.focusGridView=function(t,i){if(this.gridOptionsWrapper.isSuppressCellFocus())return i?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=i?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var e=n.rowIndex,r=n.rowPinned,o=this.getFocusedHeader();return!t&&o&&(t=o.column),!(null==e||!t)&&(this.navigationService.ensureCellVisible({rowIndex:e,column:t,rowPinned:r}),this.setFocusedCell({rowIndex:e,column:t,rowPinned:K(r),forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:e,rowPinned:r,column:t}),!0)},i.prototype.focusNextGridCoreContainer=function(t){return!!this.gridCtrl.focusNextInnerContainer(t)||(t||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},i.AG_KEYBOARD_FOCUS="ag-keyboard-focus",i.keyboardModeActive=!1,i.instancesMonitored=new Map,ad([Dt("eGridDiv")],i.prototype,"eGridDiv",void 0),ad([Dt("columnModel")],i.prototype,"columnModel",void 0),ad([Dt("headerNavigationService")],i.prototype,"headerNavigationService",void 0),ad([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),ad([Dt("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),ad([It("rangeService")],i.prototype,"rangeService",void 0),ad([Dt("navigationService")],i.prototype,"navigationService",void 0),ad([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),ad([Ft],i.prototype,"init",null),n=ad([Pt("focusService")],i)}(Ai),dd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},pd=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};
291
+ /**
292
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
293
+ * @version v28.2.1
294
+ * @link https://www.ag-grid.com/
295
+ * @license MIT
296
+ */!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal"}(ef||(ef={}));var gd,md=0,bd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.popupList=[],i}var n;return dd(i,t),n=i,i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.gridCtrl=i.gridCtrl,t.addManagedListener(t.gridCtrl,xi.EVENT_KEYBOARD_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.add(fd.AG_KEYBOARD_FOCUS)}))})),t.addManagedListener(t.gridCtrl,xi.EVENT_MOUSE_FOCUS,(function(){t.popupList.forEach((function(t){return t.element.classList.remove(fd.AG_KEYBOARD_FOCUS)}))}))}))},i.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCtrl.getGui()},i.prototype.positionPopupForMenu=function(t){var i=t.eventSource.getBoundingClientRect(),n=this.getParentRect(),e=this.keepXYWithinBounds(t.ePopup,i.top-n.top,ef.vertical),r=t.ePopup.clientWidth>0?t.ePopup.clientWidth:200;t.ePopup.style.minWidth=r+"px";var o,s=n.right-n.left-r;function u(){return i.right-n.left-2}function h(){return i.left-n.left-r}this.gridOptionsWrapper.isEnableRtl()?((o=h())<0&&(o=u()),o>s&&(o=0)):((o=u())>s&&(o=h()),o<0&&(o=0)),t.ePopup.style.left=o+"px",t.ePopup.style.top=e+"px"},i.prototype.positionPopupUnderMouseEvent=function(t){var i=t.ePopup,n=t.nudgeX,e=t.nudgeY,r=t.skipObserver,o=this.calculatePointerAlign(t.mouseEvent);this.positionPopup({ePopup:i,x:o.x,y:o.y,nudgeX:n,nudgeY:e,keepWithinBounds:!0,skipObserver:r}),this.callPostProcessPopup(t.type,t.ePopup,null,t.mouseEvent,t.column,t.rowNode)},i.prototype.calculatePointerAlign=function(t){var i=this.getParentRect();return{x:t.clientX-i.left,y:t.clientY-i.top}},i.prototype.positionPopupUnderComponent=function(t){var i=t.eventSource.getBoundingClientRect(),n=t.alignSide||"left",e=this.getParentRect(),r=i.left-e.left;"right"===n&&(r-=t.ePopup.offsetWidth-i.width),this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:r,y:i.top-e.top+i.height,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},i.prototype.positionPopupOverComponent=function(t){var i=t.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:t.ePopup,nudgeX:t.nudgeX,nudgeY:t.nudgeY,x:i.left-n.left,y:i.top-n.top,keepWithinBounds:t.keepWithinBounds}),this.callPostProcessPopup(t.type,t.ePopup,t.eventSource,null,t.column,t.rowNode)},i.prototype.callPostProcessPopup=function(t,i,n,e,r,o){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:o,ePopup:i,type:t,eventSource:n,mouseEvent:e})},i.prototype.positionPopup=function(t){var i=this,e=t.ePopup,r=t.keepWithinBounds,o=t.nudgeX,s=t.nudgeY,u=t.skipObserver,h=t.x,c=t.y;o&&(h+=o),s&&(c+=s);var a=function(){r&&(h=i.keepXYWithinBounds(e,h,ef.horizontal),c=i.keepXYWithinBounds(e,c,ef.vertical)),e.style.left=h+"px",e.style.top=c+"px"};if(a(),!u){var l=this.resizeObserverService.observeResize(e,a);setTimeout((function(){return l()}),n.WAIT_FOR_POPUP_CONTENT_RESIZE)}},i.prototype.getActivePopups=function(){return this.popupList.map((function(t){return t.element}))},i.prototype.getPopupList=function(){return this.popupList},i.prototype.getParentRect=function(){var t=this.gridOptionsWrapper.getDocument(),i=this.getPopupParent();i===t.body?i=t.documentElement:"static"===getComputedStyle(i).position&&(i=i.offsetParent);var n=getComputedStyle(i),e=i.getBoundingClientRect();return{top:e.top+parseFloat(n.borderTopWidth)||0,left:e.left+parseFloat(n.borderLeftWidth)||0,right:e.right+parseFloat(n.borderRightWidth)||0,bottom:e.bottom+parseFloat(n.borderBottomWidth)||0}},i.prototype.keepXYWithinBounds=function(t,i,n){var e=n===ef.vertical,r=e?"clientHeight":"clientWidth",o=e?"top":"left",s=e?"offsetHeight":"offsetWidth",u=e?"scrollTop":"scrollLeft",h=this.gridOptionsWrapper.getDocument(),c=h.documentElement,a=this.getPopupParent(),l=a.getBoundingClientRect(),f=h.documentElement.getBoundingClientRect(),d=a===h.body,v=t[s],p=d?(e?ve:pe)(c)+c[u]:a[r];d&&(p-=Math.abs(f[o]-l[o]));var g=p-v;return Math.min(Math.max(i,0),Math.abs(g))},i.prototype.keepPopupPositionedRelativeTo=function(t){var i=this,n=this.getPopupParent(),e=n.getBoundingClientRect(),r=t.element.getBoundingClientRect(),o=e.top-r.top,s=e.left-r.left,u=o,h=s,c=t.ePopup.style.top,a=parseInt(c.substring(0,c.length-1),10),l=t.ePopup.style.left,f=parseInt(l.substring(0,l.length-1),10);return new Kr((function(e){i.getFrameworkOverrides().setInterval((function(){var e=n.getBoundingClientRect(),r=t.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)t.hidePopup();else{var c=e.top-r.top;if(c!=u){var l=i.keepXYWithinBounds(t.ePopup,a+o-c,ef.vertical);t.ePopup.style.top=l+"px"}u=c;var d=e.left-r.left;if(d!=h){var v=i.keepXYWithinBounds(t.ePopup,f+s-d,ef.horizontal);t.ePopup.style.left=v+"px"}h=d}}),200).then((function(t){e((function(){null!=t&&window.clearInterval(t)}))}))}))},i.prototype.addPopup=function(t){var i,n=this,e=t.modal,r=t.eChild,o=t.closeOnEsc,s=t.closedCallback,u=t.click,h=t.alwaysOnTop,c=t.afterGuiAttached,a=t.positionCallback,l=t.anchorToElement,f=t.ariaLabel,d=this.gridOptionsWrapper.getDocument(),v=new Kr((function(t){return t((function(){}))}));if(!d)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:v};var p=this.popupList.findIndex((function(t){return t.element===r}));if(-1!==p){var g=this.popupList[p];return{hideFunc:g.hideFunc,stopAnchoringPromise:g.stopAnchoringPromise}}var m=this.getPopupParent();null==r.style.top&&(r.style.top="0px"),null==r.style.left&&(r.style.left="0px");var b=document.createElement("div"),w=this.environment.getTheme().allThemes;w.length&&(i=b.classList).add.apply(i,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(pd(arguments[i]));return t}(w)),b.classList.add("ag-popup"),r.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),r.hasAttribute("role")||$e(r,"dialog"),Ze(r,f),this.focusService.isKeyboardMode()&&r.classList.add(fd.AG_KEYBOARD_FOCUS),b.appendChild(r),m.appendChild(b),h?this.setAlwaysOnTop(b,!0):this.bringPopupToFront(b);var y=!1,C=function(t){b.contains(d.activeElement)&&t.key===xr.ESCAPE&&O({keyboardEvent:t})},S=function(t){return O({mouseEvent:t})},R=function(t){return O({touchEvent:t})},O=function(t){void 0===t&&(t={});var i=t.mouseEvent,e=t.touchEvent,o=t.keyboardEvent;n.isEventFromCurrentPopup({mouseEvent:i,touchEvent:e},r)||n.isEventSameChainAsOriginalEvent({originalMouseEvent:u,mouseEvent:i,touchEvent:e})||y||(y=!0,m.removeChild(b),d.removeEventListener("keydown",C),d.removeEventListener("mousedown",S),d.removeEventListener("touchstart",R),d.removeEventListener("contextmenu",S),n.eventService.removeEventListener(xi.EVENT_DRAG_STARTED,S),s&&s(i||e||o),n.popupList=n.popupList.filter((function(t){return t.element!==r})),v&&v.then((function(t){return t&&t()})))};return c&&c({hidePopup:O}),window.setTimeout((function(){o&&d.addEventListener("keydown",C),e&&(d.addEventListener("mousedown",S),n.eventService.addEventListener(xi.EVENT_DRAG_STARTED,S),d.addEventListener("touchstart",R),d.addEventListener("contextmenu",S))}),0),a&&a(),l&&(v=this.keepPopupPositionedRelativeTo({element:l,ePopup:r,hidePopup:O})),this.popupList.push({element:r,wrapper:b,hideFunc:O,stopAnchoringPromise:v,instanceId:md++,isAnchored:!!l}),{hideFunc:O,stopAnchoringPromise:v}},i.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(t){return t.isAnchored}))},i.prototype.isEventFromCurrentPopup=function(t,i){var n=t.mouseEvent||t.touchEvent;if(!n)return!1;var e=this.popupList.findIndex((function(t){return t.element===i}));if(-1===e)return!1;for(var r=e;r<this.popupList.length;r++)if(bi(this.popupList[r].element,n))return!0;return this.isElementWithinCustomPopup(n.target)},i.prototype.isElementWithinCustomPopup=function(t){for(var i=this.gridOptionsWrapper.getDocument();t&&t!==i.body;){if(t.classList.contains("ag-custom-component-popup")||null===t.parentElement)return!0;t=t.parentElement}return!1},i.prototype.isEventSameChainAsOriginalEvent=function(t){var i=t.originalMouseEvent,n=t.mouseEvent,e=t.touchEvent,r=null;if(n?r=n:e&&(r=e.touches[0]),r&&i){var o=n?n.screenY:0,s=Math.abs(i.screenX-(n?n.screenX:0))<5,u=Math.abs(i.screenY-o)<5;if(s&&u)return!0}return!1},i.prototype.getWrapper=function(t){for(;!t.classList.contains("ag-popup")&&t.parentElement;)t=t.parentElement;return t.classList.contains("ag-popup")?t:null},i.prototype.setAlwaysOnTop=function(t,i){var n=this.getWrapper(t);n&&(n.classList.toggle("ag-always-on-top",!!i),i&&this.bringPopupToFront(n))},i.prototype.bringPopupToFront=function(t){var i=this.getPopupParent(),n=Array.prototype.slice.call(i.querySelectorAll(".ag-popup")),e=n.length,r=Array.prototype.slice.call(i.querySelectorAll(".ag-popup.ag-always-on-top")),o=r.length,s=this.getWrapper(t);if(s&&!(e<=1)&&i.contains(t)){var u=n.indexOf(s),h=s.querySelectorAll("div"),c=[];for(h.forEach((function(t){0!==t.scrollTop&&c.push([t,t.scrollTop])})),o?s.classList.contains("ag-always-on-top")?u!==e-1&&Jt(r).insertAdjacentElement("afterend",s):u!==e-o-1&&r[0].insertAdjacentElement("beforebegin",s):u!==e-1&&Jt(n).insertAdjacentElement("afterend",s);c.length;){var a=c.pop();a[0].scrollTop=a[1]}var l={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(l)}},i.WAIT_FOR_POPUP_CONTENT_RESIZE=200,vd([Dt("environment")],i.prototype,"environment",void 0),vd([Dt("focusService")],i.prototype,"focusService",void 0),vd([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),vd([Dt("resizeObserverService")],i.prototype,"resizeObserverService",void 0),vd([Dt("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),vd([Ft],i.prototype,"postConstruct",null),n=vd([Pt("popupService")],i)}(Ai),wd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),yd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Cd=function(t){function i(n,e,r){void 0===n&&(n="default"),void 0===e&&(e="listbox");var o=t.call(this,i.getTemplate(n))||this;return o.cssIdentifier=n,o.ariaRole=e,o.listName=r,o.renderedRows=new Map,o.rowHeight=20,o}return wd(i,t),i.prototype.postConstruct=function(){var t=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(i){return t.onFocusIn(i)},onFocusOut:function(i){return t.onFocusOut(i)},focusInnerElement:function(i){return t.focusInnerElement(i)},onTabKeyDown:function(i){return t.onTabKeyDown(i)},handleKeyDown:function(i){return t.handleKeyDown(i)}}),this.setAriaProperties()},i.prototype.setAriaProperties=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),i=this.eContainer;$e(i,this.ariaRole),Ze(i,t)},i.prototype.addResizeObserver=function(){var t=this.drawVirtualRows.bind(this),i=this.resizeObserverService.observeResize(this.getGui(),t);this.addDestroyFunc(i)},i.prototype.focusInnerElement=function(t){this.focusRow(t?this.model.getRowCount()-1:0)},i.prototype.onFocusIn=function(t){var i=t.target;return i.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=Je(i)-1),!1},i.prototype.onFocusOut=function(t){return this.getFocusableElement().contains(t.relatedTarget)||(this.lastFocusedRowIndex=null),!1},i.prototype.handleKeyDown=function(t){switch(t.key){case xr.UP:case xr.DOWN:this.navigate(t.key===xr.UP)&&t.preventDefault()}},i.prototype.onTabKeyDown=function(t){this.navigate(t.shiftKey)?t.preventDefault():this.focusService.focusInto(this.getGui(),!t.shiftKey)},i.prototype.navigate=function(t){if(null==this.lastFocusedRowIndex)return!1;var i=this.lastFocusedRowIndex+(t?-1:1);return!(i<0||i>=this.model.getRowCount()||(this.focusRow(i),0))},i.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},i.prototype.focusRow=function(t){var i=this;this.ensureIndexVisible(t),window.setTimeout((function(){if(i.isAlive()){var n=i.renderedRows.get(t);n&&n.eDiv.focus()}}),10)},i.prototype.getComponentAt=function(t){var i=this.renderedRows.get(t);return i&&i.rowComponent},i.prototype.forEachRenderedRow=function(t){this.renderedRows.forEach((function(i,n){return t(i.rowComponent,n)}))},i.getTemplate=function(t){return'\n <div class="ag-virtual-list-viewport ag-'+t+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+t+'-virtual-list-container" ref="eContainer"></div>\n </div>'},i.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},i.prototype.ensureIndexVisible=function(t){var i=this.model.getRowCount();if("number"!=typeof t||t<0||t>=i)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+t);else{var n=t*this.rowHeight,e=n+this.rowHeight,r=this.getGui(),o=r.scrollTop,s=r.offsetHeight,u=o+s<e;o>n?r.scrollTop=n:u&&(r.scrollTop=e-s)}},i.prototype.setComponentCreator=function(t){this.componentCreator=t},i.prototype.getRowHeight=function(){return this.rowHeight},i.prototype.getScrollTop=function(){return this.getGui().scrollTop},i.prototype.setRowHeight=function(t){this.rowHeight=t,this.refresh()},i.prototype.refresh=function(){var t=this;if(null!=this.model&&this.isAlive()){var i=this.model.getRowCount();this.eContainer.style.height=i*this.rowHeight+"px",jt((function(){return t.eContainer.clientHeight>=i*t.rowHeight}),(function(){t.isAlive()&&(t.clearVirtualRows(),t.drawVirtualRows())}))}},i.prototype.clearVirtualRows=function(){var t=this;this.renderedRows.forEach((function(i,n){return t.removeRow(n)}))},i.prototype.drawVirtualRows=function(){if(this.isAlive()){var t=this.getGui(),i=t.scrollTop,n=i+t.offsetHeight,e=Math.floor(i/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(e,r)}},i.prototype.ensureRowsRendered=function(t,i){var n=this;this.renderedRows.forEach((function(e,r){(r<t||r>i)&&r!==n.lastFocusedRowIndex&&n.removeRow(r)}));for(var e=t;e<=i;e++)this.renderedRows.has(e)||e<this.model.getRowCount()&&this.insertRow(e)},i.prototype.insertRow=function(t){var i=this,n=this.model.getRow(t),e=document.createElement("div");if(e.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),$e(e,"tree"===this.ariaRole?"treeitem":"option"),sr(e,this.model.getRowCount()),ur(e,t+1),e.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var r=this.model.isRowSelected(t);gr(e,!!r),mr(e,r)}e.style.height=this.rowHeight+"px",e.style.top=this.rowHeight*t+"px";var o=this.componentCreator(n,e);o.addGuiEventListener("focusin",(function(){return i.lastFocusedRowIndex=t})),e.appendChild(o.getGui()),this.renderedRows.has(t-1)?this.renderedRows.get(t-1).eDiv.insertAdjacentElement("afterend",e):this.renderedRows.has(t+1)?this.renderedRows.get(t+1).eDiv.insertAdjacentElement("beforebegin",e):this.eContainer.appendChild(e),this.renderedRows.set(t,{rowComponent:o,eDiv:e})},i.prototype.removeRow=function(t){var i=this.renderedRows.get(t);this.eContainer.removeChild(i.eDiv),this.destroyBean(i.rowComponent),this.renderedRows.delete(t)},i.prototype.addScrollListener=function(){var t=this;this.addGuiEventListener("scroll",(function(){return t.drawVirtualRows()}))},i.prototype.setModel=function(t){this.model=t},i.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),t.prototype.destroy.call(this))},yd([Dt("resizeObserverService")],i.prototype,"resizeObserverService",void 0),yd([Dt("focusService")],i.prototype,"focusService",void 0),yd([no("eContainer")],i.prototype,"eContainer",void 0),yd([Ft],i.prototype,"postConstruct",null),i}(Qf),Sd=["mouseover","mouseout","mouseenter","mouseleave"],Rd=["touchstart","touchend","touchmove","touchcancel"],Od=function(){function t(){this.isOutsideAngular=function(t){return ei(Sd,t)}}return t.prototype.setTimeout=function(t,i){window.setTimeout(t,i)},t.prototype.setInterval=function(t,i){return new Kr((function(n){n(window.setInterval(t,i))}))},t.prototype.addEventListener=function(t,i,n,e){var r=ei(Rd,i);t.addEventListener(i,n,{capture:!!e,passive:r})},t.prototype.dispatchEvent=function(t,i){i()},t.prototype.frameworkComponent=function(){return null},t.prototype.isFrameworkComponent=function(){return!1},t}(),Ad=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),jd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},_d=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Gd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ad(i,t),i.prototype.getNextCellToFocus=function(t,i,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(t,i):this.getNextCellToFocusWithoutCtrlPressed(t,i)},i.prototype.getNextCellToFocusWithCtrlPressed=function(t,i){var n,e,r=t===xr.UP,o=t===xr.LEFT;if(r||t===xr.DOWN)e=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=i.column;else{var s=this.columnModel.getAllDisplayedColumns(),u=this.gridOptionsWrapper.isEnableRtl();e=i.rowIndex,n=o!==u?s[0]:Jt(s)}return{rowIndex:e,rowPinned:null,column:n}},i.prototype.getNextCellToFocusWithoutCtrlPressed=function(t,i){for(var n=i,e=!1;!e;){switch(t){case xr.UP:n=this.getCellAbove(n);break;case xr.DOWN:n=this.getCellBelow(n);break;case xr.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case xr.LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("AG Grid: unknown key for navigation "+t)}e=!n||this.isCellGoodToFocusOn(n)}return n},i.prototype.isCellGoodToFocusOn=function(t){var i,n=t.column;switch(t.rowPinned){case Vt.PINNED_TOP:i=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case Vt.PINNED_BOTTOM:i=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:i=this.rowModel.getRow(t.rowIndex)}return!!i&&!n.isSuppressNavigable(i)},i.prototype.getCellToLeft=function(t){if(!t)return null;var i=this.columnModel.getDisplayedColBefore(t.column);return i?{rowIndex:t.rowIndex,column:i,rowPinned:t.rowPinned}:null},i.prototype.getCellToRight=function(t){if(!t)return null;var i=this.columnModel.getDisplayedColAfter(t.column);return i?{rowIndex:t.rowIndex,column:i,rowPinned:t.rowPinned}:null},i.prototype.getRowBelow=function(t){var i=t.rowIndex,n=t.rowPinned;if(this.isLastRowInContainer(t))switch(n){case Vt.PINNED_BOTTOM:return null;case Vt.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(Vt.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Vt.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(Vt.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Vt.PINNED_BOTTOM}:null}var e=this.rowModel.getRow(t.rowIndex);return this.getNextStickyPosition(e)||{rowIndex:i+1,rowPinned:n}},i.prototype.getNextStickyPosition=function(t,i){if(this.gridOptionsWrapper.isGroupRowsSticky()&&t&&t.sticky){var n=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(_d(arguments[i]));return t}(this.rowRenderer.getStickyTopRowCtrls()).sort((function(t,i){return t.getRowNode().rowIndex-i.getRowNode().rowIndex})),e=i?-1:1,r=n.findIndex((function(i){return i.getRowNode().rowIndex===t.rowIndex})),o=n[r+e];return o?{rowIndex:o.getRowNode().rowIndex,rowPinned:null}:void 0}},i.prototype.getCellBelow=function(t){if(!t)return null;var i=this.getRowBelow(t);return i?{rowIndex:i.rowIndex,column:t.column,rowPinned:i.rowPinned}:null},i.prototype.isLastRowInContainer=function(t){var i=t.rowPinned,n=t.rowIndex;return i===Vt.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:i===Vt.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},i.prototype.getRowAbove=function(t){var i=t.rowIndex,n=t.rowPinned;if(n?0===i:i===this.paginationProxy.getPageFirstRow())return n===Vt.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(Vt.PINNED_TOP)?this.getLastFloatingTopRow():null;var e=this.rowModel.getRow(t.rowIndex);return this.getNextStickyPosition(e,!0)||{rowIndex:i-1,rowPinned:n}},i.prototype.getCellAbove=function(t){if(!t)return null;var i=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return i?{rowIndex:i.rowIndex,column:t.column,rowPinned:i.rowPinned}:null},i.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},i.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:Vt.PINNED_TOP}},i.prototype.getNextTabbedCell=function(t,i){return i?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},i.prototype.getNextTabbedCellForwards=function(t){var i=this.columnModel.getAllDisplayedColumns(),n=t.rowIndex,e=t.rowPinned,r=this.columnModel.getDisplayedColAfter(t.column);if(!r){r=i[0];var o=this.getRowBelow(t);if(q(o))return null;if(!o.rowPinned&&!this.paginationProxy.isRowInPage(o))return null;n=o?o.rowIndex:null,e=o?o.rowPinned:null}return{rowIndex:n,column:r,rowPinned:e}},i.prototype.getNextTabbedCellBackwards=function(t){var i=this.columnModel.getAllDisplayedColumns(),n=t.rowIndex,e=t.rowPinned,r=this.columnModel.getDisplayedColBefore(t.column);if(!r){r=Jt(i);var o=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(q(o))return null;if(!o.rowPinned&&!this.paginationProxy.isRowInPage(o))return null;n=o?o.rowIndex:null,e=o?o.rowPinned:null}return{rowIndex:n,column:r,rowPinned:e}},jd([Dt("columnModel")],i.prototype,"columnModel",void 0),jd([Dt("rowModel")],i.prototype,"rowModel",void 0),jd([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),jd([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),jd([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),jd([Pt("cellNavigationService")],i)}(Ai),xd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Md=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Fd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.consuming=!1,i}return xd(i,t),i.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},i.prototype.init=function(){this.addManagedListener(this.eventService,xi.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},i.prototype.fireEvent=function(t){if(!this.consuming){var i=this.gridOptionsWrapper.getAlignedGrids();i&&i.forEach((function(i){if(i.api){var n=i.api.__getAlignedGridService();t(n)}}))}},i.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},i.prototype.fireColumnEvent=function(t){this.fireEvent((function(i){i.onColumnEvent(t)}))},i.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(i){i.onScrollEvent(t)}))},i.prototype.onScrollEvent=function(t){var i=this;this.onEvent((function(){i.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(t.left)}))},i.prototype.getMasterColumns=function(t){var i=[];return t.columns?t.columns.forEach((function(t){i.push(t)})):t.column&&i.push(t.column),i},i.prototype.getColumnIds=function(t){var i=[];return t.columns?t.columns.forEach((function(t){i.push(t.getColId())})):t.column&&i.push(t.column.getColId()),i},i.prototype.onColumnEvent=function(t){var i=this;this.onEvent((function(){switch(t.type){case xi.EVENT_COLUMN_MOVED:case xi.EVENT_COLUMN_VISIBLE:case xi.EVENT_COLUMN_PINNED:case xi.EVENT_COLUMN_RESIZED:i.processColumnEvent(t);break;case xi.EVENT_COLUMN_GROUP_OPENED:i.processGroupOpenedEvent(t);break;case xi.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.")}}))},i.prototype.processGroupOpenedEvent=function(t){var i=t.columnGroup,n=null;if(i){var e=i.getGroupId();n=this.columnModel.getProvidedColumnGroup(e)}i&&!n||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+i.isExpanded()),this.columnModel.setColumnGroupOpened(n,i.isExpanded(),"alignedGridChanged"))},i.prototype.processColumnEvent=function(t){var i,n=this,e=t.column,r=null;if(e&&(r=this.columnModel.getPrimaryColumn(e.getColId())),!e||r){var o=this.getMasterColumns(t);switch(t.type){case xi.EVENT_COLUMN_MOVED:var s=t,u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:u,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex);break;case xi.EVENT_COLUMN_VISIBLE:var h=t;u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,hide:t.hide}})),this.columnModel.applyColumnState({state:u},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+h.visible);break;case xi.EVENT_COLUMN_PINNED:var c=t;u=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,pinned:t.pinned}})),this.columnModel.applyColumnState({state:u},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+c.pinned);break;case xi.EVENT_COLUMN_RESIZED:var a=t,l={};o.forEach((function(i){n.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+i.getActualWidth()),l[i.getId()]={key:i.getColId(),newWidth:i.getActualWidth()}})),null===(i=a.flexColumns)||void 0===i||i.forEach((function(t){l[t.getId()]&&delete l[t.getId()]})),this.columnModel.setColumnWidths(Object.values(l),!1,a.finished,"alignedGridChanged")}var f=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),d=this.gridOptionsWrapper.getAlignedGrids();d&&d.forEach((function(t){t.api&&t.api.setAlwaysShowVerticalScroll(f)}))}},Md([Dt("columnModel")],i.prototype,"columnModel",void 0),Md([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Md([(n=0,e=Tt("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),Md([Ft],i.prototype,"init",null),Md([Pt("alignedGridsService")],i);var n,e}(Ai),kd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Dd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return kd(i,t),i.prototype.setBeans=function(t){this.logger=t.create("selectionService"),this.reset()},i.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,xi.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},i.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},i.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},i.prototype.getSelectedNodes=function(){var t=[];return nt(this.selectedNodes,(function(i,n){n&&t.push(n)})),t},i.prototype.getSelectedRows=function(){var t=[];return nt(this.selectedNodes,(function(i,n){n&&n.data&&t.push(n.data)})),t},i.prototype.removeGroupsFromSelection=function(){var t=this;nt(this.selectedNodes,(function(i,n){n&&n.group&&(t.selectedNodes[n.id]=void 0)}))},i.prototype.updateGroupsFromChildrenSelections=function(t){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===Vt.ROW_MODEL_TYPE_CLIENT_SIDE){var i=this.rowModel.getRootNode();t||(t=new rf(!0,i)).setInactive(),t.forEachChangedNodeDepthFirst((function(t){if(t!==i){var n=t.calculateSelectedFromChildren();t.selectThisNode(null!==n&&n)}}))}},i.prototype.getNodeForIdIfSelected=function(t){return this.selectedNodes[t]},i.prototype.clearOtherNodes=function(t){var i=this,n={},e=0;return nt(this.selectedNodes,(function(r,o){o&&o.id!==t.id&&(e+=i.selectedNodes[o.id].setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),i.groupSelectsChildren&&o.parent&&(n[o.parent.id]=o.parent))})),nt(n,(function(t,i){var n=i.calculateSelectedFromChildren();i.selectThisNode(null!==n&&n)})),e},i.prototype.onRowSelected=function(t){var i=t.node;this.groupSelectsChildren&&i.group||(this.selectedNodes[i.id]=i.isSelected()?i:void 0)},i.prototype.syncInRowNode=function(t,i){this.syncInOldRowNode(t,i),this.syncInNewRowNode(t)},i.prototype.syncInOldRowNode=function(t,i){$(i)&&t.id!==i.id&&i&&this.selectedNodes[i.id]==t&&(this.selectedNodes[i.id]=i)},i.prototype.syncInNewRowNode=function(t){$(this.selectedNodes[t.id])?(t.setSelectedInitialValue(!0),this.selectedNodes[t.id]=t):t.setSelectedInitialValue(!1)},i.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},i.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===Vt.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getTopLevelNodes();if(null!==t){var i=[];return function t(n){for(var e=0,r=n.length;e<r;e++){var o=n[e];o.isSelected()?i.push(o):o.group&&o.children&&t(o.children)}}(t),i}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model")},i.prototype.setRowModel=function(t){this.rowModel=t},i.prototype.isEmpty=function(){var t=0;return nt(this.selectedNodes,(function(i,n){n&&t++})),0===t},i.prototype.deselectAllRowNodes=function(t){void 0===t&&(t=!1);var i=function(t){return t.selectThisNode(!1)},n=this.rowModel.getType()===Vt.ROW_MODEL_TYPE_CLIENT_SIDE;if(t){if(!n)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(i)}else nt(this.selectedNodes,(function(t,n){n&&i(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:xi.EVENT_SELECTION_CHANGED})},i.prototype.selectAllRowNodes=function(t){if(void 0===t&&(t=!1),this.rowModel.getType()!==Vt.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var i=this.rowModel,n=function(t){return t.selectThisNode(!0)};t?i.forEachNodeAfterFilter(n):i.forEachNode(n),this.rowModel.getType()===Vt.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:xi.EVENT_SELECTION_CHANGED})},i.prototype.selectNode=function(t,i){t&&t.setSelectedParams({newValue:!0,clearSelection:!i})},i.prototype.deselectIndex=function(t){var i=this.rowModel.getRow(t);this.deselectNode(i)},i.prototype.deselectNode=function(t){t&&t.setSelectedParams({newValue:!1,clearSelection:!1})},i.prototype.selectIndex=function(t,i){var n=this.rowModel.getRow(t);this.selectNode(n,i)},Pd([Dt("rowModel")],i.prototype,"rowModel",void 0),Pd([(n=0,e=Tt("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),Pd([Ft],i.prototype,"init",null),Pd([Pt("selectionService")],i);var n,e}(Ai),Id=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ed=function(){function t(){}return t.prototype.sizeColumnsToFit=function(t){void 0===t&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,i){this.columnModel.setColumnGroupOpened(t,i,"api")},t.prototype.getColumnGroup=function(t,i){return this.columnModel.getColumnGroup(t,i)},t.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,i){return this.columnModel.getDisplayNameForColumn(t,i)||""},t.prototype.getDisplayNameForColumnGroup=function(t,i){return this.columnModel.getDisplayNameForColumnGroup(t,i)||""},t.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},t.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnModel.getColumnState()},t.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},t.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,i){this.columnModel.setColumnVisible(t,i,"api")},t.prototype.setColumnsVisible=function(t,i){this.columnModel.setColumnsVisible(t,i,"api")},t.prototype.setColumnPinned=function(t,i){this.columnModel.setColumnPinned(t,i,"api")},t.prototype.setColumnsPinned=function(t,i){this.columnModel.setColumnsPinned(t,i,"api")},t.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},t.prototype.moveColumn=function(t,i){"number"==typeof t?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(t,i,"api")):this.columnModel.moveColumn(t,i,"api")},t.prototype.moveColumnByIndex=function(t,i){this.columnModel.moveColumnByIndex(t,i,"api")},t.prototype.moveColumns=function(t,i){this.columnModel.moveColumns(t,i,"api")},t.prototype.moveRowGroupColumn=function(t,i){this.columnModel.moveRowGroupColumn(t,i)},t.prototype.setColumnAggFunc=function(t,i){this.columnModel.setColumnAggFunc(t,i)},t.prototype.setColumnWidth=function(t,i,n,e){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:t,newWidth:i}],!1,n,e)},t.prototype.setColumnWidths=function(t,i,n){void 0===i&&(i=!0),this.columnModel.setColumnWidths(t,!1,i,n)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getSecondaryPivotColumn=function(t,i){return console.warn("AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead"),this.getPivotResultColumn(t,i)},t.prototype.getPivotResultColumn=function(t,i){return this.columnModel.getSecondaryPivotColumn(t,i)},t.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},t.prototype.autoSizeColumn=function(t,i){return this.columnModel.autoSizeColumn(t,i,"api")},t.prototype.autoSizeColumns=function(t,i){this.columnModel.autoSizeColumns({columns:t,skipHeader:i})},t.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},t.prototype.setSecondaryColumns=function(t){console.warn("AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead"),this.setPivotResultColumns(t)},t.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},t.prototype.getSecondaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead"),this.getPivotResultColumns()},t.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.getPrimaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead"),this.getColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Wr.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return console.warn("AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead"),this.getColumns()},t.prototype.columnGroupOpened=function(t,i){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(t,i)},t.prototype.hideColumns=function(t,i){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(t,!i,"api")},t.prototype.hideColumn=function(t,i){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(t,!i,"api")},t.prototype.setState=function(t){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(t)},t.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},t.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},t.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},t.prototype.removeAggregationColumn=function(t){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(t,"api")},t.prototype.removeAggregationColumns=function(t){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(t,"api")},t.prototype.addAggregationColumn=function(t){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(t,"api")},t.prototype.addAggregationColumns=function(t){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(t,"api")},t.prototype.setColumnAggFunction=function(t,i){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(t,i,"api")},t.prototype.getDisplayNameForCol=function(t){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(t,null)},t.prototype.setColumnState=function(t){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:t,applyOrder:!0},"api")},t.prototype.getOriginalColumnGroup=function(t){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(t)},Id([Dt("columnModel")],t.prototype,"columnModel",void 0),Id([kt],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),Id([Pt("columnApi")],t)}(),Td=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Nd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.initialised=!1,i}return Td(i,t),i.prototype.init=function(){var t=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(xi.EVENT_CELL_VALUE_CHANGED,(function(i){return t.callColumnCellValueChangedHandler(i)}),this.gridOptionsWrapper.useAsyncEvents())},i.prototype.getValue=function(t,i,n,e){if(void 0===n&&(n=!1),void 0===e&&(e=!1),this.initialised||this.init(),i){var r,o=t.getColDef(),s=o.field,u=t.getId(),h=i.data,c=i.groupData&&void 0!==i.groupData[u],a=!e&&i.aggData&&void 0!==i.aggData[u];if(n&&o.filterValueGetter?r=this.executeFilterValueGetter(o.filterValueGetter,h,t,i):this.gridOptionsWrapper.isTreeData()&&a?r=i.aggData[u]:this.gridOptionsWrapper.isTreeData()&&o.valueGetter?r=this.executeValueGetter(o.valueGetter,h,t,i):this.gridOptionsWrapper.isTreeData()&&s&&h?r=lt(h,s,t.isFieldContainsDots()):c?r=i.groupData[u]:a?r=i.aggData[u]:o.valueGetter?r=this.executeValueGetter(o.valueGetter,h,t,i):s&&h&&(r=lt(h,s,t.isFieldContainsDots())),this.cellExpressions&&"string"==typeof r&&0===r.indexOf("=")){var l=r.substring(1);r=this.executeValueGetter(l,h,t,i)}if(null==r){var f=this.getOpenedGroup(i,t);if(null!=f)return f}return r}},i.prototype.getOpenedGroup=function(t,i){if(this.gridOptionsWrapper.isShowOpenedGroup()&&i.getColDef().showRowGroup)for(var n=i.getColDef().showRowGroup,e=t.parent;null!=e;){if(e.rowGroupColumn&&(!0===n||n===e.rowGroupColumn.getId()))return e.key;e=e.parent}},i.prototype.setValue=function(t,i,n,e){var r=this.columnModel.getPrimaryColumn(i);if(!t||!r)return!1;q(t.data)&&(t.data={});var o=r.getColDef(),s=o.field,u=o.newValueHandler,h=o.valueSetter;if(q(s)&&q(u)&&q(h))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var c,a={node:t,data:t.data,oldValue:this.getValue(r,t),newValue:n,colDef:r.getColDef(),column:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return a.newValue=n,void 0===(c=u&&$(u)?u(a):$(h)?this.expressionService.evaluate(h,a):this.setValueUsingField(t.data,s,n,r.isFieldContainsDots()))&&(c=!0),!!c&&(t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),a.newValue=this.getValue(r,t),this.eventService.dispatchEvent({type:xi.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:a.column,api:a.api,columnApi:a.columnApi,colDef:a.colDef,context:a.context,data:t.data,node:t,oldValue:a.oldValue,newValue:a.newValue,value:a.newValue,source:e}),!0)},i.prototype.callColumnCellValueChangedHandler=function(t){var i=t.colDef.onCellValueChanged;"function"==typeof i&&i({node:t.node,data:t.data,oldValue:t.oldValue,newValue:t.newValue,colDef:t.colDef,column:t.column,api:t.api,columnApi:t.columnApi,context:t.context})},i.prototype.setValueUsingField=function(t,i,n,e){if(!i)return!1;var r=!1;if(e)for(var o=i.split("."),s=t;o.length>0&&s;){var u=o.shift();0===o.length?(r=s[u]==n)||(s[u]=n):s=s[u]}else(r=t[i]==n)||(t[i]=n);return!r},i.prototype.executeFilterValueGetter=function(t,i,n,e){var r={data:i,node:e,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,e)};return this.expressionService.evaluate(t,r)},i.prototype.executeValueGetter=function(t,i,n,e){var r=n.getId(),o=this.valueCache.getValue(e,r);if(void 0!==o)return o;var s={data:i,node:e,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,e)},u=this.expressionService.evaluate(t,s);return this.valueCache.setValue(e,r,u),u},i.prototype.getValueCallback=function(t,i){var n=this.columnModel.getPrimaryColumn(i);return n?this.getValue(n,t):null},i.prototype.getKeyForNode=function(t,i){var n=this.getValue(t,i),e=t.getColDef().keyCreator,r=n;return e&&(r=e({value:n,colDef:t.getColDef(),column:t,node:i,data:i.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),"string"==typeof r||null==r||"[object Object]"===(r=String(r))&&gt((function(){console.warn("AG Grid: 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")}),"getKeyForNode - warn about [object,object]"),r},zd([Dt("expressionService")],i.prototype,"expressionService",void 0),zd([Dt("columnModel")],i.prototype,"columnModel",void 0),zd([Dt("valueCache")],i.prototype,"valueCache",void 0),zd([Ft],i.prototype,"init",null),zd([Pt("valueService")],i)}(Ai),Ld=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Hd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.expressionToFunctionCache={},i}return Ld(i,t),i.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},i.prototype.evaluate=function(t,i){return"function"==typeof t?t(i):"string"==typeof t?this.evaluateExpression(t,i):void console.error("AG Grid: value should be either a string or a function",t)},i.prototype.evaluateExpression=function(t,i){try{return this.createExpressionFunction(t)(i.value,i.context,i.oldValue,i.newValue,i.value,i.node,i.data,i.colDef,i.rowIndex,i.api,i.columnApi,i.getValue,i.column,i.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+t),console.log("Params =",i),console.log("Exception = "+n),null}},i.prototype.createExpressionFunction=function(t){if(this.expressionToFunctionCache[t])return this.expressionToFunctionCache[t];var i=this.createFunctionBody(t),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",i);return this.expressionToFunctionCache[t]=n,n},i.prototype.createFunctionBody=function(t){return t.indexOf("return")>=0?t:"return "+t+";"},Bd([(n=0,e=Tt("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),Bd([Pt("expressionService")],i);var n,e}(Ai),Wd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vd=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.templateCache={},i.waitingCallbacks={},i}return Wd(i,t),i.prototype.getTemplate=function(t,i){var n=this.templateCache[t];if(n)return n;var e=this.waitingCallbacks[t],r=this;if(!e){this.waitingCallbacks[t]=e=[];var o=new XMLHttpRequest;o.onload=function(){r.handleHttpResult(this,t)},o.open("GET",t),o.send()}return i&&e.push(i),null},i.prototype.handleHttpResult=function(t,i){if(200===t.status&&null!==t.response){this.templateCache[i]=t.response||t.responseText;for(var n=this.waitingCallbacks[i],e=0;e<n.length;e++)(0,n[e])()}else console.warn("AG Grid: Unable to get template error "+t.status+" - "+i)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("templateService")],i)}(Ai),Ud=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Kd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$d=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ud(i,t),i.prototype.setBeans=function(t){this.logging=t.isDebug()},i.prototype.create=function(t){return new qd(t,this.isLogging.bind(this))},i.prototype.isLogging=function(){return this.logging},Kd([(n=0,e=Tt("gridOptionsWrapper"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),Kd([Pt("loggerFactory")],i);var n,e}(Ai),qd=function(){function t(t,i){this.name=t,this.isLoggingFunc=i}return t.prototype.isLogging=function(){return this.isLoggingFunc()},t.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},t}(),Yd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Jd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zd=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Yd(i,t),i.prototype.setComp=function(t,i,n){var e=this;this.view=t,this.eGridHostDiv=i,this.eGui=n,this.dragAndDropService.addDropTarget({getContainer:function(){return e.eGui},isInterestedIn:function(t){return t===Ls.HeaderCell||t===Ls.ToolPanel},getIconName:function(){return Xs.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(i),this.createManagedBean(new uh(this.view)),this.addRtlSupport(),this.addManagedListener(this,xi.EVENT_KEYBOARD_FOCUS,(function(){e.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,xi.EVENT_MOUSE_FOCUS,(function(){e.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()})),this.ctrlsService.registerGridCtrl(this)},i.prototype.isDetailGrid=function(){var t,i;return(null===(i=null===(t=this.focusService.findTabbableParent(this.getGui()))||void 0===t?void 0:t.getAttribute("row-id"))||void 0===i?void 0:i.startsWith("detail"))||!1},i.prototype.showDropZones=function(){return Ut.isRegistered(Nt.RowGroupingModule)},i.prototype.showSideBar=function(){return Ut.isRegistered(Nt.SideBarModule)},i.prototype.showStatusBar=function(){return Ut.isRegistered(Nt.StatusBarModule)},i.prototype.showWatermark=function(){return Ut.isRegistered(Nt.EnterpriseCoreModule)},i.prototype.onGridSizeChanged=function(){this.eventService.dispatchEvent({type:xi.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})},i.prototype.addRtlSupport=function(){var t=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(t)},i.prototype.destroyGridUi=function(){this.view.destroyGridUi()},i.prototype.getGui=function(){return this.eGui},i.prototype.setResizeCursor=function(t){this.view.setCursor(t?"ew-resize":null)},i.prototype.disableUserSelect=function(t){this.view.setUserSelect(t?"none":null)},i.prototype.focusNextInnerContainer=function(t){var i=this.gridOptionsWrapper.getDocument(),n=this.view.getFocusableContainers(),e=n.findIndex((function(t){return t.contains(i.activeElement)}))+(t?-1:1);return!(e<=0||e>=n.length)&&this.focusService.focusInto(n[e])},i.prototype.focusInnerElement=function(t){var i=this.view.getFocusableContainers();if(t){if(i.length>1)return this.focusService.focusInto(Jt(i),!0);var n=Jt(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusService.focusFirstHeader()},i.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.view.forceFocusOutOfContainer(t)},Jd([Dt("focusService")],i.prototype,"focusService",void 0),Jd([Dt("resizeObserverService")],i.prototype,"resizeObserverService",void 0),Jd([Dt("columnModel")],i.prototype,"columnModel",void 0),Jd([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Jd([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),Jd([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),i}(Ai),Xd=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qd=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},tv=function(t){function i(i){var n=t.call(this,void 0)||this;return n.eGridDiv=i,n}return Xd(i,t),i.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var i={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(i){return t.addCssClass(i)},addOrRemoveKeyboardFocusClass:function(i){return t.addOrRemoveCssClass(fd.AG_KEYBOARD_FOCUS,i)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(i){t.getGui().style.userSelect=null!=i?i:"",t.getGui().style.webkitUserSelect=null!=i?i:""},setCursor:function(i){t.getGui().style.cursor=null!=i?i:""}};this.ctrl=this.createManagedBean(new Zd);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(i,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(i){return t.ctrl.focusInnerElement(i)}})},i.prototype.insertGridIntoDom=function(){var t=this,i=this.getGui();this.eGridDiv.appendChild(i),this.addDestroyFunc((function(){t.eGridDiv.removeChild(i),t.logger.log("Grid removed from DOM")}))},i.prototype.updateLayoutClasses=function(t,i){var n=this.eRootWrapperBody.classList;n.toggle(Uu.AUTO_HEIGHT,i.autoHeight),n.toggle(Uu.NORMAL,i.normal),n.toggle(Uu.PRINT,i.print),this.addOrRemoveCssClass(Uu.AUTO_HEIGHT,i.autoHeight),this.addOrRemoveCssClass(Uu.NORMAL,i.normal),this.addOrRemoveCssClass(Uu.PRINT,i.print)},i.prototype.createTemplate=function(){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>"},i.prototype.getFocusableElement=function(){return this.eRootWrapperBody},i.prototype.getFocusableContainers=function(){var t=[this.gridBodyComp.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return Ce(t)}))},Qd([Dt("loggerFactory")],i.prototype,"loggerFactory",void 0),Qd([no("gridBody")],i.prototype,"gridBodyComp",void 0),Qd([no("sideBar")],i.prototype,"sideBarComp",void 0),Qd([no("rootWrapperBody")],i.prototype,"eRootWrapperBody",void 0),Qd([Ft],i.prototype,"postConstruct",null),i}(Qf),iv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ev=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},rv=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(ev(arguments[i]));return t},ov=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var n;return iv(i,t),n=i,i.prototype.progressSort=function(t,i,n){var e=this.getNextSortDirection(t);this.setSortForColumn(t,e,i,n)},i.prototype.setSortForColumn=function(t,i,n,e){var r;i!==Vt.SORT_ASC&&i!==Vt.SORT_DESC&&(i=null);var o=[t];if(this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&t.getColDef().showRowGroup){var s=null===(r=this.columnModel.getSourceColumnsForGroupColumn(t))||void 0===r?void 0:r.filter((function(t){return t.getColDef().sortable}));s&&(o=rv([t],s))}o.forEach((function(t){return t.setSort(i,e)})),(n||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarTheseColumns(o,e),this.updateSortIndex(t),this.dispatchSortChangedEvents(e)},i.prototype.updateSortIndex=function(t){var i=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),n=this.columnModel.getGroupDisplayColumnForGroup(t.getId()),e=i&&n||t,r=this.getIndexableColumnsOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(t){return t.setSortIndex(null)}));var o=r.filter((function(t){return t!==e}));(e.getSort()?rv(o,[e]):o).forEach((function(t,i){return t.setSortIndex(i)}))},i.prototype.onSortChanged=function(t){this.dispatchSortChangedEvents(t)},i.prototype.isSortActive=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));return t&&t.length>0},i.prototype.dispatchSortChangedEvents=function(t){this.eventService.dispatchEvent({type:xi.EVENT_SORT_CHANGED,source:t})},i.prototype.clearSortBarTheseColumns=function(t,i){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){t.includes(n)||n.setSort(void 0,i)}))},i.prototype.getNextSortDirection=function(t){var i;if(i=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(i)||i.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+i),null;var e,r=i.indexOf(t.getSort());return n.DEFAULT_SORTING_ORDER.indexOf(e=r<0||r==i.length-1?i[0]:i[r+1])<0?(console.warn("AG Grid: invalid sort type "+e),null):e},i.prototype.getColumnsOrderedForSort=function(){var t=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),i={};return t.forEach((function(t,n){return i[t.getId()]=n})),t.sort((function(t,n){var e=t.getSortIndex(),r=n.getSortIndex();return null!=e&&null!=r?e-r:null==e&&null==r?i[t.getId()]>i[n.getId()]?1:-1:null==r?-1:1})),t},i.prototype.getIndexableColumnsOrdered=function(){var t=this;return this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()?this.getColumnsOrderedForSort().filter((function(i){var n;return i.getColDef().showRowGroup?!(!i.getColDef().field||!i.getSort())||(null===(n=t.columnModel.getSourceColumnsForGroupColumn(i))||void 0===n?void 0:n.some((function(t){return!!t.getSort()}))):!!i.getSort()})):this.getColumnsWithSortingOrdered()},i.prototype.getColumnsWithSortingOrdered=function(){return this.getColumnsOrderedForSort().filter((function(t){return!!t.getSort()}))},i.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),colId:t.getId()}}))},i.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(t){return{sort:t.getSort(),column:t}}))},i.prototype.canColumnDisplayMixedSort=function(t){var i=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),n=!!t.getColDef().showRowGroup;return i&&n},i.prototype.getDisplaySortForColumn=function(t){var i,n=this.columnModel.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!(null===(i=n)||void 0===i?void 0:i.length))return t.getSort();var e=t.getColDef().field?rv([t],n):n,r=e[0].getSort();return e.every((function(t){return t.getSort()==r}))?r:"mixed"},i.prototype.getDisplaySortIndexForColumn=function(t){var i=this;if(!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup())return this.getColumnsWithSortingOrdered().indexOf(t);var n=this.columnModel.getGroupDisplayColumnForGroup(t.getId());return n?t.getSort()?this.getDisplaySortIndexForColumn(n):null:this.getIndexableColumnsOrdered().filter((function(t){return!i.columnModel.getGroupDisplayColumnForGroup(t.getId())})).indexOf(t)},i.DEFAULT_SORTING_ORDER=[Vt.SORT_ASC,Vt.SORT_DESC,null],nv([Dt("columnModel")],i.prototype,"columnModel",void 0),n=nv([Pt("sortController")],i)}(Ai),sv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),uv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return sv(i,t),i.prototype.setMouseOver=function(t){this.selectedColumns=t,this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_HOVER_CHANGED})},i.prototype.clearMouseOver=function(){this.selectedColumns=null,this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_HOVER_CHANGED})},i.prototype.isHovered=function(t){return!!this.selectedColumns&&this.selectedColumns.indexOf(t)>=0},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("columnHoverService")],i)}(Ai),hv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),cv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},av=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.executeNextFuncs=[],i.executeLaterFuncs=[],i.active=!1,i.animationThreadCount=0,i}return hv(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){return t.gridBodyCtrl=i.gridBodyCtrl}))},i.prototype.isActive=function(){return this.active},i.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},i.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},i.prototype.executeNextVMTurn=function(t){this.active?this.executeNextFuncs.push(t):t()},i.prototype.executeLaterVMTurn=function(t){this.active?this.executeLaterFuncs.push(t):t()},i.prototype.ensureAnimationCssClassPresent=function(){var t=this;this.animationThreadCount++;var i=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){t.animationThreadCount===i&&t.gridBodyCtrl.setColumnMovingCss(!1)}))},i.prototype.flush=function(){var t=this.executeNextFuncs;this.executeNextFuncs=[];var i=this.executeLaterFuncs;this.executeLaterFuncs=[],0===t.length&&0===i.length||(window.setTimeout((function(){return t.forEach((function(t){return t()}))}),0),window.setTimeout((function(){return i.forEach((function(t){return t()}))}),300))},cv([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),cv([Ft],i.prototype,"postConstruct",null),cv([Pt("columnAnimationService")],i)}(Ai),lv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),fv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},dv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var n;return lv(i,t),n=i,i.prototype.createAutoGroupColumns=function(t,i){var n=this,e=[],r=this.gridOptionsWrapper.isTreeData(),o=this.gridOptionsWrapper.isGroupMultiAutoColumn();return r&&o&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),o=!1),o?i.forEach((function(i,r){e.push(n.createOneAutoGroupColumn(t,i,r))})):e.push(this.createOneAutoGroupColumn(t)),e},i.prototype.createOneAutoGroupColumn=function(t,i,e){var r,o=this.generateDefaultColDef(i);r=i?Vt.GROUP_AUTO_COLUMN_ID+"-"+i.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,at(o,this.gridOptionsWrapper.getAutoGroupColumnDef()),(o=this.columnFactory.mergeColDefs(o)).colId=r,this.gridOptionsWrapper.isTreeData()||q(o.field)&&q(o.valueGetter)&&q(o.filterValueGetter)&&(o.filter=!1),e&&e>0&&(o.headerCheckboxSelection=!1);var s=t.find((function(t){return t.getId()==r}));if(s)return s.setColDef(o,null),this.columnFactory.applyColumnState(s,o),s;var u=new qt(o,null,r,!0);return this.context.createBean(u),u},i.prototype.generateDefaultColDef=function(t){var i=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(i&&(i.cellRenderer||i.cellRendererFramework||i.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),t){var e=t.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(t,"header"),headerValueGetter:e.headerValueGetter}),(e.cellRenderer||e.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:e.cellRenderer,innerRendererFramework:e.cellRendererFramework,innerRendererParams:e.cellRendererParams}}),n.showRowGroup=t.getColId()}else n.showRowGroup=!0;return n},i.GROUP_AUTO_COLUMN_BUNDLE_ID=Vt.GROUP_AUTO_COLUMN_ID,fv([Dt("columnModel")],i.prototype,"columnModel",void 0),fv([Dt("columnFactory")],i.prototype,"columnFactory",void 0),n=fv([Pt("autoGroupColService")],i)}(Ai),vv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},gv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return vv(i,t),i.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(i){t.centerRowContainerCon=i.centerRowContainerCtrl,t.addManagedListener(t.eventService,xi.EVENT_BODY_HEIGHT_CHANGED,t.onBodyHeightChanged.bind(t)),t.addManagedListener(t.eventService,xi.EVENT_SCROLL_VISIBILITY_CHANGED,t.onScrollVisibilityChanged.bind(t)),t.checkPageSize()}))},i.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},i.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},i.prototype.onBodyHeightChanged=function(){this.checkPageSize()},i.prototype.checkPageSize=function(){if(!this.notActive()){var t=this.gridOptionsWrapper.getRowHeightAsNumber(),i=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(i>0){var n=Math.floor(i/t);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},pv([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),pv([Ft],i.prototype,"postConstruct",null),pv([Pt("paginationAutoPageSizeService")],i)}(Ai),mv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},wv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.cacheVersion=0,i}return mv(i,t),i.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},i.prototype.onDataChanged=function(){this.neverExpires||this.expire()},i.prototype.expire=function(){this.cacheVersion++},i.prototype.setValue=function(t,i,n){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[i]=n)},i.prototype.getValue=function(t,i){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[i]},bv([Ft],i.prototype,"init",null),bv([Pt("valueCache")],i)}(Ai),yv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Sv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yv(i,t),i.prototype.init=function(){this.rowModel.getType()===Vt.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,xi.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},i.prototype.onCellValueChanged=function(t){t.source!==Vt.SOURCE_PASTE&&this.doChangeDetection(t.node,t.column)},i.prototype.doChangeDetection=function(t,i){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!t.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),e=new rf(n,this.clientSideRowModel.getRootNode());e.addParentNode(t.parent,[i]),this.clientSideRowModel.doAggregate(e)}this.rowRenderer.refreshCells()}},Cv([Dt("rowModel")],i.prototype,"rowModel",void 0),Cv([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),Cv([Ft],i.prototype,"init",null),Cv([Pt("changeDetectionService")],i)}(Ai),Rv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ov=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Av=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Rv(i,t),i.prototype.adaptFunction=function(t,i){var n=this.componentMetadataProvider.retrieve(t);return n&&n.functionAdapter?n.functionAdapter(i):null},i.prototype.adaptCellRendererFunction=function(t){return function(){function i(){}return i.prototype.refresh=function(){return!1},i.prototype.getGui=function(){return this.eGui},i.prototype.init=function(i){var n=t(i),e=typeof n;this.eGui="string"!==e&&"number"!==e&&"boolean"!==e?null!=n?n:Se("<span></span>"):Se("<span>"+n+"</span>")},i}()},i.prototype.doesImplementIComponent=function(t){return!!t&&t.prototype&&"getGui"in t.prototype},Ov([Dt("componentMetadataProvider")],i.prototype,"componentMetadataProvider",void 0),Ov([Pt("agComponentUtils")],i)}(Ai),jv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_v=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return jv(i,t),i.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{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","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},i.prototype.retrieve=function(t){return this.componentMetaData[t]},_v([Dt("agComponentUtils")],i.prototype,"agComponentUtils",void 0),_v([Ft],i.prototype,"postConstruct",null),_v([Pt("componentMetadataProvider")],i)}(Ai),xv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Mv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Fv={"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}},kv={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},Pv={},Dv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return xv(i,t),i.prototype.getSassVariable=function(t,i){var n="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),e=Fv[n][i],r=0;Pv[t]||(Pv[t]={});var o=Pv[t][i];if(null!=o)return o;if(kv[i]){var s=kv[i],u=document.createElement("div");u.classList.add(t),u.style.position="absolute";var h=s.reduce((function(t,i){var n=document.createElement("div");return n.style.position="static",n.classList.add(i),t.appendChild(n),n}),u);if(document.body){document.body.appendChild(u);var c=-1!==i.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(h)[c],10),document.body.removeChild(u)}}return Pv[t][i]=r||e,Pv[t][i]},i.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},i.prototype.chartMenuPanelWidth=function(){var t=this.getTheme().themeFamily;return this.getSassVariable(t,"chartMenuPanelWidth")},i.prototype.getTheme=function(){for(var t=/\bag-(material|(?:theme-([\w\-]*)))\b/g,i=this.eGridDiv,n=null,e=[];i;){if(n=t.exec(i.className)){var r=i.className.match(t);r&&(e=r);break}i=i.parentElement||void 0}if(!n)return{allThemes:e};var o=n[0];if(void 0===n[2]){var s=o.replace("ag-","ag-theme-");gt((function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+o+" with "+s+".")}),"using-old-theme")}return{theme:o,el:i,themeFamily:o.replace(/-dark$/,""),allThemes:e}},Mv([Dt("eGridDiv")],i.prototype,"eGridDiv",void 0),Mv([Pt("environment")],i)}(Ai),Iv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ev=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Tv=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.scrollY=0,i.uiBodyHeight=0,i}return Iv(i,t),i.prototype.agWire=function(t){this.logger=t.create("RowContainerHeightService")},i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,xi.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=mn(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},i.prototype.isStretching=function(){return this.stretching},i.prototype.getDivStretchOffset=function(){return this.divStretchOffset},i.prototype.updateOffset=function(){if(this.stretching){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,i=this.getUiBodyHeight();(t!==this.scrollY||i!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=i,this.calculateOffset())}},i.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var t=this.scrollY/this.maxScrollY,i=t*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+i+" ("+this.pixelsToShave+" * "+t+")"),this.setDivStretchOffset(i)},i.prototype.setUiContainerHeight=function(t){t!==this.uiContainerHeight&&(this.uiContainerHeight=t,this.eventService.dispatchEvent({type:xi.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},i.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},i.prototype.setDivStretchOffset=function(t){var i="number"==typeof t?Math.floor(t):null;this.divStretchOffset!==i&&(this.divStretchOffset=i,this.eventService.dispatchEvent({type:xi.EVENT_HEIGHT_SCALE_CHANGED}))},i.prototype.setModelHeight=function(t){this.modelHeight=t,this.stretching=null!=t&&this.maxDivHeight>0&&t>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},i.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},i.prototype.getRealPixelPosition=function(t){return t-this.divStretchOffset},i.prototype.getUiBodyHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return t.bottom-t.top},i.prototype.getScrollPositionForPixel=function(t){if(this.pixelsToShave<=0)return t;var i=this.modelHeight-this.getUiBodyHeight();return this.maxScrollY*(t/i)},Ev([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Ev([(n=0,e=Tt("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"agWire",null),Ev([Ft],i.prototype,"postConstruct",null),Ev([Pt("rowContainerHeightService")],i);var n,e}(Ai),zv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Nv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Lv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return zv(i,t),i.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},i.prototype.updateSelectableAfterGrouping=function(t){this.isRowSelectableFunc&&this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))},i.prototype.recurseDown=function(t,i){var n=this;t&&t.forEach((function(t){var e;t.group&&(t.hasChildren()&&n.recurseDown(i(t),i),e=n.groupSelectsChildren?$((i(t)||[]).find((function(t){return!0===t.selectable}))):!!n.isRowSelectableFunc&&n.isRowSelectableFunc(t),t.setRowSelectable(e))}))},Nv([Ft],i.prototype,"init",null),Nv([Pt("selectableService")],i)}(Ai),Bv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wv=function(t){function i(){var i=t.call(this)||this;return i.previousAndFirstButtonsDisabled=!1,i.nextButtonDisabled=!1,i.lastButtonDisabled=!1,i}return Bv(i,t),i.prototype.postConstruct=function(){var t=this,i=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",_r(i?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",_r(i?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",_r(i?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",_r(i?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,xi.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((function(i){var n=i.el,e=i.fn;t.addManagedListener(n,"click",e),t.addManagedListener(n,"keydown",(function(t){t.key!==xr.ENTER&&t.key!==xr.SPACE||(t.preventDefault(),e())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},i.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},i.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},i.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,i=this.paginationProxy.getCurrentPage();this.lbCurrent.innerHTML=this.formatNumber(t?i+1:0)},i.prototype.formatNumber=function(t){var i=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(i)return i({value:t});var n=this.gridOptionsWrapper.getLocaleTextFunc();return Pn(t,n("thousandSeparator",","),n("decimalSeparator","."))},i.prototype.getTemplate=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=t("page","Page"),n=t("to","to"),e=t("of","of"),r=t("firstPage","First Page"),o=t("previousPage","Previous Page"),s=t("nextPage","Next Page"),u=t("lastPage","Last Page"),h=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+h+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+h+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+h+'-to">'+n+'</span>\n <span id="ag-'+h+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+h+'-of">'+e+'</span>\n <span id="ag-'+h+'-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-paging-button" role="button" aria-label="'+r+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+o+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+h+'-start-page">'+i+'</span>\n <span id="ag-'+h+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+h+'-of-page">'+e+'</span>\n <span id="ag-'+h+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+u+'"></div>\n </span>\n </div>'},i.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},i.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},i.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},i.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var e=this.isZeroPagesToDisplay();this.nextButtonDisabled=i&&t===n-1||e,this.lastButtonDisabled=!i||e||t===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},i.prototype.toggleButtonDisabled=function(t,i){nr(t,i),t.classList.toggle("ag-disabled",i),i?t.removeAttribute("tabindex"):t.setAttribute("tabindex","0")},i.prototype.updateRowLabels=function(){var t,i,n=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?t=i=0:(i=(t=e*n+1)+e-1,r&&i>o&&(i=o)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.lbLastRowOnPage.innerHTML=this.rowNodeBlockLoader.isLoading()?"?":this.formatNumber(i)},i.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages();return t&&0===i},i.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages(),n=t?this.paginationProxy.getMasterRowCount():null;if(1===n){var e=this.paginationProxy.getRow(0);if(e&&e.group&&!e.groupData&&!e.aggData)return void this.setTotalLabelsToZero()}if(t)this.lbTotal.innerHTML=this.formatNumber(i),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},i.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Hv([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),Hv([Dt("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),Hv([no("btFirst")],i.prototype,"btFirst",void 0),Hv([no("btPrevious")],i.prototype,"btPrevious",void 0),Hv([no("btNext")],i.prototype,"btNext",void 0),Hv([no("btLast")],i.prototype,"btLast",void 0),Hv([no("lbRecordCount")],i.prototype,"lbRecordCount",void 0),Hv([no("lbFirstRowOnPage")],i.prototype,"lbFirstRowOnPage",void 0),Hv([no("lbLastRowOnPage")],i.prototype,"lbLastRowOnPage",void 0),Hv([no("lbCurrent")],i.prototype,"lbCurrent",void 0),Hv([no("lbTotal")],i.prototype,"lbTotal",void 0),Hv([Ft],i.prototype,"postConstruct",null),i}(io),Vv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Uv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows"}(gd||(gd={}));var Kv,$v=function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n.manuallyDisplayed=!1,n}return Vv(i,t),i.prototype.updateLayoutClasses=function(t,i){var n=this.eOverlayWrapper.classList;n.toggle(Uu.AUTO_HEIGHT,i.autoHeight),n.toggle(Uu.NORMAL,i.normal),n.toggle(Uu.PRINT,i.print)},i.prototype.postConstruct=function(){this.createManagedBean(new uh(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,xi.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},i.prototype.setWrapperTypeClass=function(t){var i=this.eOverlayWrapper.classList;i.toggle("ag-overlay-loading-wrapper",t===gd.Loading),i.toggle("ag-overlay-no-rows-wrapper",t===gd.NoRows)},i.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var t=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,gd.Loading)}},i.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var t=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,gd.NoRows)}},i.prototype.showOverlay=function(t,i){var n=this;this.inProgress||(this.setWrapperTypeClass(i),this.destroyActiveOverlay(),this.inProgress=!0,t&&t.then((function(t){n.inProgress=!1,n.eOverlayWrapper.appendChild(t.getGui()),n.activeOverlay=t,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},i.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),we(this.eOverlayWrapper))},i.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},i.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},i.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),i=this.gridOptionsWrapper.isSuppressNoRowsOverlay();t&&!i?this.showNoRowsOverlay():this.hideOverlay()},i.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},i.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},i.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',Uv([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),Uv([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),Uv([Dt("gridApi")],i.prototype,"gridApi",void 0),Uv([Dt("columnModel")],i.prototype,"columnModel",void 0),Uv([no("eOverlayWrapper")],i.prototype,"eOverlayWrapper",void 0),Uv([Ft],i.prototype,"postConstruct",null),i}(io),qv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yv=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Jv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return qv(i,t),i.prototype.getFirstRow=function(){var t,i=0;return this.pinnedRowModel.getPinnedTopRowCount()?t=Vt.PINNED_TOP:this.rowModel.getRowCount()?(t=null,i=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t=Vt.PINNED_BOTTOM),void 0===t?null:{rowIndex:i,rowPinned:t}},i.prototype.getLastRow=function(){var t,i=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),e=this.pinnedRowModel.getPinnedTopRowCount();return n?(i=Vt.PINNED_BOTTOM,t=n-1):this.rowModel.getRowCount()?(i=null,t=this.paginationProxy.getPageLastRow()):e&&(i=Vt.PINNED_TOP,t=e-1),void 0===t?null:{rowIndex:t,rowPinned:i}},i.prototype.getRowNode=function(t){switch(t.rowPinned){case Vt.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case Vt.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},i.prototype.sameRow=function(t,i){return!t&&!i||!(t&&!i||!t&&i)&&t.rowIndex===i.rowIndex&&t.rowPinned==i.rowPinned},i.prototype.before=function(t,i){switch(t.rowPinned){case Vt.PINNED_TOP:if(i.rowPinned!==Vt.PINNED_TOP)return!0;break;case Vt.PINNED_BOTTOM:if(i.rowPinned!==Vt.PINNED_BOTTOM)return!1;break;default:if($(i.rowPinned))return i.rowPinned!==Vt.PINNED_TOP}return t.rowIndex<i.rowIndex},i.prototype.rowMax=function(t){var i,n=this;return t.forEach((function(t){(void 0===i||n.before(i,t))&&(i=t)})),i},i.prototype.rowMin=function(t){var i,n=this;return t.forEach((function(t){(void 0===i||n.before(t,i))&&(i=t)})),i},Yv([Dt("rowModel")],i.prototype,"rowModel",void 0),Yv([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),Yv([Dt("paginationProxy")],i.prototype,"paginationProxy",void 0),Yv([Pt("rowPositionUtils")],i)}(Ai),Zv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xv=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Zv(i,t),i.prototype.createId=function(t){return this.createIdFromValues(t.rowIndex,t.column,t.rowPinned)},i.prototype.createIdFromValues=function(t,i,n){return t+"."+(null==n?"null":n)+"."+i.getId()},i.prototype.equals=function(t,i){return t.column===i.column&&t.rowPinned===i.rowPinned&&t.rowIndex===i.rowIndex},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("cellPositionUtils")],i)}(Ai),Qv=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),tp=function(t){this.cellValueChanges=t},ip=function(t){function i(i,n,e,r){var o=t.call(this,i)||this;return o.initialRange=n,o.finalRange=e,o.ranges=r,o}return Qv(i,t),i}(tp),np=function(){function t(i){this.actionStack=[],this.maxStackSize=i||t.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return t.prototype.pop=function(){return this.actionStack.pop()},t.prototype.push=function(t){t.cellValueChanges&&t.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},t.prototype.clear=function(){this.actionStack=[]},t.prototype.getCurrentStackSize=function(){return this.actionStack.length},t.DEFAULT_STACK_SIZE=10,t}(),ep=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rp=function(){return rp=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},rp.apply(this,arguments)},op=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},sp=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},up=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.cellValueChanges=[],i.activeCellEdit=null,i.activeRowEdit=null,i.isPasting=!1,i.isRangeInAction=!1,i.onCellValueChanged=function(t){var n={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},e=null!==i.activeCellEdit&&i.cellPositionUtils.equals(i.activeCellEdit,n),r=null!==i.activeRowEdit&&i.rowPositionUtils.sameRow(i.activeRowEdit,n);if(e||r||i.isPasting||i.isRangeInAction){var o=t.oldValue,s=t.value,u={rowPinned:t.rowPinned,rowIndex:t.rowIndex,columnId:t.column.getColId(),newValue:s,oldValue:o};i.cellValueChanges.push(u)}},i.clearStacks=function(){i.undoStack.clear(),i.redoStack.clear()},i}return ep(i,t),i.prototype.init=function(){var t=this;if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var i=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();i<=0||(this.undoStack=new np(i),this.redoStack=new np(i),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,xi.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,xi.EVENT_MODEL_UPDATED,(function(i){i.keepUndoRedoStack||t.clearStacks()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,xi.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})))}},i.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},i.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},i.prototype.undo=function(){if(this.undoStack){var t=this.undoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.oldValue})),t instanceof ip?this.processRange(t.ranges||[t.initialRange]):this.processCell(t.cellValueChanges),this.redoStack.push(t))}},i.prototype.redo=function(){if(this.redoStack){var t=this.redoStack.pop();t&&t.cellValueChanges&&(this.processAction(t,(function(t){return t.newValue})),t instanceof ip?this.processRange(t.ranges||[t.finalRange]):this.processCell(t.cellValueChanges),this.undoStack.push(t))}},i.prototype.processAction=function(t,i){var n=this;t.cellValueChanges.forEach((function(t){var e,r=t.columnId,o=n.getRowNode({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(o.displayed){var s=i(t),u="function"==typeof(null===(e=s)||void 0===e?void 0:e.toString)?s.toString():s;o.setDataValue(r,u)}}))},i.prototype.processRange=function(t){var i,n=this;this.rangeService.removeAllCellRanges(!0),t.forEach((function(e,r){if(e){var o=e.startRow,s=e.endRow;r===t.length-1&&(i={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:e.startColumn.getColId()},n.setLastFocusedCell(i)),n.rangeService.addCellRange({rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:e.startColumn,columns:e.columns})}}))},i.prototype.processCell=function(t){var i=t[0],n=this.getRowNode({rowIndex:i.rowIndex,rowPinned:i.rowPinned});this.setLastFocusedCell({rowPinned:i.rowPinned,rowIndex:n.rowIndex,columnId:i.columnId},!0)},i.prototype.setLastFocusedCell=function(t,i){var n=t.rowIndex,e=t.columnId,r=t.rowPinned,o=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getGridColumn(e);if(s){o.ensureIndexVisible(n),o.ensureColumnVisible(s);var u={rowIndex:n,column:s,rowPinned:r};this.focusService.setFocusedCell(rp(rp({},u),{forceBrowserFocus:!0})),i&&this.rangeService.setRangeToCell(u)}},i.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_ROW_EDITING_STARTED,(function(i){t.activeRowEdit={rowIndex:i.rowIndex,rowPinned:i.rowPinned}})),this.addManagedListener(this.eventService,xi.EVENT_ROW_EDITING_STOPPED,(function(){var i=new tp(t.cellValueChanges);t.pushActionsToUndoStack(i),t.activeRowEdit=null}))},i.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_CELL_EDITING_STARTED,(function(i){t.activeCellEdit={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned}})),this.addManagedListener(this.eventService,xi.EVENT_CELL_EDITING_STOPPED,(function(i){if(t.activeCellEdit=null,i.valueChanged&&!t.activeRowEdit&&!t.isPasting&&!t.isRangeInAction){var n=new tp(t.cellValueChanges);t.pushActionsToUndoStack(n)}}))},i.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,xi.EVENT_PASTE_END,(function(){var i=new tp(t.cellValueChanges);t.pushActionsToUndoStack(i),t.isPasting=!1}))},i.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_FILL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,xi.EVENT_FILL_END,(function(i){var n=new ip(t.cellValueChanges,i.initialRange,i.finalRange);t.pushActionsToUndoStack(n),t.isRangeInAction=!1}))},i.prototype.addCellKeyListeners=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,xi.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var i;i=t.rangeService&&t.gridOptionsWrapper.isEnableRangeSelection()?new ip(t.cellValueChanges,void 0,void 0,function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(sp(arguments[i]));return t}(t.rangeService.getCellRanges())):new tp(t.cellValueChanges),t.pushActionsToUndoStack(i),t.isRangeInAction=!1}))},i.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},i.prototype.getRowNode=function(t){switch(t.rowPinned){case Vt.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case Vt.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},op([Dt("focusService")],i.prototype,"focusService",void 0),op([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),op([Dt("rowModel")],i.prototype,"rowModel",void 0),op([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),op([Dt("cellPositionUtils")],i.prototype,"cellPositionUtils",void 0),op([Dt("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),op([Dt("columnModel")],i.prototype,"columnModel",void 0),op([It("rangeService")],i.prototype,"rangeService",void 0),op([Ft],i.prototype,"init",null),op([Pt("undoRedoService")],i)}(Ai),hp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),cp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ap=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return hp(i,t),i.prototype.findHeader=function(t,i){var n;if(n=t.column instanceof ui?this.columnModel["getDisplayedGroup"+i](t.column):this.columnModel["getDisplayedCol"+i](t.column))return{column:n,headerRowIndex:t.headerRowIndex}},i.prototype.findColAtEdgeForHeaderRow=function(t,i){var n=this.columnModel.getAllDisplayedColumns(),e=n["start"===i?0:n.length-1];if(e){var r=this.ctrlsService.getHeaderRowContainerCtrl(e.getPinned()).getRowType(t);return r==Rc.COLUMN_GROUP?{headerRowIndex:t,column:this.columnModel.getColumnGroupAtLevel(e,t)}:{headerRowIndex:null==r?-1:t,column:e}}},cp([Dt("columnModel")],i.prototype,"columnModel",void 0),cp([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),cp([Pt("headerPositionUtils")],i)}(Ai),lp=function(){function t(){}return t.prototype.buildColumnDefs=function(t,i,n){var e=this,r=[],o={};return t.forEach((function(t){for(var s=!0,u=e.createDefFromColumn(t,i,n),h=t.getOriginalParent();h;){var c=null;if(h.isPadding())h=h.getOriginalParent();else{var a=o[h.getGroupId()];if(a){a.children.push(u),s=!1;break}(c=e.createDefFromGroup(h))&&(c.children=[u],o[c.groupId]=c,u=c,h=h.getOriginalParent())}}s&&r.push(u)})),r},t.prototype.createDefFromGroup=function(t){var i=rt(t.getColGroupDef(),["children"]);return i&&(i.groupId=t.getGroupId()),i},t.prototype.createDefFromColumn=function(t,i,n){var e=rt(t.getColDef());return e.colId=t.getColId(),e.width=t.getActualWidth(),e.rowGroup=t.isRowGroupActive(),e.rowGroupIndex=t.isRowGroupActive()?i.indexOf(t):null,e.pivot=t.isPivotActive(),e.pivotIndex=t.isPivotActive()?n.indexOf(t):null,e.aggFunc=t.isValueActive()?t.getAggFunc():null,e.hide=!t.isVisible()||void 0,e.pinned=t.isPinned()?t.getPinned():null,e.sort=t.getSort()?t.getSort():null,e.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,e},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("columnDefFactory")],t)}(),fp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},dp=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var i=[];return $(t.extraCssClass)&&i.push(t.extraCssClass),i.push("ag-row"),i.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&i.push("ag-opacity-zero"),i.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&i.push("ag-row-pinned"),t.rowNode.isSelected()&&i.push("ag-row-selected"),t.rowNode.footer&&i.push("ag-row-footer"),i.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&i.push("ag-row-loading"),t.fullWidthRow&&i.push("ag-full-width-row"),t.expandable&&(i.push("ag-row-group"),i.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&i.push("ag-row-dragging"),oi(i,this.processClassesFromGridOptions(t.rowNode)),oi(i,this.preProcessRowClassRules(t.rowNode)),i.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&i.push("ag-row-first"),t.lastRowOnPage&&i.push("ag-row-last"),t.fullWidthRow&&(t.pinned===Vt.PINNED_LEFT&&i.push("ag-cell-last-left-pinned"),t.pinned===Vt.PINNED_RIGHT&&i.push("ag-cell-first-right-pinned")),i},t.prototype.processClassesFromGridOptions=function(t){var i=[],n=function(t){"string"==typeof t?i.push(t):Array.isArray(t)&&t.forEach((function(t){return i.push(t)}))},e=this.gridOptionsWrapper.getRowClass();if(e){if("function"==typeof e)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(e)}var r=this.gridOptionsWrapper.getRowClassFunc();return r&&n(r({data:t.data,node:t,rowIndex:t.rowIndex})),i},t.prototype.preProcessRowClassRules=function(t){var i=[];return this.processRowClassRules(t,(function(t){i.push(t)}),(function(){})),i},t.prototype.processRowClassRules=function(t,i,n){var e={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),e,i,n)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},fp([Dt("stylingService")],t.prototype,"stylingService",void 0),fp([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),fp([Pt("rowCssClassCalculator")],t)}(),vp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},pp=function(){function t(){}return t.prototype.doFullSort=function(t,i){var n=t.map((function(t,i){return{currentPos:i,rowNode:t}}));return n.sort(this.compareRowNodes.bind(this,i)),n.map((function(t){return t.rowNode}))},t.prototype.compareRowNodes=function(t,i,n){for(var e=i.rowNode,r=n.rowNode,o=0,s=t.length;o<s;o++){var u,h=t[o],c=h.sort===Vt.SORT_DESC,a=this.getValue(e,h.column),l=this.getValue(r,h.column),f=this.getComparator(h,e);if(u=f?f(a,l,e,r,c):Wr.defaultComparator(a,l,this.gridOptionsWrapper.isAccentedSort()),!isNaN(u)&&0!==u)return h.sort===Vt.SORT_ASC?u:-1*u}return i.currentPos-n.currentPos},t.prototype.getComparator=function(t,i){var n=t.column,e=n.getColDef().comparator;if(null!=e)return e;if(n.getColDef().showRowGroup){var r=!i.group&&n.getColDef().field;if(r){var o=this.columnModel.getPrimaryColumn(r);if(o)return o.getColDef().comparator}}},t.prototype.getValue=function(t,i){var n,e;if(!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup())return this.valueService.getValue(i,t,!1,!1);if(t.rowGroupColumn===i){if(this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(i.getColDef().keyCreator)return t.key;var r=null===(n=t.allLeafChildren)||void 0===n?void 0:n[0];return r?this.valueService.getValue(i,r,!1,!1):void 0}var o=this.columnModel.getGroupDisplayColumnForGroup(i.getId());if(!o)return;return null===(e=t.groupData)||void 0===e?void 0:e[o.getId()]}return t.group&&i.getColDef().showRowGroup?void 0:this.valueService.getValue(i,t,!1,!1)},vp([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),vp([Dt("valueService")],t.prototype,"valueService",void 0),vp([Dt("columnModel")],t.prototype,"columnModel",void 0),vp([Pt("rowNodeSorter")],t)}(),gp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mp=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.ready=!1,i.readyCallbacks=[],i}var n;return gp(i,t),n=i,i.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var t=this.createReadyParams();this.readyCallbacks.forEach((function(i){return i(t)})),this.readyCallbacks.length=0}},i.prototype.whenReady=function(t){this.ready?t(this.createReadyParams()):this.readyCallbacks.push(t)},i.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},i.prototype.registerFakeHScrollCtrl=function(t){this.fakeHScrollCtrl=t,this.checkReady()},i.prototype.registerGridHeaderCtrl=function(t){this.gridHeaderCtrl=t,this.checkReady()},i.prototype.registerCenterRowContainerCtrl=function(t){this.centerRowContainerCtrl=t,this.checkReady()},i.prototype.registerLeftRowContainerCtrl=function(t){this.leftRowContainerCtrl=t,this.checkReady()},i.prototype.registerRightRowContainerCtrl=function(t){this.rightRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopCenterRowContainerCtrl=function(t){this.topCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopLeftRowContainerCon=function(t){this.topLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerTopRightRowContainerCtrl=function(t){this.topRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopCenterRowContainerCtrl=function(t){this.stickyTopCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopLeftRowContainerCon=function(t){this.stickyTopLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerStickyTopRightRowContainerCtrl=function(t){this.stickyTopRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomCenterRowContainerCtrl=function(t){this.bottomCenterRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomLeftRowContainerCtrl=function(t){this.bottomLeftRowContainerCtrl=t,this.checkReady()},i.prototype.registerBottomRightRowContainerCtrl=function(t){this.bottomRightRowContainerCtrl=t,this.checkReady()},i.prototype.registerHeaderContainer=function(t,i){switch(i){case Vt.PINNED_LEFT:this.leftHeaderRowContainerCtrl=t;break;case Vt.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=t;break;default:this.centerHeaderRowContainerCtrl=t}this.checkReady()},i.prototype.registerGridBodyCtrl=function(t){this.gridBodyCtrl=t,this.checkReady()},i.prototype.registerGridCtrl=function(t){this.gridCtrl=t,this.checkReady()},i.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},i.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},i.prototype.getGridCtrl=function(){return this.gridCtrl},i.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},i.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},i.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},i.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},i.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},i.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},i.prototype.getHeaderRowContainerCtrl=function(t){switch(t){case Vt.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case Vt.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},i.NAME="ctrlsService",function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt(n.NAME)],i)}(Ai),bp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),wp=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.registry={},i}return bp(i,t),i.prototype.register=function(t){this.registry[t.controllerName]=t.controllerClass},i.prototype.getInstance=function(t){var i=this.registry[t];if(null!=i)return new i},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("ctrlsFactory")],i)}(Ai),yp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Sp=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return yp(i,t),i.prototype.setComp=function(t,i,n,e){this.view=t,this.eViewport=n,this.eContainer=e,this.eGui=i,this.addManagedListener(this.eventService,xi.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this));var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_DOM_LAYOUT,r),this.addManagedListener(this.eventService,xi.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.onScrollVisibilityChanged(),this.ctrlsService.registerFakeHScrollCtrl(this),this.view.addOrRemoveCssClass("ag-apple-scrollbar",dn()||vn())},i.prototype.addActiveListenerToggles=function(){var t=this;["mouseenter","mousedown","touchstart"].forEach((function(i){return t.addManagedListener(t.eGui,i,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","touchend"].forEach((function(i){return t.addManagedListener(t.eGui,i,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},i.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=yn(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles(),this.refreshCompBottom()))},i.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},i.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var t=this.pinnedRowModel.getPinnedBottomTotalHeight();this.view.setBottom(t)}},i.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},i.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_BODY_SCROLL,(function(i){"horizontal"===i.direction&&t.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,xi.EVENT_BODY_SCROLL_END,(function(){return t.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},i.prototype.setFakeHScrollSpacerWidths=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),i=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&t,e=this.gridOptionsWrapper.getScrollbarWidth();n&&(i+=e),this.view.setRightSpacerFixedWidth(i),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",i<=e);var r=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&t&&(r+=e),this.view.setLeftSpacerFixedWidth(r),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",r<=e)},i.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isHorizontalScrollShowing(),i=this.invisibleScrollbar,n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),e=t&&this.gridOptionsWrapper.getScrollbarWidth()||0,r=n?0:0===e&&i?15:e;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",i),this.view.setHeight(r),this.view.setViewportHeight(r),this.view.setContainerHeight(r),this.view.addOrRemoveCssClass("ag-hidden",!t)},i.prototype.getViewport=function(){return this.eViewport},i.prototype.getContainer=function(){return this.eContainer},Cp([Dt("scrollVisibleService")],i.prototype,"scrollVisibleService",void 0),Cp([Dt("columnModel")],i.prototype,"columnModel",void 0),Cp([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Cp([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),i}(Ai),Rp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Op=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ap=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return Rp(i,t),i.prototype.postConstruct=function(){var t=this,i={addOrRemoveCssClass:function(i,n){return t.addOrRemoveCssClass(i,n)},setHeight:function(i){return Pe(t.getGui(),i)},setBottom:function(i){return t.getGui().style.bottom=i+"px"},setContainerHeight:function(i){return Pe(t.eContainer,i)},setViewportHeight:function(i){return Pe(t.eViewport,i)},setRightSpacerFixedWidth:function(i){return ke(t.eRightSpacer,i)},setLeftSpacerFixedWidth:function(i){return ke(t.eLeftSpacer,i)},includeLeftSpacerScrollerCss:function(i,n){return t.eLeftSpacer.classList.toggle(i,n)},includeRightSpacerScrollerCss:function(i,n){return t.eRightSpacer.classList.toggle(i,n)}};this.createManagedBean(new Sp).setComp(i,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new wc((function(i){return t.eContainer.style.width=i+"px"})))},i.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>',Op([no("eLeftSpacer")],i.prototype,"eLeftSpacer",void 0),Op([no("eRightSpacer")],i.prototype,"eRightSpacer",void 0),Op([no("eViewport")],i.prototype,"eViewport",void 0),Op([no("eContainer")],i.prototype,"eContainer",void 0),Op([Ft],i.prototype,"postConstruct",null),i}(io),jp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_p=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gp=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return jp(i,t),i.prototype.postConstruct=function(){var t=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,xi.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedListener(this.gridOptionsWrapper,Wn.PROP_DOM_LAYOUT,t)},i.prototype.checkContainerWidths=function(){var t=this.gridOptionsWrapper.getDomLayout()===Vt.DOM_LAYOUT_PRINT,i=t?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=t?0:this.columnModel.getDisplayedColumnsRightWidth();i!=this.leftWidth&&(this.leftWidth=i,this.eventService.dispatchEvent({type:xi.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:xi.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},i.prototype.getPinnedRightWidth=function(){return this.rightWidth},i.prototype.getPinnedLeftWidth=function(){return this.leftWidth},_p([Dt("columnModel")],i.prototype,"columnModel",void 0),_p([Ft],i.prototype,"postConstruct",null),_p([Pt("pinnedWidthService")],i)}(Ai),xp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Mp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Fp=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.events=[],i}return xp(i,t),i.prototype.postConstruct=function(){this.rowModel.getType()==Vt.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},i.prototype.dispatchExpanded=function(t){var i=this;null!=this.clientSideRowModel?(this.events.push(t),null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){i.clientSideRowModel&&i.clientSideRowModel.onRowGroupOpened(),i.events.forEach((function(t){return i.eventService.dispatchEvent(t)})),i.events=[]}))),this.dispatchExpandedDebounced()):this.eventService.dispatchEvent(t)},Mp([Dt("animationFrameService")],i.prototype,"animationFrameService",void 0),Mp([Dt("rowModel")],i.prototype,"rowModel",void 0),Mp([Ft],i.prototype,"postConstruct",null),Mp([Pt("rowNodeEventThrottle")],i)}(Ai),kp=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Pp=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(kp(arguments[i]));return t},Dp=function(){function t(t,i,n){i?(this.gridOptions=i,(new Ip).create(t,i,(function(i){var n=new tv(t);i.createBean(n)}),void 0,n)):console.error("AG Grid: no gridOptions provided to the grid")}return t.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},t}(),Ip=function(){function t(){}return t.prototype.create=function(t,i,n,e,r){var o=this,s=!!i.debug,u=this.getRegisteredModules(r),h=this.createBeansList(i.rowModelType,u),c=this.createProvidedBeans(t,i,r);if(h){var a={providedBeanInstances:c,beanClasses:h,debug:s},l=new qd("AG Grid",(function(){return i.debug})),f=new qd("Context",(function(){return a.debug})),d=new xt(a,f),v=d.getBean("beans");this.registerModuleUserComponents(v,u),this.registerStackComponents(v,u),this.registerControllers(v,u),n(d),v.ctrlsService.whenReady((function(){o.setColumnsAndData(v),o.dispatchGridReadyEvent(v);var t=Ut.isRegistered(Nt.EnterpriseCoreModule);l.log("initialised successfully, enterprise = "+t)})),e&&e(d)}},t.prototype.registerControllers=function(t,i){i.forEach((function(i){i.controllers&&i.controllers.forEach((function(i){return t.ctrlsFactory.register(i)}))}))},t.prototype.registerStackComponents=function(t,i){var n=this.createAgStackComponentsList(i);t.agStackComponentsRegistry.setupComponents(n)},t.prototype.getRegisteredModules=function(t){var i=t?t.modules:null,n=Ut.getRegisteredModules(),e=[],r={};function o(t,i){var n;r[(n=i).moduleName]||(r[n.moduleName]=!0,e.push(n),Ut.register(n,t)),i.dependantModules&&i.dependantModules.forEach(o.bind(null,t))}return i&&i.forEach(o.bind(null,!0)),n&&n.forEach(o.bind(null,!Ut.isPackageBased())),e},t.prototype.registerModuleUserComponents=function(t,i){this.extractModuleEntity(i,(function(t){return t.userComponents?t.userComponents:[]})).forEach((function(i){t.userComponentRegistry.registerDefaultComponent(i.componentName,i.componentClass)}))},t.prototype.createProvidedBeans=function(t,i,n){var e=n?n.frameworkOverrides:null;q(e)&&(e=new Od);var r={gridOptions:i,eGridDiv:t,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:e};return n&&n.providedBeanInstances&&Object.assign(r,n.providedBeanInstances),r},t.prototype.createAgStackComponentsList=function(t){var i=[{componentName:"AgCheckbox",componentClass:Ta},{componentName:"AgRadioButton",componentClass:mf},{componentName:"AgToggleButton",componentClass:wf},{componentName:"AgInputTextField",componentClass:Cf},{componentName:"AgInputTextArea",componentClass:Rf},{componentName:"AgInputNumberField",componentClass:Af},{componentName:"AgInputRange",componentClass:_f},{componentName:"AgSelect",componentClass:Fo},{componentName:"AgSlider",componentClass:Mf},{componentName:"AgAngleSelect",componentClass:Pf},{componentName:"AgColorPicker",componentClass:Vf},{componentName:"AgGridBody",componentClass:Fc},{componentName:"AgHeaderRoot",componentClass:ml},{componentName:"AgSortIndicator",componentClass:gs},{componentName:"AgPagination",componentClass:Wv},{componentName:"AgOverlayWrapper",componentClass:$v},{componentName:"AgGroupComponent",componentClass:$f},{componentName:"AgPanel",componentClass:Nf},{componentName:"AgDialog",componentClass:Hf},{componentName:"AgRowContainer",componentClass:Zc},{componentName:"AgFakeHorizontalScroll",componentClass:Ap}],n=this.extractModuleEntity(t,(function(t){return t.agStackComponents?t.agStackComponents:[]}));return i.concat(n)},t.prototype.createBeansList=function(t,i){var n=this.getRowModelClass(t,i);if(n){var e=[n,Ih,Jv,Xv,ap,gv,Oa,Ru,Av,Gv,Gl,Vu,Tv,yl,nf,qu,Qn,Wt,Wn,bd,Dd,Xu,Yn,fl,ff,ql,Hd,Gi,Vd,Fd,Bc,wv,Nd,$d,Zn,Nl,Rl,Xs,Ed,fd,Tc,Dv,Gd,Xl,pf,Dc,ov,uv,av,Lv,dv,Sv,Fl,up,ie,lp,dp,cf,pp,mp,Gp,Fp,wp],r=this.extractModuleEntity(i,(function(t){return t.beans?t.beans:[]}));e.push.apply(e,Pp(r));var o=[];return e.forEach((function(t){o.indexOf(t)<0&&o.push(t)})),o}},t.prototype.extractModuleEntity=function(t,i){return[].concat.apply([],Pp(t.map(i)))},t.prototype.setColumnsAndData=function(t){var i=t.gridOptionsWrapper.getColumnDefs();t.columnModel.setColumnDefs(i||[],"gridInitializing"),t.rowModel.start()},t.prototype.dispatchGridReadyEvent=function(t){t.eventService.dispatchEvent({type:xi.EVENT_GRID_READY})},t.prototype.getRowModelClass=function(t,i){t||(t=Vt.ROW_MODEL_TYPE_CLIENT_SIDE);var n={};i.forEach((function(t){nt(t.rowModels,(function(t,i){n[t]=i}))}));var e=n[t];if($(e))return e;Ut.isPackageBased()?[Vt.ROW_MODEL_TYPE_VIEWPORT,Vt.ROW_MODEL_TYPE_SERVER_SIDE].includes(t)?console.error('AG Grid: Row Model "'+t+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+t):t===Vt.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+Nt.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===Vt.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+Nt.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===Vt.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+Nt.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):t===Vt.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+Nt.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+t)},t}();
297
+ /**
298
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
299
+ * @version v28.2.1
300
+ * @link https://www.ag-grid.com/
301
+ * @license MIT
302
+ */!function(t){t.InsideBase="insideBase",t.InsideEnd="insideEnd",t.Center="center",t.OutsideEnd="outsideEnd"}(Kv||(Kv={}));
303
+ /**
304
+ * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
305
+ * @version v28.2.1
306
+ * @link https://www.ag-grid.com/
307
+ * @license MIT
308
+ */
309
+ var Ep="undefined"==typeof global?{}:global;Ep.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Ep.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Ep.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Ep.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Ep.Node="undefined"==typeof Node?{}:Node,Ep.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var Tp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Np=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.watermarkMessage=void 0,i}var n;return Tp(i,t),n=i,i.prototype.validateLicense=function(){if(Wr.missingOrEmpty(n.licenseKey))this.outputMissingLicenseKey();else if(n.licenseKey.length>32){var t=n.extractLicenseComponents(n.licenseKey),i=t.license,e=t.version,r=t.isTrial;t.md5===this.md5.md5(i)?Wr.exists(e)&&e?this.validateLicenseKeyForVersion(e,!!r,i):this.validateLegacyKey(i):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey()},i.extractExpiry=function(t){var i=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(n.decode(i),10))},i.extractLicenseComponents=function(t){var i=t.replace(/[\u200B-\u200D\uFEFF]/g,""),e=(i=i.replace(/\r?\n|\r/g,"")).length-32,r=i.substring(e),o=i.substring(0,e),s=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}(n.extractBracketedInformation(i),2);return{md5:r,license:o,version:s[0],isTrial:s[1]}},i.prototype.getLicenseDetails=function(t){var i=n.extractLicenseComponents(t),e=i.license,r=i.version,o=i.isTrial,s=i.md5===this.md5.md5(e),u=null;return s&&(u=n.extractExpiry(e),s=!isNaN(u.getTime())),{licenseKey:t,valid:s,expiry:s?n.formatDate(u):null,version:r||"legacy",isTrial:o}},i.prototype.isDisplayWatermark=function(){return!Wr.missingOrEmpty(this.watermarkMessage)},i.prototype.getWatermarkMessage=function(){return this.watermarkMessage||""},i.formatDate=function(t){var i=t.getDate(),n=t.getMonth(),e=t.getFullYear();return i+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][n]+" "+e},i.getGridReleaseDate=function(){return new Date(parseInt(n.decode(n.RELEASE_INFORMATION),10))},i.decode=function(t){for(var i,e,r,o,s,u,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",a=0,l=t.replace(/[^A-Za-z0-9+/=]/g,"");a<l.length;)r=h.indexOf(l.charAt(a++)),i=(15&(o=h.indexOf(l.charAt(a++))))<<4|(s=h.indexOf(l.charAt(a++)))>>2,e=(3&s)<<6|(u=h.indexOf(l.charAt(a++))),c+=String.fromCharCode(r<<2|o>>4),64!=s&&(c+=String.fromCharCode(i)),64!=u&&(c+=String.fromCharCode(e));return n.utf8_decode(c)},i.utf8_decode=function(t){t=t.replace(/rn/g,"n");for(var i="",n=0;n<t.length;n++){var e=t.charCodeAt(n);e<128?i+=String.fromCharCode(e):e>127&&e<2048?(i+=String.fromCharCode(e>>6|192),i+=String.fromCharCode(63&e|128)):(i+=String.fromCharCode(e>>12|224),i+=String.fromCharCode(e>>6&63|128),i+=String.fromCharCode(63&e|128))}return i},i.setLicenseKey=function(t){n.licenseKey=t},i.extractBracketedInformation=function(t){var i=t.split("[").filter((function(t){return t.indexOf("]")>-1})).map((function(t){return t.split("]")[0]}));if(!i||0===i.length)return[null,null];var n=1===i.filter((function(t){return"TRIAL"===t})).length;return[i.filter((function(t){return 0===t.indexOf("v")})).map((function(t){return t.replace(/^v/,"")}))[0],n]},i.prototype.validateLicenseKeyForVersion=function(t,i,n){"2"===t&&(i?this.validateForTrial(n):this.validateLegacyKey(n))},i.prototype.validateLegacyKey=function(t){var i=n.getGridReleaseDate(),e=n.extractExpiry(t),r=!1,o=!1;if(isNaN(e.getTime())||(r=!0,o=i<e),r){if(!o){var s=n.formatDate(e),u=n.formatDate(i);this.outputIncompatibleVersion(s,u)}}else this.outputInvalidLicenseKey()},i.prototype.validateForTrial=function(t){var i=n.extractExpiry(t),e=new Date,r=!1,o=!1;if(isNaN(i.getTime())||(r=!0,o=i>e),r){if(!o){var s=n.formatDate(i);this.outputExpiredTrialKey(s)}}else this.outputInvalidLicenseKey()},i.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},i.prototype.outputExpiredTrialKey=function(t){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("***************************************** Trial Period Expired. *******************************************"),console.error("* Your license for AG Grid Enterprise expired on "+t+". *"),console.error("* Please email info@ag-grid.com to purchase a license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},i.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All AG Grid Enterprise features are unlocked. *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production. *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},i.prototype.outputIncompatibleVersion=function(t,i){console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),console.error("* AG Grid Enterprise License *"),console.error("* License not compatible with installed version of AG Grid Enterprise. *"),console.error("* *"),console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *"),console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *"),console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *"),console.error("* license end date. The license key that you have expires on "+t+", however the version of AG Grid you *"),console.error("* are trying to use was released on "+i+". *"),console.error("* *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this *"),console.error("* version of AG Grid. *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="License Expired"},i.RELEASE_INFORMATION="MTY2NzI0NjAxNTYyNw==",zp([Dt("md5")],i.prototype,"md5",void 0),zp([Mt],i.prototype,"validateLicense",null),n=zp([Pt("licenseManager")],i)}(Ai),Lp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Bp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Hp=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.ieCompatibility=!1,i}return Lp(i,t),i.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},i.prototype.md5cycle=function(t,i){var n=t[0],e=t[1],r=t[2],o=t[3];n=this.ff(n,e,r,o,i[0],7,-680876936),o=this.ff(o,n,e,r,i[1],12,-389564586),r=this.ff(r,o,n,e,i[2],17,606105819),e=this.ff(e,r,o,n,i[3],22,-1044525330),n=this.ff(n,e,r,o,i[4],7,-176418897),o=this.ff(o,n,e,r,i[5],12,1200080426),r=this.ff(r,o,n,e,i[6],17,-1473231341),e=this.ff(e,r,o,n,i[7],22,-45705983),n=this.ff(n,e,r,o,i[8],7,1770035416),o=this.ff(o,n,e,r,i[9],12,-1958414417),r=this.ff(r,o,n,e,i[10],17,-42063),e=this.ff(e,r,o,n,i[11],22,-1990404162),n=this.ff(n,e,r,o,i[12],7,1804603682),o=this.ff(o,n,e,r,i[13],12,-40341101),r=this.ff(r,o,n,e,i[14],17,-1502002290),e=this.ff(e,r,o,n,i[15],22,1236535329),n=this.gg(n,e,r,o,i[1],5,-165796510),o=this.gg(o,n,e,r,i[6],9,-1069501632),r=this.gg(r,o,n,e,i[11],14,643717713),e=this.gg(e,r,o,n,i[0],20,-373897302),n=this.gg(n,e,r,o,i[5],5,-701558691),o=this.gg(o,n,e,r,i[10],9,38016083),r=this.gg(r,o,n,e,i[15],14,-660478335),e=this.gg(e,r,o,n,i[4],20,-405537848),n=this.gg(n,e,r,o,i[9],5,568446438),o=this.gg(o,n,e,r,i[14],9,-1019803690),r=this.gg(r,o,n,e,i[3],14,-187363961),e=this.gg(e,r,o,n,i[8],20,1163531501),n=this.gg(n,e,r,o,i[13],5,-1444681467),o=this.gg(o,n,e,r,i[2],9,-51403784),r=this.gg(r,o,n,e,i[7],14,1735328473),e=this.gg(e,r,o,n,i[12],20,-1926607734),n=this.hh(n,e,r,o,i[5],4,-378558),o=this.hh(o,n,e,r,i[8],11,-2022574463),r=this.hh(r,o,n,e,i[11],16,1839030562),e=this.hh(e,r,o,n,i[14],23,-35309556),n=this.hh(n,e,r,o,i[1],4,-1530992060),o=this.hh(o,n,e,r,i[4],11,1272893353),r=this.hh(r,o,n,e,i[7],16,-155497632),e=this.hh(e,r,o,n,i[10],23,-1094730640),n=this.hh(n,e,r,o,i[13],4,681279174),o=this.hh(o,n,e,r,i[0],11,-358537222),r=this.hh(r,o,n,e,i[3],16,-722521979),e=this.hh(e,r,o,n,i[6],23,76029189),n=this.hh(n,e,r,o,i[9],4,-640364487),o=this.hh(o,n,e,r,i[12],11,-421815835),r=this.hh(r,o,n,e,i[15],16,530742520),e=this.hh(e,r,o,n,i[2],23,-995338651),n=this.ii(n,e,r,o,i[0],6,-198630844),o=this.ii(o,n,e,r,i[7],10,1126891415),r=this.ii(r,o,n,e,i[14],15,-1416354905),e=this.ii(e,r,o,n,i[5],21,-57434055),n=this.ii(n,e,r,o,i[12],6,1700485571),o=this.ii(o,n,e,r,i[3],10,-1894986606),r=this.ii(r,o,n,e,i[10],15,-1051523),e=this.ii(e,r,o,n,i[1],21,-2054922799),n=this.ii(n,e,r,o,i[8],6,1873313359),o=this.ii(o,n,e,r,i[15],10,-30611744),r=this.ii(r,o,n,e,i[6],15,-1560198380),e=this.ii(e,r,o,n,i[13],21,1309151649),n=this.ii(n,e,r,o,i[4],6,-145523070),o=this.ii(o,n,e,r,i[11],10,-1120210379),r=this.ii(r,o,n,e,i[2],15,718787259),e=this.ii(e,r,o,n,i[9],21,-343485551),t[0]=this.add32(n,t[0]),t[1]=this.add32(e,t[1]),t[2]=this.add32(r,t[2]),t[3]=this.add32(o,t[3])},i.prototype.cmn=function(t,i,n,e,r,o){return i=this.add32(this.add32(i,t),this.add32(e,o)),this.add32(i<<r|i>>>32-r,n)},i.prototype.ff=function(t,i,n,e,r,o,s){return this.cmn(i&n|~i&e,t,i,r,o,s)},i.prototype.gg=function(t,i,n,e,r,o,s){return this.cmn(i&e|n&~e,t,i,r,o,s)},i.prototype.hh=function(t,i,n,e,r,o,s){return this.cmn(i^n^e,t,i,r,o,s)},i.prototype.ii=function(t,i,n,e,r,o,s){return this.cmn(n^(i|~e),t,i,r,o,s)},i.prototype.md51=function(t){var i,n=t.length,e=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=t.length;i+=64)this.md5cycle(e,this.md5blk(t.substring(i-64,i)));t=t.substring(i-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<t.length;i++)r[i>>2]|=t.charCodeAt(i)<<(i%4<<3);if(r[i>>2]|=128<<(i%4<<3),i>55)for(this.md5cycle(e,r),i=0;i<16;i++)r[i]=0;return r[14]=8*n,this.md5cycle(e,r),e},i.prototype.md5blk=function(t){for(var i=[],n=0;n<64;n+=4)i[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return i},i.prototype.rhex=function(t){for(var i="0123456789abcdef".split(""),n="",e=0;e<4;e++)n+=i[t>>8*e+4&15]+i[t>>8*e&15];return n},i.prototype.hex=function(t){for(var i=0;i<t.length;i++)t[i]=this.rhex(t[i]);return t.join("")},i.prototype.md5=function(t){return this.hex(this.md51(t))},i.prototype.add32=function(t,i){return this.ieCompatibility?this.add32Compat(t,i):this.add32Std(t,i)},i.prototype.add32Std=function(t,i){return t+i&4294967295},i.prototype.add32Compat=function(t,i){var n=(65535&t)+(65535&i);return(t>>16)+(i>>16)+(n>>16)<<16|65535&n},Bp([Ft],i.prototype,"init",null),Bp([Pt("md5")],i)}(Ai),Wp=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vp=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Up=function(t){function i(){return t.call(this,'<div class="ag-watermark">\n <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n </div>')||this}return Wp(i,t),i.prototype.postConstruct=function(){var t=this,i=this.shouldDisplayWatermark();this.addOrRemoveCssClass("ag-hidden",!i),i&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout((function(){return t.addCssClass("ag-opacity-zero")}),0),window.setTimeout((function(){return t.addCssClass("ag-hidden")}),5e3))},i.prototype.shouldDisplayWatermark=function(){var t=(this.gridOptionsWrapper.getDocument().defaultView||window).location,i=t.hostname,n=void 0===i?"":i,e=t.pathname,r=this.licenseManager.isDisplayWatermark(),o=null!=n.match("^(?:127.0.0.1|localhost|(?:w+.)?ag-grid.com)$");return!!e&&-1!==e.indexOf("forceWatermark")||r&&!o},Vp([Dt("licenseManager")],i.prototype,"licenseManager",void 0),Vp([no("eLicenseTextRef")],i.prototype,"eLicenseTextRef",void 0),Vp([Ft],i.prototype,"postConstruct",null),i}(io),Kp={moduleName:Nt.EnterpriseCoreModule,beans:[Np,Hp],agStackComponents:[{componentName:"AgWatermark",componentClass:Up}]};class $p{constructor(t){this._controller=t}clearColumnFilter(t){var i;return null!==(i=t.filter((t=>!t.name.startsWith(L))))&&void 0!==i?i:[]}interceptAction(t){var i;return t.type===o.LOADING_DATA&&B!==t.payload.source&&s.CHANGING_PAGE_LOADING_SOURCE!==t.payload.source&&(t.payload.filters=void 0!==(null===(i=t.payload)||void 0===i?void 0:i.filters)?this.clearColumnFilter(t.payload.filters):t.payload.filters,this._controller.clearFilter()),t}}class qp{handleDataSaved(t){this._options&&this._options.onPaginationUpdate(this._dataUnit.getPaginationInfo()),this._controller.clearInvalidCells(),this.handleRefreshOrReload(t),this._controller.processContinuousInsert(),this._controller.showSelectionColumn()}handleEditionCanceled(t){this._options.enableGridInsert&&this._controller.processEditionCanceled(),this.handleRefreshOrReload(t),this._controller.showSelectionColumn()}handleSavingCanceled(t){var i,n,e,r;(null===(i=t.payload)||void 0===i?void 0:i.fields)&&(null===(n=t.payload)||void 0===n?void 0:n.recordId)&&this._controller.savingCanceled(null===(e=t.payload)||void 0===e?void 0:e.fields,null===(r=t.payload)||void 0===r?void 0:r.recordId)}handleDataChanged(t){this._options.enableGridInsert?this.updateGridRowNodes(this.createRecordIdList(t)):this.handleRefresh(t)}createRecordIdList(t){var i,n;return(null===(i=t.payload)||void 0===i?void 0:i.records)?null===(n=t.payload)||void 0===n?void 0:n.records:this._dataUnit.getSelectedRecord()?[this._dataUnit.getSelectedRecord().__record__id__]:[]}updateGridRowNodes(t){const i=null==t?void 0:t.map((t=>this.getRecordById(t)));this._controller.updateRows(i)}getRecordById(t){return this._dataUnit.records.find((i=>i.__record__id__===t))}handleRefreshOrReload(t){this._dataUnit.isWaitingToReload()?this.handleReload():this.handleRefresh(t)}handleReload(){this._dataUnit.setWaitingToReload(!1),this._dataUnit.gotoPage(0)}handleRefresh(t){this.isSilentChange(t)||this._controller.refresh(t.type===o.DATA_SAVED)}handleRecordsAdded(){this._options.enableGridInsert&&(this._controller.hideSelectionColumn(),this._controller.refresh(),this.focusOnNewRecord())}focusOnNewRecord(){setTimeout((()=>{this._controller.startEditionOnLastRow()}),1e3)}updateLoadedRecords(t){const i=t.payload;(null==i?void 0:i.length)>0&&i.forEach((t=>{this._controller.changeValues(t,[t.__record__id__])}))}handleFocusFirstRow(){this._options.autoFocus&&this._controller.setFocusFirstRow()}isSilentChange(t){var i,n;return!!(null==t?void 0:t.payload)&&(t.type===o.DATA_CHANGED?null===(i=Object.keys(null==t?void 0:t.payload))||void 0===i?void 0:i.some((i=>{var n;return i.startsWith("transient.")&&t.payload[i]||(null===(n=t.payload.records)||void 0===n?void 0:n.length)>0})):t.type===o.EDITION_CANCELED?!0===(null===(n=null==t?void 0:t.payload)||void 0===n?void 0:n.silent):void 0)}constructor(t,i,n,e){var r;this.RECORD_ARCHIVE="__RECORD_ARCHIVE__",this.duObserver=t=>{var i;switch(t.type){case o.METADATA_LOADED:this._controller.setColumnsDef(this.buildColumnDefs()),null===(i=this._resolveLoading)||void 0===i||i.call(this);break;case o.LOADING_DATA:this._waitingForLoad=!0,this._controller.refresh();break;case o.DATA_LOADED:this._waitingForLoad=!1,this.callbackGetRows(this._lastLoadingParams),this._options&&this._options.onPaginationChange(this._dataUnit.getPaginationInfo(),t.payload.selectFirstRecord),this.updateSelection(),this.handleFocusFirstRow();break;case o.PAGINATION_UPDATED:this._options&&this._options.onPaginationUpdate(this._dataUnit.getPaginationInfo());break;case o.RECORDS_ADDED:case o.RECORDS_COPIED:this.handleRecordsAdded();break;case o.DATA_SAVED:this.handleDataSaved(t);break;case o.EDITION_CANCELED:this.handleEditionCanceled(t);break;case o.DATA_CHANGED:case o.DATA_RESOLVED:this.handleDataChanged(t);break;case o.RECORDS_REMOVED:this.handleRefresh(t);break;case o.SELECTION_CHANGED:case o.NEXT_SELECTED:case o.PREVIOUS_SELECTED:this.updateSelection();break;case o.RECORD_LOADED:this.updateLoadedRecords(t);break;case o.SAVING_CANCELED:this.handleSavingCanceled(t)}};try{this._resolveLoading=e,this._dataUnit=t,this._controller=i,this._controller.setColumnsDef(this.buildColumnDefs()),this._options=n,this._dataUnit.subscribe(this.duObserver),this._dataUnit.addInterceptor(new $p(this._controller))}finally{this._dataUnit.metadata&&(null===(r=this._resolveLoading)||void 0===r||r.call(this))}}updateSelection(){const t=this._dataUnit.getSelectionInfo();t.isAllRecords()?this._controller.selectAll(!0):this._controller.selectRows(t.recordIds,!0)}setAutoFocus(t){this._options.autoFocus=t}setEnableGridInsert(t){this._options.enableGridInsert=t}getRows(t){this.needReload(t)?(this._lastLoadingParams=t,this._dataUnit.loadData(this.quickFilter,void 0,!0,B).then((()=>this.updateSelection()))):(this._lastLoadingParams=t,this._waitingForLoad||(this.callbackGetRows(t),this.updateSelection()))}needReload(t){return!!this._lastLoadingParams&&u.objectToString(t.request)!=u.objectToString(this._lastLoadingParams.request)}callbackGetRows(t){t&&t.success({rowData:this._dataUnit.records})}destroy(){this._dataUnit.unsubscribe(this.duObserver)}registryListeners(){var t,i;null===(t=this._dataUnit)||void 0===t||t.unsubscribe(this.duObserver),null===(i=this._dataUnit)||void 0===i||i.subscribe(this.duObserver)}getDescriptionField(t,i){const n=`${i}.${t}`;return this._dataUnit.metadata.fields.find((t=>t.name===n))}buildColumnDefs(){try{const t=this._controller.getGridConfig()||[],i=[];return this._dataUnit.metadata&&(this._dataUnit.metadata.fields.sort(((i,n)=>t.findIndex((t=>t.name===i.name))-t.findIndex((t=>t.name===n.name)))),this._dataUnit.metadata.fields.forEach((t=>{var n,e,r,o,s,u;if(!1!==t.visible&&t.name!==this.RECORD_ARCHIVE){const c=new Map,a=this._dataUnit.getField(t.name).properties;for(const t in a)c.set(t,a[t]);const l={label:t.label,name:t.name,userInterface:t.userInterface,options:null===(n=this._dataUnit.getField(t.name).properties)||void 0===n?void 0:n.options,props:c};if(i.push(l),t.userInterface===h.SEARCHPLUS&&(null===(e=t.properties)||void 0===e?void 0:e.DESCRIPTIONFIELD)){const n=this.getDescriptionField(null===(r=t.properties)||void 0===r?void 0:r.DESCRIPTIONFIELD,null===(o=t.properties)||void 0===o?void 0:o.ENTITYNAME);if(n)n.label=`${null===(s=t.properties)||void 0===s?void 0:s.DESCRIPTIONFIELDLABEL} (${null===(u=t.properties)||void 0===u?void 0:u.DESCRIPTIONENTITY})`;else{const n=this.buildDescriptionColumn(t);i.push(n),t.properties[H]=n.name}}}}))),i}catch(t){console.warn(t)}}buildDescriptionColumn(t){var i,n,e,r;const o=new Map;o.set(W,t.name);const s=`${null===(i=t.properties)||void 0===i?void 0:i.ENTITYNAME}.${null===(n=t.properties)||void 0===n?void 0:n.DESCRIPTIONFIELD}`;return this._dataUnit.addSourceFieldValue(s,t.name),{label:`${null===(e=t.properties)||void 0===e?void 0:e.DESCRIPTIONFIELDLABEL} (${null===(r=t.properties)||void 0===r?void 0:r.DESCRIPTIONENTITY})`,name:s,userInterface:h.SHORTTEXT,props:o}}}class Yp{init(t){var i;this.params=t,this.element=document.createElement("div"),this.element.classList.add("ag-cell-label-container"),this.element.setAttribute("title",null!==(i=this.params.tooltip)&&void 0!==i?i:""),this.element.innerHTML=`\n <div id='filter-column-${t.column.getColId()}-${t.context.dataUnit.dataUnitId}' class='ez-flex ez-flex--justify-between'>\n <i id='ez-grid-filter-icon' class='ez-icon-filter' style='color:#008561'></i> \n <i id='ez-grid-menu-icon' class='ez-icon-dots-vertical'></i> \n </div>\n <div id='ez-header-container' class='ez-flex ez-flex--justify-between ag-header-cell-text'>\n <span class='ag-header-cell-text'>${this.params.displayName}</span>\n <i id='ez-grid-sort-icon-descendente' class='ez-icon-ordem-descendente' style='display: none;font-weight: 100;margin-left: 4px;font-size: var(--text--large, 14px);align-self: center;'></i>\n <i id='ez-grid-sort-icon-ascendente' class='ez-icon-ordem-ascendente' style='display: none;font-weight: 100;margin-left: 4px;font-size: var(--text--large, 14px);align-self: center;'></i>\n </div>\n `,this.configMenuClick(),this.configSortClick(),this.configSortListener(),this.configFilterButton()}refresh(t){this.params=t,this.configFilterButton(),this.configSortIcon()}configFilterButton(){this.filterButton=this.element.querySelector("#ez-grid-filter-icon"),this.filterButton.style.display=this.params.hasFilter()?"flex":"none",this.onFilterButtonClickListener=this.onClickFilter.bind(this),this.filterButton.addEventListener("click",this.onFilterButtonClickListener)}onClickFilter(){var t;this.params.showColumnFilter(null===(t=this.filterButton)||void 0===t?void 0:t.getBoundingClientRect().left)}configSortIcon(){this.sortDownIcon.style.display=this.params.column.isSortDescending()?"flex":"none",this.sortUpIcon.style.display=this.params.column.isSortAscending()?"flex":"none"}configSortListener(){this.params.enableSorting&&(this.sortUpIcon=this.element.querySelector("#ez-grid-sort-icon-ascendente"),this.sortDownIcon=this.element.querySelector("#ez-grid-sort-icon-descendente"),this.onSortChangedListener=this.configSortIcon.bind(this),this.params.column.addEventListener("sortChanged",this.onSortChangedListener),this.configSortIcon())}onSortClick(t){this.params.progressSort(t.shiftKey)}configSortClick(){this.params.column.getColDef().sortable&&(this.headerContainer=this.element.querySelector("#ez-header-container"),this.onSortClickListener=this.onSortClick.bind(this),this.headerContainer.addEventListener("click",this.onSortClickListener))}onMenuClick(){this.params.showColumnMenu(this.menuButton)}configMenuClick(){this.menuButton=this.element.querySelector("#ez-grid-menu-icon"),this.onMenuClickListener=this.onMenuClick.bind(this),this.menuButton.addEventListener("click",this.onMenuClickListener)}getGui(){return this.element}destroy(){this.onMenuClickListener&&this.menuButton.removeEventListener("click",this.onMenuClickListener),this.onSortClickListener&&this.headerContainer.removeEventListener("click",this.onSortClickListener),this.onFilterButtonClickListener&&this.filterButton.removeEventListener("click",this.onFilterButtonClickListener),this.params.column.removeEventListener("sortChanged",this.onSortChangedListener),this.params.column.removeEventListener("applyFilterColumnOptions",this.onFilterAppliedListener)}}class Jp{constructor(){this.DEFAULT_COLOR="transparent",this._eGui=void 0}init(t){this.renderStatus(t)}refresh(t){return this.renderStatus(t),!1}destroy(){this._eGui=void 0}getGui(){return this._eGui}resolveColor(t,i){let n;if(t instanceof Function)n=t(i);else{const e=Object.keys(t)[0],r=t[e],o=i[e];n=null!=r&&null!=o&&r[o]}return n||this.DEFAULT_COLOR}renderStatus(t){const{data:i,statusResolver:n}=null!=t?t:{};if(null==n)return;const e=this.resolveColor(n,i);this._eGui=document.createElement("div"),this._eGui.innerHTML=`\n <span class="ez-grid__cell-status" style="background-color: ${e||""};"></span>\n `}}class Zp{updateCheckbox(){this.updatingValue=!0;try{const t=this.headerCheckStatusGetter();this.checkBox.indeterminate=null==t,this.checkBox.value=t}finally{this.updatingValue=!1}}init(t){t.context.selectionHeader=this;const i=t.context.headerCheckStatusSetter;this.headerCheckStatusGetter=t.context.headerCheckStatusGetter,this.element=document.createElement("div"),this.element.classList.add("ag-header__selection-checkbox"),this.checkBox=document.createElement("ez-check"),this.checkBox.style.setProperty("--ez-check--focus--background-color","transparent"),this.checkBox.style.setProperty("--ez-check--hover--background-color","transparent"),this.element.append(this.checkBox),this.updateCheckbox(),this.element.addEventListener("ezChange",(t=>{this.updatingValue||i(t.detail)}))}getGui(){return this.element}destroy(){this.element.remove(),this.element=null}refresh(t){return!1}}const Xp=(t,i,n,e)=>Object.assign(Object.assign({},P(t)),{eGridCell:i,dataUnit:n,editionManager:e}),Qp=({name:t,contextName:i})=>{const n=c.parseElement(`<ez-text-input\n class="ez-grid grid_editor"\n data-field-name=${t}\n data-context-name=${i}\n mode="slim"\n />`);return n.autoFocus=!0,n};function tg(t,i,n){const e=c.parseElement(`<ez-number-input\n class="ez-grid grid_editor"\n enabled=${!t}\n precision=${i}\n pretty-precision=${n}\n mode="slim"\n />`);return e.valueGetter=()=>e.getValueAsync(),e.autoFocus=!0,e}function ig(t){let i=t;for(;i;){const t=i.querySelector("[ref=eBodyViewport]");if(t)return t.getBoundingClientRect().bottom;i=i.parentElement}}const ng=new Map([[!0,{value:"S",label:"Sim"}],[!1,{value:"N",label:"Não"}]]),eg=({required:t,props:i,eGridCell:n})=>{const e=null==i?void 0:i.options;let r;if("string"==typeof e){const t=JSON.parse(e);r=Object.keys(t).map((i=>({value:i,label:t[i]})))}else r=e;const o=c.parseElement(`<ez-combo-box\n class="grid_editor"\n suppress-empty-option=${t}\n mode="slim"\n />`);return o.options=r,o.stopPropagateEnterKeyEvent=!0,o.listOptionsPosition={verticalPosition:29,bottomLimit:ig(n),hardPosition:!0},o.autoFocus=!0,o},rg=t=>{const i=eg(Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{options:Array.from(ng.values())})}));return i.valueGetter=()=>{const t=i.value;if(null!=t)return"S"==t.value},i.valueSetter=t=>{null!=t&&(i.value=ng.get(t))},i},og=new Map;og.set(h.DATE,(()=>{const t=c.parseElement('<ez-date-input\n class="ez-grid grid_editor"\n mode="slim"\n data-is-fixed="true"\n />');return t.valueGetter=()=>t.getValueAsync(),t.autoFocus=!0,t})),og.set(h.TIME,(({readOnly:t})=>{const i=c.parseElement(`<ez-time-input\n class="ez-grid grid_editor"\n enabled=${!t}\n mode="slim"\n />`);return i.valueGetter=()=>{const t=i.value;return parseInt(t)<=2359?t:null},i.valueSetter=t=>{const n=parseInt(t)<=2359;return i.value=n?t:null},i})),og.set(h.DATETIME,(({readOnly:t})=>{const i=c.parseElement(`<ez-date-time-input\n class="ez-grid grid_editor"\n mode="slim"\n enabled=${!t}\n data-is-fixed="true"\n />`);return i.valueGetter=()=>i.getValueAsync(),i})),og.set(h.DECIMALNUMBER,(({readOnly:t,props:i})=>{var n,e;const r=Number(null!==(n=null==i?void 0:i.precision)&&void 0!==n?n:2);return tg(t,r,Number(null!==(e=null==i?void 0:i.prettyPrecision)&&void 0!==e?e:r))})),og.set(h.INTEGERNUMBER,(({readOnly:t})=>tg(t,0,0))),og.set(h.SWITCH,rg),og.set(h.CHECKBOX,rg),og.set(h.OPTIONSELECTOR,eg),og.set(h.LONGTEXT,(({eGridCell:t,editionManager:i})=>{const n=c.parseElement('<ez-text-area\n can-show-error="false"\n enable-resize="true"\n />');return n.addEventListener("keydown",(t=>function(t,i,n){if(function(t){return[t.key,t.code].includes("Enter")}(t)){if(t.ctrlKey)return i.appendTextToSelection("\n"),void t.preventDefault();n.navigateByEnterKey(t)}}(t,n,i))),function(t,i){const{width:n}=t.getBoundingClientRect();i.style.minWidth=(n>210?n:210)-12+"px",i.style.resize="both"}(t,n),n.isPopUp=!0,n.autoFocus=!0,n})),og.set(h.SEARCH,(({name:t,required:i,readOnly:n,eGridCell:e,dataUnit:r})=>{var o;const s=c.parseElement(`<ez-search\n class="ez-grid grid_editor"\n mode="slim"\n suppress-empty-option=${i}\n enabled=${!n}\n />`),u=a.getContextValue("__EZUI__SEARCH__OPTION__LOADER__"),h=r.getField(t);return s.optionLoader=i=>u(i,t,r),s.ensureClearButtonVisible=!0,s.suppressPreLoad=!0,s.listOptionsPosition={verticalPosition:29,bottomLimit:ig(e),hardPosition:!0},s.stopPropagateEnterKeyEvent=!0,s.ignoreLimitCharsToSearch=l.getBooleanValue(null===(o=null==h?void 0:h.properties)||void 0===o?void 0:o.ignoreLimitCharsToSearch),s.autoFocus=!0,s.valueGetter=()=>s.getValueAsync(),s})),og.set(h.SEARCHPLUS,(({name:t,required:i,readOnly:n,dataUnit:e})=>{const r=c.parseElement(`<ez-search-plus\n class="ez-grid grid_editor"\n mode="slim"\n suppress-empty-option=${i}\n enabled=${!n}\n hide-description-input=true\n />`),o=a.getContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__");return r.optionLoader=i=>o(i,t,e),r.autoFocus=!0,r.valueGetter=()=>r.getValueAsync(),r}));class sg{init(t){this._rowData=t.data;const i=t.column.getColId(),n=t.context.dataUnit;this._fieldMetadata=Xp(n.getField(i),t.eGridCell,n,t.context.editionManager);const e=og.get(this._fieldMetadata.userInterface)||Qp;this._gui=e(this._fieldMetadata),null!=this._gui.valueSetter?this._gui.valueSetter(t.value):this._gui.value=t.value}getGui(){return this._gui}afterGuiAttached(){this.focusIn()}focusIn(){this._gui.focus(),this._gui.setFocus({selectText:!0})}getValue(){return null!=this._gui.valueGetter?this._gui.valueGetter():this._gui.value}setGuiValue(t){null!=this._gui.valueSetter?this._gui.valueSetter(t):this._gui.value=t}isPopup(){return this._gui.isPopUp}getFieldMetadata(){return this._fieldMetadata}getRecord(){return this._rowData}}class ug extends sg{init(t){var i,n;this._value=t.value,this._fieldName=t.column.getColId(),this._customEditorInstance=t.customEditorsInfo.customEditor,super.init(t),this._defaultGui=this.getDefaultGui();const e=super.getFieldMetadata();this._params={cellPossition:ig(t.eGridCell),eGridCell:t.eGridCell,value:t.value,charPress:t.charPress,currentEditor:this._defaultGui,name:this._fieldName,source:F.GRID,detailContext:t.customEditorsInfo.detailContext,setValue:t=>this.setValue(t),getValue:()=>this.getValue(),record:super.getRecord(),editorMetadata:{hidden:!1===(null===(i=e.props)||void 0===i?void 0:i.visible),label:e.label,userInterface:e.userInterface,props:e.props,optionLoader:e.optionLoader,options:(null===(n=e.props)||void 0===n?void 0:n.options)||{}}}}getDefaultGui(){const t=super.getGui();return t.value=this._value,t.onkeyup=t=>{this.setValue(t.target.value)},t}getGui(){const t=this._customEditorInstance.getEditorElement(this._params);return t?"string"==typeof t?c.parseElement(t):(this._customGui=t,t):this._defaultGui}setValue(t){this._value=t}getValue(){var t,i;return(null===(t=this._customGui)||void 0===t?void 0:t.getValue)?this._customGui.getValue():(null===(i=this._customGui)||void 0===i?void 0:i.hasAttribute("value"))?this._customGui.value:this._value}afterGuiAttached(){this.focusIn()}focusIn(){V.resolveFocus(this._customGui)}}class hg{init(t){const i=document.createElement("span");this._currentParams=t,i.textContent=t.value;const n=t.column.getColId(),e=t.context.dataUnit;this._fieldMetadata=Xp(e.getField(n),t.eGridCell,e,t.context.editionManager),this._gui=i}refresh(){try{return this._currentParams.refreshCell(),!0}catch(t){return!1}}getGui(){return this._gui}afterGuiAttached(){this.focusIn()}focusIn(){this._gui.focus(),this._gui.setFocus({selectText:!0})}getValue(){return this._currentParams.getValue()}isPopup(){return this._gui.isPopUp}getFieldMetadata(){return this._fieldMetadata}}class cg extends hg{init(t){var i,n;this._fieldName=t.column.getColId(),this._customRenderInstance=t.customRendersInfo.customRender,super.init(t);const e=super.getFieldMetadata();this._params={value:t.value,charPress:"",currentRender:super.getGui(),name:this._fieldName,source:k.GRID,getValue:()=>t.getValue(),detailContext:t.customRendersInfo.detailContext,renderMetadata:{hidden:!1===(null===(i=e.props)||void 0===i?void 0:i.visible),label:e.label,userInterface:e.userInterface,props:e.props,optionLoader:e.optionLoader,options:(null===(n=e.props)||void 0===n?void 0:n.options)||{}}}}getGui(){const t=this._customRenderInstance.getRenderElement(this._params);return t?"string"==typeof t?c.parseElement(t):t:super.getGui()}}class ag{constructor(t,i,n,e,r,o,s,u,h){this._inProgressChanges=[],this._dataUnit=t,this._recordValidationProcessor=new D(this._dataUnit,{getRequiredFields:()=>this.getRequiredFields(),markAsInvalid:(t,i)=>{this.pushInvalidCell(t,i)},getMessageForField:()=>null},n),this._useEnterLikeTab=i,this._editionIsDisabled=e,this._enableContinuousInsert=s,this._enableGridInsert=u,this._customEditors=r,this._customRenders=o,this._lockerId=h}configureGrid(t){return this._gridOptions=t,t.readOnlyEdit=!0,t.onCellEditRequest=t=>this.onCellEditRequest(t),t.onCellEditingStarted=async t=>{var i;this._dataUnit.hasNewRecord()?this.handleCellEditingStartedRowAdd(t):this._lastCellOpened=this._lastCellEdited={rowIndex:t.rowIndex,column:t.column,rowPinned:void 0},null===(i=this._currentEditLock)||void 0===i||i.call(this),this._currentEditLock=f.lock(this._lockerId,d.TASKBAR_CLICK)},t.onCellEditingStopped=()=>{var t;null===(t=this._currentEditLock)||void 0===t||t.call(this)},t.onCellKeyDown=t=>{t.event&&t.column&&this.onCellKeyDown(t)},t.isRowSelectable=t=>this.isSelectableRow(t),t.onCellFocused=()=>this.lockFocusWhenAddRow(),t}updateCurrentEditorGuiValue(t){const i=this._gridOptions.api.getCellEditorInstances();if(!i||!i.length)return;const n=i[0],e=n.getFieldMetadata();n.setGuiValue(t[e.name])}lockFocusWhenAddRow(){var t,i,n,e;const r=this._gridOptions.api,o=r.getFocusedCell(),s=null==o?void 0:o.rowIndex,u=null===(i=null===(t=this._dataUnit.getAddedRecords())||void 0===t?void 0:t[0])||void 0===i?void 0:i.__record__id__,h=r.getRowNode(u);if(!this._dataUnit.hasNewRecord()||s==(null==h?void 0:h.rowIndex))return;const c=null!==(e=null!==(n=this._lastCellOpened)&&void 0!==n?n:this._lastCellEdited)&&void 0!==e?e:this._lastCellClicked;(null==c?void 0:c.rowIndex)<(null==h?void 0:h.rowIndex)||(r.clearFocusedCell(),c&&null!=(null==h?void 0:h.rowIndex)&&(c.rowIndex=null==h?void 0:h.rowIndex,this.focusOnCell(c)))}handleCellEditingStartedRowAdd(t){var i,n,e,r,o;const s=null===(i=t.node)||void 0===i?void 0:i.id,u=null===(e=null===(n=this._dataUnit.getAddedRecords())||void 0===n?void 0:n[0])||void 0===e?void 0:e.__record__id__;if(s==u)return void(this._lastCellOpened=this._lastCellEdited={rowIndex:t.rowIndex,column:null==t?void 0:t.column,rowPinned:void 0});t.api.stopEditing();const h=null===(r=t.api.getRowNode(u))||void 0===r?void 0:r.rowIndex;this._lastCellOpened=this._lastCellEdited={rowIndex:h,column:null===(o=this._lastCellEdited)||void 0===o?void 0:o.column,rowPinned:void 0}}isSelectableRow(t){return!this._dataUnit.hasNewRecord()||!!this._dataUnit.isNewRecord(t.id)}canContinuousInsert(){var t;return this._enableContinuousInsert&&this._dataUnit.records.length-1===(null===(t=this._lastCellEdited)||void 0===t?void 0:t.rowIndex)}async proceedAutoSave(){var t;if(await new Promise((t=>setTimeout(t,100))),this._inProgressChanges.length&&await Promise.all(null===(t=this._inProgressChanges)||void 0===t?void 0:t.map((({promise:t})=>t))),!this._dataUnit.isDirty())return this.saveSuccess(),!0;if(null==this._dataUnit.getSelectedRecord())return!0;this.clearInvalidCells(!1);try{return await this._recordValidationProcessor.validate(!0),await this.saveDataUnit(),this.saveSuccess(),!0}catch(t){return this.saveFail(t),!1}}async saveDataUnit(){return await this._dataUnit.saveData(),!0}async recordValidate(){if(this._dataUnit.isDirty()){try{this.clearInvalidCells(!1),await this._recordValidationProcessor.validate(!1)}catch(t){}this._gridOptions.api.refreshCells({force:!0})}}navigateByEnterKey(t){const i=t.shiftKey;if(this._useEnterLikeTab)i?this._gridOptions.api.tabToPreviousCell(t):this._gridOptions.api.tabToNextCell(t);else{const t=this._gridOptions.api.getEditingCells()[0];if(t){let{rowIndex:n}=t;this.nextEditionRow(n,t.column,i)}}}getComponents(){return{ezCellEditor:sg}}verifyClickToEdition(t,i){var n,e;const r=null===(n=this._dataUnit.getSelectedRecord())||void 0===n?void 0:n.__record__id__;this._dataUnit.hasNewRecord()&&r&&(null===(e=t.getRowNode(r))||void 0===e?void 0:e.rowIndex)!=i.rowIndex||(this.isSecondClick(i)&&t.startEditingCell({rowIndex:i.rowIndex,colKey:i.column.getColId()}),this._lastCellClicked=i)}configureColumn(t){return t.cellEditor="ezCellEditor",0!=t.editable&&(t.editable=t=>this.canEdit(t)),t.suppressKeyboardEvent=t=>t.event.key===xr.ESCAPE&&t.editing?this._dataUnit.isDirty():t.event.key===xr.ENTER,t.cellEditorSelector=t=>{var i;if(null===(i=this._customEditors)||void 0===i?void 0:i.has(t.colDef.field)){const i=this._customEditors.get(t.colDef.field);return{component:ug,params:{customEditorsInfo:i}}}},t.cellRendererSelector=t=>{var i;if(null===(i=this._customRenders)||void 0===i?void 0:i.has(t.colDef.field)){const i=this._customRenders.get(t.colDef.field);return{component:cg,params:{customRendersInfo:i}}}},t}getRequiredFields(){const t=this.getFormRequiredFields();return this._gridOptions.columnApi.getAllDisplayedColumns().filter((i=>{const n=this._dataUnit.getField(i.getColId());return n&&n.required||t.includes(i.getColId())})).map((t=>t.getColId()))}getFormRequiredFields(){const t=[];return I.getDataBindersByDataUnit(this._dataUnit).forEach((i=>{t.push(...i.getFormRequiredFields())})),t}saveSuccess(){var t;this.focusOnCell(this._targetEditionCell),void 0!==(null===(t=this._targetEditionCell)||void 0===t?void 0:t.rowIndex)&&this._dataUnit.setSelectionByIndex([this._targetEditionCell.rowIndex]),this._lastCellEdited=void 0,this._targetEditionCell=void 0,this._isGridEdition=!1}saveFail(t){var i;if(this.focusOnCell(null!==(i=this._lastCellOpened)&&void 0!==i?i:this._lastCellEdited),this._isGridEdition=!1,t)throw t}focusOnCell(t){var i;if(null==t)return;const{rowIndex:n,column:e}=t;null===(i=this._gridOptions.api.getDisplayedRowAtIndex(n))||void 0===i||i.setSelected(!0,!0),this._gridOptions.api.clearRangeSelection(),this._gridOptions.api.addCellRange({rowStartIndex:n,rowEndIndex:n,columns:[e]}),this._gridOptions.api.startEditingCell({colKey:e.getColId(),rowIndex:n}),this._gridOptions.api.setFocusedCell(n,e.getColId());const r=this._gridOptions.api.getCellEditorInstances()[0];r&&r.focusIn()}onCellKeyDown(t){const i=t.event;switch(i.key){case xr.ENTER:this.processEnterKey(i,t);break;case xr.UP:this.editPreviousRow(t.api);break;case xr.DOWN:this.editNextRow(t.api)}}processEnterKey(t,i){i.api.getEditingCells()[0]?this.navigateByEnterKey(t):i.api.startEditingCell({colKey:i.column.getColId(),rowIndex:i.rowIndex})}nextEditionRow(t,i,n){if(n)(t-=1)<0&&(t=this._dataUnit.records.length-1);else{const i=t;(t+=1)>=this._dataUnit.records.length&&(t=this._enableGridInsert?i:0)}this._targetEditionCell=new lg(t,i,!0),this.finishEdition()}editPreviousRow(t){this.moveEditionVertically(t,-1)}editNextRow(t){this.moveEditionVertically(t,1)}moveEditionVertically(t,i){if(this._dataUnit.hasNewRecord()&&this._isGridEdition)return;const n=t.getEditingCells()[0];if(!n)return;const e=n.rowIndex+i;t.getDisplayedRowAtIndex(e)&&(this._targetEditionCell=new lg(e,n.column,i<0),this.finishEdition())}finishEdition(){this._gridOptions.api.stopEditing(),setTimeout((()=>{this.proceedAutoSave()}),0)}canEdit(t){return!this._editionIsDisabled()&&this.isColEditable(t.colDef.field)}isColEditable(t){const i=this._dataUnit.getField(t);return!(!i||this.isTypeFile(i)||i.readOnly)}isTypeFile(t){return t.userInterface===h.FILE}isSecondClick(t){return!!this._lastCellClicked&&this._lastCellClicked.column==t.column&&this._lastCellClicked.rowIndex==t.rowIndex}onCellEditRequest(t){var i;const n=t.newValue;if(t.oldValue!=n){if(n instanceof Promise){const i={promise:void 0,resolve:()=>{}};return i.promise=new Promise((t=>{i.resolve=t})),this._inProgressChanges.push(i),void this.handlePromiseValue(t,n)}this.updateCellValue(t,n)}else null===(i=this._currentEditLock)||void 0===i||i.call(this)}async handlePromiseValue(t,i){const n=t.colDef.field,e=this._dataUnit.getField(t.colDef.colId),r=(null==e?void 0:e.userInterface)===h.SEARCH?i:t.oldValue;t.node.setData(Object.assign(Object.assign({},t.data),{[n]:r}));const o=await i;return this.updateCellValue(t,o)}async updateCellValue(t,i){var n,e,r;const o=t.colDef.field,s=this._dataUnit.getField(o);""==i&&i!=this._dataUnit.getFieldValue(o)&&(null==s?void 0:s.userInterface)===h.SEARCH&&(i=this._dataUnit.getFieldValue(o));const u={[o]:i},c=null===(n=null==s?void 0:s.properties)||void 0===n?void 0:n[H];l.isEmpty(c)||(u[c]=null==i?void 0:i.label),t.node.setData(Object.assign(Object.assign({},t.data),{[o]:i})),null===(e=this._currentEditLock)||void 0===e||e.call(this),t.oldValue!==i&&(this._isGridEdition=!0,await this._dataUnit.setFieldValue(o,i,[t.data.__record__id__],{suppressCreateNewRecord:!0}),this._lastCellEdited={rowIndex:t.rowIndex,column:t.column,rowPinned:void 0}),null===(r=this._inProgressChanges)||void 0===r||r.forEach((({resolve:t})=>t(i)))}setCellEditors(t){var i;this._customEditors=t,null===(i=this._gridOptions)||void 0===i||i.api.stopEditing()}setCellRenders(t){this._customRenders=t}pushInvalidCell(t,i){this._invalidCells.push({field:t,recordId:i}),this._nextInvalidCell=this._invalidCells[0]}getInvalidCells(){return this._invalidCells}getNextInvalidCell(){return this._nextInvalidCell}async processContinuousInsert(){this.canContinuousInsert()&&this._dataUnit.addRecord()}clearInvalidCells(t){this._invalidCells=[],this._nextInvalidCell=void 0,t&&(this._isGridEdition=!1)}setEnableContinuousInsert(t){this._enableContinuousInsert=t}hasInvalidField(t,i){return!!this.hasInvalidCell()&&(this._nextInvalidCell=this._invalidCells[0],this._nextInvalidCell.field.name===t&&this._nextInvalidCell.recordId===i)}hasInvalidCell(){var t,i,n;const e=(null===(t=this._invalidCells)||void 0===t?void 0:t.length)>0,r=null===(i=this._invalidCells)||void 0===i?void 0:i.filter((()=>{})),o=null===(n=this._invalidCells)||void 0===n?void 0:n.filter((()=>{}));return!!(e&&r&&o)}}class lg{constructor(t,i,n){this.rowPinned=null,this.rowIndex=t,this.column=i,this.backwards=n}}var fg,dg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),vg=function(){return vg=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},vg.apply(this,arguments)},pg=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},gg=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},mg=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(gg(arguments[i]));return t},bg=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.cellRanges=[],i.bodyScrollListener=i.onBodyScroll.bind(i),i.dragging=!1,i.intersectionRange=!1,i}return dg(i,t),i.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VISIBLE,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VALUE_CHANGED,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.removeAllCellRanges()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.removeAllCellRanges()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.removeAllCellRanges()})),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_GROUP_OPENED,this.refreshLastRangeStart.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_MOVED,this.refreshLastRangeStart.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PINNED,this.refreshLastRangeStart.bind(this)),this.ctrlsService.whenReady((function(){var i=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new lh({scrollContainer:i.getBodyViewportElement(),scrollAxis:"xy",getVerticalPosition:function(){return i.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(t){return i.getScrollFeature().setVerticalScrollPosition(t)},getHorizontalPosition:function(){return i.getScrollFeature().getHScrollPosition().left},setHorizontalPosition:function(t){return i.getScrollFeature().setHorizontalScrollPosition(t)},shouldSkipVerticalScroll:function(){return t.gridOptionsWrapper.getDomLayout()!==Vt.DOM_LAYOUT_NORMAL},shouldSkipHorizontalScroll:function(){return i.getScrollFeature().isHorizontalScrollShowing()}})}))},i.prototype.onColumnsChanged=function(){var t=this;this.refreshLastRangeStart();var i=this.columnModel.getAllDisplayedColumns();this.cellRanges.forEach((function(n){var e=n.columns;n.columns=n.columns.filter((function(t){return t.isVisible()&&-1!==i.indexOf(t)})),!Wr.areEqual(e,n.columns)&&t.dispatchChangedEvent(!1,!0,n.id)}));var n=this.cellRanges.length;this.cellRanges=this.cellRanges.filter((function(t){return t.columns.length>0})),n>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)},i.prototype.refreshLastRangeStart=function(){var t=Wr.last(this.cellRanges);t&&this.refreshRangeStart(t)},i.prototype.isContiguousRange=function(t){var i=t.columns;if(!i.length)return!1;var n=this.columnModel.getAllDisplayedColumns(),e=i.map((function(t){return n.indexOf(t)})).sort((function(t,i){return t-i}));return Wr.last(e)-e[0]+1===i.length},i.prototype.getRangeStartRow=function(t){return t.startRow&&t.endRow?this.rowPositionUtils.before(t.startRow,t.endRow)?t.startRow:t.endRow:{rowIndex:0,rowPinned:this.pinnedRowModel.getPinnedTopRowCount()>0?Vt.PINNED_TOP:null}},i.prototype.getRangeEndRow=function(t){if(t.startRow&&t.endRow)return this.rowPositionUtils.before(t.startRow,t.endRow)?t.endRow:t.startRow;var i=this.pinnedRowModel.getPinnedBottomRowCount();return i>0?{rowIndex:i-1,rowPinned:Vt.PINNED_BOTTOM}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},i.prototype.setRangeToCell=function(t,i){if(void 0===i&&(i=!1),this.gridOptionsWrapper.isEnableRangeSelection()){var n=this.calculateColumnsBetween(t.column,t.column);if(n){(this.gridOptionsWrapper.isSuppressMultiRangeSelection()||!i||Wr.missing(this.cellRanges))&&this.removeAllCellRanges(!0);var e={rowIndex:t.rowIndex,rowPinned:t.rowPinned};this.cellRanges.push({startRow:e,endRow:e,columns:n,startColumn:t.column}),this.setNewestRangeStartCell(t),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}}},i.prototype.extendLatestRangeToCell=function(t){if(!this.isEmpty()&&this.newestRangeStartCell){var i=Wr.last(this.cellRanges);this.updateRangeEnd(i,t)}},i.prototype.updateRangeEnd=function(t,i,n){void 0===n&&(n=!1);var e=this.calculateColumnsBetween(t.startColumn,i.column);e&&!this.isLastCellOfRange(t,i)&&(t.columns=e,t.endRow={rowIndex:i.rowIndex,rowPinned:i.rowPinned},n||this.dispatchChangedEvent(!0,!0,t.id))},i.prototype.refreshRangeStart=function(t){var i=t.startColumn,n=t.columns,e=function(i,n){var e=t.columns.filter((function(t){return t!==i}));i?(t.startColumn=i,t.columns=n?mg([i],e):mg(e,[i])):t.columns=e},r=this.getRangeEdgeColumns(t),o=r.left,s=r.right;i===n[0]&&i!==o?e(o,!0):i===Wr.last(n)&&i===s&&e(s,!1)},i.prototype.getRangeEdgeColumns=function(t){var i=this.columnModel.getAllDisplayedColumns(),n=t.columns.map((function(t){return i.indexOf(t)})).filter((function(t){return t>-1})).sort((function(t,i){return t-i}));return{left:i[n[0]],right:i[Wr.last(n)]}},i.prototype.extendLatestRangeInDirection=function(t){if(!this.isEmpty()&&this.newestRangeStartCell){var i=t.key,n=t.ctrlKey||t.metaKey,e=Wr.last(this.cellRanges),r=this.newestRangeStartCell,o=e.columns[0],s=Wr.last(e.columns),u=this.cellNavigationService.getNextCellToFocus(i,{column:r.column===o?s:o,rowIndex:e.endRow.rowIndex,rowPinned:e.endRow.rowPinned},n);if(u)return this.setCellRange({rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:u.rowIndex,rowEndPinned:u.rowPinned,columnStart:r.column,columnEnd:u.column}),u}},i.prototype.setCellRange=function(t){this.gridOptionsWrapper.isEnableRangeSelection()&&(this.removeAllCellRanges(!0),this.addCellRange(t))},i.prototype.setCellRanges=function(t){var i=this;Wr.shallowCompare(this.cellRanges,t)||(this.removeAllCellRanges(!0),t.forEach((function(t){t.columns&&t.startRow&&i.setNewestRangeStartCell({rowIndex:t.startRow.rowIndex,rowPinned:t.startRow.rowPinned,column:t.columns[0]}),i.cellRanges.push(t)})),this.dispatchChangedEvent(!1,!0))},i.prototype.setNewestRangeStartCell=function(t){this.newestRangeStartCell=t},i.prototype.clearCellRangeCellValues=function(t){var i=this;t||(t=this.cellRanges),t.forEach((function(t){i.forEachRowInRange(t,(function(n){var e=i.rowPositionUtils.getRowNode(n);if(e)for(var r=0;r<t.columns.length;r++){var o=i.columnModel.getGridColumn(t.columns[r]);if(!o||!o.isCellEditable(e))return;e.setDataValue(o,null,"rangeService")}}))}))},i.prototype.createCellRangeFromCellRangeParams=function(t){var i,n=this,e=!1;if(t.columns)i=t.columns.map((function(t){return n.columnModel.getColumnWithValidation(t)})).filter((function(t){return t}));else{var r=this.columnModel.getColumnWithValidation(t.columnStart),o=this.columnModel.getColumnWithValidation(t.columnEnd);if(!r||!o)return;(i=this.calculateColumnsBetween(r,o))&&i.length&&(e=i[0]!==r)}if(i)return{startRow:null!=t.rowStartIndex?{rowIndex:t.rowStartIndex,rowPinned:t.rowStartPinned||null}:void 0,endRow:null!=t.rowEndIndex?{rowIndex:t.rowEndIndex,rowPinned:t.rowEndPinned||null}:void 0,columns:i,startColumn:e?Wr.last(i):i[0]}},i.prototype.addCellRange=function(t){if(this.gridOptionsWrapper.isEnableRangeSelection()){var i=this.createCellRangeFromCellRangeParams(t);i&&(i.startRow&&this.setNewestRangeStartCell({rowIndex:i.startRow.rowIndex,rowPinned:i.startRow.rowPinned,column:i.startColumn}),this.cellRanges.push(i),this.dispatchChangedEvent(!1,!0,i.id))}},i.prototype.getCellRanges=function(){return this.cellRanges},i.prototype.isEmpty=function(){return 0===this.cellRanges.length},i.prototype.isMoreThanOneCell=function(){var t=this.cellRanges.length;if(0===t)return!1;if(t>1)return!0;var i=this.cellRanges[0],n=this.getRangeStartRow(i),e=this.getRangeEndRow(i);return n.rowPinned!==e.rowPinned||n.rowIndex!==e.rowIndex||1!==i.columns.length},i.prototype.areAllRangesAbleToMerge=function(){var t,i,n,e=this,r=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach((function(t){e.forEachRowInRange(t,(function(i){var n=(i.rowPinned||"normal")+"_"+i.rowIndex,e=r.get(n),o=t.columns.map((function(t){return t.getId()}));if(e){var s=o.filter((function(t){return-1===e.indexOf(t)}));e.push.apply(e,mg(s))}else r.set(n,o)}))}));try{for(var o=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(r.values()),s=o.next();!s.done;s=o.next()){var u=s.value.sort().join();if(void 0!==n){if(n!==u)return!1}else n=u}}catch(i){t={error:i}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return!0},i.prototype.forEachRowInRange=function(t,i){for(var n=this.getRangeStartRow(t),e=this.getRangeEndRow(t),r=n;r&&(i(r),!this.rowPositionUtils.sameRow(r,e));)r=this.cellNavigationService.getRowBelow(r)},i.prototype.removeAllCellRanges=function(t){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,t||this.dispatchChangedEvent(!1,!0))},i.prototype.onBodyScroll=function(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)},i.prototype.isCellInAnyRange=function(t){return this.getCellRangeCount(t)>0},i.prototype.isCellInSpecificRange=function(t,i){var n=null!==i.columns&&Wr.includes(i.columns,t.column),e=this.isRowInRange(t.rowIndex,t.rowPinned,i);return n&&e},i.prototype.isLastCellOfRange=function(t,i){var n=t.startRow,e=t.endRow,r=this.rowPositionUtils.before(n,e)?e:n,o=i.rowIndex===r.rowIndex&&i.rowPinned===r.rowPinned,s=t.columns[0],u=Wr.last(t.columns);return i.column===(t.startColumn===s?u:s)&&o},i.prototype.isBottomRightCell=function(t,i){var n=this.columnModel.getAllDisplayedColumns(),e=t.columns.map((function(t){return n.indexOf(t)})).sort((function(t,i){return t-i})),r=t.startRow,o=t.endRow,s=this.rowPositionUtils.before(r,o)?o:r,u=n.indexOf(i.column)===Wr.last(e),h=i.rowIndex===s.rowIndex&&Wr.makeNull(i.rowPinned)===Wr.makeNull(s.rowPinned);return u&&h},i.prototype.getCellRangeCount=function(t){var i=this;return this.isEmpty()?0:this.cellRanges.filter((function(n){return i.isCellInSpecificRange(t,n)})).length},i.prototype.isRowInRange=function(t,i,n){var e=this.getRangeStartRow(n),r=this.getRangeEndRow(n),o={rowIndex:t,rowPinned:i||null};if(o.rowIndex===e.rowIndex&&o.rowPinned==e.rowPinned||o.rowIndex===r.rowIndex&&o.rowPinned==r.rowPinned)return!0;var s=!this.rowPositionUtils.before(o,e),u=this.rowPositionUtils.before(o,r);return s&&u},i.prototype.getDraggingRange=function(){return this.draggingRange},i.prototype.onDragStart=function(t){if(this.gridOptionsWrapper.isEnableRangeSelection()){var i=t.shiftKey,n=t.ctrlKey||t.metaKey,e=!this.gridOptionsWrapper.isSuppressMultiRangeSelection()&&n,r=i&&Wr.existsAndNotEmpty(this.cellRanges);if(e||r&&!Wr.exists(Wr.last(this.cellRanges).type)||this.removeAllCellRanges(!0),this.cellHoverListener=this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(),"mousemove",this.updateValuesOnMove.bind(this)),this.updateValuesOnMove(t),this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=t,this.intersectionRange=e&&this.getCellRangeCount(this.lastCellHovered)>1,r||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=Wr.last(this.cellRanges);else{var o={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned};this.draggingRange={startRow:o,endRow:o,columns:[this.lastCellHovered.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsService.getGridBodyCtrl().addScrollEventListener(this.bodyScrollListener),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}},i.prototype.intersectLastRange=function(t){var i=this;if(!(t&&this.dragging||this.gridOptionsWrapper.isSuppressMultiRangeSelection()||this.isEmpty())){var n=Wr.last(this.cellRanges),e=this.getRangeStartRow(n),r=this.getRangeEndRow(n),o=[];this.cellRanges.slice(0,-1).forEach((function(t){var s=i.getRangeStartRow(t),u=i.getRangeEndRow(t),h=t.columns,c=h.filter((function(t){return-1===n.columns.indexOf(t)}));if(c.length!==h.length)if(i.rowPositionUtils.before(r,s)||i.rowPositionUtils.before(u,e))o.push(t);else{var a=o.length;if(i.rowPositionUtils.before(s,e)){var l={columns:mg(h),startColumn:n.startColumn,startRow:vg({},s),endRow:i.cellNavigationService.getRowAbove(e)};o.push(l)}if(c.length>0){var f={columns:c,startColumn:Wr.includes(c,n.startColumn)?n.startColumn:c[0],startRow:i.rowPositionUtils.rowMax([vg({},e),vg({},s)]),endRow:i.rowPositionUtils.rowMin([vg({},r),vg({},u)])};o.push(f)}i.rowPositionUtils.before(r,u)&&o.push({columns:mg(h),startColumn:n.startColumn,startRow:i.cellNavigationService.getRowBelow(r),endRow:vg({},u)}),o.length-a==1&&(o[o.length-1].id=t.id)}else o.push(t)})),this.cellRanges=o,t&&this.dispatchChangedEvent(!1,!0)}},i.prototype.updateValuesOnMove=function(t){var i=this.mouseEventService.getCellPositionForEvent(t);this.cellHasChanged=!1,!i||this.lastCellHovered&&this.cellPositionUtils.equals(i,this.lastCellHovered)||(this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=i)},i.prototype.onDragging=function(t){var i=this;if(this.dragging&&t){this.lastMouseEvent=t;var n=this.lastCellHovered,e=function(t){return n&&n.rowPinned===t&&i.newestRangeStartCell.rowPinned===t},r=e("top")||e("bottom");if(this.autoScrollService.check(t,r),this.cellHasChanged){var o=this.calculateColumnsBetween(this.newestRangeStartCell.column,n.column);o&&(this.draggingRange.endRow={rowIndex:n.rowIndex,rowPinned:n.rowPinned},this.draggingRange.columns=o,this.dispatchChangedEvent(!1,!1,this.draggingRange.id))}}},i.prototype.onDragStop=function(){if(this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0),this.dragging){var t=this.draggingRange.id;this.autoScrollService.ensureCleared(),this.ctrlsService.getGridBodyCtrl().removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,t)}},i.prototype.dispatchChangedEvent=function(t,i,n){var e=Object.freeze({type:xi.EVENT_RANGE_SELECTION_CHANGED,started:t,finished:i,id:n});this.eventService.dispatchEvent(e)},i.prototype.calculateColumnsBetween=function(t,i){var n=this.columnModel.getAllDisplayedColumns(),e=t===i,r=n.indexOf(t);if(r<0)console.warn("AG Grid: column "+t.getId()+" is not visible");else{var o=e?r:n.indexOf(i);if(!(o<0)){if(e)return[t];for(var s=Math.min(r,o),u=s===r?o:r,h=[],c=s;c<=u;c++)h.push(n[c]);return h}console.warn("AG Grid: column "+i.getId()+" is not visible")}},pg([Dt("rowModel")],i.prototype,"rowModel",void 0),pg([Dt("columnModel")],i.prototype,"columnModel",void 0),pg([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),pg([Dt("cellNavigationService")],i.prototype,"cellNavigationService",void 0),pg([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),pg([Dt("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),pg([Dt("cellPositionUtils")],i.prototype,"cellPositionUtils",void 0),pg([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),pg([Ft],i.prototype,"init",null),pg([Pt("rangeService")],i)}(Ai),wg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),yg=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Cg=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.changedCalculatedValues=!1,i.dragging=!1,i.shouldDestroyOnEndDragging=!1,i}return wg(i,t),i.prototype.init=function(){var t=this;this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:function(i){t.dragging=!0,t.rangeService.autoScrollService.check(i),t.changedCalculatedValues&&(t.onDrag(i),t.changedCalculatedValues=!1)},onDragStop:function(i){t.dragging=!1,t.onDragEnd(i),t.clearValues(),t.rangeService.autoScrollService.ensureCleared(),document.body.classList.remove(t.getDraggingCssClass()),t.shouldDestroyOnEndDragging&&t.destroy()}}),this.addManagedListener(this.getGui(),"mousedown",this.preventRangeExtension.bind(this))},i.prototype.isDragging=function(){return this.dragging},i.prototype.getCellCtrl=function(){return this.cellCtrl},i.prototype.setCellCtrl=function(t){this.cellCtrl=t},i.prototype.getCellRange=function(){return this.cellRange},i.prototype.setCellRange=function(t){this.cellRange=t},i.prototype.getRangeStartRow=function(){return this.rangeStartRow},i.prototype.setRangeStartRow=function(t){this.rangeStartRow=t},i.prototype.getRangeEndRow=function(){return this.rangeEndRow},i.prototype.setRangeEndRow=function(t){this.rangeEndRow=t},i.prototype.getLastCellHovered=function(){return this.lastCellHovered},i.prototype.preventRangeExtension=function(t){t.preventDefault(),t.stopPropagation()},i.prototype.onDragStart=function(){this.cellHoverListener=this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(),"mousemove",this.updateValuesOnMove.bind(this)),document.body.classList.add(this.getDraggingCssClass())},i.prototype.getDraggingCssClass=function(){return"ag-dragging-"+(this.type===wh.FILL?"fill":"range")+"-handle"},i.prototype.updateValuesOnMove=function(t){var i=this.mouseEventService.getCellPositionForEvent(t);!i||this.lastCellHovered&&this.cellPositionUtils.equals(i,this.lastCellHovered)||(this.lastCellHovered=i,this.changedCalculatedValues=!0)},i.prototype.getType=function(){return this.type},i.prototype.refresh=function(t){var i=this.getCellCtrl(),n=this.getGui(),e=Wr.last(this.rangeService.getCellRanges()),r=e.startRow,o=e.endRow;if(r&&o&&(this.rowPositionUtils.before(o,r)?(this.setRangeStartRow(o),this.setRangeEndRow(r)):(this.setRangeStartRow(r),this.setRangeEndRow(o))),i!==t||!Wr.isVisible(n)){this.setCellCtrl(t);var s=t.getComp().getParentOfValue();s&&s.appendChild(n)}this.setCellRange(e)},i.prototype.clearValues=function(){this.lastCellHovered=void 0,this.removeListeners()},i.prototype.removeListeners=function(){this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0)},i.prototype.destroy=function(){if(!this.shouldDestroyOnEndDragging&&this.isDragging())return Wr.setDisplayed(this.getGui(),!1),void(this.shouldDestroyOnEndDragging=!0);this.shouldDestroyOnEndDragging=!1,t.prototype.destroy.call(this),this.removeListeners();var i=this.getGui();i.parentElement&&i.parentElement.removeChild(i)},yg([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),yg([Dt("dragService")],i.prototype,"dragService",void 0),yg([Dt("rangeService")],i.prototype,"rangeService",void 0),yg([Dt("mouseEventService")],i.prototype,"mouseEventService",void 0),yg([Dt("columnModel")],i.prototype,"columnModel",void 0),yg([Dt("cellNavigationService")],i.prototype,"cellNavigationService",void 0),yg([Dt("navigationService")],i.prototype,"navigationService",void 0),yg([Dt("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),yg([Dt("cellPositionUtils")],i.prototype,"cellPositionUtils",void 0),yg([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),yg([Ft],i.prototype,"init",null),i}(io),Sg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rg=function(){return Rg=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Rg.apply(this,arguments)},Og=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Ag=function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.markedCells=[],n.cellValues=[],n.isUp=!1,n.isLeft=!1,n.isReduce=!1,n.type=wh.FILL,n}return Sg(i,t),i.prototype.updateValuesOnMove=function(i){t.prototype.updateValuesOnMove.call(this,i),this.initialXY||(this.initialXY=this.mouseEventService.getNormalisedPosition(i));var n,e=this.initialXY,r=e.x,o=e.y,s=this.mouseEventService.getNormalisedPosition(i),u=s.y,h=Math.abs(r-s.x),c=Math.abs(o-u),a=this.gridOptionsWrapper.getFillHandleDirection();(n="xy"===a?h>c?"x":"y":a)!==this.dragAxis&&(this.dragAxis=n,this.changedCalculatedValues=!0)},i.prototype.onDrag=function(){if(!this.initialPosition){var t=this.getCellCtrl();if(!t)return;this.initialPosition=t.getCellPosition()}var i=this.getLastCellHovered();i&&this.markPathFrom(this.initialPosition,i)},i.prototype.onDragEnd=function(t){if(this.initialXY=null,this.markedCells.length){var i,n="x"===this.dragAxis,e=this.getCellRange(),r=e.columns.length,o=this.getRangeStartRow(),s=this.getRangeEndRow();if(this.isUp||this.isLeft){var u=n?o:this.lastCellMarked;i=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:u.rowIndex,rowStartPinned:u.rowPinned,columnStart:n?this.lastCellMarked.column:e.columns[0],rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnEnd:e.columns[r-1]})}else i=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,columnStart:e.columns[0],rowEndIndex:n?s.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:n?s.rowPinned:this.lastCellMarked.rowPinned,columnEnd:n?this.lastCellMarked.column:e.columns[r-1]});i&&(this.raiseFillStartEvent(),this.handleValueChanged(e,i,t),this.rangeService.setCellRanges([i]),this.raiseFillEndEvent(e,i))}},i.prototype.raiseFillStartEvent=function(){this.eventService.dispatchEvent({type:xi.EVENT_FILL_START})},i.prototype.raiseFillEndEvent=function(t,i){this.eventService.dispatchEvent({type:xi.EVENT_FILL_END,initialRange:t,finalRange:i})},i.prototype.handleValueChanged=function(t,i,n){var e=this,r=this.rangeService.getRangeEndRow(t),o=this.rangeService.getRangeStartRow(t),s=this.rangeService.getRangeEndRow(i),u=this.rangeService.getRangeStartRow(i),h="y"===this.dragAxis;if(!this.isReduce||this.gridOptionsWrapper.isSuppressClearOnFillReduction()){var c=!0,a=[],l=[],f=0,d=function(){a.length=0,l.length=0,f=0},v=function(i,n){var l=e.isUp?r:o,f=!1;h&&(c=!0,d());for(var v=function(){var v=e.rowPositionUtils.getRowNode(l);if(!v)return"break";h&&i?p(a,i,v,(function(){return!e.rowPositionUtils.sameRow(l,e.isUp?o:r)})):n&&(c=!0,d(),n.forEach((function(i){return p(a,i,v,(function(){return i!==(e.isLeft?t.columns[0]:Wr.last(t.columns))}))}))),f=e.rowPositionUtils.sameRow(l,e.isUp?u:s),l=e.isUp?e.cellNavigationService.getRowAbove(l):e.cellNavigationService.getRowBelow(l)};!f&&l&&"break"!==v(););},p=function(t,i,r,o){var s,u=!1;if(c)s=e.getValueFromObject(e.valueService.getValue(i,r)),l.push(s),c=o();else{var h=e.processValues(n,t,l,i,r,f++),a=h.fromUserFunction;if(s=h.value,i.isCellEditable(r)){var d=e.getValueFromObject(e.valueService.getValue(i,r));a&&d===s?u=!0:r.setDataValue(i,s,"rangeService")}}u||t.push(s)};h?t.columns.forEach((function(t){v(t)})):(g=this.isLeft?function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Og(arguments[i]));return t}(i.columns).reverse():i.columns,v(void 0,g))}else{var g=h?t.columns:t.columns.filter((function(t){return i.columns.indexOf(t)<0})),m=h?this.cellNavigationService.getRowBelow(s):u;m&&this.clearCellsInRange(m,r,g)}},i.prototype.clearCellsInRange=function(t,i,n){this.rangeService.clearCellRangeCellValues([{startRow:t,endRow:i,columns:n,startColumn:n[0]}])},i.prototype.processValues=function(t,i,n,e,r,o){var s,u=this.gridOptionsWrapper.getFillOperation();if(s="y"===this.dragAxis?this.isUp?"up":"down":this.isLeft?"left":"right",u){var h=u({event:t,values:i,initialValues:n,currentIndex:o,currentCellValue:this.valueService.getValue(e,r),direction:s,column:e,rowNode:r});if(!1!==h)return{value:h,fromUserFunction:!0}}var c=i.map(this.getValueFromObject),a=!c.some((function(t){var i=parseFloat(t);return isNaN(i)||i.toString()!==t.toString()}));if(t.altKey||!a){if(a&&1===n.length){var l=this.isUp||this.isLeft?-1:1;return{value:parseFloat(Wr.last(c))+1*l,fromUserFunction:!1}}return{value:c[o%c.length],fromUserFunction:!1}}return{value:Wr.last(Wr.findLineByLeastSquares(c.map(Number))),fromUserFunction:!1}},i.prototype.getValueFromObject=function(t){return null!=t&&"object"==typeof t?t.toString():t},i.prototype.clearValues=function(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,t.prototype.clearValues.call(this)},i.prototype.clearMarkedPath=function(){this.markedCells.forEach((function(t){if(t.isAlive()){var i=t.getComp();i.addOrRemoveCssClass("ag-selection-fill-top",!1),i.addOrRemoveCssClass("ag-selection-fill-right",!1),i.addOrRemoveCssClass("ag-selection-fill-bottom",!1),i.addOrRemoveCssClass("ag-selection-fill-left",!1)}})),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1},i.prototype.clearCellValues=function(){this.cellValues.length=0},i.prototype.markPathFrom=function(t,i){if(this.clearMarkedPath(),this.clearCellValues(),"y"===this.dragAxis){if(this.rowPositionUtils.sameRow(i,t))return;var n=this.rowPositionUtils.before(i,t),e=this.getRangeStartRow(),r=this.getRangeEndRow();n&&(i.rowPinned==e.rowPinned&&i.rowIndex>=e.rowIndex||e.rowPinned!=r.rowPinned&&i.rowPinned==r.rowPinned&&i.rowIndex<=r.rowIndex)?(this.reduceVertical(t,i),this.isReduce=!0):(this.extendVertical(t,i,n),this.isReduce=!1)}else{var o=t.column,s=i.column;if(o===s)return;var u=this.columnModel.getAllDisplayedColumns(),h=u.indexOf(o),c=u.indexOf(s);c<=h&&c>=u.indexOf(this.getCellRange().columns[0])?(this.reduceHorizontal(t,i),this.isReduce=!0):(this.extendHorizontal(t,i,c<h),this.isReduce=!1)}this.lastCellMarked=i},i.prototype.extendVertical=function(t,i,n){var e=this.navigationService,r=this.rangeService,o=t;do{for(var s=this.getCellRange(),u=s.columns.length,h=0;h<u;h++){var c=s.columns[h],a=Rg(Rg({},{rowIndex:o.rowIndex,rowPinned:o.rowPinned}),{column:c}),l=r.isCellInSpecificRange(a,s),f=this.rowPositionUtils.sameRow(o,t);if(n&&(this.isUp=!0),!f){var d=e.getCellByPosition(a);if(d){this.markedCells.push(d);var v=d.getComp();l||(v.addOrRemoveCssClass("ag-selection-fill-left",0===h),v.addOrRemoveCssClass("ag-selection-fill-right",h===u-1)),v.addOrRemoveCssClass(n?"ag-selection-fill-top":"ag-selection-fill-bottom",this.rowPositionUtils.sameRow(o,i))}}}if(this.rowPositionUtils.sameRow(o,i))break}while(o=n?this.cellNavigationService.getRowAbove(o):this.cellNavigationService.getRowBelow(o))},i.prototype.reduceVertical=function(t,i){var n=t;do{for(var e=this.getCellRange(),r=e.columns.length,o=this.rowPositionUtils.sameRow(n,i),s=0;s<r;s++){var u=Rg(Rg({},{rowIndex:n.rowIndex,rowPinned:n.rowPinned}),{column:e.columns[s]}),h=this.navigationService.getCellByPosition(u);h&&(this.markedCells.push(h),h.getComp().addOrRemoveCssClass("ag-selection-fill-bottom",this.rowPositionUtils.sameRow(n,i)))}if(o)break}while(n=this.cellNavigationService.getRowAbove(n))},i.prototype.extendHorizontal=function(t,i,n){var e=this,r=this.columnModel.getAllDisplayedColumns(),o=r.indexOf(n?i.column:t.column),s=r.indexOf(n?this.getCellRange().columns[0]:i.column),u=n?0:1,h=r.slice(o+u,s+u),c=this.getRangeStartRow(),a=this.getRangeEndRow();h.forEach((function(t){var i=c,r=!1;do{r=e.rowPositionUtils.sameRow(i,a);var o=e.navigationService.getCellByPosition({rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:t});if(o){e.markedCells.push(o);var s=o.getComp();s.addOrRemoveCssClass("ag-selection-fill-top",e.rowPositionUtils.sameRow(i,c)),s.addOrRemoveCssClass("ag-selection-fill-bottom",e.rowPositionUtils.sameRow(i,a)),n?(e.isLeft=!0,s.addOrRemoveCssClass("ag-selection-fill-left",t===h[0])):s.addOrRemoveCssClass("ag-selection-fill-right",t===Wr.last(h))}i=e.cellNavigationService.getRowBelow(i)}while(!r)}))},i.prototype.reduceHorizontal=function(t,i){var n=this,e=this.columnModel.getAllDisplayedColumns(),r=e.indexOf(i.column),o=e.indexOf(t.column),s=e.slice(r,o),u=this.getRangeStartRow(),h=this.getRangeEndRow();s.forEach((function(t){var i=u,e=!1;do{e=n.rowPositionUtils.sameRow(i,h);var r=n.navigationService.getCellByPosition({rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:t});r&&(n.markedCells.push(r),r.getComp().addOrRemoveCssClass("ag-selection-fill-right",t===s[0])),i=n.cellNavigationService.getRowBelow(i)}while(!e)}))},i.prototype.refresh=function(i){var n=this.rangeService.getCellRanges()[0];n.startRow&&n.endRow?t.prototype.refresh.call(this,i):this.destroy()},i.TEMPLATE='<div class="ag-fill-handle"></div>',function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);o>3&&s&&Object.defineProperty(i,n,s)}([Dt("valueService")],i.prototype,"valueService",void 0),i}(Cg),jg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_g=function(){return _g=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},_g.apply(this,arguments)},Gg=function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.type=wh.RANGE,n.rangeFixed=!1,n}return jg(i,t),i.prototype.onDrag=function(){var t=this.getLastCellHovered();if(t){var i=this.rangeService.getCellRanges(),n=Wr.last(i);this.rangeFixed||(this.fixRangeStartEnd(n),this.rangeFixed=!0),this.endPosition={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column},2===i.length&&i[0].type===yh.DIMENSION&&n.type===yh.VALUE&&!this.rowPositionUtils.sameRow(this.endPosition,this.rangeService.getRangeEndRow(n))&&this.rangeService.updateRangeEnd(i[0],_g(_g({},this.endPosition),{column:i[0].columns[0]}),!0),this.rangeService.extendLatestRangeToCell(this.endPosition)}},i.prototype.onDragEnd=function(){var t=Wr.last(this.rangeService.getCellRanges());this.fixRangeStartEnd(t),this.rangeFixed=!1},i.prototype.fixRangeStartEnd=function(t){var i=this.rangeService.getRangeStartRow(t),n=this.rangeService.getRangeEndRow(t),e=t.columns[0];t.startRow=i,t.endRow=n,t.startColumn=e},i.TEMPLATE='<div class="ag-range-handle"></div>',i}(Cg),xg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Mg=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return xg(i,t),i.prototype.createSelectionHandle=function(t){return this.createBean(t===wh.RANGE?new Gg:new Ag)},function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s}([Pt("selectionHandleFactory")],i)}(Ai),Fg={moduleName:Nt.RangeSelectionModule,beans:[bg,Mg],agStackComponents:[{componentName:"AgFillHandle",componentClass:Ag},{componentName:"AgRangeHandle",componentClass:Gg}],dependantModules:[Kp]},kg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Pg=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Dg=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.onRowHeightChanged_debounced=Wr.debounce(i.onRowHeightChanged.bind(i),100),i.pauseStoreUpdateListening=!1,i.started=!1,i}return kg(i,t),i.prototype.ensureRowHeightsValid=function(){return!1},i.prototype.start=function(){this.started=!0;var t=this.gridOptionsWrapper.getServerSideDatasource();t&&this.setDatasource(t)},i.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)},i.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_STORE_UPDATED,this.onStoreUpdated.bind(this));var t=this.resetRootStore.bind(this);this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VALUE_CHANGED,t),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_CHANGED,t),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.verifyProps()},i.prototype.verifyProps=function(){null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()&&Wr.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Server Side Row Model. If using Full Store, then provide the rows to the grid in the desired sort order. If using Infinite Scroll, then sorting is done on the server side, nothing to do with the client.")}),"SSRM.InitialGroupOrderComparator"),this.gridOptionsWrapper.isRowSelection()&&null==this.gridOptionsWrapper.getRowIdFunc()&&Wr.doOnce((function(){return console.warn("AG Grid: getRowId callback must be provided for Server Side Row Model selection to work correctly.")}),"SSRM.SelectionNeedsRowNodeIdFunc")},i.prototype.setDatasource=function(t){this.started&&(this.destroyDatasource(),this.datasource=t,this.resetRootStore())},i.prototype.isLastRowIndexKnown=function(){var t=this.getRootStore();return!!t&&t.isLastRowIndexKnown()},i.prototype.onColumnEverything=function(){if(!this.gridOptionsWrapper.isSuppressEnterpriseResetOnNewColumns())if(this.storeParams){var t=this.columnsToValueObjects(this.columnModel.getRowGroupColumns()),i=this.columnsToValueObjects(this.columnModel.getValueColumns()),n=this.columnsToValueObjects(this.columnModel.getPivotColumns()),e=!Wr.jsonEquals(this.storeParams.sortModel,this.sortController.getSortModel()),r=!Wr.jsonEquals(this.storeParams.rowGroupCols,t),o=!Wr.jsonEquals(this.storeParams.pivotCols,n),s=!Wr.jsonEquals(this.storeParams.valueCols,i);(e||r||o||s)&&this.resetRootStore()}else this.resetRootStore()},i.prototype.destroyRootStore=function(){this.rootNode&&this.rootNode.childStore&&(this.rootNode.childStore=this.destroyBean(this.rootNode.childStore),this.nodeManager.clear())},i.prototype.refreshAfterSort=function(t,i){this.storeParams&&(this.storeParams.sortModel=t);var n=this.getRootStore();n&&(n.refreshAfterSort(i),this.onStoreUpdated())},i.prototype.resetRootStore=function(){this.destroyRootStore(),this.rootNode=new Ws(this.beans),this.rootNode.group=!0,this.rootNode.level=-1,this.datasource&&(this.storeParams=this.createStoreParams(),this.rootNode.childStore=this.createBean(this.storeFactory.createStore(this.storeParams,this.rootNode)),this.updateRowIndexesAndBounds()),this.eventService.dispatchEvent({type:xi.EVENT_ROW_DATA_UPDATED}),this.dispatchModelUpdated(!0)},i.prototype.columnsToValueObjects=function(t){var i=this;return t.map((function(t){return{id:t.getId(),aggFunc:t.getAggFunc(),displayName:i.columnModel.getDisplayNameForColumn(t,"model"),field:t.getColDef().field}}))},i.prototype.createStoreParams=function(){var t=this.columnsToValueObjects(this.columnModel.getRowGroupColumns()),i=this.columnsToValueObjects(this.columnModel.getValueColumns()),n=this.columnsToValueObjects(this.columnModel.getPivotColumns()),e=this.gridOptionsWrapper.isDynamicRowHeight();return{valueCols:i,rowGroupCols:t,pivotCols:n,pivotMode:this.columnModel.isPivotMode(),filterModel:this.filterManager.getFilterModel(),sortModel:this.sortListener.extractSortModel(),datasource:this.datasource,lastAccessedSequence:new Vr,dynamicRowHeight:e}},i.prototype.getParams=function(){return this.storeParams},i.prototype.dispatchModelUpdated=function(t){void 0===t&&(t=!1),this.eventService.dispatchEvent({type:xi.EVENT_MODEL_UPDATED,animate:!t,keepRenderedRows:!t,newPage:!1,newData:!1})},i.prototype.onStoreUpdated=function(){this.pauseStoreUpdateListening||(this.updateRowIndexesAndBounds(),this.dispatchModelUpdated())},i.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},i.prototype.onRowHeightChanged=function(){this.updateRowIndexesAndBounds(),this.dispatchModelUpdated()},i.prototype.updateRowIndexesAndBounds=function(){var t=this.getRootStore();t&&t.setDisplayIndexes(new Vr,{value:0})},i.prototype.retryLoads=function(){var t=this.getRootStore();t&&(t.retryLoads(),this.onStoreUpdated())},i.prototype.getRow=function(t){var i=this.getRootStore();if(i)return i.getRowUsingDisplayIndex(t)},i.prototype.expandAll=function(t){this.pauseStoreUpdateListening=!0,this.forEachNode((function(i){i.group&&!i.stub&&i.setExpanded(t)})),this.pauseStoreUpdateListening=!1,this.onStoreUpdated()},i.prototype.refreshAfterFilter=function(t,i){this.storeParams&&(this.storeParams.filterModel=t);var n=this.getRootStore();n&&(n.refreshAfterFilter(i),this.onStoreUpdated())},i.prototype.getRootStore=function(){if(this.rootNode&&this.rootNode.childStore)return this.rootNode.childStore},i.prototype.getRowCount=function(){var t=this.getRootStore();return t?t.getDisplayIndexEnd():0},i.prototype.getTopLevelRowCount=function(){var t=this.getRootStore();return t?t.getRowCount():1},i.prototype.getTopLevelRowDisplayedIndex=function(t){var i=this.getRootStore();return i?i.getTopLevelRowDisplayedIndex(t):t},i.prototype.getRowBounds=function(t){var i=this.getRootStore();return i?i.getRowBounds(t):{rowTop:0,rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber()}},i.prototype.getRowIndexAtPixel=function(t){var i=this.getRootStore();return t<=0||!i?0:i.getRowIndexAtPixel(t)},i.prototype.isEmpty=function(){return!1},i.prototype.isRowsToRender=function(){return null!=this.getRootStore()&&this.getRowCount()>0},i.prototype.getType=function(){return Vt.ROW_MODEL_TYPE_SERVER_SIDE},i.prototype.forEachNode=function(t){var i=this.getRootStore();i&&i.forEachNodeDeep(t)},i.prototype.forEachNodeAfterFilterAndSort=function(t){var i=this.getRootStore();i&&i.forEachNodeDeepAfterFilterAndSort(t)},i.prototype.executeOnStore=function(t,i){var n=this.getRootStore();if(n){var e=n.getChildStore(t);e&&i(e)}},i.prototype.refreshStore=function(t){void 0===t&&(t={}),this.executeOnStore(t.route?t.route:[],(function(i){return i.refreshStore(1==t.purge)}))},i.prototype.getStoreState=function(){var t=[],i=this.getRootStore();return i&&i.addStoreStates(t),t},i.prototype.getNodesInRangeForSelection=function(t,i){return Wr.exists(i)&&t.parent!==i.parent?[]:t.parent.childStore.getRowNodesInRange(i,t)},i.prototype.getRowNode=function(t){var i;return this.forEachNode((function(n){n.id===t&&(i=n),n.detailNode&&n.detailNode.id===t&&(i=n.detailNode)})),i},i.prototype.isRowPresent=function(t){return!!this.getRowNode(t.id)},Pg([Dt("columnModel")],i.prototype,"columnModel",void 0),Pg([Dt("filterManager")],i.prototype,"filterManager",void 0),Pg([Dt("sortController")],i.prototype,"sortController",void 0),Pg([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),Pg([Dt("ssrmSortService")],i.prototype,"sortListener",void 0),Pg([Dt("ssrmNodeManager")],i.prototype,"nodeManager",void 0),Pg([Dt("ssrmStoreFactory")],i.prototype,"storeFactory",void 0),Pg([Dt("beans")],i.prototype,"beans",void 0),Pg([kt],i.prototype,"destroyDatasource",null),Pg([Ft],i.prototype,"addEventListeners",null),Pg([kt],i.prototype,"destroyRootStore",null),Pg([Pt("rowModel")],i)}(Ai),Ig=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Eg=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Tg=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ig(i,t),i.prototype.loadFromDatasource=function(t){var i=t.storeParams,n=t.parentBlock,e=t.parentNode.getGroupKeys();if(i.datasource){var r={successCallback:t.successCallback,success:t.success,failCallback:t.failCallback,fail:t.fail,request:{startRow:t.startRow,endRow:t.endRow,rowGroupCols:i.rowGroupCols,valueCols:i.valueCols,pivotCols:i.pivotCols,pivotMode:i.pivotMode,groupKeys:e,filterModel:i.filterModel,sortModel:i.sortModel},parentNode:t.parentNode,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};window.setTimeout((function(){i.datasource&&n.isAlive()?i.datasource.getRows(r):t.failCallback()}),0)}},i.prototype.getChildStore=function(t,i,n){if(Wr.missingOrEmpty(t))return i;var e=n(t[0]);if(e){var r=t.slice(1,t.length),o=e.childStore;return o?o.getChildStore(r):null}return null},i.prototype.isServerRefreshNeeded=function(t,i,n){if(n.valueColChanged||n.secondaryColChanged)return!0;var e=t.level+1;if(!(e<i.length))return!0;var r=i[e].id;return n.changedColumns.indexOf(r)>-1||this.columnModel.getAllGridColumns().filter((function(t){return t.getColDef().showRowGroup&&n.changedColumns.includes(t.getId())})).map((function(t){return t.getColDef().showRowGroup})).some((function(t){return!0===t||t===r}))},Eg([Dt("columnApi")],i.prototype,"columnApi",void 0),Eg([Dt("columnModel")],i.prototype,"columnModel",void 0),Eg([Dt("gridApi")],i.prototype,"gridApi",void 0),Eg([Pt("ssrmStoreUtils")],i)}(Ai),zg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ng=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Lg=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return zg(i,t),i.prototype.postConstruct=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.usingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},i.prototype.createRowNode=function(t){var i=new Ws(this.beans);return i.setRowHeight(null!=t.rowHeight?t.rowHeight:this.rowHeight),i.group=t.group,i.leafGroup=t.leafGroup,i.level=t.level,i.uiLevel=t.level,i.parent=t.parent,i.stub=!0,i.group&&(i.expanded=!1,i.field=t.field,i.rowGroupColumn=t.rowGroupColumn),i},i.prototype.destroyRowNodes=function(t){var i=this;t&&t.forEach((function(t){return i.destroyRowNode(t)}))},i.prototype.destroyRowNode=function(t,i){void 0===i&&(i=!1),t.childStore&&!i&&(this.destroyBean(t.childStore),t.childStore=null),t.clearRowTopAndRowIndex(),null!=t.id&&this.nodeManager.removeNode(t)},i.prototype.setTreeGroupInfo=function(t){var i=this.gridOptionsWrapper.getIsServerSideGroupFunc(),n=this.gridOptionsWrapper.getServerSideGroupKeyFunc();null!=i&&(t.setGroup(i(t.data)),t.group&&null!=n&&(t.key=n(t.data))),t.group||null==t.childStore||(this.destroyBean(t.childStore),t.childStore=null)},i.prototype.setRowGroupInfo=function(t){t.key=this.valueService.getValue(t.rowGroupColumn,t),null==t.key&&Wr.doOnce((function(){console.warn("AG Grid: null and undefined values are not allowed for server side row model keys"),t.rowGroupColumn&&console.warn("column = "+t.rowGroupColumn.getId()),console.warn("data is ",t.data)}),"ServerSideBlock-CannotHaveNullOrUndefinedForKey")},i.prototype.setMasterDetailInfo=function(t){var i=this.gridOptionsWrapper.getIsRowMasterFunc();t.master=null==i||i(t.data)},i.prototype.updateDataIntoRowNode=function(t,i){t.updateData(i),this.usingTreeData&&this.setTreeGroupInfo(t)},i.prototype.setDataIntoRowNode=function(t,i,n,e){t.stub=!1,Wr.exists(i)?(t.setDataAndId(i,n),this.usingTreeData?this.setTreeGroupInfo(t):t.group?this.setRowGroupInfo(t):this.usingMasterDetail&&this.setMasterDetailInfo(t)):(t.setDataAndId(void 0,void 0),t.key=null),(this.usingTreeData||t.group)&&(this.setGroupDataIntoRowNode(t),this.setChildCountIntoRowNode(t)),Wr.exists(i)&&t.setRowHeight(this.gridOptionsWrapper.getRowHeightForNode(t,!1,e).height)},i.prototype.setChildCountIntoRowNode=function(t){var i=this.gridOptionsWrapper.getChildCountFunc();i&&(t.allChildrenCount=i(t.data))},i.prototype.setGroupDataIntoRowNode=function(t){var i=this,n=this.columnModel.getGroupDisplayColumns(),e=this.gridOptionsWrapper.isTreeData();n.forEach((function(n){if(null==t.groupData&&(t.groupData={}),e)t.groupData[n.getColId()]=t.key;else if(n.isRowGroupDisplayed(t.rowGroupColumn.getId())){var r=i.valueService.getValue(t.rowGroupColumn,t);t.groupData[n.getColId()]=r}}))},i.prototype.clearDisplayIndex=function(t){t.clearRowTopAndRowIndex(),t.group&&Wr.exists(t.childStore)&&t.childStore.clearDisplayIndexes(),t.master&&t.detailNode&&t.detailNode.clearRowTopAndRowIndex()},i.prototype.setDisplayIndex=function(t,i,n){if(t.setRowIndex(i.next()),t.setRowTop(n.value),n.value+=t.rowHeight,t.master&&(t.expanded&&t.detailNode?(t.detailNode.setRowIndex(i.next()),t.detailNode.setRowTop(n.value),n.value+=t.detailNode.rowHeight):t.detailNode&&t.detailNode.clearRowTopAndRowIndex()),t.group&&Wr.exists(t.childStore)){var e=t.childStore;t.expanded?e.setDisplayIndexes(i,n):e.clearDisplayIndexes()}},i.prototype.binarySearchForDisplayIndex=function(t,i){var n=0,e=i.length-1;if(Wr.missing(e)||Wr.missing(n))console.warn("AG Grid: error: topPointer = "+e+", bottomPointer = "+n);else for(;;){var r=Math.floor((n+e)/2),o=i[r];if(o.rowIndex===t)return o;var s=o.detailNode;if(o.master&&o.expanded&&s&&s.rowIndex===t)return o.detailNode;var u=o.childStore;if(o.expanded&&u&&u.isDisplayIndexInStore(t))return u.getRowUsingDisplayIndex(t);if(o.rowIndex<t)n=r+1;else{if(!(o.rowIndex>t))return void console.warn("AG Grid: error: unable to locate rowIndex = "+t+" in cache");e=r-1}}},i.prototype.extractRowBounds=function(t,i){var n=function(t){return{rowHeight:t.rowHeight,rowTop:t.rowTop}};if(t.rowIndex===i)return n(t);if(t.group&&t.expanded&&Wr.exists(t.childStore)){var e=t.childStore;if(e.isDisplayIndexInStore(i))return e.getRowBounds(i)}else if(t.master&&t.expanded&&Wr.exists(t.detailNode)&&t.detailNode.rowIndex===i)return n(t.detailNode)},i.prototype.getIndexAtPixel=function(t,i){if(t.isPixelInRange(i))return t.rowIndex;var n=t.detailNode;if(t.master&&t.expanded&&n&&n.isPixelInRange(i))return t.detailNode.rowIndex;if(t.group&&t.expanded&&Wr.exists(t.childStore)){var e=t.childStore;if(e.isPixelInRange(i))return e.getRowIndexAtPixel(i)}return null},i.prototype.createNodeIdPrefix=function(t){for(var i=[],n=t;n&&n.level>=0;)i.push(n.key),n=n.parent;if(i.length>0)return i.reverse().join("-")},i.prototype.checkOpenByDefault=function(t){if(t.isExpandable()){var i=this.gridOptionsWrapper.getIsServerSideGroupOpenByDefaultFunc();i&&i({data:t.data,rowNode:t})&&window.setTimeout((function(){return t.setExpanded(!0)}),0)}},Ng([Dt("valueService")],i.prototype,"valueService",void 0),Ng([Dt("columnModel")],i.prototype,"columnModel",void 0),Ng([Dt("ssrmNodeManager")],i.prototype,"nodeManager",void 0),Ng([Dt("beans")],i.prototype,"beans",void 0),Ng([Ft],i.prototype,"postConstruct",null),Ng([Pt("ssrmBlockUtils")],i)}(Ai),Bg=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Hg=function(){function t(){this.rowNodes={}}return t.prototype.addRowNode=function(t){var i=t.id;this.rowNodes[i]&&(console.warn("AG Grid: Duplicate node id "+t.id+". Row ID's are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values."),console.warn("first instance",this.rowNodes[i].data),console.warn("second instance",t.data)),this.rowNodes[i]=t},t.prototype.removeNode=function(t){var i=t.id;this.rowNodes[i]&&(this.rowNodes[i]=void 0)},t.prototype.clear=function(){this.rowNodes={}},Bg([kt],t.prototype,"clear",null),Bg([Pt("ssrmNodeManager")],t)}(),Wg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vg=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Ug=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.asyncTransactions=[],i}return Wg(i,t),i.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelServerSide()},i.prototype.applyTransactionAsync=function(t,i){null==this.asyncTransactionsTimeout&&this.scheduleExecuteAsync(),this.asyncTransactions.push({transaction:t,callback:i})},i.prototype.scheduleExecuteAsync=function(){var t=this,i=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.asyncTransactionsTimeout=window.setTimeout((function(){t.executeAsyncTransactions()}),i)},i.prototype.executeAsyncTransactions=function(){var t=this;if(this.asyncTransactions){var i=[],n=[],e=[],r=!1;this.asyncTransactions.forEach((function(o){var s;t.serverSideRowModel.executeOnStore(o.transaction.route,(function(t){s=t.applyTransaction(o.transaction)})),null==s&&(s={status:ll.StoreNotFound}),n.push(s),s.status==ll.StoreLoading?e.push(o):(o.callback&&i.push((function(){return o.callback(s)})),s.status===ll.Applied&&(r=!0))})),i.length>0&&window.setTimeout((function(){i.forEach((function(t){return t()}))}),0),this.asyncTransactionsTimeout=void 0,this.asyncTransactions=e,r&&(this.valueCache.onDataChanged(),this.eventService.dispatchEvent({type:xi.EVENT_STORE_UPDATED})),n.length>0&&this.eventService.dispatchEvent({type:xi.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n})}},i.prototype.flushAsyncTransactions=function(){null!=this.asyncTransactionsTimeout&&clearTimeout(this.asyncTransactionsTimeout),this.executeAsyncTransactions()},i.prototype.applyTransaction=function(t){var i,n=this;return this.serverSideRowModel.executeOnStore(t.route,(function(n){i=n.applyTransaction(t)})),i?(this.valueCache.onDataChanged(),this.eventService.dispatchEvent({type:xi.EVENT_STORE_UPDATED}),i.update&&i.update.length&&setTimeout((function(){n.rowRenderer.refreshFullWidthRows(i.update)}),0),i):{status:ll.StoreNotFound}},Vg([Dt("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),Vg([Dt("valueCache")],i.prototype,"valueCache",void 0),Vg([Dt("rowModel")],i.prototype,"serverSideRowModel",void 0),Vg([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),Vg([Ft],i.prototype,"postConstruct",null),Vg([Pt("ssrmTransactionManager")],i)}(Ai),Kg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),$g=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},qg=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Kg(i,t),i.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelServerSide()&&this.addManagedListener(this.eventService,xi.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this))},i.prototype.onRowGroupOpened=function(t){var i=t.node;if(i.expanded){if(i.master)this.createDetailNode(i);else if(Wr.missing(i.childStore)){var n=this.serverSideRowModel.getParams();i.childStore=this.createBean(this.storeFactory.createStore(n,i))}}else this.gridOptionsWrapper.isPurgeClosedRowNodes()&&Wr.exists(i.childStore)&&(i.childStore=this.destroyBean(i.childStore));this.eventService.dispatchEvent({type:xi.EVENT_STORE_UPDATED})},i.prototype.createDetailNode=function(t){if(Wr.exists(t.detailNode))return t.detailNode;var i=new Ws(this.beans);i.detail=!0,i.selectable=!1,i.parent=t,Wr.exists(t.id)&&(i.id="detail_"+t.id),i.data=t.data,i.level=t.level+1;var n=this.gridOptionsWrapper.getRowHeightForNode(i).height;return i.rowHeight=n||200,t.detailNode=i,i},$g([Dt("rowModel")],i.prototype,"serverSideRowModel",void 0),$g([Dt("ssrmStoreFactory")],i.prototype,"storeFactory",void 0),$g([Dt("beans")],i.prototype,"beans",void 0),$g([Ft],i.prototype,"postConstruct",null),$g([Pt("ssrmExpandListener")],i)}(Ai),Yg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Jg=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Zg=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Yg(i,t),i.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelServerSide()&&this.addManagedListener(this.eventService,xi.EVENT_SORT_CHANGED,this.onSortChanged.bind(this))},i.prototype.extractSortModel=function(){var t=this.sortController.getSortModel();return this.gridOptionsWrapper.isTreeData()||(this.replaceAutoGroupColumnWithActualRowGroupColumns(t),this.removeMultiColumnPrefixOnColumnIds(t)),t},i.prototype.removeMultiColumnPrefixOnColumnIds=function(t){if(this.gridOptionsWrapper.isGroupMultiAutoColumn())for(var i=Vt.GROUP_AUTO_COLUMN_ID+"-",n=0;n<t.length;++n)t[n].colId.indexOf(i)>-1&&(t[n].colId=t[n].colId.substr(i.length))},i.prototype.replaceAutoGroupColumnWithActualRowGroupColumns=function(t){var i=t.find((function(t){return t.colId==Vt.GROUP_AUTO_COLUMN_ID}));if(i){var n=t.indexOf(i);Wr.removeFromArray(t,i);var e=this.columnModel.getRowGroupColumns().filter((function(i){return 0==t.filter((function(t){return t.colId===i.getColId()})).length})).map((function(t){return{colId:t.getId(),sort:i.sort}}));Wr.insertArrayIntoArray(t,e,n)}},i.prototype.onSortChanged=function(){var t=this.serverSideRowModel.getParams();if(t){var i=this.extractSortModel(),n=this.findChangedColumnsInSort(i,t.sortModel),e=this.listenerUtils.isSortingWithValueColumn(n),r=this.listenerUtils.isSortingWithSecondaryColumn(n);this.serverSideRowModel.refreshAfterSort(i,{valueColChanged:e,secondaryColChanged:r,changedColumns:n})}},i.prototype.findChangedColumnsInSort=function(t,i){var n=[];return[t,i].forEach((function(t){if(t){var i=t.map((function(t){return t.colId}));n=n.concat(i)}})),n.filter((function(n){var e=i.find((function(t){return t.colId===n})),r=t.find((function(t){return t.colId===n}));return function(t,i){return(t?t.sort:null)!==(i?i.sort:null)}(e,r)||function(n,e){return(n?i.indexOf(n):-1)!==(e?t.indexOf(e):-1)}(e,r)}))},Jg([Dt("sortController")],i.prototype,"sortController",void 0),Jg([Dt("columnModel")],i.prototype,"columnModel",void 0),Jg([Dt("rowModel")],i.prototype,"serverSideRowModel",void 0),Jg([Dt("ssrmListenerUtils")],i.prototype,"listenerUtils",void 0),Jg([Ft],i.prototype,"postConstruct",null),Jg([Pt("ssrmSortService")],i)}(Ai),Xg=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Qg=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},tm=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Xg(i,t),i.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelServerSide()&&this.addManagedListener(this.eventService,xi.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},i.prototype.onFilterChanged=function(){var t=this.serverSideRowModel.getParams();if(t){var i=this.filterManager.getFilterModel(),n=this.findChangedColumns(i,t?t.filterModel:{}),e=this.listenerUtils.isSortingWithValueColumn(n),r=this.listenerUtils.isSortingWithSecondaryColumn(n);this.serverSideRowModel.refreshAfterFilter(i,{valueColChanged:e,secondaryColChanged:r,changedColumns:n})}},i.prototype.findChangedColumns=function(t,i){var n={};Object.keys(t).forEach((function(t){return n[t]=!0})),Object.keys(i).forEach((function(t){return n[t]=!0}));var e=[];return Object.keys(n).forEach((function(n){JSON.stringify(t[n])!=JSON.stringify(i[n])&&e.push(n)})),e},Qg([Dt("rowModel")],i.prototype,"serverSideRowModel",void 0),Qg([Dt("filterManager")],i.prototype,"filterManager",void 0),Qg([Dt("ssrmListenerUtils")],i.prototype,"listenerUtils",void 0),Qg([Ft],i.prototype,"postConstruct",null),Qg([Pt("ssrmFilterListener")],i)}(Ai),im=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),nm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},em=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},rm=function(t){function i(i,n,e,r,o){var s=t.call(this,i)||this;return s.ssrmParams=e,s.storeParams=r,s.parentRowNode=n,s.startRow=i*r.cacheBlockSize,s.parentStore=o,s.level=n.level+1,s.groupLevel=e.rowGroupCols?s.level<e.rowGroupCols.length:void 0,s.leafGroup=!!e.rowGroupCols&&s.level===e.rowGroupCols.length-1,s}return im(i,t),i.prototype.postConstruct=function(){this.usingTreeData=this.gridOptionsWrapper.isTreeData(),!this.usingTreeData&&this.groupLevel&&(this.groupField=this.ssrmParams.rowGroupCols[this.level].field,this.rowGroupColumn=this.columnModel.getRowGroupColumns()[this.level]),this.nodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.parentRowNode),this.setData([])},i.prototype.isDisplayIndexInBlock=function(t){return t>=this.displayIndexStart&&t<this.displayIndexEnd},i.prototype.isBlockBefore=function(t){return t>=this.displayIndexEnd},i.prototype.getDisplayIndexStart=function(){return this.displayIndexStart},i.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},i.prototype.getBlockHeightPx=function(){return this.blockHeightPx},i.prototype.getBlockTopPx=function(){return this.blockTopPx},i.prototype.isGroupLevel=function(){return this.groupLevel},i.prototype.getGroupField=function(){return this.groupField},i.prototype.prefixId=function(t){return null!=this.nodeIdPrefix?this.nodeIdPrefix+"-"+t:t.toString()},i.prototype.getBlockStateJson=function(){return{id:this.prefixId(this.getId()),state:{blockNumber:this.getId(),startRow:this.startRow,endRow:this.startRow+this.storeParams.cacheBlockSize,pageStatus:this.getState()}}},i.prototype.isAnyNodeOpen=function(){return this.rowNodes.filter((function(t){return t.expanded})).length>0},i.prototype.forEachNode=function(t,i,n,e){void 0===i&&(i=new Vr),this.rowNodes.forEach((function(r){if(t(r,i.next()),n&&r.childStore){var o=r.childStore;e?o.forEachNodeDeepAfterFilterAndSort(t,i):o.forEachNodeDeep(t,i)}}))},i.prototype.forEachNodeDeep=function(t,i){this.forEachNode(t,i,!0,!1)},i.prototype.forEachNodeAfterFilterAndSort=function(t,i){this.forEachNode(t,i,!0,!0)},i.prototype.forEachNodeShallow=function(t,i){this.forEachNode(t,i,!1,!1)},i.prototype.getLastAccessed=function(){return this.lastAccessed},i.prototype.getRowUsingLocalIndex=function(t){return this.rowNodes[t-this.startRow]},i.prototype.touchLastAccessed=function(){this.lastAccessed=this.ssrmParams.lastAccessedSequence.next()},i.prototype.processServerFail=function(){this.parentStore.onBlockLoadFailed(this)},i.prototype.retryLoads=function(){this.getState()===sf.STATE_FAILED&&(this.setStateWaitingToLoad(),this.rowNodeBlockLoader.checkBlockToLoad(),this.setData()),this.forEachNodeShallow((function(t){t.childStore&&t.childStore.retryLoads()}))},i.prototype.processServerResult=function(t){this.parentStore.onBlockLoaded(this,t)},i.prototype.setData=function(t,i){var n=this;void 0===t&&(t=[]),void 0===i&&(i=!1),this.destroyRowNodes();for(var e=this.parentStore.getRowCount(),r=this.getId()*this.storeParams.cacheBlockSize,o=Math.min(r+this.storeParams.cacheBlockSize,e)-r,s=this.columnModel.getAllDisplayedAutoHeightCols().length>0?this.parentStore.getCachedBlockHeight(this.getId()):void 0,u=s?Math.round(s/o):void 0,h=function(e){var r=e<t.length,o=function(o){var s=null!=o?o:n.blockUtils.createRowNode({field:n.groupField,group:n.groupLevel,leafGroup:n.leafGroup,level:n.level,parent:n.parentRowNode,rowGroupColumn:n.rowGroupColumn,rowHeight:u});if(r){var h=t[e];if(o)n.blockUtils.updateDataIntoRowNode(s,h);else{var c=n.prefixId(n.startRow+e);n.blockUtils.setDataIntoRowNode(s,h,c,u),n.blockUtils.checkOpenByDefault(s)}n.parentStore.removeDuplicateNode(s.id),n.nodeManager.addRowNode(s),n.allNodesMap[s.id]=s}return i&&(s.failedLoad=!0),s},s=c.gridOptionsWrapper.getRowIdFunc(),h=void 0;if(s&&r){var a=t[e],l=c.parentRowNode.getGroupKeys(),f=s({data:a,level:c.level,parentKeys:l.length>0?l:void 0});h=o(c.parentStore.retrieveNodeFromCache(f))}h||(h=o()),c.rowNodes.push(h)},c=this,a=0;a<o;a++)h(a)},i.prototype.removeDuplicateNode=function(t){if(this.getState()!=sf.STATE_LOADED){var i=this.allNodesMap[t];if(i){this.blockUtils.destroyRowNode(i);var n=this.rowNodes.indexOf(i),e=this.blockUtils.createRowNode({field:this.groupField,group:this.groupLevel,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn});this.rowNodes[n]=e}}},i.prototype.refresh=function(){this.getState()!==sf.STATE_WAITING_TO_LOAD&&this.setStateWaitingToLoad()},i.prototype.destroyRowNodes=function(){var t,i=this;null===(t=this.rowNodes)||void 0===t||t.forEach((function(t){var n=i.parentStore.isNodeCached(t.id);i.blockUtils.destroyRowNode(t,n)})),this.rowNodes=[],this.allNodesMap={}},i.prototype.setBeans=function(t){this.logger=t.create("ServerSideBlock")},i.prototype.getRowUsingDisplayIndex=function(t){return this.touchLastAccessed(),this.blockUtils.binarySearchForDisplayIndex(t,this.rowNodes)},i.prototype.loadFromDatasource=function(){this.storeUtils.loadFromDatasource({startRow:this.startRow,endRow:this.startRow+this.storeParams.cacheBlockSize,parentBlock:this,parentNode:this.parentRowNode,storeParams:this.ssrmParams,successCallback:this.pageLoaded.bind(this,this.getVersion()),success:this.success.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),fail:this.pageLoadFailed.bind(this,this.getVersion())})},i.prototype.isPixelInRange=function(t){return t>=this.blockTopPx&&t<this.blockTopPx+this.blockHeightPx},i.prototype.getRowBounds=function(t){var i,n,e;this.touchLastAccessed();try{for(var r=em(this.rowNodes),o=r.next();!o.done&&null==(e=this.blockUtils.extractRowBounds(o.value,t));o=r.next());}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return e},i.prototype.getRowIndexAtPixel=function(t){var i,n;this.touchLastAccessed();var e=null;try{for(var r=em(this.rowNodes),o=r.next();!o.done&&null==(e=this.blockUtils.getIndexAtPixel(o.value,t));o=r.next());}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return e},i.prototype.clearDisplayIndexes=function(){var t=this;this.displayIndexEnd=void 0,this.displayIndexStart=void 0,this.rowNodes.forEach((function(i){return t.blockUtils.clearDisplayIndex(i)}))},i.prototype.setDisplayIndexes=function(t,i){var n=this;this.displayIndexStart=t.peek(),this.blockTopPx=i.value,this.rowNodes.forEach((function(e){return n.blockUtils.setDisplayIndex(e,t,i)})),this.displayIndexEnd=t.peek(),this.blockHeightPx=i.value-this.blockTopPx},nm([Dt("columnModel")],i.prototype,"columnModel",void 0),nm([Dt("ssrmStoreUtils")],i.prototype,"storeUtils",void 0),nm([Dt("ssrmBlockUtils")],i.prototype,"blockUtils",void 0),nm([Dt("ssrmNodeManager")],i.prototype,"nodeManager",void 0),nm([Dt("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),nm([Ft],i.prototype,"postConstruct",null),nm([kt],i.prototype,"destroyRowNodes",null),nm([(n=0,e=Tt("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),i;var n,e}(sf),om=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),sm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.FOUND=0]="FOUND",t[t.CONTINUE_FIND=1]="CONTINUE_FIND",t[t.BREAK_FIND=2]="BREAK_FIND"}(fg||(fg={}));var um,hm=function(t){function i(i,n,e){var r=t.call(this)||this;return r.blocks={},r.blockHeights={},r.lastRowIndexKnown=!1,r.displayIndexStart=0,r.displayIndexEnd=0,r.cacheTopPixel=0,r.info={},r.refreshedNodeCache={},r.ssrmParams=i,r.storeParams=n,r.parentRowNode=e,r}return om(i,t),i.prototype.postConstruct=function(){this.defaultRowHeight=this.gridOptionsWrapper.getRowHeightAsNumber();var t=-1===this.parentRowNode.level?this.gridOptionsWrapper.getServerSideInitialRowCount():i.INITIAL_ROW_COUNT;this.rowCount=t},i.prototype.destroyAllBlocks=function(){var t=this;this.getBlocksInOrder().forEach((function(i){return t.destroyBlock(i)})),this.blockUtils.destroyRowNodes(Object.values(this.refreshedNodeCache))},i.prototype.setBeans=function(t){this.logger=t.create("ServerSideCache")},i.prototype.getRowCount=function(){return this.rowCount},i.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},i.prototype.retryLoads=function(){this.getBlocksInOrder().forEach((function(t){return t.retryLoads()}))},i.prototype.onBlockLoadFailed=function(t){t.setData([],!0),this.fireCacheUpdatedEvent()},i.prototype.onBlockLoaded=function(t,i){this.logger.log("onPageLoaded: page = "+t.getId()+", lastRow = "+i.rowCount);var n=i.storeInfo||i.groupLevelInfo;n&&Object.assign(this.info,n),i.rowData||Wr.doOnce((function(){return console.warn('AG Grid: "params.rowData" is missing from Server-Side Row Model success() callback. Please use the "rowData" attribute. If no data is returned, set an empty list.',i)}),"InfiniteStore.noData");var e=null!=i.rowCount&&i.rowCount>=0?i.rowCount:void 0;this.isAlive()&&(this.checkRowCount(t,e),t.setData(i.rowData),this.destroyAllBlocksPastVirtualRowCount(),this.fireCacheUpdatedEvent())},i.prototype.purgeBlocksIfNeeded=function(t){var n=this,e=this.getBlocksInOrder().filter((function(i){return i!=t}));e.sort((function(t,i){return i.getLastAccessed()-t.getLastAccessed()}));var r=this.storeParams.maxBlocksInCache>0,o=r?this.storeParams.maxBlocksInCache-1:null,s=i.MAX_EMPTY_BLOCKS_TO_KEEP-1;e.forEach((function(t,i){if(t.getState()===rm.STATE_WAITING_TO_LOAD&&i>=s||r&&i>=o){if(t.isAnyNodeOpen())return;if(n.isBlockCurrentlyDisplayed(t))return;if(n.isBlockFocused(t))return;n.destroyBlock(t)}}))},i.prototype.isBlockFocused=function(t){var i=this.focusService.getFocusCellToUseAfterRefresh();if(!i)return!1;if(null!=i.rowPinned)return!1;var n=t.getDisplayIndexStart(),e=t.getDisplayIndexEnd();return null!=e&&null!=n&&i.rowIndex>=n&&i.rowIndex<e},i.prototype.isBlockCurrentlyDisplayed=function(t){var i=t.getDisplayIndexStart(),n=t.getDisplayIndexEnd()-1;return this.rowRenderer.isRangeInRenderedViewport(i,n)},i.prototype.removeDuplicateNode=function(t){this.getBlocksInOrder().forEach((function(i){return i.removeDuplicateNode(t)}))},i.prototype.checkRowCount=function(t,n){if("number"==typeof n&&n>=0)this.rowCount=n,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var e=(t.getId()+1)*this.storeParams.cacheBlockSize+i.OVERFLOW_SIZE;this.rowCount<e&&(this.rowCount=e)}},i.prototype.forEachNodeDeep=function(t,i){void 0===i&&(i=new Vr),this.getBlocksInOrder().forEach((function(n){return n.forEachNodeDeep(t,i)}))},i.prototype.forEachNodeDeepAfterFilterAndSort=function(t,i){void 0===i&&(i=new Vr),this.getBlocksInOrder().forEach((function(n){return n.forEachNodeAfterFilterAndSort(t,i)}))},i.prototype.getBlocksInOrder=function(){return Wr.getAllValuesInObject(this.blocks).sort((function(t,i){return t.getId()-i.getId()}))},i.prototype.destroyBlock=function(t){delete this.blocks[t.getId()],this.destroyBean(t),this.rowNodeBlockLoader.removeBlock(t)},i.prototype.fireCacheUpdatedEvent=function(){this.eventService.dispatchEvent({type:xi.EVENT_STORE_UPDATED})},i.prototype.destroyAllBlocksPastVirtualRowCount=function(){var t=this,i=[];this.getBlocksInOrder().forEach((function(n){n.getId()*t.storeParams.cacheBlockSize>=t.rowCount&&i.push(n)})),i.length>0&&i.forEach((function(i){return t.destroyBlock(i)}))},i.prototype.refreshStore=function(t){0==this.getRowCount()||t?this.resetStore():this.refreshBlocks(),this.fireCacheUpdatedEvent()},i.prototype.isNodeCached=function(t){return!!this.refreshedNodeCache[t]},i.prototype.retrieveNodeFromCache=function(t){var i=this.refreshedNodeCache[t];return i&&delete this.refreshedNodeCache[t],i},i.prototype.buildRowNodeCache=function(){var t={};this.getBlocksInOrder().forEach((function(i){i.rowNodes.forEach((function(i){i.group&&(t[i.id]=i)}))})),this.refreshedNodeCache=t},i.prototype.refreshBlocks=function(){this.buildRowNodeCache(),this.getBlocksInOrder().forEach((function(t){t.refresh()})),this.lastRowIndexKnown=!1,this.rowNodeBlockLoader.checkBlockToLoad()},i.prototype.resetStore=function(){this.destroyAllBlocks(),this.lastRowIndexKnown=!1,(this.columnModel.isAutoRowHeightActive()||0===this.rowCount)&&(this.rowCount=i.INITIAL_ROW_COUNT)},i.prototype.getRowNodesInRange=function(t,i){var n=[],e=-1,r=!1;Wr.missing(t)&&(r=!0);var o=!1;return this.getBlocksInOrder().forEach((function(s){o||(r&&e+1!==s.getId()?o=!0:(e=s.getId(),s.forEachNodeShallow((function(e){var o=e===t||e===i;(r||o)&&n.push(e),o&&(r=!r)}))))})),o||r?[]:n},i.prototype.findBlockAndExecute=function(t,i,n){var e,r=!1,o=!1,s=null;return this.getBlocksInOrder().forEach((function(n){if(!r&&!o){var u=t(n);u==fg.FOUND?(e=i(n),r=!0):u==fg.CONTINUE_FIND?s=n:u==fg.BREAK_FIND&&(o=!0)}})),r||(e=n(s)),e},i.prototype.getRowBounds=function(t){var i=this;return this.findBlockAndExecute((function(i){return i.isDisplayIndexInBlock(t)?fg.FOUND:i.isBlockBefore(t)?fg.CONTINUE_FIND:fg.BREAK_FIND}),(function(i){return i.getRowBounds(t)}),(function(n){var e,r;return null!==n?(e=n.getBlockTopPx()+n.getBlockHeightPx(),r=n.getDisplayIndexEnd()):(e=i.cacheTopPixel,r=i.displayIndexStart),{rowHeight:i.defaultRowHeight,rowTop:e+(t-r)*i.defaultRowHeight}}))},i.prototype.getRowIndexAtPixel=function(t){var i=this,n=this.findBlockAndExecute((function(i){return i.isPixelInRange(t)?fg.FOUND:i.getBlockTopPx()<t?fg.CONTINUE_FIND:fg.BREAK_FIND}),(function(i){return i.getRowIndexAtPixel(t)}),(function(n){var e,r;n?(e=n.getBlockTopPx()+n.getBlockHeightPx(),r=n.getDisplayIndexEnd()):(e=i.cacheTopPixel,r=i.displayIndexStart);for(var o=i.storeParams.cacheBlockSize,s=i.defaultRowHeight*o,u=n?n.getId()+1:0,h=function(n){var r=i.getCachedBlockHeight(n),o=null!=r?r:s;return{height:o,pixelInBlock:t<=o+e}},c=h(u);!c.pixelInBlock;)e+=c.height,r+=o,c=h(++u);return r+(0|Math.floor((t-e)/(c.height/o)))})),e=this.getDisplayIndexEnd()-1;return Math.min(n,e)},i.prototype.clearDisplayIndexes=function(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.getBlocksInOrder().forEach((function(t){return t.clearDisplayIndexes()}))},i.prototype.setDisplayIndexes=function(t,i){var n=this;this.displayIndexStart=t.peek(),this.cacheTopPixel=i.value;var e=-1,r=this.storeParams.cacheBlockSize;this.getBlocksInOrder().forEach((function(o){var s=o.getId(),u=s-e-1,h=u*r;h>0&&t.skip(h);for(var c=1;c<=u;c++){var a=s-c;Wr.exists(n.blockHeights[a])?i.value+=n.blockHeights[a]:i.value+=r*n.defaultRowHeight}e=s,o.setDisplayIndexes(t,i),n.blockHeights[s]=o.getBlockHeightPx()}));var o=(e+1)*r-1,s=this.getRowCount()-o-1;s>0&&(t.skip(s),i.value+=s*this.defaultRowHeight),this.displayIndexEnd=t.peek(),this.cacheHeightPixels=i.value-this.cacheTopPixel},i.prototype.getRowUsingDisplayIndex=function(t,i){var n=this;if(void 0===i&&(i=!1),this.isDisplayIndexInStore(t))return this.findBlockAndExecute((function(i){return i.isDisplayIndexInBlock(t)?fg.FOUND:i.isBlockBefore(t)?fg.CONTINUE_FIND:fg.BREAK_FIND}),(function(i){return i.getRowUsingDisplayIndex(t)}),(function(e){if(!i){var r,o,s,u=n.storeParams.cacheBlockSize;if(e)for(r=e.getId()+1,o=e.getDisplayIndexEnd(),s=e.getBlockHeightPx()+e.getBlockTopPx();!(t>=o&&t<o+u);){o+=u;var h=n.blockHeights[r];Wr.exists(h)?s+=h:s+=n.defaultRowHeight*u,r++}else r=Math.floor((t-n.displayIndexStart)/u),o=n.displayIndexStart+r*u,s=n.cacheTopPixel+r*u*n.defaultRowHeight;return n.logger.log("block missing, rowIndex = "+t+", creating #"+r+", displayIndexStart = "+o),n.createBlock(r,o,{value:s}).getRowUsingDisplayIndex(t)}}))},i.prototype.getTopLevelRowDisplayedIndex=function(t){var i=this.storeParams.cacheBlockSize,n=Math.floor(t/i);return this.findBlockAndExecute((function(t){return t.getId()===n?fg.FOUND:t.getId()<n?fg.CONTINUE_FIND:fg.BREAK_FIND}),(function(i){return i.getRowUsingLocalIndex(t).rowIndex}),(function(n){if(!n)return t;var e=i*(n.getId()+1)-1,r=n.getRowUsingLocalIndex(e);return(r.expanded&&r.childStore?r.childStore.getDisplayIndexEnd()-1:r.expanded&&r.detailNode?r.detailNode.rowIndex:r.rowIndex)+(t-e)}))},i.prototype.addStoreStates=function(t){t.push({infiniteScroll:!0,route:this.parentRowNode.getGroupKeys(),rowCount:this.rowCount,lastRowIndexKnown:this.lastRowIndexKnown,info:this.info,maxBlocksInCache:this.storeParams.maxBlocksInCache,cacheBlockSize:this.storeParams.cacheBlockSize}),this.forEachChildStoreShallow((function(i){return i.addStoreStates(t)}))},i.prototype.getCachedBlockHeight=function(t){return this.blockHeights[t]},i.prototype.createBlock=function(t,i,n){var e=this.createBean(new rm(t,this.parentRowNode,this.ssrmParams,this.storeParams,this));return e.setDisplayIndexes(new Vr(i),n),this.blocks[e.getId()]=e,this.purgeBlocksIfNeeded(e),this.rowNodeBlockLoader.addBlock(e),e},i.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},i.prototype.isDisplayIndexInStore=function(t){return 0!==this.getRowCount()&&t>=this.displayIndexStart&&t<this.displayIndexEnd},i.prototype.applyTransaction=function(){return{status:ll.StoreWrongType}},i.prototype.getChildStore=function(t){var i=this;return this.storeUtils.getChildStore(t,this,(function(t){var n=null;return i.getBlocksInOrder().forEach((function(i){i.forEachNodeShallow((function(i){i.key==t&&(n=i)}),new Vr)})),n}))},i.prototype.isPixelInRange=function(t){return 0!==this.getRowCount()&&t>=this.cacheTopPixel&&t<this.cacheTopPixel+this.cacheHeightPixels},i.prototype.refreshAfterFilter=function(t){this.gridOptionsWrapper.isServerSideFilterAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,t)?this.resetStore():this.forEachChildStoreShallow((function(i){return i.refreshAfterFilter(t)}))},i.prototype.refreshAfterSort=function(t){this.gridOptionsWrapper.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,t)?this.resetStore():this.forEachChildStoreShallow((function(i){return i.refreshAfterSort(t)}))},i.prototype.forEachChildStoreShallow=function(t){this.getBlocksInOrder().forEach((function(i){i.isGroupLevel()&&i.forEachNodeShallow((function(i){var n=i.childStore;n&&t(n)}),new Vr)}))},i.MAX_EMPTY_BLOCKS_TO_KEEP=2,i.INITIAL_ROW_COUNT=1,i.OVERFLOW_SIZE=1,sm([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),sm([Dt("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),sm([Dt("ssrmStoreUtils")],i.prototype,"storeUtils",void 0),sm([Dt("focusService")],i.prototype,"focusService",void 0),sm([Dt("columnModel")],i.prototype,"columnModel",void 0),sm([Dt("ssrmBlockUtils")],i.prototype,"blockUtils",void 0),sm([Ft],i.prototype,"postConstruct",null),sm([kt],i.prototype,"destroyAllBlocks",null),sm([(n=0,e=Tt("loggerFactory"),function(t,i){e(t,i,n)})],i.prototype,"setBeans",null),i;var n,e}(Ai),cm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),am=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},lm=function(t){function i(i,n,e){var r=t.call(this,0)||this;return r.nodeIdSequence=new Vr,r.info={},r.ssrmParams=i,r.parentRowNode=e,r.level=e.level+1,r.groupLevel=i.rowGroupCols?r.level<i.rowGroupCols.length:void 0,r.leafGroup=!!i.rowGroupCols&&r.level===i.rowGroupCols.length-1,r}return cm(i,t),i.prototype.postConstruct=function(){var t=this;this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.nodeIdPrefix=this.blockUtils.createNodeIdPrefix(this.parentRowNode),!this.usingTreeData&&this.groupLevel&&(this.groupField=this.ssrmParams.rowGroupCols[this.level].field,this.rowGroupColumn=this.columnModel.getRowGroupColumns()[this.level]);var i=1,n=-1===this.parentRowNode.level,e=this.gridOptionsWrapper.getServerSideInitialRowCount();n&&void 0!==e&&(i=e),this.initialiseRowNodes(i),this.rowNodeBlockLoader.addBlock(this),this.addDestroyFunc((function(){return t.rowNodeBlockLoader.removeBlock(t)}))},i.prototype.destroyRowNodes=function(){this.blockUtils.destroyRowNodes(this.allRowNodes),this.allRowNodes=[],this.nodesAfterSort=[],this.nodesAfterFilter=[],this.allNodesMap={}},i.prototype.initialiseRowNodes=function(t,i){void 0===i&&(i=!1),this.destroyRowNodes();for(var n=0;n<t;n++){var e=this.blockUtils.createRowNode({field:this.groupField,group:this.groupLevel,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn});i&&(e.failedLoad=!0),this.allRowNodes.push(e),this.nodesAfterFilter.push(e),this.nodesAfterSort.push(e)}},i.prototype.getBlockStateJson=function(){return{id:this.nodeIdPrefix?this.nodeIdPrefix:"",state:this.getState()}},i.prototype.loadFromDatasource=function(){this.storeUtils.loadFromDatasource({startRow:void 0,endRow:void 0,parentBlock:this,parentNode:this.parentRowNode,storeParams:this.ssrmParams,successCallback:this.pageLoaded.bind(this,this.getVersion()),success:this.success.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),fail:this.pageLoadFailed.bind(this,this.getVersion())})},i.prototype.getStartRow=function(){return 0},i.prototype.getEndRow=function(){return this.nodesAfterSort.length},i.prototype.createDataNode=function(t,i){var n=this.blockUtils.createRowNode({field:this.groupField,group:this.groupLevel,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn});null!=i?Wr.insertIntoArray(this.allRowNodes,n,i):this.allRowNodes.push(n);var e=this.prefixId(this.nodeIdSequence.next());return this.blockUtils.setDataIntoRowNode(n,t,e,void 0),this.nodeManager.addRowNode(n),this.blockUtils.checkOpenByDefault(n),this.allNodesMap[n.id]=n,n},i.prototype.prefixId=function(t){return this.nodeIdPrefix?this.nodeIdPrefix+"-"+t:t.toString()},i.prototype.processServerFail=function(){this.initialiseRowNodes(1,!0),this.fireStoreUpdatedEvent(),this.flushAsyncTransactions()},i.prototype.processServerResult=function(t){if(this.isAlive()){var i=t.storeInfo||t.groupLevelInfo;i&&Object.assign(this.info,i);var n=this.allRowNodes.length>0?this.allNodesMap:void 0;this.allRowNodes=[],this.nodesAfterSort=[],this.nodesAfterFilter=[],this.allNodesMap={},t.rowData||Wr.doOnce((function(){return console.warn('AG Grid: "params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.',t)}),"FullStore.noData"),this.createOrRecycleNodes(n,t.rowData),n&&this.blockUtils.destroyRowNodes(Wr.getAllValuesInObject(n)),this.filterAndSortNodes(),this.fireStoreUpdatedEvent(),this.flushAsyncTransactions()}},i.prototype.createOrRecycleNodes=function(t,i){var n=this;i&&i.forEach((function(i){var e=function(i){if(t){var e=n.gridOptionsWrapper.getRowIdFunc();if(e){var r=n.parentRowNode.getGroupKeys(),o=e({data:i,parentKeys:r.length>0?r:void 0,level:n.level}),s=t[o];if(s)return delete t[o],s}}}(i);e?function(t,i){n.allNodesMap[t.id]=t,n.blockUtils.updateDataIntoRowNode(t,i),n.allRowNodes.push(t)}(e,i):n.createDataNode(i)}))},i.prototype.flushAsyncTransactions=function(){var t=this;window.setTimeout((function(){return t.transactionManager.flushAsyncTransactions()}),0)},i.prototype.filterAndSortNodes=function(){this.filterRowNodes(),this.sortRowNodes()},i.prototype.sortRowNodes=function(){var t=this.gridOptionsWrapper.isServerSideSortAllLevels()||this.gridOptionsWrapper.isServerSideSortOnServer(),i=this.sortController.getSortOptions();this.nodesAfterSort=t||!i||0==i.length?this.nodesAfterFilter:this.rowNodeSorter.doFullSort(this.nodesAfterFilter,i)},i.prototype.filterRowNodes=function(){var t=this;this.nodesAfterFilter=this.gridOptionsWrapper.isServerSideFilterAllLevels()||this.gridOptionsWrapper.isServerSideFilterOnServer()||this.groupLevel?this.allRowNodes:this.allRowNodes.filter((function(i){return t.filterManager.doesRowPassFilter({rowNode:i})}))},i.prototype.clearDisplayIndexes=function(){var t=this;this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.allRowNodes.forEach((function(i){return t.blockUtils.clearDisplayIndex(i)}))},i.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},i.prototype.isDisplayIndexInStore=function(t){return 0!==this.getRowCount()&&t>=this.displayIndexStart&&t<this.displayIndexEnd},i.prototype.setDisplayIndexes=function(t,i){var n=this;this.displayIndexStart=t.peek(),this.topPx=i.value;var e={};this.nodesAfterSort.forEach((function(r){n.blockUtils.setDisplayIndex(r,t,i),e[r.id]=!0})),this.allRowNodes.forEach((function(t){e[t.id]||n.blockUtils.clearDisplayIndex(t)})),this.displayIndexEnd=t.peek(),this.heightPx=i.value-this.topPx},i.prototype.forEachNodeDeep=function(t,i){void 0===i&&(i=new Vr),this.allRowNodes.forEach((function(n){t(n,i.next());var e=n.childStore;e&&e.forEachNodeDeep(t,i)}))},i.prototype.forEachNodeDeepAfterFilterAndSort=function(t,i){void 0===i&&(i=new Vr),this.nodesAfterSort.forEach((function(n){t(n,i.next());var e=n.childStore;e&&e.forEachNodeDeepAfterFilterAndSort(t,i)}))},i.prototype.getRowUsingDisplayIndex=function(t){if(this.isDisplayIndexInStore(t))return this.blockUtils.binarySearchForDisplayIndex(t,this.nodesAfterSort)},i.prototype.getRowBounds=function(t){for(var i=0;i<this.nodesAfterSort.length;i++){var n=this.blockUtils.extractRowBounds(this.nodesAfterSort[i],t);if(n)return n}return null},i.prototype.isPixelInRange=function(t){return t>=this.topPx&&t<this.topPx+this.heightPx},i.prototype.getRowIndexAtPixel=function(t){var i=this;if(t<=this.topPx)return this.nodesAfterSort[0].rowIndex;if(t>=this.topPx+this.heightPx){var n=this.nodesAfterSort[this.nodesAfterSort.length-1];if(t>=n.rowTop+n.rowHeight&&n.expanded){if(n.childStore&&n.childStore.getRowCount()>0)return n.childStore.getRowIndexAtPixel(t);if(n.detailNode)return n.detailNode.rowIndex}return n.rowIndex}var e=null;return this.nodesAfterSort.forEach((function(n){var r=i.blockUtils.getIndexAtPixel(n,t);null!=r&&(e=r)})),null==e?this.displayIndexEnd-1:e},i.prototype.getChildStore=function(t){var i=this;return this.storeUtils.getChildStore(t,this,(function(t){return i.allRowNodes.find((function(i){return i.key==t}))}))},i.prototype.forEachChildStoreShallow=function(t){this.allRowNodes.forEach((function(i){var n=i.childStore;n&&t(n)}))},i.prototype.refreshAfterFilter=function(t){var i=this.gridOptionsWrapper.isServerSideFilterOnServer(),n=this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,t);if(this.gridOptionsWrapper.isServerSideFilterAllLevels()||i&&n)return this.refreshStore(!0),void this.sortRowNodes();this.filterRowNodes(),this.sortRowNodes(),this.forEachChildStoreShallow((function(i){return i.refreshAfterFilter(t)}))},i.prototype.refreshAfterSort=function(t){var i=this.gridOptionsWrapper.isServerSideSortOnServer(),n=this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,t);if(this.gridOptionsWrapper.isServerSideSortAllLevels()||i&&n)return this.refreshStore(!0),void this.filterRowNodes();this.filterRowNodes(),this.sortRowNodes(),this.forEachChildStoreShallow((function(i){return i.refreshAfterSort(t)}))},i.prototype.applyTransaction=function(t){switch(this.getState()){case sf.STATE_FAILED:return{status:ll.StoreLoadingFailed};case sf.STATE_LOADING:return{status:ll.StoreLoading};case sf.STATE_WAITING_TO_LOAD:return{status:ll.StoreWaitingToLoad}}var i=this.gridOptionsWrapper.getIsApplyServerSideTransactionFunc();if(i&&!i({transaction:t,parentNode:this.parentRowNode,storeInfo:this.info,groupLevelInfo:this.info}))return{status:ll.Cancelled};var n={status:ll.Applied,remove:[],update:[],add:[]},e=[];return this.executeAdd(t,n),this.executeRemove(t,n,e),this.executeUpdate(t,n,e),this.filterAndSortNodes(),this.updateSelection(e),n},i.prototype.updateSelection=function(t){t.length>0&&(t.forEach((function(t){t.setSelected(!1,!1,!0)})),this.eventService.dispatchEvent({type:xi.EVENT_SELECTION_CHANGED}))},i.prototype.executeAdd=function(t,i){var n=this,e=t.add,r=t.addIndex;Wr.missingOrEmpty(e)||("number"==typeof r&&r>=0?e.reverse().forEach((function(t){var e=n.createDataNode(t,r);i.add.push(e)})):e.forEach((function(t){var e=n.createDataNode(t);i.add.push(e)})))},i.prototype.executeRemove=function(t,i,n){var e=this,r=t.remove;if(null!=r){var o={};r.forEach((function(t){var r=e.lookupRowNode(t);r&&(r.isSelected()&&n.push(r),r.clearRowTopAndRowIndex(),o[r.id]=!0,delete e.allNodesMap[r.id],i.remove.push(r),e.nodeManager.removeNode(r))})),this.allRowNodes=this.allRowNodes.filter((function(t){return!o[t.id]}))}},i.prototype.executeUpdate=function(t,i,n){var e=this,r=t.update;null!=r&&r.forEach((function(t){var r=e.lookupRowNode(t);r&&(r.updateData(t),!r.selectable&&r.isSelected()&&n.push(r),i.update.push(r))}))},i.prototype.lookupRowNode=function(t){var i,n=this.gridOptionsWrapper.getRowIdFunc();if(null!=n){var e=this.level,r=this.parentRowNode.getGroupKeys(),o=n({data:t,parentKeys:r.length>0?r:void 0,level:e});if(!(i=this.allNodesMap[o]))return console.error("AG Grid: could not find row id="+o+", data item was not found for this id"),null}else if(!(i=this.allRowNodes.find((function(i){return i.data===t}))))return console.error("AG Grid: could not find data item as object was not found",t),null;return i},i.prototype.addStoreStates=function(t){t.push({infiniteScroll:!1,route:this.parentRowNode.getGroupKeys(),rowCount:this.allRowNodes.length,info:this.info}),this.forEachChildStoreShallow((function(i){return i.addStoreStates(t)}))},i.prototype.refreshStore=function(t){t&&this.initialiseRowNodes(this.nodesAfterSort?this.nodesAfterSort.length:1),this.scheduleLoad(),this.fireStoreUpdatedEvent()},i.prototype.retryLoads=function(){this.getState()===sf.STATE_FAILED&&(this.initialiseRowNodes(1),this.scheduleLoad()),this.forEachChildStoreShallow((function(t){return t.retryLoads()}))},i.prototype.scheduleLoad=function(){this.setStateWaitingToLoad(),this.rowNodeBlockLoader.checkBlockToLoad()},i.prototype.fireStoreUpdatedEvent=function(){this.eventService.dispatchEvent({type:xi.EVENT_STORE_UPDATED})},i.prototype.getRowCount=function(){return this.nodesAfterSort.length},i.prototype.getTopLevelRowDisplayedIndex=function(t){return this.nodesAfterSort[t].rowIndex},i.prototype.isLastRowIndexKnown=function(){return this.getState()==sf.STATE_LOADED},i.prototype.getRowNodesInRange=function(t,i){var n=[],e=!1;return Wr.missing(t)&&(e=!0),this.nodesAfterSort.forEach((function(r){var o=r===t||r===i;(e||o)&&n.push(r),o&&(e=!e)})),e?[]:n},am([Dt("ssrmStoreUtils")],i.prototype,"storeUtils",void 0),am([Dt("ssrmBlockUtils")],i.prototype,"blockUtils",void 0),am([Dt("columnModel")],i.prototype,"columnModel",void 0),am([Dt("rowNodeBlockLoader")],i.prototype,"rowNodeBlockLoader",void 0),am([Dt("rowNodeSorter")],i.prototype,"rowNodeSorter",void 0),am([Dt("sortController")],i.prototype,"sortController",void 0),am([Dt("ssrmNodeManager")],i.prototype,"nodeManager",void 0),am([Dt("filterManager")],i.prototype,"filterManager",void 0),am([Dt("ssrmTransactionManager")],i.prototype,"transactionManager",void 0),am([Ft],i.prototype,"postConstruct",null),am([kt],i.prototype,"destroyRowNodes",null),i}(sf),fm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},dm=function(){function t(){}return t.prototype.createStore=function(t,i){var n=this.getStoreParams(t,i);return new(n.infiniteScroll?hm:lm)(t,n,i)},t.prototype.getStoreParams=function(t,i){var n=this.getLevelSpecificParams(i),e=this.isInfiniteScroll(n);return{infiniteScroll:e,cacheBlockSize:this.getBlockSize(e,n),maxBlocksInCache:this.getMaxBlocksInCache(e,t,n)}},t.prototype.getMaxBlocksInCache=function(t,i,n){if(t){var e=n&&null!=n.maxBlocksInCache?n.maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache();if(null!=e&&e>=0)if(i.dynamicRowHeight)Wr.doOnce((function(){return console.warn("AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.")}),"storeFactory.maxBlocksInCache.dynamicRowHeight");else{if(!this.columnModel.isAutoRowHeightActive())return e;Wr.doOnce((function(){return console.warn("AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.")}),"storeFactory.maxBlocksInCache.autoRowHeightActive")}}},t.prototype.getBlockSize=function(t,i){if(t){var n=i&&null!=i.cacheBlockSize?i.cacheBlockSize:this.gridOptionsWrapper.getCacheBlockSize();return null!=n&&n>0?n:100}},t.prototype.getLevelSpecificParams=function(t){var i=this.gridOptionsWrapper.getServerSideGroupLevelParamsFunc();if(i){var n=i({level:t.level+1,parentRowNode:t.level>=0?t:void 0,rowGroupColumns:this.columnModel.getRowGroupColumns(),pivotColumns:this.columnModel.getPivotColumns(),pivotMode:this.columnModel.isPivotMode()});return null!=n.storeType&&(n.infiniteScroll="partial"===n.storeType),n}},t.prototype.isInfiniteScroll=function(t){return t&&null!=t.infiniteScroll?t.infiniteScroll:this.gridOptionsWrapper.isServerSideInfiniteScroll()},fm([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),fm([Dt("columnModel")],t.prototype,"columnModel",void 0),fm([Pt("ssrmStoreFactory")],t)}(),vm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},pm=function(){function t(){}return t.prototype.isSortingWithValueColumn=function(t){for(var i=this.columnModel.getValueColumns().map((function(t){return t.getColId()})),n=0;n<t.length;n++)if(i.indexOf(t[n])>-1)return!0;return!1},t.prototype.isSortingWithSecondaryColumn=function(t){if(!this.columnModel.getSecondaryColumns())return!1;for(var i=this.columnModel.getSecondaryColumns().map((function(t){return t.getColId()})),n=0;n<t.length;n++)if(i.indexOf(t[n])>-1)return!0;return!1},vm([Dt("columnModel")],t.prototype,"columnModel",void 0),vm([Pt("ssrmListenerUtils")],t)}(),gm={moduleName:Nt.ServerSideRowModelModule,rowModels:{serverSide:Dg},beans:[qg,Zg,Tg,Lg,Hg,Ug,tm,dm,pm],dependantModules:[Kp]},mm=function(){function t(){}return t.prototype.setBeans=function(t){this.beans=t},t.prototype.getFileName=function(t){var i=this.getDefaultFileExtension();return null!=t&&t.length||(t=this.getDefaultFileName()),-1===t.indexOf(".")?t+"."+i:t},t.prototype.getData=function(t){var i=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(i,t)},t}(),bm=function(){function t(t){this.groupColumns=[];var i=t.valueService,n=t.gridOptionsWrapper,e=t.processCellCallback,r=t.processHeaderCallback,o=t.processGroupHeaderCallback,s=t.processRowGroupCallback;this.columnModel=t.columnModel,this.valueService=i,this.gridOptionsWrapper=n,this.processCellCallback=e,this.processHeaderCallback=r,this.processGroupHeaderCallback=o,this.processRowGroupCallback=s}return t.prototype.prepare=function(t){this.groupColumns=t.filter((function(t){return!!t.getColDef().showRowGroup}))},t.prototype.extractHeaderValue=function(t){var i=this.getHeaderName(this.processHeaderCallback,t);return null!=i?i:""},t.prototype.extractRowCellValue=function(t,i,n,e,r){var o=!this.gridOptionsWrapper.isGroupHideOpenParents()&&this.shouldRenderGroupSummaryCell(r,t,i)?this.createValueForGroupNode(r):this.valueService.getValue(t,r),s=this.processCell({accumulatedRowIndex:n,rowNode:r,column:t,value:o,processCellCallback:this.processCellCallback,type:e});return null!=s?s:""},t.prototype.shouldRenderGroupSummaryCell=function(t,i,n){var e;if(!t||!t.group)return!1;if(-1!==this.groupColumns.indexOf(i)&&(null===(e=t.groupData)||void 0===e?void 0:e[i.getId()]))return!0;var r=this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===n&&r},t.prototype.getHeaderName=function(t,i){return t?t({column:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(i,"csv",!0)},t.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var i=[t.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;t.parent;)i.push((t=t.parent).key);return i.reverse().join(" -> ")},t.prototype.processCell=function(t){var i=t.value,n=t.processCellCallback,e=t.type;return n?n({accumulatedRowIndex:t.accumulatedRowIndex,column:t.column,node:t.rowNode,value:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:e}):null!=i?i:""},t}(),wm=function(){function t(){}return t.download=function(t,i){var n=document.defaultView||window;if(n){var e=document.createElement("a"),r=n.URL.createObjectURL(i);e.setAttribute("href",r),e.setAttribute("download",t),e.style.display="none",document.body.appendChild(e),e.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(e),n.setTimeout((function(){n.URL.revokeObjectURL(r)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},t}(),ym=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Cm=function(t){function i(i){var n=t.call(this,i)||this;n.isFirstLine=!0,n.result="";var e=i.columnSeparator;return n.suppressQuotes=i.suppressQuotes,n.columnSeparator=e,n}return ym(i,t),i.prototype.addCustomContent=function(t){var i=this;t&&("string"==typeof t?(/^\s*\n/.test(t)||this.beginNewLine(),t=t.replace(/\r?\n/g,"\r\n"),this.result+=t):t.forEach((function(t){i.beginNewLine(),t.forEach((function(t,n){0!==n&&(i.result+=i.columnSeparator),i.result+=i.putInQuotes(t.data.value||""),t.mergeAcross&&i.appendEmptyCells(t.mergeAcross)}))})))},i.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},i.prototype.onNewHeaderGroupingRowColumn=function(t,i,n,e){0!=n&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(i),this.appendEmptyCells(e)},i.prototype.appendEmptyCells=function(t){for(var i=1;i<=t;i++)this.result+=this.columnSeparator+this.putInQuotes("")},i.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},i.prototype.onNewHeaderRowColumn=function(t,i){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(t))},i.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},i.prototype.onNewBodyRowColumn=function(t,i,n){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(t,i,i,Vt.EXPORT_TYPE_CSV,n))},i.prototype.putInQuotes=function(t){return this.suppressQuotes?t:null==t?'""':("string"==typeof t?i=t:"function"==typeof t.toString?i=t.toString():(console.warn("AG Grid: unknown value type during csv conversion"),i=""),'"'+i.replace(/"/g,'""')+'"');var i},i.prototype.parse=function(){return this.result},i.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},i}(bm),Sm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Rm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Om=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Sm(i,t),i.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},i.prototype.getMergedParams=function(t){var i=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},i,t)},i.prototype.export=function(t){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var i=this.getMergedParams(t),n=this.getData(i),e=new Blob(["\ufeff",n],{type:"text/plain"});return wm.download(this.getFileName(i.fileName),e),n},i.prototype.exportDataAsCsv=function(t){return this.export(t)},i.prototype.getDataAsCsv=function(t,i){void 0===i&&(i=!1);var n=i?Object.assign({},t):this.getMergedParams(t);return this.getData(n)},i.prototype.getDefaultFileName=function(){return"export.csv"},i.prototype.getDefaultFileExtension=function(){return"csv"},i.prototype.createSerializingSession=function(t){var i=this;return new Cm({columnModel:i.columnModel,valueService:i.valueService,gridOptionsWrapper:i.gridOptionsWrapper,processCellCallback:t.processCellCallback||void 0,processHeaderCallback:t.processHeaderCallback||void 0,processGroupHeaderCallback:t.processGroupHeaderCallback||void 0,processRowGroupCallback:t.processRowGroupCallback||void 0,suppressQuotes:t.suppressQuotes||!1,columnSeparator:t.columnSeparator||","})},i.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},Rm([Dt("columnModel")],i.prototype,"columnModel",void 0),Rm([Dt("valueService")],i.prototype,"valueService",void 0),Rm([Dt("gridSerializer")],i.prototype,"gridSerializer",void 0),Rm([Dt("gridOptionsWrapper")],i.prototype,"gridOptionsWrapper",void 0),Rm([Ft],i.prototype,"postConstruct",null),Rm([Pt("csvCreator")],i)}(mm),Am=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),jm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY"}(um||(um={}));var _m,Gm=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Am(i,t),i.prototype.serialize=function(t,i){void 0===i&&(i={});var n=this.getColumnsToExport(i.allColumns,i.columnKeys);return Wr.compose(this.prepareSession(n),this.prependContent(i),this.exportColumnGroups(i,n),this.exportHeaders(i,n),this.processPinnedTopRows(i,n),this.processRows(i,n),this.processPinnedBottomRows(i,n),this.appendContent(i))(t).parse()},i.prototype.processRow=function(t,i,n,e){var r=i.shouldRowBeSkipped||function(){return!1},o=this.gridOptionsWrapper,s=o.getContext(),u=o.getApi(),h=o.getColumnApi(),c=o.isGroupRemoveSingleChildren(),a=o.isGroupRemoveLowestSingleChildren(),l=null!=i.rowPositions,f=l||!!i.onlySelected,d=o.isGroupHideOpenParents()&&!f,v=this.columnModel.isPivotMode()?e.leafGroup:!e.group,p=1===e.allChildrenCount&&(c||a&&e.leafGroup);if((i.skipGroups||i.skipRowGroups)&&i.skipGroups&&Wr.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!v&&(i.skipRowGroups||p||d)||i.onlySelected&&!e.isSelected()||i.skipPinnedTop&&"top"===e.rowPinned||i.skipPinnedBottom&&"bottom"===e.rowPinned)&&(-1!==e.level||e.leafGroup||e.footer&&l)&&!r({node:e,api:u,columnApi:h,context:s})){var g=t.onNewBodyRow();if(n.forEach((function(t,i){g.onColumn(t,i,e)})),i.getCustomContentBelowRow){var m=i.getCustomContentBelowRow({node:e,api:u,columnApi:h,context:s});m&&t.addCustomContent(m)}}},i.prototype.appendContent=function(t){return function(i){var n=t.customFooter||t.appendContent;return n&&(t.customFooter&&Wr.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),i.addCustomContent(n)),i}},i.prototype.prependContent=function(t){return function(i){var n=t.customHeader||t.prependContent;return n&&(t.customHeader&&Wr.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),i.addCustomContent(n)),i}},i.prototype.prepareSession=function(t){return function(i){return i.prepare(t),i}},i.prototype.exportColumnGroups=function(t,i){var n=this;return function(e){if(t.skipColumnGroupHeaders)t.columnGroups&&Wr.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var r=new Mi,o=n.displayedGroupCreator.createDisplayedGroups(i,n.columnModel.getGridBalancedTree(),r,null);n.recursivelyAddHeaderGroups(o,e,t.processGroupHeaderCallback)}return e}},i.prototype.exportHeaders=function(t,i){return function(n){if(t.skipHeader||t.skipColumnHeaders)t.skipHeader&&Wr.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var e=n.onNewHeaderRow();i.forEach((function(t,i){e.onColumn(t,i,void 0)}))}return n}},i.prototype.processPinnedTopRows=function(t,i){var n=this;return function(e){var r=n.processRow.bind(n,e,t,i);return t.rowPositions?t.rowPositions.filter((function(t){return"top"===t.rowPinned})).sort((function(t,i){return t.rowIndex-i.rowIndex})).map((function(t){return n.pinnedRowModel.getPinnedTopRow(t.rowIndex)})).forEach(r):n.pinnedRowModel.forEachPinnedTopRow(r),e}},i.prototype.processRows=function(t,i){var n=this;return function(e){var r=n.rowModel,o=r.getType(),s=o===Vt.ROW_MODEL_TYPE_CLIENT_SIDE,u=o===Vt.ROW_MODEL_TYPE_SERVER_SIDE,h=!s&&t.onlySelected,c=n.processRow.bind(n,e,t,i),a=t.exportedRows,l=void 0===a?"filteredAndSorted":a;return t.rowPositions?t.rowPositions.filter((function(t){return null==t.rowPinned})).sort((function(t,i){return t.rowIndex-i.rowIndex})).map((function(t){return r.getRow(t.rowIndex)})).forEach(c):n.columnModel.isPivotMode()?s?r.forEachPivotNode(c):r.forEachNode(c):t.onlySelectedAllPages||h?n.selectionService.getSelectedNodes().forEach(c):"all"===l?r.forEachNode(c):s||u?r.forEachNodeAfterFilterAndSort(c):r.forEachNode(c),e}},i.prototype.processPinnedBottomRows=function(t,i){var n=this;return function(e){var r=n.processRow.bind(n,e,t,i);return t.rowPositions?t.rowPositions.filter((function(t){return"bottom"===t.rowPinned})).sort((function(t,i){return t.rowIndex-i.rowIndex})).map((function(t){return n.pinnedRowModel.getPinnedBottomRow(t.rowIndex)})).forEach(r):n.pinnedRowModel.forEachPinnedBottomRow(r),e}},i.prototype.getColumnsToExport=function(t,i){void 0===t&&(t=!1);var n=this.columnModel.isPivotMode();return i&&i.length?this.columnModel.getGridColumns(i):t&&!n?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([Vt.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},i.prototype.recursivelyAddHeaderGroups=function(t,i,n){var e=[];t.forEach((function(t){t.getChildren&&t.getChildren().forEach((function(t){return e.push(t)}))})),t.length>0&&t[0]instanceof ui&&this.doAddHeaderHeader(i,t,n),e&&e.length>0&&this.recursivelyAddHeaderGroups(e,i,n)},i.prototype.doAddHeaderHeader=function(t,i,n){var e=this,r=t.onNewHeaderGroupingRow(),o=0;i.forEach((function(t){var i,s=t;i=n?n({columnGroup:s,api:e.gridOptionsWrapper.getApi(),columnApi:e.gridOptionsWrapper.getColumnApi(),context:e.gridOptionsWrapper.getContext()}):e.columnModel.getDisplayNameForColumnGroup(s,"header");var u=s.getLeafColumns().reduce((function(t,i,n,e){var r=Wr.last(t);return"open"===i.getColumnGroupShow()?r&&null==r[1]||t.push(r=[n]):r&&null==r[1]&&(r[1]=n-1),n===e.length-1&&r&&null==r[1]&&(r[1]=n),t}),[]);r.onColumn(s,i||"",o++,s.getLeafColumns().length-1,u)}))},jm([Dt("displayedGroupCreator")],i.prototype,"displayedGroupCreator",void 0),jm([Dt("columnModel")],i.prototype,"columnModel",void 0),jm([Dt("rowModel")],i.prototype,"rowModel",void 0),jm([Dt("pinnedRowModel")],i.prototype,"pinnedRowModel",void 0),jm([Dt("selectionService")],i.prototype,"selectionService",void 0),jm([Dt("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),jm([Pt("gridSerializer")],i)}(Ai),xm={moduleName:Nt.CsvExportModule,beans:[Om,Gm]},Mm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},km=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.lastPasteOperationTime=0,i.navigatorApiFailed=!1,i}return Mm(i,t),i.prototype.init=function(){var t=this;this.logger=this.loggerFactory.create("ClipboardService"),this.rowModel.getType()===Vt.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady((function(i){t.gridCtrl=i.gridCtrl}))},i.prototype.pasteFromClipboard=function(){var t=this;this.logger.log("pasteFromClipboard"),!this.gridOptionsWrapper.isSuppressClipboardApi()&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch((function(i){Wr.doOnce((function(){console.warn(i),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API")}),"clipboardApiError"),t.navigatorApiFailed=!0,t.pasteFromClipboardLegacy()})):this.pasteFromClipboardLegacy()},i.prototype.pasteFromClipboardLegacy=function(){var t=this,i=!1,n=function(n){var e=(new Date).getTime();e-t.lastPasteOperationTime<50&&(i=!0,n.preventDefault()),t.lastPasteOperationTime=e};this.executeOnTempElement((function(t){t.addEventListener("paste",n),t.focus({preventScroll:!0})}),(function(e){var r=e.value;i?t.refocusLastFocusedCell():t.processClipboardData(r),e.removeEventListener("paste",n)}))},i.prototype.refocusLastFocusedCell=function(){var t=this.focusService.getFocusedCell();t&&this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0})},i.prototype.processClipboardData=function(t){var i=this;if(null!=t){var n=Wr.stringToArray(t,this.gridOptionsWrapper.getClipboardDelimiter()),e=this.gridOptionsWrapper.getProcessDataFromClipboardFunc();e&&(n=e({data:n})),null!=n&&(this.gridOptionsWrapper.isSuppressLastEmptyLineOnPaste()&&this.removeLastLineIfBlank(n),this.doPasteOperation((function(t,e,r,o){i.rangeService&&i.rangeService.isMoreThanOneCell()&&!i.hasOnlyOneValueToPaste(n)?i.pasteIntoActiveRange(n,t,e,o):i.pasteStartingFromFocusedCell(n,t,e,r,o)})))}},i.prototype.doPasteOperation=function(t){var i,n=this.gridOptionsWrapper.getApi(),e=this.gridOptionsWrapper.getColumnApi(),r="clipboard";if(this.eventService.dispatchEvent({type:xi.EVENT_PASTE_START,api:n,columnApi:e,source:r}),this.clientSideRowModel){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns();i=new rf(o,this.clientSideRowModel.getRootNode())}var s={},u=[];t(s,u,this.focusService.getFocusedCell(),i),i&&this.clientSideRowModel.doAggregate(i),this.rowRenderer.refreshCells(),this.dispatchFlashCells(s),this.fireRowChanged(u),this.refocusLastFocusedCell(),this.eventService.dispatchEvent({type:xi.EVENT_PASTE_END,source:r})},i.prototype.pasteIntoActiveRange=function(t,i,n,e){var r=this,o=this.getRangeSize()%t.length!=0,s=0,u=0;this.iterateActiveRanges(!1,(function(h,c,a,l){if(l-s>=t.length){if(o)return;s+=u,u=0}var f=t[l-s];n.push(c);var d=r.gridOptionsWrapper.getProcessCellFromClipboardFunc();a.forEach((function(t,n){if(t.isCellEditable(c)&&!t.isSuppressPaste(c)){n>=f.length&&(n%=f.length);var o=r.processCell(c,t,f[n],Vt.EXPORT_TYPE_DRAG_COPY,d);c.setDataValue(t,o,Vt.SOURCE_PASTE),e&&e.addParentNode(c.parent,[t]);var s=r.cellPositionUtils.createIdFromValues(h.rowIndex,t,h.rowPinned);i[s]=!0}})),u++}))},i.prototype.pasteStartingFromFocusedCell=function(t,i,n,e,r){if(e){var o={rowIndex:e.rowIndex,rowPinned:e.rowPinned},s=this.columnModel.getDisplayedColumnsStartingAt(e.column);this.isPasteSingleValueIntoRange(t)?this.pasteSingleValueIntoRange(t,n,i,r):this.pasteMultipleValues(t,o,n,s,i,Vt.EXPORT_TYPE_CLIPBOARD,r)}},i.prototype.isPasteSingleValueIntoRange=function(t){return this.hasOnlyOneValueToPaste(t)&&null!=this.rangeService&&!this.rangeService.isEmpty()},i.prototype.pasteSingleValueIntoRange=function(t,i,n,e){var r=this,o=t[0][0];this.iterateActiveRanges(!1,(function(t,s,u){i.push(s),u.forEach((function(t){return r.updateCellValue(s,t,o,n,Vt.EXPORT_TYPE_CLIPBOARD,e)}))}))},i.prototype.hasOnlyOneValueToPaste=function(t){return 1===t.length&&1===t[0].length},i.prototype.copyRangeDown=function(){var t=this;if(this.rangeService&&!this.rangeService.isEmpty()){var i=[];this.doPasteOperation((function(n,e,r,o){var s=t.gridOptionsWrapper.getProcessCellForClipboardFunc(),u=t.gridOptionsWrapper.getProcessCellFromClipboardFunc();t.iterateActiveRanges(!0,(function(r,h,c){i.length?(e.push(h),c.forEach((function(e,s){if(e.isCellEditable(h)&&!e.isSuppressPaste(h)){var c=t.processCell(h,e,i[s],Vt.EXPORT_TYPE_DRAG_COPY,u);h.setDataValue(e,c,Vt.SOURCE_PASTE),o&&o.addParentNode(h.parent,[e]);var a=t.cellPositionUtils.createIdFromValues(r.rowIndex,e,r.rowPinned);n[a]=!0}}))):c.forEach((function(n){var e=t.processCell(h,n,t.valueService.getValue(n,h),Vt.EXPORT_TYPE_DRAG_COPY,s);i.push(e)}))}))}))}},i.prototype.removeLastLineIfBlank=function(t){var i=Wr.last(t);if(i&&1===i.length&&""===i[0]){if(1===t.length)return;Wr.removeFromArray(t,i)}},i.prototype.fireRowChanged=function(t){var i=this;this.gridOptionsWrapper.isFullRowEdit()&&t.forEach((function(t){i.eventService.dispatchEvent({type:xi.EVENT_ROW_VALUE_CHANGED,node:t,data:t.data,rowIndex:t.rowIndex,rowPinned:t.rowPinned})}))},i.prototype.pasteMultipleValues=function(t,i,n,e,r,o,s){var u=this,h=i,c=null!=this.clientSideRowModel&&!this.gridOptionsWrapper.isTreeData();t.forEach((function(t){var i=function(){for(;;){if(!h)return null;var t=u.rowPositionUtils.getRowNode(h);if(h=u.cellNavigationService.getRowBelow({rowPinned:h.rowPinned,rowIndex:h.rowIndex}),null==t)return null;if(!(t.detail||t.footer||c&&t.group))return t}}();i&&(t.forEach((function(t,n){return u.updateCellValue(i,e[n],t,r,o,s)})),n.push(i))}))},i.prototype.updateCellValue=function(t,i,n,e,r,o){if(t&&i&&i.isCellEditable(t)&&!i.isSuppressPaste(t)){var s=this.processCell(t,i,n,r,this.gridOptionsWrapper.getProcessCellFromClipboardFunc());t.setDataValue(i,s,Vt.SOURCE_PASTE),e[this.cellPositionUtils.createIdFromValues(t.rowIndex,i,t.rowPinned)]=!0,o&&o.addParentNode(t.parent,[i])}},i.prototype.copyToClipboard=function(t){void 0===t&&(t={});var i=t.includeHeaders,n=t.includeGroupHeaders;this.logger.log("copyToClipboard: includeHeaders = "+i),null==i&&(i=this.gridOptionsWrapper.isCopyHeadersToClipboard()),null==n&&(n=this.gridOptionsWrapper.isCopyGroupHeadersToClipboard());var e={includeHeaders:i,includeGroupHeaders:n},r=!this.gridOptionsWrapper.isSuppressCopyRowsToClipboard();!this.rangeService||this.rangeService.isEmpty()||this.shouldSkipSingleCellRange()?r&&!this.selectionService.isEmpty()?this.copySelectedRowsToClipboard(e):this.focusService.isAnyCellFocused()&&this.copyFocusedCellToClipboard(e):this.copySelectedRangeToClipboard(e)},i.prototype.shouldSkipSingleCellRange=function(){return this.gridOptionsWrapper.isSuppressCopySingleCellRanges()&&!this.rangeService.isMoreThanOneCell()},i.prototype.iterateActiveRanges=function(t,i,n){var e=this;if(this.rangeService&&!this.rangeService.isEmpty()){var r=this.rangeService.getCellRanges();t?this.iterateActiveRange(r[0],i,n,!0):r.forEach((function(t,o){return e.iterateActiveRange(t,i,n,o===r.length-1)}))}},i.prototype.iterateActiveRange=function(t,i,n,e){if(this.rangeService){var r=this.rangeService.getRangeStartRow(t),o=this.rangeService.getRangeEndRow(t);n&&t.columns&&n(t.columns);for(var s=0,u=!1;!u&&null!=r;){var h=this.rowPositionUtils.getRowNode(r);u=this.rowPositionUtils.sameRow(r,o),i(r,h,t.columns,s++,u&&e),r=this.cellNavigationService.getRowBelow(r)}}},i.prototype.copySelectedRangeToClipboard=function(t){if(void 0===t&&(t={}),this.rangeService&&!this.rangeService.isEmpty()){var i=this.rangeService.areAllRangesAbleToMerge()?this.buildDataFromMergedRanges(t):this.buildDataFromRanges(t),n=i.cellsToFlash;this.copyDataToClipboard(i.data),this.dispatchFlashCells(n)}},i.prototype.buildDataFromMergedRanges=function(t){var i=this,n=new Set,e=this.rangeService.getCellRanges(),r=new Map,o=[],s={};e.forEach((function(t){t.columns.forEach((function(t){return n.add(t)}));var e=i.getRangeRowPositionsAndCellsToFlash(t),u=e.cellsToFlash;e.rowPositions.forEach((function(t){var i=t.rowIndex+"-"+(t.rowPinned||"null");r.get(i)||(r.set(i,!0),o.push(t))})),Object.assign(s,u)}));var u=this.columnModel.getAllDisplayedColumns(),h=Array.from(n);return h.sort((function(t,i){return u.indexOf(t)-u.indexOf(i)})),{data:this.buildExportParams({columns:h,rowPositions:o,includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders}),cellsToFlash:s}},i.prototype.buildDataFromRanges=function(t){var i=this,n=this.rangeService.getCellRanges(),e=[],r={};return n.forEach((function(n){var o=i.getRangeRowPositionsAndCellsToFlash(n),s=o.rowPositions;Object.assign(r,o.cellsToFlash),e.push(i.buildExportParams({columns:n.columns,rowPositions:s,includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders}))})),{data:e.join("\n"),cellsToFlash:r}},i.prototype.getRangeRowPositionsAndCellsToFlash=function(t){for(var i=this,n=[],e={},r=this.rangeService.getRangeStartRow(t),o=this.rangeService.getRangeEndRow(t),s=r;s&&(n.push(s),t.columns.forEach((function(t){var n=i.cellPositionUtils.createIdFromValues(s.rowIndex,t,s.rowPinned);e[n]=!0})),!this.rowPositionUtils.sameRow(s,o));)s=this.cellNavigationService.getRowBelow(s);return{rowPositions:n,cellsToFlash:e}},i.prototype.copyFocusedCellToClipboard=function(t){var i;void 0===t&&(t={});var n=this.focusService.getFocusedCell();if(null!=n){var e=this.cellPositionUtils.createId(n),r=this.buildExportParams({columns:[n.column],rowPositions:[{rowPinned:n.rowPinned,rowIndex:n.rowIndex}],includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders});this.copyDataToClipboard(r),this.dispatchFlashCells(((i={})[e]=!0,i))}},i.prototype.copySelectedRowsToClipboard=function(t){void 0===t&&(t={});var i=this.buildExportParams({columns:t.columnKeys,includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders});this.copyDataToClipboard(i)},i.prototype.buildExportParams=function(t){var i=t.rowPositions,n=t.includeHeaders,e=t.includeGroupHeaders,r={columnKeys:t.columns,rowPositions:i,skipColumnHeaders:!(void 0!==n&&n),skipColumnGroupHeaders:!(void 0!==e&&e),suppressQuotes:!0,columnSeparator:this.gridOptionsWrapper.getClipboardDelimiter(),onlySelected:!i,processCellCallback:this.gridOptionsWrapper.getProcessCellForClipboardFunc(),processRowGroupCallback:function(t){return t.node.key},processHeaderCallback:this.gridOptionsWrapper.getProcessHeaderForClipboardFunc(),processGroupHeaderCallback:this.gridOptionsWrapper.getProcessGroupHeaderForClipboardFunc()};return this.csvCreator.getDataAsCsv(r,!0)},i.prototype.dispatchFlashCells=function(t){var i=this;window.setTimeout((function(){i.eventService.dispatchEvent({type:xi.EVENT_FLASH_CELLS,cells:t})}),0)},i.prototype.processCell=function(t,i,n,e,r){return r?r({column:i,node:t,value:n,type:e}):n},i.prototype.copyDataToClipboard=function(t){var i=this,n=this.gridOptionsWrapper.getSendToClipboardFunc();n?n({data:t}):!this.gridOptionsWrapper.isSuppressClipboardApi()&&navigator.clipboard?navigator.clipboard.writeText(t).catch((function(n){Wr.doOnce((function(){console.warn(n),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.")}),"clipboardApiError"),i.copyDataToClipboardLegacy(t)})):this.copyDataToClipboardLegacy(t)},i.prototype.copyDataToClipboardLegacy=function(t){var i=this;this.executeOnTempElement((function(n){var e=i.gridOptionsWrapper.getDocument(),r=e.activeElement;n.value=t||" ",n.select(),n.focus({preventScroll:!0}),e.execCommand("copy")||console.warn("AG Grid: Browser did not allow document.execCommand('copy'). Ensure api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons."),null!=r&&null!=r.focus&&r.focus({preventScroll:!0})}))},i.prototype.executeOnTempElement=function(t,i){var n=this.gridOptionsWrapper.getDocument(),e=n.createElement("textarea");e.style.width="1px",e.style.height="1px",e.style.top=n.documentElement.scrollTop+"px",e.style.left=n.documentElement.scrollLeft+"px",e.style.position="absolute",e.style.opacity="0";var r=this.gridCtrl.getGui();r.appendChild(e);try{t(e)}catch(t){console.warn("AG Grid: Browser does not support document.execCommand('copy') for clipboard operations")}i?window.setTimeout((function(){i(e),r.removeChild(e)}),100):r.removeChild(e)},i.prototype.getRangeSize=function(){var t=this.rangeService.getCellRanges(),i=0,n=0;return t.length>0&&(i=this.rangeService.getRangeStartRow(t[0]).rowIndex,n=this.rangeService.getRangeEndRow(t[0]).rowIndex),i-n+1},Fm([Dt("csvCreator")],i.prototype,"csvCreator",void 0),Fm([Dt("loggerFactory")],i.prototype,"loggerFactory",void 0),Fm([Dt("selectionService")],i.prototype,"selectionService",void 0),Fm([It("rangeService")],i.prototype,"rangeService",void 0),Fm([Dt("rowModel")],i.prototype,"rowModel",void 0),Fm([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Fm([Dt("valueService")],i.prototype,"valueService",void 0),Fm([Dt("focusService")],i.prototype,"focusService",void 0),Fm([Dt("rowRenderer")],i.prototype,"rowRenderer",void 0),Fm([Dt("columnModel")],i.prototype,"columnModel",void 0),Fm([Dt("cellNavigationService")],i.prototype,"cellNavigationService",void 0),Fm([Dt("cellPositionUtils")],i.prototype,"cellPositionUtils",void 0),Fm([Dt("rowPositionUtils")],i.prototype,"rowPositionUtils",void 0),Fm([Ft],i.prototype,"init",null),Fm([Pt("clipboardService")],i)}(Ai),Pm={moduleName:Nt.ClipboardModule,beans:[km],dependantModules:[Kp,xm]},Dm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Im=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){t[t.EXPANDED=0]="EXPANDED",t[t.COLLAPSED=1]="COLLAPSED",t[t.INDETERMINATE=2]="INDETERMINATE"}(_m||(_m={})),function(t){function i(){return t.call(this,i.TEMPLATE)||this}Dm(i,t),i.prototype.postConstruct=function(){var t=this;this.createExpandIcons(),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eExpand,"keydown",(function(i){i.key===xr.SPACE&&t.onExpandClicked()})),this.addManagedListener(this.eSelect.getInputElement(),"click",this.onSelectClicked.bind(this)),this.eFilterTextField.onValueChange((function(){return t.onFilterTextChanged()})),this.addManagedListener(this.eFilterTextField.getInputElement(),"keypress",this.onMiniFilterKeyPress.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this));var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eSelect.setInputAriaLabel(i("ariaColumnSelectAll","Toggle Select All Columns")),this.eFilterTextField.setInputAriaLabel(i("ariaFilterColumnsInput","Filter Columns Input"))},i.prototype.init=function(t){this.params=t,this.columnModel.isReady()&&this.showOrHideOptions()},i.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=Wr.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=Wr.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=Wr.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper)),this.setExpandState(_m.EXPANDED)},i.prototype.showOrHideOptions=function(){var t=!this.params.suppressColumnFilter,i=!this.params.suppressColumnSelectAll,n=!this.params.suppressColumnExpandAll,e=this.columnModel.isPrimaryColumnGroupsPresent(),r=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(r("searchOoo","Search...")),Wr.setDisplayed(this.eFilterTextField.getGui(),t),Wr.setDisplayed(this.eSelect.getGui(),i),Wr.setDisplayed(this.eExpand,n&&e)},i.prototype.onFilterTextChanged=function(){var t=this;this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=Wr.debounce((function(){var i=t.eFilterTextField.getValue();t.dispatchEvent({type:"filterChanged",filterText:i})}),i.DEBOUNCE_DELAY)),this.onFilterTextChangedDebounced()},i.prototype.onMiniFilterKeyPress=function(t){var n=this;t.key===xr.ENTER&&setTimeout((function(){return n.onSelectClicked()}),i.DEBOUNCE_DELAY)},i.prototype.onSelectClicked=function(){this.dispatchEvent({type:this.selectState?"unselectAll":"selectAll"})},i.prototype.onExpandClicked=function(){this.dispatchEvent({type:this.expandState===_m.EXPANDED?"collapseAll":"expandAll"})},i.prototype.setExpandState=function(t){this.expandState=t,Wr.setDisplayed(this.eExpandChecked,this.expandState===_m.EXPANDED),Wr.setDisplayed(this.eExpandUnchecked,this.expandState===_m.COLLAPSED),Wr.setDisplayed(this.eExpandIndeterminate,this.expandState===_m.INDETERMINATE)},i.prototype.setSelectionState=function(t){this.selectState=t,this.eSelect.setValue(this.selectState)},i.DEBOUNCE_DELAY=300,i.TEMPLATE='<div class="ag-column-select-header" role="presentation" tabindex="-1">\n <div ref="eExpand" class="ag-column-select-header-icon" tabindex="0"></div>\n <ag-checkbox ref="eSelect" class="ag-column-select-header-checkbox"></ag-checkbox>\n <ag-input-text-field class="ag-column-select-header-filter-wrapper" ref="eFilterTextField"></ag-input-text-field>\n </div>',Im([Dt("columnModel")],i.prototype,"columnModel",void 0),Im([no("eExpand")],i.prototype,"eExpand",void 0),Im([no("eSelect")],i.prototype,"eSelect",void 0),Im([no("eFilterTextField")],i.prototype,"eFilterTextField",void 0),Im([Ft],i.prototype,"postConstruct",null)}(io);var Em=function(){function t(t,i,n,e,r){void 0===e&&(e=!1),this.eventService=new Wt,this.displayName=t,this.dept=n,this.group=e,e?(this.columnGroup=i,this.expanded=r,this.children=[]):this.column=i}return t.prototype.isGroup=function(){return this.group},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.getColumnGroup=function(){return this.columnGroup},t.prototype.getColumn=function(){return this.column},t.prototype.getDept=function(){return this.dept},t.prototype.isExpanded=function(){return!!this.expanded},t.prototype.getChildren=function(){return this.children},t.prototype.isPassesFilter=function(){return this.passesFilter},t.prototype.setExpanded=function(i){i!==this.expanded&&(this.expanded=i,this.eventService.dispatchEvent({type:t.EVENT_EXPANDED_CHANGED}))},t.prototype.setPassesFilter=function(t){this.passesFilter=t},t.prototype.addEventListener=function(t,i){this.eventService.addEventListener(t,i)},t.prototype.removeEventListener=function(t,i){this.eventService.removeEventListener(t,i)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t}(),Tm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),zm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Nm=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Lm=function(t){function i(i,n,e){var r=t.call(this,'<div class="ag-menu"></div>')||this;return r.column=i,r.mouseEvent=n,r.parentEl=e,r.displayName=null,r}return Tm(i,t),i.prototype.postConstruct=function(){this.initializeProperties(this.column),this.buildMenuItemMap(),this.displayName=this.column instanceof qt?this.columnModel.getDisplayNameForColumn(this.column,"columnToolPanel"):this.columnModel.getDisplayNameForProvidedColumnGroup(null,this.column,"columnToolPanel"),this.isActive()&&(this.mouseEvent.preventDefault(),this.displayContextMenu())},i.prototype.initializeProperties=function(t){this.columns=t instanceof hi?t.getLeafColumns():[t],this.allowGrouping=this.columns.some((function(t){return t.isPrimary()&&t.isAllowRowGroup()})),this.allowValues=this.columns.some((function(t){return t.isPrimary()&&t.isAllowValue()})),this.allowPivoting=this.columnModel.isPivotMode()&&this.columns.some((function(t){return t.isPrimary()&&t.isAllowPivot()}))},i.prototype.buildMenuItemMap=function(){var t=this,i=this.gridOptionsWrapper.getLocaleTextFunc();this.menuItemMap=new Map,this.menuItemMap.set("rowGroup",{allowedFunction:function(t){return t.isPrimary()&&t.isAllowRowGroup()},activeFunction:function(t){return t.isRowGroupActive()},activateLabel:function(){return i("groupBy","Group by")+" "+t.displayName},deactivateLabel:function(){return i("ungroupBy","Un-Group by")+" "+t.displayName},activateFunction:function(){var i=t.columnModel.getRowGroupColumns();t.columnModel.setRowGroupColumns(t.addColumnsToList(i),"toolPanelUi")},deActivateFunction:function(){var i=t.columnModel.getRowGroupColumns();t.columnModel.setRowGroupColumns(t.removeColumnsFromList(i),"toolPanelUi")},addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),this.menuItemMap.set("value",{allowedFunction:function(t){return t.isPrimary()&&t.isAllowValue()},activeFunction:function(t){return t.isValueActive()},activateLabel:function(){return i("addToValues","Add "+t.displayName+" to values",[t.displayName])},deactivateLabel:function(){return i("removeFromValues","Remove "+t.displayName+" from values",[t.displayName])},activateFunction:function(){var i=t.columnModel.getValueColumns();t.columnModel.setValueColumns(t.addColumnsToList(i),"toolPanelUi")},deActivateFunction:function(){var i=t.columnModel.getValueColumns();t.columnModel.setValueColumns(t.removeColumnsFromList(i),"toolPanelUi")},addIcon:"valuePanel",removeIcon:"valuePanel"}),this.menuItemMap.set("pivot",{allowedFunction:function(i){return t.columnModel.isPivotMode()&&i.isPrimary()&&i.isAllowPivot()},activeFunction:function(t){return t.isPivotActive()},activateLabel:function(){return i("addToLabels","Add "+t.displayName+" to labels",[t.displayName])},deactivateLabel:function(){return i("removeFromLabels","Remove "+t.displayName+" from labels",[t.displayName])},activateFunction:function(){var i=t.columnModel.getPivotColumns();t.columnModel.setPivotColumns(t.addColumnsToList(i),"toolPanelUi")},deActivateFunction:function(){var i=t.columnModel.getPivotColumns();t.columnModel.setPivotColumns(t.removeColumnsFromList(i),"toolPanelUi")},addIcon:"pivotPanel",removeIcon:"pivotPanel"})},i.prototype.addColumnsToList=function(t){return function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(Nm(arguments[i]));return t}(t).concat(this.columns.filter((function(i){return-1===t.indexOf(i)})))},i.prototype.removeColumnsFromList=function(t){var i=this;return t.filter((function(t){return-1===i.columns.indexOf(t)}))},i.prototype.displayContextMenu=function(){var t=this,i=this.getGui(),n=this.createBean(new ed),e=this.getMappedMenuItems(),r=this.gridOptionsWrapper.getLocaleTextFunc(),o=function(){};i.appendChild(n.getGui()),n.addMenuItems(e),n.addManagedListener(n,hd.EVENT_MENU_ITEM_SELECTED,(function(){t.parentEl.focus(),o()}));var s=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,afterGuiAttached:function(){return t.focusService.focusInto(n.getGui())},ariaLabel:r("ariaLabelContextMenu","Context Menu"),closedCallback:function(i){i instanceof KeyboardEvent&&t.parentEl.focus(),t.destroyBean(n)}});s&&(o=s.hideFunc),this.popupService.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:i})},i.prototype.isActive=function(){return this.allowGrouping||this.allowValues||this.allowPivoting},i.prototype.getMappedMenuItems=function(){var t,i,n=[],e=function(t){var i=r.columns.some((function(i){return t.allowedFunction(i)&&!t.activeFunction(i)})),e=r.columns.some((function(i){return t.allowedFunction(i)&&t.activeFunction(i)}));i&&n.push({name:t.activateLabel(r.displayName),icon:Wr.createIconNoSpan(t.addIcon,r.gridOptionsWrapper,null),action:function(){return t.activateFunction()}}),e&&n.push({name:t.deactivateLabel(r.displayName),icon:Wr.createIconNoSpan(t.removeIcon,r.gridOptionsWrapper,null),action:function(){return t.deActivateFunction()}})},r=this;try{for(var o=function(t){var i="function"==typeof Symbol&&Symbol.iterator,n=i&&t[i],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.menuItemMap.values()),s=o.next();!s.done;s=o.next())e(s.value)}catch(i){t={error:i}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return n},zm([Dt("columnModel")],i.prototype,"columnModel",void 0),zm([Dt("popupService")],i.prototype,"popupService",void 0),zm([Dt("focusService")],i.prototype,"focusService",void 0),zm([Ft],i.prototype,"postConstruct",null),i}(io),Bm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Wm=function(t){function i(i,n,e,r){var o=t.call(this)||this;return o.modelItem=i,o.allowDragging=n,o.eventType=e,o.focusWrapper=r,o.processingColumnStateChange=!1,o.modelItem=i,o.columnGroup=i.getColumnGroup(),o.columnDept=i.getDept(),o.allowDragging=n,o}return Bm(i,t),i.prototype.init=function(){var t=this;this.setTemplate(i.TEMPLATE),this.eDragHandle=Wr.createIconNoSpan("columnDrag",this.gridOptionsWrapper),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");var n=this.cbSelect.getGui(),e=this.cbSelect.getInputElement();n.insertAdjacentElement("afterend",this.eDragHandle),e.setAttribute("tabindex","-1"),this.displayName=this.columnModel.getDisplayNameForProvidedColumnGroup(null,this.columnGroup,this.eventType),Wr.missing(this.displayName)&&(this.displayName=">>"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-column-select-indent-"+this.columnDept),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.addManagedListener(this.cbSelect,Ta.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addManagedListener(this.modelItem,Em.EVENT_EXPANDED_CHANGED,this.onExpandChanged.bind(this)),this.addManagedListener(this.focusWrapper,"keydown",this.handleKeyDown.bind(this)),this.addManagedListener(this.focusWrapper,"contextmenu",this.onContextMenu.bind(this)),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),sa.getToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.gridOptionsWrapper,null,this.columnGroup).forEach((function(i){return t.addOrRemoveCssClass(i,!0)}))},i.prototype.getColumns=function(){return this.columnGroup.getLeafColumns()},i.prototype.setupTooltip=function(){var t=this,i=this.columnGroup.getColGroupDef();if(i){var n=function(){t.setTooltip(i.headerTooltip)};n(),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,n)}},i.prototype.getTooltipParams=function(){var i=t.prototype.getTooltipParams.call(this);return i.location="columnToolPanelColumnGroup",i},i.prototype.handleKeyDown=function(t){switch(t.key){case xr.LEFT:t.preventDefault(),this.modelItem.setExpanded(!1);break;case xr.RIGHT:t.preventDefault(),this.modelItem.setExpanded(!0);break;case xr.SPACE:t.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected())}},i.prototype.onContextMenu=function(t){var i=this,n=this.columnGroup;if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var e=this.createBean(new Lm(n,t,this.focusWrapper));this.addDestroyFunc((function(){e.isAlive()&&i.destroyBean(e)}))}},i.prototype.addVisibilityListenersToAllChildren=function(){var t=this;this.columnGroup.getLeafColumns().forEach((function(i){t.addManagedListener(i,qt.EVENT_VISIBLE_CHANGED,t.onColumnStateChanged.bind(t)),t.addManagedListener(i,qt.EVENT_VALUE_CHANGED,t.onColumnStateChanged.bind(t)),t.addManagedListener(i,qt.EVENT_PIVOT_CHANGED,t.onColumnStateChanged.bind(t)),t.addManagedListener(i,qt.EVENT_ROW_GROUP_CHANGED,t.onColumnStateChanged.bind(t))}))},i.prototype.setupDragging=function(){var t=this;if(this.allowDragging){var i=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),n={type:Ls.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,defaultIconName:i?Xs.ICON_HIDE:Xs.ICON_NOT_ALLOWED,getDragItem:function(){return t.createDragItem()},onDragStarted:function(){t.eventService.dispatchEvent({type:xi.EVENT_COLUMN_PANEL_ITEM_DRAG_START,column:t.columnGroup})},onDragStopped:function(){t.eventService.dispatchEvent({type:xi.EVENT_COLUMN_PANEL_ITEM_DRAG_END})},onGridEnter:function(){i&&t.onChangeCommon(!0)},onGridExit:function(){i&&t.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return t.dragAndDropService.removeDragSource(n)}))}else Wr.setDisplayed(this.eDragHandle,!1)},i.prototype.createDragItem=function(){var t={};return this.columnGroup.getLeafColumns().forEach((function(i){t[i.getId()]=i.isVisible()})),{columns:this.columnGroup.getLeafColumns(),visibleState:t}},i.prototype.setupExpandContract=function(){this.eGroupClosedIcon.appendChild(Wr.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Wr.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addManagedListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var t=new ds(this.eColumnGroupIcons,!0);this.addManagedListener(t,ds.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(t.destroy.bind(t))},i.prototype.onLabelClicked=function(){var t=!this.cbSelect.getValue();this.onChangeCommon(t)},i.prototype.onCheckboxChanged=function(t){this.onChangeCommon(t.selected)},i.prototype.getVisibleLeafColumns=function(){var t=[],i=function(n){n.forEach((function(n){n.isPassesFilter()&&(n.isGroup()?i(n.getChildren()):t.push(n.getColumn()))}))};return i(this.modelItem.getChildren()),t},i.prototype.onChangeCommon=function(t){this.refreshAriaLabel(),this.processingColumnStateChange||this.modelItemUtils.selectAllChildren(this.modelItem.getChildren(),t,this.eventType)},i.prototype.refreshAriaLabel=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=t("ariaColumnGroup","Column Group"),n=this.cbSelect.getValue()?t("ariaVisible","visible"):t("ariaHidden","hidden"),e=t("ariaToggleVisibility","Press SPACE to toggle visibility");Wr.setAriaLabel(this.focusWrapper,this.displayName+" "+i),this.cbSelect.setInputAriaLabel(e+" ("+n+")"),Wr.setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)},i.prototype.onColumnStateChanged=function(){var t=this.workOutSelectedValue(),i=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(t),this.cbSelect.setReadOnly(i),this.addOrRemoveCssClass("ag-column-select-column-group-readonly",i),this.processingColumnStateChange=!1},i.prototype.workOutSelectedValue=function(){var t=this,i=this.columnModel.isPivotMode(),n=this.getVisibleLeafColumns(),e=0,r=0;if(n.forEach((function(n){!i&&n.getColDef().lockVisible||(t.isColumnChecked(n,i)?e++:r++)})),!(e>0&&r>0))return e>0},i.prototype.workOutReadOnlyValue=function(){var t=this.columnModel.isPivotMode(),i=0;return this.columnGroup.getLeafColumns().forEach((function(n){t?n.isAnyFunctionAllowed()&&i++:n.getColDef().lockVisible||i++})),0===i},i.prototype.isColumnChecked=function(t,i){if(i){var n=t.isPivotActive(),e=t.isRowGroupActive(),r=t.isValueActive();return n||e||r}return t.isVisible()},i.prototype.onExpandOrContractClicked=function(){var t=this.modelItem.isExpanded();this.modelItem.setExpanded(!t)},i.prototype.onExpandChanged=function(){this.setOpenClosedIcons(),this.refreshAriaExpanded()},i.prototype.setOpenClosedIcons=function(){var t=this.modelItem.isExpanded();Wr.setDisplayed(this.eGroupClosedIcon,!t),Wr.setDisplayed(this.eGroupOpenedIcon,t)},i.prototype.refreshAriaExpanded=function(){Wr.setAriaExpanded(this.focusWrapper,this.modelItem.isExpanded())},i.prototype.getDisplayName=function(){return this.displayName},i.prototype.onSelectAllChanged=function(t){var i=this.cbSelect.getValue();!this.cbSelect.isReadOnly()&&(t&&!i||!t&&i)&&this.cbSelect.toggle()},i.prototype.isSelected=function(){return this.cbSelect.getValue()},i.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},i.prototype.setSelected=function(t){this.cbSelect.setValue(t,!0)},i.TEMPLATE='<div class="ag-column-select-column-group" aria-hidden="true">\n <span class="ag-column-group-icons" ref="eColumnGroupIcons" >\n <span class="ag-column-group-closed-icon" ref="eGroupClosedIcon"></span>\n <span class="ag-column-group-opened-icon" ref="eGroupOpenedIcon"></span>\n </span>\n <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n <span class="ag-column-select-column-label" ref="eLabel"></span>\n </div>',Hm([Dt("columnModel")],i.prototype,"columnModel",void 0),Hm([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Hm([Dt("modelItemUtils")],i.prototype,"modelItemUtils",void 0),Hm([no("cbSelect")],i.prototype,"cbSelect",void 0),Hm([no("eLabel")],i.prototype,"eLabel",void 0),Hm([no("eGroupOpenedIcon")],i.prototype,"eGroupOpenedIcon",void 0),Hm([no("eGroupClosedIcon")],i.prototype,"eGroupClosedIcon",void 0),Hm([no("eColumnGroupIcons")],i.prototype,"eColumnGroupIcons",void 0),Hm([Ft],i.prototype,"init",null),i}(io),Vm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Um=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Km="ag-list-item-hovered",$m=function(t){function i(i,n){var e=t.call(this)||this;return e.comp=i,e.virtualList=n,e.currentDragColumn=null,e.lastHoveredColumnItem=null,e}return Vm(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PANEL_ITEM_DRAG_START,this.columnPanelItemDragStart.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PANEL_ITEM_DRAG_END,this.columnPanelItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},i.prototype.columnPanelItemDragStart=function(t){this.currentDragColumn=t.column,this.getCurrentColumns().find((function(t){var i=t.getColDef();return!!i.suppressMovable||!!i.lockPosition}))&&(this.moveBlocked=!0)},i.prototype.columnPanelItemDragEnd=function(){var t=this;window.setTimeout((function(){t.currentDragColumn=null,t.moveBlocked=!1}),10)},i.prototype.createDropTarget=function(){var t=this;this.dragAndDropService.addDropTarget({isInterestedIn:function(t){return t===Ls.ToolPanel},getIconName:function(){return Xs[t.moveBlocked?"ICON_NOT_ALLOWED":"ICON_MOVE"]},getContainer:function(){return t.comp.getGui()},onDragging:function(i){return t.onDragging(i)},onDragStop:function(){return t.onDragStop()},onDragLeave:function(){return t.onDragLeave()}})},i.prototype.createAutoScrollService=function(){var t=this.virtualList.getGui();this.autoScrollService=new lh({scrollContainer:t,scrollAxis:"y",getVerticalPosition:function(){return t.scrollTop},setVerticalPosition:function(i){return t.scrollTop=i}})},i.prototype.onDragging=function(t){if(this.currentDragColumn&&!this.moveBlocked){var i=this.getDragColumnItem(t),n=this.virtualList.getComponentAt(i.rowIndex);if(n){var e=n.getGui().parentElement;this.lastHoveredColumnItem&&this.lastHoveredColumnItem.rowIndex===i.rowIndex&&this.lastHoveredColumnItem.position===i.position||(this.autoScrollService.check(t.event),this.clearHoveredItems(),this.lastHoveredColumnItem=i,Wr.radioCssClass(e,""+Km),Wr.radioCssClass(e,"ag-item-highlight-"+i.position))}}},i.prototype.getDragColumnItem=function(t){var i=this.virtualList.getGui(),n=parseFloat(window.getComputedStyle(i).paddingTop),e=this.virtualList.getRowHeight(),r=this.virtualList.getScrollTop(),o=Math.max(0,(t.y-n+r)/e),s=this.comp.getDisplayedColsList().length-1,u=0|Math.min(s,o);return{rowIndex:u,position:Math.round(o)>o||o>s?"bottom":"top",component:this.virtualList.getComponentAt(u)}},i.prototype.onDragStop=function(){if(!this.moveBlocked){var t=this.getTargetIndex(),i=this.getCurrentColumns();null!=t&&this.columnModel.moveColumns(i,t),this.clearHoveredItems(),this.autoScrollService.ensureCleared()}},i.prototype.getMoveDiff=function(t){var i=this.columnModel.getAllGridColumns(),n=this.getCurrentColumns(),e=n.length;return i.indexOf(n[0])<t?e:0},i.prototype.getCurrentColumns=function(){return this.currentDragColumn instanceof hi?this.currentDragColumn.getLeafColumns():[this.currentDragColumn]},i.prototype.getTargetIndex=function(){if(!this.lastHoveredColumnItem)return null;var t,i=this.lastHoveredColumnItem.component,n="top"===this.lastHoveredColumnItem.position;i instanceof Wm?(t=i.getColumns()[0],n=!0):t=i.getColumn();var e=this.columnModel.getAllGridColumns().indexOf(t),r=n?e:e+1;return r-this.getMoveDiff(r)},i.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},i.prototype.clearHoveredItems=function(){this.virtualList.getGui().querySelectorAll("."+Km).forEach((function(t){[Km,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach((function(i){t.classList.remove(i)}))})),this.lastHoveredColumnItem=null},Um([Dt("columnModel")],i.prototype,"columnModel",void 0),Um([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Um([Ft],i.prototype,"postConstruct",null),i}(Ai),qm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Ym=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Jm=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.column=i,s.columnDept=n,s.allowDragging=e,s.groupsExist=r,s.focusWrapper=o,s.processingColumnStateChange=!1,s}return qm(i,t),i.prototype.init=function(){var t=this;this.setTemplate(i.TEMPLATE),this.eDragHandle=Wr.createIconNoSpan("columnDrag",this.gridOptionsWrapper),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");var n=this.cbSelect.getGui(),e=this.cbSelect.getInputElement();n.insertAdjacentElement("afterend",this.eDragHandle),e.setAttribute("tabindex","-1"),this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnToolPanel");var r=Wr.escapeString(this.displayName);this.eLabel.innerHTML=r;var o=this.columnDept;this.groupsExist&&this.addCssClass("ag-column-select-add-group-indent"),this.addCssClass("ag-column-select-indent-"+o),this.setupDragging(),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,qt.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,qt.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,qt.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,qt.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.focusWrapper,"keydown",this.handleKeyDown.bind(this)),this.addManagedListener(this.focusWrapper,"contextmenu",this.onContextMenu.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListener(this.cbSelect,Ta.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addManagedListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),sa.getToolPanelClassesFromColDef(this.column.getColDef(),this.gridOptionsWrapper,this.column,null).forEach((function(i){return t.addOrRemoveCssClass(i,!0)}))},i.prototype.getColumn=function(){return this.column},i.prototype.setupTooltip=function(){var t=this,i=function(){var i=t.column.getColDef().headerTooltip;t.setTooltip(i)};i(),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,i)},i.prototype.getTooltipParams=function(){var i=t.prototype.getTooltipParams.call(this);return i.location="columnToolPanelColumn",i.colDef=this.column.getColDef(),i},i.prototype.onContextMenu=function(t){var i=this,n=this.column;if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var e=this.createBean(new Lm(n,t,this.focusWrapper));this.addDestroyFunc((function(){e.isAlive()&&i.destroyBean(e)}))}},i.prototype.handleKeyDown=function(t){t.key===xr.SPACE&&(t.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))},i.prototype.onLabelClicked=function(){if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var t=!this.cbSelect.getValue();this.onChangeCommon(t)}},i.prototype.onCheckboxChanged=function(t){this.onChangeCommon(t.selected)},i.prototype.onChangeCommon=function(t){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),this.processingColumnStateChange||this.modelItemUtils.setColumn(this.column,t,"toolPanelUi"))},i.prototype.refreshAriaLabel=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=t("ariaColumn","Column"),n=this.cbSelect.getValue()?t("ariaVisible","visible"):t("ariaHidden","hidden"),e=t("ariaToggleVisibility","Press SPACE to toggle visibility");Wr.setAriaLabel(this.focusWrapper,this.displayName+" "+i),this.cbSelect.setInputAriaLabel(e+" ("+n+")"),Wr.setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)},i.prototype.setupDragging=function(){var t=this;if(this.allowDragging){var i=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),n={type:Ls.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,defaultIconName:i?Xs.ICON_HIDE:Xs.ICON_NOT_ALLOWED,getDragItem:function(){return t.createDragItem()},onDragStarted:function(){t.eventService.dispatchEvent({type:xi.EVENT_COLUMN_PANEL_ITEM_DRAG_START,column:t.column})},onDragStopped:function(){t.eventService.dispatchEvent({type:xi.EVENT_COLUMN_PANEL_ITEM_DRAG_END})},onGridEnter:function(){i&&t.onChangeCommon(!0)},onGridExit:function(){i&&t.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(n,!0),this.addDestroyFunc((function(){return t.dragAndDropService.removeDragSource(n)}))}else Wr.setDisplayed(this.eDragHandle,!1)},i.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},i.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var t=this.columnModel.isPivotMode();if(t){var i=this.column.isAnyFunctionActive();this.cbSelect.setValue(i)}else this.cbSelect.setValue(this.column.isVisible());var n=!0,e=!0;if(t){var r=this.gridOptionsWrapper.isFunctionsReadOnly(),o=!this.column.isAnyFunctionAllowed();e=n=!r&&!o}else{var s=this.column.getColDef();n=!s.lockVisible,e=!!s.enableRowGroup||!!s.enableValue||!(s.lockPosition||s.suppressMovable)}this.cbSelect.setReadOnly(!n),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!e),this.addOrRemoveCssClass("ag-column-select-column-readonly",!e&&!n);var u=t&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(u),this.processingColumnStateChange=!1},i.prototype.getDisplayName=function(){return this.displayName},i.prototype.onSelectAllChanged=function(t){t!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},i.prototype.isSelected=function(){return this.cbSelect.getValue()},i.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},i.prototype.isExpandable=function(){return!1},i.prototype.setExpanded=function(){console.warn("AG Grid: can not expand a column item that does not represent a column group header")},i.TEMPLATE='<div class="ag-column-select-column" aria-hidden="true">\n <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n <span class="ag-column-select-column-label" ref="eLabel"></span>\n </div>',Ym([Dt("columnModel")],i.prototype,"columnModel",void 0),Ym([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Ym([Dt("modelItemUtils")],i.prototype,"modelItemUtils",void 0),Ym([no("eLabel")],i.prototype,"eLabel",void 0),Ym([no("cbSelect")],i.prototype,"cbSelect",void 0),Ym([Ft],i.prototype,"init",null),i}(io),Zm=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xm=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Qm=function(){function t(t){this.items=t}return t.prototype.getRowCount=function(){return this.items.length},t.prototype.getRow=function(t){return this.items[t]},t}();!function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.destroyColumnItemFuncs=[],n}Zm(i,t),i.prototype.destroyColumnTree=function(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach((function(t){return t()})),this.destroyColumnItemFuncs=[]},i.prototype.init=function(t,i,n){var e=this;this.params=t,this.allowDragging=i,this.eventType=n,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,xi.EVENT_COLUMN_MOVED,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.onColumnsChanged.bind(this)),[xi.EVENT_COLUMN_PIVOT_CHANGED,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,xi.EVENT_COLUMN_VALUE_CHANGED,xi.EVENT_COLUMN_VISIBLE,xi.EVENT_NEW_COLUMNS_LOADED].forEach((function(t){e.addManagedListener(e.eventService,t,e.fireSelectionChangedEvent.bind(e))})),this.expandGroupsByDefault=!this.params.contractColumnSelection;var r=this.gridOptionsWrapper.getLocaleTextFunc()("ariaColumnList","Column List");this.virtualList=this.createManagedBean(new Cd("column-select","tree",r)),this.appendChild(this.virtualList.getGui()),this.virtualList.setComponentCreator((function(t,i){return Wr.setAriaLevel(i,t.getDept()+1),e.createComponentFromItem(t,i)})),this.columnModel.isReady()&&this.onColumnsChanged(),t.suppressColumnMove||this.gridOptionsWrapper.isSuppressMovableColumns()||this.createManagedBean(new $m(this,this.virtualList))},i.prototype.createComponentFromItem=function(t,i){if(t.isGroup()){var n=new Wm(t,this.allowDragging,this.eventType,i);return this.getContext().createBean(n),n}var e=new Jm(t.getColumn(),t.getDept(),this.allowDragging,this.groupsExist,i);return this.getContext().createBean(e),e},i.prototype.onColumnsChanged=function(){var t=this.getExpandedStates(),i=this.columnModel.isPivotMode();this.params.suppressSyncLayoutWithGrid||i?this.buildTreeFromProvidedColumnDefs():this.buildTreeFromWhatGridIsDisplaying(),this.setExpandedStates(t),this.markFilteredColumns(),this.flattenAndFilterModel()},i.prototype.getDisplayedColsList=function(){return this.displayedColsList},i.prototype.getExpandedStates=function(){if(!this.allColsTree)return{};var t={};return this.forEachItem((function(i){if(i.isGroup()){var n=i.getColumnGroup();n&&(t[n.getId()]=i.isExpanded())}})),t},i.prototype.setExpandedStates=function(t){this.allColsTree&&this.forEachItem((function(i){if(i.isGroup()){var n=i.getColumnGroup();if(n){var e=t[n.getId()];null!=e&&i.setExpanded(e)}}}))},i.prototype.buildTreeFromWhatGridIsDisplaying=function(){this.colDefService.syncLayoutWithGrid(this.setColumnLayout.bind(this))},i.prototype.setColumnLayout=function(t){var i=this.colDefService.createColumnTree(t);this.buildListModel(i),this.groupsExist=t.some((function(t){return t&&void 0!==t.children})),this.markFilteredColumns(),this.flattenAndFilterModel()},i.prototype.buildTreeFromProvidedColumnDefs=function(){this.buildListModel(this.columnModel.getPrimaryColumnTree()),this.groupsExist=this.columnModel.isPrimaryColumnGroupsPresent()},i.prototype.buildListModel=function(t){var i=this,n=this.onColumnExpanded.bind(this),e=function(t,i,n){t.forEach((function(t){t instanceof hi?r(t,i,n):o(t,i,n)}))},r=function(t,r,o){var s=t.getColGroupDef();if(!s||!s.suppressColumnsToolPanel)if(t.isPadding())e(t.getChildren(),r,o);else{var u=i.columnModel.getDisplayNameForProvidedColumnGroup(null,t,i.eventType),h=new Em(u,t,r,!0,i.expandGroupsByDefault);o.push(h),function(t){t.addEventListener(Em.EVENT_EXPANDED_CHANGED,n);var e=t.removeEventListener.bind(t,Em.EVENT_EXPANDED_CHANGED,n);i.destroyColumnItemFuncs.push(e)}(h),e(t.getChildren(),r+1,h.getChildren())}},o=function(t,n,e){if(!t.getColDef()||!t.getColDef().suppressColumnsToolPanel){var r=i.columnModel.getDisplayNameForColumn(t,"columnToolPanel");e.push(new Em(r,t,n))}};this.destroyColumnTree(),e(t,0,this.allColsTree)},i.prototype.onColumnExpanded=function(){this.flattenAndFilterModel()},i.prototype.flattenAndFilterModel=function(){var t=this;this.displayedColsList=[];var i=function(n){n.isPassesFilter()&&(t.displayedColsList.push(n),n.isGroup()&&n.isExpanded()&&n.getChildren().forEach(i))};this.allColsTree.forEach(i),this.virtualList.setModel(new Qm(this.displayedColsList));var n=this.virtualList.getLastFocusedRow();this.virtualList.refresh(),null!=n&&this.focusRowIfAlive(n),this.notifyListeners()},i.prototype.focusRowIfAlive=function(t){var i=this;window.setTimeout((function(){i.isAlive()&&i.virtualList.focusRow(t)}),0)},i.prototype.forEachItem=function(t){var i=function(n){n.forEach((function(n){t(n),n.isGroup()&&i(n.getChildren())}))};i(this.allColsTree)},i.prototype.doSetExpandedAll=function(t){this.forEachItem((function(i){i.isGroup()&&i.setExpanded(t)}))},i.prototype.setGroupsExpanded=function(t,i){if(i){var n=[];this.forEachItem((function(e){if(e.isGroup()){var r=e.getColumnGroup().getId();i.indexOf(r)>=0&&(e.setExpanded(t),n.push(r))}}));var e=i.filter((function(t){return!Wr.includes(n,t)}));e.length>0&&console.warn("AG Grid: unable to find group(s) for supplied groupIds:",e)}else this.doSetExpandedAll(t)},i.prototype.getExpandState=function(){var t=0,i=0;return this.forEachItem((function(n){n.isGroup()&&(n.isExpanded()?t++:i++)})),t>0&&i>0?_m.INDETERMINATE:i>0?_m.COLLAPSED:_m.EXPANDED},i.prototype.doSetSelectedAll=function(t){this.modelItemUtils.selectAllChildren(this.allColsTree,t,this.eventType)},i.prototype.getSelectionState=function(){var t=0,i=0,n=this.columnModel.isPivotMode();if(this.forEachItem((function(e){if(!e.isGroup()&&e.isPassesFilter()){var r,o=e.getColumn(),s=o.getColDef();if(n){if(!o.isAllowPivot()&&!o.isAllowRowGroup()&&!o.isAllowValue())return;r=o.isValueActive()||o.isPivotActive()||o.isRowGroupActive()}else{if(s.lockVisible)return;r=o.isVisible()}r?t++:i++}})),!(t>0&&i>0))return!(0===t||i>0)},i.prototype.setFilterText=function(t){this.filterText=Wr.exists(t)?t.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()},i.prototype.markFilteredColumns=function(){var t=this,i=function(i){if(!Wr.exists(t.filterText))return!0;var n=i.getDisplayName();return null==n||-1!==n.toLowerCase().indexOf(t.filterText)},n=function(t,e){var r=!1;if(t.isGroup()){var o=i(t);t.getChildren().forEach((function(t){var i=n(t,o||e);i&&(r=i)}))}var s=!(!e&&!r)||i(t);return t.setPassesFilter(s),s};this.allColsTree.forEach((function(t){return n(t,!1)}))},i.prototype.notifyListeners=function(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()},i.prototype.fireGroupExpandedEvent=function(){var t=this.getExpandState();this.dispatchEvent({type:"groupExpanded",state:t})},i.prototype.fireSelectionChangedEvent=function(){var t=this.getSelectionState();this.dispatchEvent({type:"selectionChanged",state:t})},i.TEMPLATE='<div class="ag-column-select-list" role="presentation"></div>',Xm([Dt("columnModel")],i.prototype,"columnModel",void 0),Xm([Dt("toolPanelColDefService")],i.prototype,"colDefService",void 0),Xm([Dt("modelItemUtils")],i.prototype,"modelItemUtils",void 0),Xm([kt],i.prototype,"destroyColumnTree",null)}(io);var tb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ib=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},nb=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return tb(i,t),i.prototype.createTemplate=function(){return'<div class="ag-pivot-mode-panel">\n <ag-toggle-button ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>\n </div>'},i.prototype.init=function(){this.setTemplate(this.createTemplate()),this.cbPivotMode.setValue(this.columnModel.isPivotMode());var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbPivotMode.setLabel(t("pivotMode","Pivot Mode")),this.addManagedListener(this.cbPivotMode,Ta.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},i.prototype.onBtPivotMode=function(){var t=!!this.cbPivotMode.getValue();if(t!==this.columnModel.isPivotMode()){this.columnModel.setPivotMode(t,"toolPanelUi");var i=this.gridOptionsWrapper.getApi();i&&i.refreshHeader()}},i.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.cbPivotMode.setValue(t)},ib([Dt("columnModel")],i.prototype,"columnModel",void 0),ib([no("cbPivotMode")],i.prototype,"cbPivotMode",void 0),ib([Mt],i.prototype,"init",null),i}(io),eb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(){return null!==t&&t.apply(this,arguments)||this}eb(i,t),i.prototype.execute=function(t){var i=Wr.missingOrEmpty(this.columnModel.getValueColumns()),n=!this.gridOptionsWrapper.getGroupRowAggFunc(),e=t.changedPath&&t.changedPath.isActive();if(!(i&&n&&e)){var r=this.createAggDetails(t);this.recursivelyCreateAggData(r)}},i.prototype.createAggDetails=function(t){var i=this.columnModel.isPivotActive(),n=this.columnModel.getValueColumns(),e=i?this.columnModel.getPivotColumns():[];return{changedPath:t.changedPath,valueColumns:n,pivotColumns:e}},i.prototype.recursivelyCreateAggData=function(t){var i=this;this.filteredOnly=!this.gridOptionsWrapper.isSuppressAggFilteredOnly(),t.changedPath.forEachChangedNodeDepthFirst((function(n){if(n.hasChildren()){if(-1===n.level){var e=!i.columnModel.isPivotMode();if(i.gridOptionsWrapper.isSuppressAggAtRootLevel()&&e)return}i.aggregateRowNode(n,t)}else n.aggData&&n.setAggData(null)}),!0)},i.prototype.aggregateRowNode=function(t,i){var n,e=0===i.valueColumns.length,r=0===i.pivotColumns.length,o=this.gridOptionsWrapper.getGroupRowAggFunc();n=o?o({nodes:t.childrenAfterFilter}):e?null:r?this.aggregateRowNodeUsingValuesOnly(t,i):this.aggregateRowNodeUsingValuesAndPivot(t),t.setAggData(n),t.sibling&&t.sibling.setAggData(n)},i.prototype.aggregateRowNodeUsingValuesAndPivot=function(t){var i=this,n={},e=this.pivotStage.getPivotColumnDefs();return e.filter((function(t){return!Wr.exists(t.pivotTotalColumnIds)})).forEach((function(e){var r,o=e.pivotValueColumn,s=e.colId;r=t.leafGroup?i.getValuesFromMappedSet(t.childrenMapped,e.pivotKeys||[],o):i.getValuesPivotNonLeaf(t,s),n[s]=i.aggregateValues(r,o.getAggFunc(),o,t)})),e.filter((function(t){return Wr.exists(t.pivotTotalColumnIds)})).forEach((function(e){var r=[],o=e.pivotValueColumn,s=e.pivotTotalColumnIds,u=e.colId;s&&s.length&&(s.forEach((function(t){r.push(n[t])})),n[u]=i.aggregateValues(r,o.getAggFunc(),o,t))})),n},i.prototype.aggregateRowNodeUsingValuesOnly=function(t,i){var n=this,e={},r=i.changedPath.isActive()?i.changedPath.getValueColumnsForNode(t,i.valueColumns):i.valueColumns,o=i.changedPath.isActive()?i.changedPath.getNotValueColumnsForNode(t,i.valueColumns):null,s=this.getValuesNormal(t,r),u=t.aggData;return r.forEach((function(i,r){e[i.getId()]=n.aggregateValues(s[r],i.getAggFunc(),i,t)})),o&&u&&o.forEach((function(t){e[t.getId()]=u[t.getId()]})),e},i.prototype.getValuesPivotNonLeaf=function(t,i){var n=[];return t.childrenAfterFilter.forEach((function(t){n.push(t.aggData[i])})),n},i.prototype.getValuesFromMappedSet=function(t,i,n){var e=this,r=t;if(i.forEach((function(t){return r=r?r[t]:null})),!r)return[];var o=[];return r.forEach((function(t){var i=e.valueService.getValue(n,t);o.push(i)})),o},i.prototype.getValuesNormal=function(t,i){var n=[];i.forEach((function(){return n.push([])}));for(var e=i.length,r=this.filteredOnly?t.childrenAfterFilter:t.childrenAfterGroup,o=r.length,s=0;s<o;s++)for(var u=r[s],h=0;h<e;h++){var c=this.valueService.getValue(i[h],u);n[h].push(c)}return n},i.prototype.aggregateValues=function(t,i,n,e){var r="string"==typeof i?this.aggFuncService.getAggFunc(i):i;return"function"!=typeof r?(console.error("AG Grid: unrecognised aggregation function "+i),null):r({values:t,column:n,colDef:n?n.getColDef():void 0,rowNode:e,data:e?e.data:void 0,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()})},rb([Dt("columnModel")],i.prototype,"columnModel",void 0),rb([Dt("valueService")],i.prototype,"valueService",void 0),rb([Dt("pivotStage")],i.prototype,"pivotStage",void 0),rb([Dt("aggFuncService")],i.prototype,"aggFuncService",void 0),rb([Dt("gridApi")],i.prototype,"gridApi",void 0),rb([Dt("columnApi")],i.prototype,"columnApi",void 0),i=rb([Pt("aggregationStage")],i)}(Ai);var ob=function(){function t(){this.allSets={},this.allParents=[]}return t.prototype.removeFromChildrenAfterGroup=function(t,i){this.getSet(t).removeFromChildrenAfterGroup[i.id]=!0},t.prototype.removeFromAllLeafChildren=function(t,i){this.getSet(t).removeFromAllLeafChildren[i.id]=!0},t.prototype.getSet=function(t){return this.allSets[t.id]||(this.allSets[t.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(t)),this.allSets[t.id]},t.prototype.getAllParents=function(){return this.allParents},t.prototype.flush=function(){var t=this;this.allParents.forEach((function(i){var n=t.allSets[i.id];i.childrenAfterGroup=i.childrenAfterGroup.filter((function(t){return!n.removeFromChildrenAfterGroup[t.id]})),i.allLeafChildren=i.allLeafChildren.filter((function(t){return!n.removeFromAllLeafChildren[t.id]})),i.updateHasChildren(),i.sibling&&(i.sibling.childrenAfterGroup=i.childrenAfterGroup,i.sibling.allLeafChildren=i.allLeafChildren)})),this.allSets={},this.allParents.length=0},t}(),sb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ub=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hb=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s};!function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.groupIdSequence=new Vr,i}sb(i,t),i.prototype.postConstruct=function(){this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.usingTreeData&&(this.getDataPath=this.gridOptionsWrapper.getDataPathFunc())},i.prototype.execute=function(t){var i=this.createGroupingDetails(t);i.transactions?this.handleTransaction(i):this.shotgunResetEverything(i,!0===t.afterColumnsChanged),this.positionLeafsAboveGroups(t.changedPath),this.orderGroups(i.rootNode),this.selectableService.updateSelectableAfterGrouping(i.rootNode)},i.prototype.positionLeafsAboveGroups=function(t){this.usingTreeData||t.forEachChangedNodeDepthFirst((function(t){if(t.childrenAfterGroup){var i=[],n=[];t.childrenAfterGroup.forEach((function(t){var e;(null===(e=t.childrenAfterGroup)||void 0===e?void 0:e.length)?n.push(t):i.push(t)})),t.childrenAfterGroup=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(hb(arguments[i]));return t}(i,n)}}),!1)},i.prototype.createGroupingDetails=function(t){var i=t.rowNode,n=t.changedPath,e=t.rowNodeTransactions,r=t.rowNodeOrder,o=this.usingTreeData?null:this.columnModel.getRowGroupColumns();return{includeParents:!this.gridOptionsWrapper.isSuppressParentsInRowNodes(),expandByDefault:this.gridOptionsWrapper.getGroupDefaultExpanded(),groupedCols:o,rootNode:i,pivotMode:this.columnModel.isPivotMode(),groupedColCount:this.usingTreeData||!o?0:o.length,rowNodeOrder:r,transactions:e,changedPath:n}},i.prototype.handleTransaction=function(t){var i=this;t.transactions.forEach((function(n){var e=i.usingTreeData?void 0:new ob;if(Wr.existsAndNotEmpty(n.remove)&&i.removeNodes(n.remove,t,e),Wr.existsAndNotEmpty(n.update)&&i.moveNodesInWrongPath(n.update,t,e),Wr.existsAndNotEmpty(n.add)&&i.insertNodes(n.add,t,!1),e){var r=e.getAllParents().slice();e.flush(),i.removeEmptyGroups(r,t)}})),t.rowNodeOrder&&this.sortChildren(t)},i.prototype.sortChildren=function(t){t.changedPath.forEachChangedNodeDepthFirst((function(i){i.childrenAfterGroup&&Wr.sortRowNodesByOrder(i.childrenAfterGroup,t.rowNodeOrder)&&t.changedPath.addParentNode(i)}),!1,!0)},i.prototype.orderGroups=function(t){if(!this.usingTreeData){var i=this.gridOptionsWrapper.getInitialGroupOrderComparator();Wr.exists(i)&&function t(n){Wr.exists(n.childrenAfterGroup)&&!n.leafGroup&&(n.childrenAfterGroup.sort((function(t,n){return i({nodeA:t,nodeB:n})})),n.childrenAfterGroup.forEach((function(i){return t(i)})))}(t)}},i.prototype.getExistingPathForNode=function(t,i){for(var n=[],e=this.usingTreeData?t:t.parent;e&&e!==i.rootNode;)n.push({key:e.key,rowGroupColumn:e.rowGroupColumn,field:e.field}),e=e.parent;return n.reverse(),n},i.prototype.moveNodesInWrongPath=function(t,i,n){var e=this;t.forEach((function(t){i.changedPath.isActive()&&i.changedPath.addParentNode(t.parent);var r=function(t){return t.key},o=e.getExistingPathForNode(t,i).map(r),s=e.getGroupInfo(t,i).map(r);Wr.areEqual(o,s)||e.moveNode(t,i,n)}))},i.prototype.moveNode=function(t,i,n){this.removeNodesInStages([t],i,n),this.insertOneNode(t,i,!0),t.setData(t.data),i.changedPath.isActive()&&i.changedPath.addParentNode(t.parent)},i.prototype.removeNodes=function(t,i,n){this.removeNodesInStages(t,i,n),i.changedPath.isActive()&&t.forEach((function(t){return i.changedPath.addParentNode(t.parent)}))},i.prototype.removeNodesInStages=function(t,i,n){if(this.removeNodesFromParents(t,i,n),this.usingTreeData){this.postRemoveCreateFillerNodes(t,i);var e=t.map((function(t){return t.parent}));this.removeEmptyGroups(e,i)}},i.prototype.forEachParentGroup=function(t,i,n){for(var e=i;e&&e!==t.rootNode;)n(e),e=e.parent},i.prototype.removeNodesFromParents=function(t,i,n){var e=this,r=null==n,o=n||new ob;t.forEach((function(t){e.removeFromParent(t,o),e.forEachParentGroup(i,t.parent,(function(i){o.removeFromAllLeafChildren(i,t)}))})),r&&o.flush()},i.prototype.postRemoveCreateFillerNodes=function(t,i){var n=this;t.forEach((function(t){if(t.hasChildren()){var e=n.getExistingPathForNode(t,i),r=n.findParentForNode(t,e,i);r.expanded=t.expanded,r.allLeafChildren=t.allLeafChildren,r.childrenAfterGroup=t.childrenAfterGroup,r.childrenMapped=t.childrenMapped,r.updateHasChildren(),r.childrenAfterGroup.forEach((function(t){return t.parent=r}))}}))},i.prototype.removeEmptyGroups=function(t,i){for(var n=this,e=!0,r=function(){e=!1;var r=new ob;t.forEach((function(t){n.forEachParentGroup(i,t,(function(t){(function(t){var i=n.getChildrenMappedKey(t.key,t.rowGroupColumn),e=t.parent;return!!(e&&e.childrenMapped&&e.childrenMapped[i]&&t.isEmptyRowGroupNode())})(t)&&(e=!0,n.removeFromParent(t,r),t.setSelected(!1))}))})),r.flush()};e;)r()},i.prototype.removeFromParent=function(t,i){t.parent&&(i?i.removeFromChildrenAfterGroup(t.parent,t):(Wr.removeFromArray(t.parent.childrenAfterGroup,t),t.parent.updateHasChildren()));var n=this.getChildrenMappedKey(t.key,t.rowGroupColumn);t.parent&&t.parent.childrenMapped&&(t.parent.childrenMapped[n]=void 0),t.setRowTop(null),t.setRowIndex(null)},i.prototype.addToParent=function(t,i){var n=this.getChildrenMappedKey(t.key,t.rowGroupColumn);i&&(null!=i.childrenMapped&&(i.childrenMapped[n]=t),i.childrenAfterGroup.push(t),i.updateHasChildren())},i.prototype.areGroupColsEqual=function(t,i){return null!=t&&null!=i&&t.pivotMode===i.pivotMode&&Wr.areEqual(t.groupedCols,i.groupedCols)},i.prototype.checkAllGroupDataAfterColsChanged=function(t){var i=this,n=function(t){t&&t.forEach((function(t){!i.usingTreeData&&!t.group||(i.setGroupData(t,{field:t.field,key:t.key,rowGroupColumn:t.rowGroupColumn}),n(t.childrenAfterGroup))}))};n(t.rootNode.childrenAfterGroup)},i.prototype.shotgunResetEverything=function(t,i){if(!this.noChangeInGroupingColumns(t,i)){this.selectionService.removeGroupsFromSelection();var n=t.rootNode;n.leafGroup=!this.usingTreeData&&0===t.groupedCols.length,n.childrenAfterGroup=[],n.childrenMapped={},n.updateHasChildren();var e=n.sibling;e&&(e.childrenAfterGroup=n.childrenAfterGroup,e.childrenMapped=n.childrenMapped),this.insertNodes(n.allLeafChildren,t,!1)}},i.prototype.noChangeInGroupingColumns=function(t,i){var n=!1,e=this.columnModel.getGroupDisplayColumns(),r=e?e.map((function(t){return t.getId()})).join("-"):"";return i&&(n=this.usingTreeData||this.areGroupColsEqual(t,this.oldGroupingDetails),this.oldGroupDisplayColIds!==r&&this.checkAllGroupDataAfterColsChanged(t)),this.oldGroupingDetails=t,this.oldGroupDisplayColIds=r,n},i.prototype.insertNodes=function(t,i,n){var e=this;t.forEach((function(t){e.insertOneNode(t,i,n),i.changedPath.isActive()&&i.changedPath.addParentNode(t.parent)}))},i.prototype.insertOneNode=function(t,i,n){var e=this.getGroupInfo(t,i),r=this.findParentForNode(t,e,i);r.group||console.warn("AG Grid: duplicate group keys for row data, keys should be unique",[r.data,t.data]),this.usingTreeData?this.swapGroupWithUserNode(r,t,n):(t.parent=r,t.level=e.length,r.childrenAfterGroup.push(t),r.updateHasChildren())},i.prototype.findParentForNode=function(t,i,n){var e=this,r=n.rootNode;return i.forEach((function(i,o){(r=e.getOrCreateNextNode(r,i,o,n)).allLeafChildren.push(t)})),r},i.prototype.swapGroupWithUserNode=function(t,i,n){i.parent=t.parent,i.key=t.key,i.field=t.field,i.groupData=t.groupData,i.level=t.level,n||(i.expanded=t.expanded),i.leafGroup=t.leafGroup,i.rowGroupIndex=t.rowGroupIndex,i.allLeafChildren=t.allLeafChildren,i.childrenAfterGroup=t.childrenAfterGroup,i.childrenMapped=t.childrenMapped,i.updateHasChildren(),this.removeFromParent(t),i.childrenAfterGroup.forEach((function(t){return t.parent=i})),this.addToParent(i,t.parent)},i.prototype.getOrCreateNextNode=function(t,i,n,e){var r=this.getChildrenMappedKey(i.key,i.rowGroupColumn),o=t.childrenMapped?t.childrenMapped[r]:void 0;return o||(o=this.createGroup(i,t,n,e),this.addToParent(o,t)),o},i.prototype.createGroup=function(t,i,n,e){var r=new Ws(this.beans);return r.group=!0,r.field=t.field,r.rowGroupColumn=t.rowGroupColumn,this.setGroupData(r,t),r.id=Ws.ID_PREFIX_ROW_GROUP+this.groupIdSequence.next(),r.key=t.key,r.level=n,r.leafGroup=!this.usingTreeData&&n===e.groupedColCount-1,r.allLeafChildren=[],r.setAllChildrenCount(0),r.rowGroupIndex=this.usingTreeData?null:n,r.childrenAfterGroup=[],r.childrenMapped={},r.updateHasChildren(),r.parent=e.includeParents?i:null,this.setExpandedInitialValue(e,r),r},i.prototype.setGroupData=function(t,i){var n=this;t.groupData={},this.columnModel.getGroupDisplayColumns().forEach((function(e){(n.usingTreeData||t.rowGroupColumn&&e.isRowGroupDisplayed(t.rowGroupColumn.getId()))&&(t.groupData[e.getColId()]=i.key)}))},i.prototype.getChildrenMappedKey=function(t,i){return i?i.getId()+"-"+t:t},i.prototype.setExpandedInitialValue=function(t,i){if(t.pivotMode&&i.leafGroup)i.expanded=!1;else{var n=this.gridOptionsWrapper.getIsGroupOpenByDefaultFunc();i.expanded=n?1==n({rowNode:i,field:i.field,key:i.key,level:i.level,rowGroupColumn:i.rowGroupColumn}):-1===t.expandByDefault||i.level<t.expandByDefault}},i.prototype.getGroupInfo=function(t,i){return this.usingTreeData?this.getGroupInfoFromCallback(t):this.getGroupInfoFromGroupColumns(t,i)},i.prototype.getGroupInfoFromCallback=function(t){var i=this.getDataPath?this.getDataPath(t.data):null;return null!=i&&0!==i.length||Wr.doOnce((function(){return console.warn("AG Grid: getDataPath() should not return an empty path for data",t.data)}),"groupStage.getGroupInfoFromCallback"),i?i.map((function(t){return{key:t,field:null,rowGroupColumn:null}})):[]},i.prototype.getGroupInfoFromGroupColumns=function(t,i){var n=this,e=[];return i.groupedCols.forEach((function(r){var o=n.valueService.getKeyForNode(r,t),s=null!=o;if(i.pivotMode&&!s&&(o=" ",s=!0),s){var u={key:o,field:r.getColDef().field,rowGroupColumn:r};e.push(u)}})),e},ub([Dt("columnModel")],i.prototype,"columnModel",void 0),ub([Dt("selectableService")],i.prototype,"selectableService",void 0),ub([Dt("valueService")],i.prototype,"valueService",void 0),ub([Dt("beans")],i.prototype,"beans",void 0),ub([Dt("selectionService")],i.prototype,"selectionService",void 0),ub([Ft],i.prototype,"postConstruct",null),i=ub([Pt("groupStage")],i)}(Ai);var cb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),ab=function(){return ab=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},ab.apply(this,arguments)},lb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},fb=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},db=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(fb(arguments[i]));return t};!function(t){function i(){return null!==t&&t.apply(this,arguments)||this}var n;cb(i,t),n=i,i.prototype.createPivotColumnDefs=function(t){var i=this.columnModel.getPivotColumns(),n=this.columnModel.getValueColumns(),e=this.recursiveBuildGroup(0,t,[],i.length,i),r=function t(i,n){return void 0===n&&(n=[]),i.forEach((function(i){void 0!==i.children?t(i.children,n):n.push(i)})),n}(e);return this.addRowGroupTotals(e,r,n),this.addExpandablePivotGroups(e,r),this.addPivotTotalsToGroups(e,r),{pivotColumnGroupDefs:e,pivotColumnDefs:r.map((function(t){return Wr.cloneObject(t)}))}},i.prototype.recursiveBuildGroup=function(t,i,n,e,r){var o=this,s=this.columnModel.getValueColumns();if(t>=e)return this.buildMeasureCols(n);var u=r[t].getColDef(),h=this.headerNameComparator.bind(this,u.pivotComparator);if(1===s.length&&this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&t===e-1){var c=[];return Wr.iterateObject(i,(function(t){var i=db(n,[t]);c.push(ab(ab({},o.createColDef(s[0],t,i)),{columnGroupShow:"open"}))})),c.sort(h),c}var a=[];return Wr.iterateObject(i,(function(i,s){var u=db(n,[i]);a.push({children:o.recursiveBuildGroup(t+1,s,u,e,r),headerName:i,pivotKeys:u,columnGroupShow:"open",groupId:o.generateColumnGroupId(u)})})),a.sort(h),a},i.prototype.buildMeasureCols=function(t){var i=this,n=this.columnModel.getValueColumns();return 0===n.length?[this.createColDef(null,"-",t)]:n.map((function(n){var e=i.columnModel.getDisplayNameForColumn(n,"header");return ab(ab({},i.createColDef(n,e,t)),{columnGroupShow:"open"})}))},i.prototype.addExpandablePivotGroups=function(t,i){var n=this;if(!this.gridOptionsWrapper.isSuppressExpandablePivotGroups()&&!this.gridOptionsWrapper.getPivotColumnGroupTotals()){var e=function(t,i,r){var o=t;if(o.children){var s=new Map;o.children.forEach((function(t){e(t,i,s)}));var u=!o.children.some((function(t){return t.children}));n.columnModel.getValueColumns().forEach((function(e){var r=n.columnModel.getDisplayNameForColumn(e,"header"),o=n.createColDef(e,r,t.pivotKeys);o.pivotTotalColumnIds=s.get(e.getColId()),o.columnGroupShow="closed",o.aggFunc=e.getAggFunc(),u||(t.children.push(o),i.push(o))})),n.merge(r,s)}else{var h=t;if(!h.pivotValueColumn)return;var c=h.pivotValueColumn.getColId(),a=r.has(c)?r.get(c):[];a.push(h.colId),r.set(c,a)}};t.forEach((function(t){e(t,i,new Map)}))}},i.prototype.addPivotTotalsToGroups=function(t,i){var n=this;if(this.gridOptionsWrapper.getPivotColumnGroupTotals()){var e="after"===this.gridOptionsWrapper.getPivotColumnGroupTotals(),r=this.columnModel.getValueColumns(),o=r.map((function(t){return t.getAggFunc()}));if(o&&!(o.length<1)&&this.sameAggFuncs(o)){var s=r[0];t.forEach((function(t){n.recursivelyAddPivotTotal(t,i,s,e)}))}}},i.prototype.recursivelyAddPivotTotal=function(t,i,n,e){var r=this,o=t;if(!o.children)return t.colId?[t.colId]:null;var s=[];if(o.children.forEach((function(t){var o=r.recursivelyAddPivotTotal(t,i,n,e);o&&(s=s.concat(o))})),o.children.length>1){var u=this.gridOptionsWrapper.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),h=this.createColDef(n,u,t.pivotKeys,!0);h.pivotTotalColumnIds=s,h.aggFunc=n.getAggFunc();var c=t.children;e?c.push(h):c.unshift(h),i.push(h)}return s},i.prototype.addRowGroupTotals=function(t,i,n){var e=this;if(this.gridOptionsWrapper.getPivotRowTotals())for(var r="after"===this.gridOptionsWrapper.getPivotRowTotals(),o=r?n.slice():n.slice().reverse(),s=function(n){var s=o[n],h=[];t.forEach((function(t){h=h.concat(e.extractColIdsForValueColumn(t,s))}));var c=o.length>1||!u.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn();u.createRowGroupTotal(t,i,s,h,r,c)},u=this,h=0;h<o.length;h++)s(h)},i.prototype.extractColIdsForValueColumn=function(t,i){var n=this;if(!t.children)return t.pivotValueColumn===i&&t.colId?[t.colId]:[];var e=[];return t.children.forEach((function(t){n.extractColIdsForValueColumn(t,i);var r=n.extractColIdsForValueColumn(t,i);e=e.concat(r)})),e},i.prototype.createRowGroupTotal=function(t,i,e,r,o,s){var u;if(0===this.columnModel.getValueColumns().length)u=this.createColDef(null,"-",[]);else{var h=this.columnModel.getDisplayNameForColumn(e,"header");(u=this.createColDef(e,h,[])).pivotTotalColumnIds=r}u.colId=n.PIVOT_ROW_TOTAL_PREFIX+u.colId,i.push(u);var c=s?{children:[u],pivotKeys:[],groupId:n.PIVOT_ROW_TOTAL_PREFIX+"_pivotGroup_"+e.getColId()}:u;o?t.push(c):t.unshift(c)},i.prototype.createColDef=function(t,i,n,e){void 0===e&&(e=!1);var r={};if(t){var o=t.getColDef();Object.assign(r,o),r.hide=!1}return r.headerName=i,r.colId=this.generateColumnId(n||[],t&&!e?t.getColId():""),r.field=r.colId,r.valueGetter=function(t){var i;return null===(i=t.data)||void 0===i?void 0:i[t.colDef.field]},r.pivotKeys=n,r.pivotValueColumn=t,!0===r.filter&&(r.filter="agNumberColumnFilter"),r},i.prototype.sameAggFuncs=function(t){if(1==t.length)return!0;for(var i=1;i<t.length;i++)if(t[i]!==t[0])return!1;return!0},i.prototype.headerNameComparator=function(t,i,n){return t?t(i.headerName,n.headerName):i.headerName&&!n.headerName?1:!i.headerName&&n.headerName?-1:i.headerName&&n.headerName?i.headerName<n.headerName?-1:i.headerName>n.headerName?1:0:0},i.prototype.merge=function(t,i){i.forEach((function(i,n){var e=t.has(n)?t.get(n):[],r=db(e,i);t.set(n,r)}))},i.prototype.generateColumnGroupId=function(t){return"pivotGroup_"+this.columnModel.getPivotColumns().map((function(t){return t.getColId()})).join("-")+"_"+t.join("-")},i.prototype.generateColumnId=function(t,i){return"pivot_"+this.columnModel.getPivotColumns().map((function(t){return t.getColId()})).join("-")+"_"+t.join("-")+"_"+i},i.PIVOT_ROW_TOTAL_PREFIX="PivotRowTotal_",lb([Dt("columnModel")],i.prototype,"columnModel",void 0),i=n=lb([Pt("pivotColDefService")],i)}(Ai);var vb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.uniqueValues={},i}vb(i,t),i.prototype.execute=function(t){var i=t.rowNode,n=t.changedPath;this.columnModel.isPivotActive()?this.executePivotOn(i,n):this.executePivotOff(n)},i.prototype.executePivotOff=function(t){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnModel.isSecondaryColumnsPresent()&&(this.columnModel.setSecondaryColumns(null,"rowModelUpdated"),t&&t.setInactive())},i.prototype.executePivotOn=function(t,i){var n=this.bucketUpRowNodes(t),e=this.setUniqueValues(n),r=this.columnModel.getValueColumns(),o=r.map((function(t){return t.getId()+"-"+t.getColDef().headerName})).join("#"),s=r.map((function(t){return t.getAggFunc().toString()})).join("#"),u=this.aggregationColumnsHashLastTime!==o,h=this.aggregationFuncsHashLastTime!==s;this.aggregationColumnsHashLastTime=o,this.aggregationFuncsHashLastTime=s;var c=this.columnModel.getRowGroupColumns().map((function(t){return t.getId()})).join("#"),a=c!==this.groupColumnsHashLastTime;if(this.groupColumnsHashLastTime=c,e||u||a||h){var l=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues),f=l.pivotColumnGroupDefs;this.pivotColumnDefs=l.pivotColumnDefs,this.columnModel.setSecondaryColumns(f,"rowModelUpdated"),i&&i.setInactive()}},i.prototype.setUniqueValues=function(t){return!(JSON.stringify(t)===JSON.stringify(this.uniqueValues)||(this.uniqueValues=t,0))},i.prototype.bucketUpRowNodes=function(t){var i=this,n={},e=function(t){t.leafGroup?i.bucketRowNode(t,n):t.childrenAfterFilter.forEach((function(t){e(t)}))};return e(t),n},i.prototype.bucketRowNode=function(t,i){var n=this.columnModel.getPivotColumns();t.childrenMapped=0===n.length?null:this.bucketChildren(t.childrenAfterFilter,n,0,i),t.sibling&&(t.sibling.childrenMapped=t.childrenMapped)},i.prototype.bucketChildren=function(t,i,n,e){var r=this,o={},s=i[n];if(t.forEach((function(t){var i=r.valueService.getKeyForNode(s,t);Wr.missing(i)&&(i=""),e[i]||(e[i]={}),o[i]||(o[i]=[]),o[i].push(t)})),n===i.length-1)return o;var u={};return Wr.iterateObject(o,(function(t,o){u[t]=r.bucketChildren(o,i,n+1,e[t])})),u},i.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},pb([Dt("valueService")],i.prototype,"valueService",void 0),pb([Dt("columnModel")],i.prototype,"columnModel",void 0),pb([Dt("pivotColDefService")],i.prototype,"pivotColDefService",void 0),i=pb([Pt("pivotStage")],i)}(Ai);var gb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),mb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},bb="undefined"==typeof BigInt?null:BigInt;function wb(t){for(var i=t.values,n=null,e=0;e<i.length;e++){var r=i[e];"number"==typeof r?null===n?n=r:n+=bb?"number"==typeof n?r:bb(r):r:"bigint"==typeof r&&(n=null===n?r:("bigint"==typeof n?n:bb(n))+r)}return n}function yb(t){return t.values.length>0?t.values[0]:null}function Cb(t){return t.values.length>0?Wr.last(t.values):null}function Sb(t){for(var i=t.values,n=null,e=0;e<i.length;e++){var r=i[e];"number"!=typeof r&&"bigint"!=typeof r||!(null===n||n>r)||(n=r)}return n}function Rb(t){for(var i=t.values,n=null,e=0;e<i.length;e++){var r=i[e];"number"!=typeof r&&"bigint"!=typeof r||!(null===n||n<r)||(n=r)}return n}function Ob(t){for(var i=t.values,n=0,e=0;e<i.length;e++){var r=i[e];n+=null!=r&&"number"==typeof r.value?r.value:1}return n}function Ab(t){for(var i,n,e,r=t.values,o=0,s=0,u=0;u<r.length;u++){var h=r[u],c=null;"number"==typeof h||"bigint"==typeof h?(c=h,s++):null==h||"number"!=typeof h.value&&"bigint"!=typeof h.value||"number"!=typeof h.count||(c=bb?h.value*("number"==typeof h.value?h.count:bb(h.count)):h.value*h.count,s+=h.count),"number"==typeof c?o+=bb?"number"==typeof o?c:bb(c):c:"bigint"==typeof c&&(o=("bigint"==typeof o?o:bb(o))+c)}var a=null;s>0&&(a=bb?o/("number"==typeof o?s:bb(s)):o/s);var l=null===(n=null===(i=t.rowNode)||void 0===i?void 0:i.aggData)||void 0===n?void 0:n[null===(e=t.column)||void 0===e?void 0:e.getColId()];return l&&l.count===s&&l.value===a?l:{count:s,value:a,toString:function(){return"number"==typeof this.value||"bigint"==typeof this.value?this.value.toString():""},toNumber:function(){return this.value}}}!function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.aggFuncsMap={},i.initialised=!1,i}var n;gb(i,t),n=i,i.prototype.init=function(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs()))},i.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[n.AGG_SUM]=wb,this.aggFuncsMap[n.AGG_FIRST]=yb,this.aggFuncsMap[n.AGG_LAST]=Cb,this.aggFuncsMap[n.AGG_MIN]=Sb,this.aggFuncsMap[n.AGG_MAX]=Rb,this.aggFuncsMap[n.AGG_COUNT]=Ob,this.aggFuncsMap[n.AGG_AVG]=Ab,this.initialised=!0},i.prototype.isAggFuncPossible=function(t,i){var n=this.getFuncNames(t),e=Wr.includes(n,i),r=Wr.exists(this.aggFuncsMap[i]);return e&&r},i.prototype.getDefaultAggFunc=function(t){var i=t.getColDef().defaultAggFunc;if(Wr.exists(i)&&this.isAggFuncPossible(t,i))return i;if(this.isAggFuncPossible(t,n.AGG_SUM))return n.AGG_SUM;var e=this.getFuncNames(t);return Wr.existsAndNotEmpty(e)?e[0]:null},i.prototype.addAggFuncs=function(t){Wr.iterateObject(t,this.addAggFunc.bind(this))},i.prototype.addAggFunc=function(t,i){this.init(),this.aggFuncsMap[t]=i},i.prototype.getAggFunc=function(t){return this.init(),this.aggFuncsMap[t]},i.prototype.getFuncNames=function(t){var i=t.getColDef().allowedAggFuncs;return null==i?Object.keys(this.aggFuncsMap).sort():i},i.prototype.clear=function(){this.aggFuncsMap={}},i.AGG_SUM="sum",i.AGG_FIRST="first",i.AGG_LAST="last",i.AGG_MIN="min",i.AGG_MAX="max",i.AGG_COUNT="count",i.AGG_AVG="avg",mb([Ft],i.prototype,"init",null),i=n=mb([Pt("aggFuncService")],i)}(Ai);var jb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_b=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gb=function(t){function i(i,n,e,r,o){var s=t.call(this)||this;return s.column=i,s.dragSourceDropTarget=n,s.ghost=e,s.dropZonePurpose=r,s.horizontal=o,s.popupShowing=!1,s}return jb(i,t),i.prototype.init=function(){var t=this;this.setTemplate(i.TEMPLATE);var n=this.getGui(),e=this.gridOptionsWrapper.isFunctionsReadOnly();this.addElementClasses(n),this.addElementClasses(this.eDragHandle,"drag-handle"),this.addElementClasses(this.eText,"text"),this.addElementClasses(this.eButton,"button"),this.eDragHandle.appendChild(Wr.createIconNoSpan("columnDrag",this.gridOptionsWrapper)),this.eButton.appendChild(Wr.createIconNoSpan("cancel",this.gridOptionsWrapper)),this.setupSort(),this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnDrop"),this.setupComponents(),this.ghost||e||this.addDragSource(),this.setupAria(),this.addManagedListener(this.column,qt.EVENT_SORT_CHANGED,(function(){t.setupAria()})),this.setupTooltip()},i.prototype.setupAria=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.getColumnAndAggFuncName(),n=i.name,e=i.aggFuncName,r=t("ariaDropZoneColumnComponentAggFuncSeperator"," of "),o={asc:t("ariaDropZoneColumnComponentSortAscending","ascending"),desc:t("ariaDropZoneColumnComponentSortDescending","descending")},s=this.column.getSort(),u=this.gridOptionsWrapper.isRowGroupPanelSuppressSort(),h=[[e&&""+e+r,n,this.isGroupingZone()&&!u&&s&&", "+o[s]].filter((function(t){return!!t})).join("")],c=this.gridOptionsWrapper.isFunctionsReadOnly();if(this.isAggregationZone()&&!c){var a=t("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");h.push(a)}if(this.isGroupingZone()&&this.column.getColDef().sortable&&!u){var l=t("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");h.push(l)}var f=t("ariaDropZoneColumnComponentDescription","Press DELETE to remove");h.push(f),Wr.setAriaLabel(this.getGui(),h.join(". "))},i.prototype.setupTooltip=function(){var t=this,i=function(){var i=t.column.getColDef().headerTooltip;t.setTooltip(i)};i(),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,i)},i.prototype.setupSort=function(){var t=this,i=this.column.getColDef().sortable,n=this.isGroupingZone();if(i&&n&&!this.gridOptionsWrapper.isRowGroupPanelSuppressSort()){this.eSortIndicator.setupSort(this.column,!0);var e=function(i){i.preventDefault();var n=t.gridOptionsWrapper.isMultiSortKeyCtrl();t.sortController.progressSort(t.column,n?i.ctrlKey||i.metaKey:i.shiftKey,"uiColumnSorted")};this.addGuiEventListener("click",e),this.addGuiEventListener("keydown",(function(i){i.key===xr.ENTER&&t.isGroupingZone()&&e(i)}))}},i.prototype.addDragSource=function(){var t=this,i={type:Ls.ToolPanel,eElement:this.eDragHandle,defaultIconName:Xs.ICON_HIDE,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return t.dragAndDropService.removeDragSource(i)}))},i.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},i.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass("ag-column-drop-cell-ghost"),this.isAggregationZone()&&!this.gridOptionsWrapper.isFunctionsReadOnly()&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},i.prototype.setupRemove=function(){var t=this;Wr.setDisplayed(this.eButton,!this.gridOptionsWrapper.isFunctionsReadOnly());var n={type:i.EVENT_COLUMN_REMOVE};this.addGuiEventListener("keydown",(function(i){var e=i.key===xr.ENTER;i.key===xr.DELETE&&(i.preventDefault(),t.dispatchEvent(n)),e&&t.isAggregationZone()&&!t.gridOptionsWrapper.isFunctionsReadOnly()&&(i.preventDefault(),t.onShowAggFuncSelection())})),this.addManagedListener(this.eButton,"click",(function(i){t.dispatchEvent(n),i.stopPropagation()}));var e=new ds(this.eButton);this.addManagedListener(e,ds.EVENT_TAP,(function(){t.dispatchEvent(n)})),this.addDestroyFunc(e.destroy.bind(e))},i.prototype.getColumnAndAggFuncName=function(){var t=this.displayName,i="";if(this.isAggregationZone()){var n=this.column.getAggFunc(),e="string"==typeof n?n:"agg";i=this.gridOptionsWrapper.getLocaleTextFunc()(e,e)}return{name:t,aggFuncName:i}},i.prototype.setTextValue=function(){var t=this.getColumnAndAggFuncName(),i=t.name,n=t.aggFuncName,e=this.isAggregationZone()?n+"("+i+")":i,r=Wr.escapeString(e);this.eText.innerHTML=r},i.prototype.onShowAggFuncSelection=function(){var t=this;if(!this.popupShowing){this.popupShowing=!0;var i=new Cd("select-agg-func"),n=this.aggFuncService.getFuncNames(this.column),e=this.getGui(),r=i.getGui();i.setModel({getRow:function(t){return n[t]},getRowCount:function(){return n.length}}),this.getContext().createBean(i);var o=Wr.loadTemplate('<div class="ag-select-agg-func-popup"></div>');o.style.top="0px",o.style.left="0px",o.appendChild(r),o.style.width=e.clientWidth+"px";var s=this.gridOptionsWrapper.getLocaleTextFunc(),u=this.popupService.addPopup({modal:!0,eChild:o,closeOnEsc:!0,closedCallback:function(){t.destroyBean(i),t.popupShowing=!1,e.focus()},ariaLabel:s("ariaLabelAggregationFunction","Aggregation Function")});u&&i.setComponentCreator(this.createAggSelect.bind(this,u.hideFunc)),i.addGuiEventListener("keydown",(function(t){if(t.key===xr.ENTER||t.key===xr.SPACE){var n=i.getLastFocusedRow();if(null==n)return;var e=i.getComponentAt(n);e&&e.selectItem()}})),this.popupService.positionPopupUnderComponent({type:"aggFuncSelect",eventSource:e,ePopup:o,keepWithinBounds:!0,column:this.column}),i.refresh();var h=n.findIndex((function(i){return i===t.column.getAggFunc()}));-1===h&&(h=0),i.focusRow(h)}},i.prototype.createAggSelect=function(t,i){var n=this,e=this.gridOptionsWrapper.getLocaleTextFunc(),r=i.toString(),o=e(r,r);return new xb((function(){t(),n.gridOptionsWrapper.isFunctionsPassive()?n.eventService.dispatchEvent({type:xi.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,columns:[n.column],aggFunc:i}):n.columnModel.setColumnAggFunc(n.column,i,"toolPanelDragAndDrop")}),o)},i.prototype.addElementClasses=function(t,i){t.classList.add("ag-column-drop-cell"+(i=i?"-"+i:""),"ag-column-drop-"+(this.horizontal?"horizontal":"vertical")+"-cell"+i)},i.prototype.isAggregationZone=function(){return"aggregation"===this.dropZonePurpose},i.prototype.isGroupingZone=function(){return"rowGroup"===this.dropZonePurpose},i.EVENT_COLUMN_REMOVE="columnRemove",i.TEMPLATE='<span role="option" tabindex="0">\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 <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n <span ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>\n </span>',_b([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),_b([Dt("columnModel")],i.prototype,"columnModel",void 0),_b([Dt("popupService")],i.prototype,"popupService",void 0),_b([It("aggFuncService")],i.prototype,"aggFuncService",void 0),_b([Dt("sortController")],i.prototype,"sortController",void 0),_b([no("eText")],i.prototype,"eText",void 0),_b([no("eDragHandle")],i.prototype,"eDragHandle",void 0),_b([no("eButton")],i.prototype,"eButton",void 0),_b([no("eSortIndicator")],i.prototype,"eSortIndicator",void 0),_b([Ft],i.prototype,"init",null),i}(io),xb=function(t){function i(i,n){var e=t.call(this,'<div class="ag-select-agg-func-item"/>')||this;return e.selectItem=i,e.getGui().innerText=n,e.addGuiEventListener("click",e.selectItem),e}return jb(i,t),i}(io),Mb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Fb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},kb=function(t,i){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,r,o=n.call(t),s=[];try{for(;(void 0===i||i-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s},Pb=function(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(kb(arguments[i]));return t},Db=function(t){function i(n,e){var r=t.call(this,'<div class="ag-unselectable" role="presentation"></div>')||this;return r.horizontal=n,r.dropZonePurpose=e,r.state=i.STATE_NOT_DRAGGING,r.guiDestroyFunctions=[],r.childColumnComponents=[],r.resizeEnabled=!1,r.addElementClasses(r.getGui()),r.eColumnDropList=document.createElement("div"),r.addElementClasses(r.eColumnDropList,"list"),Wr.setAriaRole(r.eColumnDropList,"listbox"),r}return Mb(i,t),i.prototype.isHorizontal=function(){return this.horizontal},i.prototype.toggleResizable=function(t){this.positionableFeature.setResizable(!!t&&{bottom:!0}),this.resizeEnabled=t},i.prototype.setBeans=function(t){this.beans=t},i.prototype.destroy=function(){this.destroyGui(),t.prototype.destroy.call(this)},i.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach((function(t){return t()})),this.guiDestroyFunctions.length=0,this.childColumnComponents.length=0,Wr.clearElement(this.getGui()),Wr.clearElement(this.eColumnDropList)},i.prototype.init=function(t){this.params=t,this.createManagedBean(new go(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.addManagedListener(this.beans.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.refreshGui.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.positionableFeature=new El(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature),this.refreshGui(),Wr.setAriaLabel(this.eColumnDropList,this.getAriaLabel())},i.prototype.handleKeyDown=function(t){var i=t.key===xr.DOWN,n=t.key===xr.UP;if(this.horizontal){var e=this.gridOptionsWrapper.isEnableRtl();i=!e&&t.key===xr.RIGHT||e&&t.key===xr.LEFT,n=!e&&t.key===xr.LEFT||e&&t.key===xr.RIGHT}if(i||n){var r=this.focusService.findNextFocusableElement(this.getFocusableElement(),!1,n);r&&(t.preventDefault(),r.focus())}},i.prototype.addElementClasses=function(t,i){t.classList.add("ag-column-drop"+(i=i?"-"+i:""),"ag-column-drop-"+(this.horizontal?"horizontal":"vertical")+i)},i.prototype.setupDropTarget=function(){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.beans.dragAndDropService.addDropTarget(this.dropTarget)},i.prototype.isInterestedIn=function(t){return t===Ls.HeaderCell||t===Ls.ToolPanel},i.prototype.checkInsertIndex=function(t){var i=this.getNewInsertIndex(t);if(i<0)return!1;var n=i!==this.insertIndex;return n&&(this.insertIndex=i),n},i.prototype.getNewInsertIndex=function(t){var i=this,n=t.event,e=this.horizontal?n.clientX:n.clientY,r=this.childColumnComponents.map((function(t){return t.getGui().getBoundingClientRect()})),o=r.findIndex((function(t){return i.horizontal?t.right>e&&t.left<e:t.top<e&&t.bottom>e}));if(-1===o){var s=this.beans.gridOptionsWrapper.isEnableRtl();return r.every((function(t){return e>(i.horizontal?t.right:t.bottom)}))?s&&this.horizontal?0:this.childColumnComponents.length:r.every((function(t){return e<(i.horizontal?t.left:t.top)}))?s&&this.horizontal?this.childColumnComponents.length:0:this.insertIndex}return this.insertIndex<=o?o+1:o},i.prototype.checkDragStartedBySelf=function(t){this.state===i.STATE_NOT_DRAGGING&&(this.state=i.STATE_REARRANGE_COLUMNS,this.potentialDndColumns=t.dragSource.getDragItem().columns||[],this.refreshGui(),this.checkInsertIndex(t),this.refreshGui())},i.prototype.onDragging=function(t){this.checkDragStartedBySelf(t),this.checkInsertIndex(t)&&this.refreshGui()},i.prototype.onDragEnter=function(t){var n=t.dragSource.getDragItem().columns||[];this.state=i.STATE_NEW_COLUMNS_IN;var e=n.filter(this.isColumnDroppable.bind(this));if(e.length>0){if(this.isRowGroupPanel()&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&!t.fromNudge){var r=t.dragSource.getDragItem();this.setColumnsVisible(r.columns,!1,"uiColumnDragged")}this.potentialDndColumns=e,this.checkInsertIndex(t),this.refreshGui()}},i.prototype.setColumnsVisible=function(t,i,n){if(void 0===n&&(n="api"),t){var e=t.filter((function(t){return!t.getColDef().lockVisible}));this.colModel.setColumnsVisible(e,i,n)}},i.prototype.isPotentialDndColumns=function(){return Wr.existsAndNotEmpty(this.potentialDndColumns)},i.prototype.isRowGroupPanel=function(){return"rowGroup"===this.dropZonePurpose},i.prototype.onDragLeave=function(t){if(this.state===i.STATE_REARRANGE_COLUMNS){var n=t.dragSource.getDragItem().columns||[];this.removeColumns(n)}if(this.isPotentialDndColumns()){if(this.isRowGroupPanel()&&!this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()&&!t.fromNudge){var e=t.dragSource.getDragItem();this.setColumnsVisible(e.columns,!0,"uiColumnDragged")}this.potentialDndColumns=[],this.refreshGui()}this.state=i.STATE_NOT_DRAGGING},i.prototype.onDragStop=function(){if(this.isPotentialDndColumns()){var t=!1;this.state===i.STATE_NEW_COLUMNS_IN?(this.addColumns(this.potentialDndColumns),t=!0):t=this.rearrangeColumns(this.potentialDndColumns),this.potentialDndColumns=[],this.beans.gridOptionsWrapper.isFunctionsPassive()&&t||this.refreshGui()}this.state=i.STATE_NOT_DRAGGING},i.prototype.removeColumns=function(t){var i=this.getExistingColumns().filter((function(i){return!Wr.includes(t,i)}));this.updateColumns(i)},i.prototype.addColumns=function(t){if(t){var i=this.getExistingColumns().slice(),n=t.filter((function(t){return i.indexOf(t)<0}));Wr.insertArrayIntoArray(i,n,this.insertIndex),this.updateColumns(i)}},i.prototype.rearrangeColumns=function(t){var i=this.getNonGhostColumns().slice();return Wr.insertArrayIntoArray(i,t,this.insertIndex),!Wr.areEqual(i,this.getExistingColumns())&&(this.updateColumns(i),!0)},i.prototype.refreshGui=function(){var t=this.eColumnDropList.scrollTop,i=this.resizeEnabled,n=this.getFocusedItem(),e=this.focusService.findNextFocusableElement();e||(e=this.focusService.findNextFocusableElement(void 0,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addColumnsToGui(),this.isHorizontal()||(this.eColumnDropList.scrollTop=t),i&&this.toggleResizable(i),this.restoreFocus(n,e)},i.prototype.getFocusedItem=function(){var t=this.getGui(),i=this.gridOptionsWrapper.getDocument().activeElement;return t.contains(i)?Array.from(t.querySelectorAll(".ag-column-drop-cell")).indexOf(i):-1},i.prototype.restoreFocus=function(t,i){var n=this.getGui(),e=Array.from(n.querySelectorAll(".ag-column-drop-cell"));if(-1!==t){0===e.length&&i.focus();var r=e[Math.min(e.length-1,t)];r&&r.focus()}},i.prototype.getNonGhostColumns=function(){var t=this,i=this.getExistingColumns();return this.isPotentialDndColumns()?i.filter((function(i){return!Wr.includes(t.potentialDndColumns,i)})):i},i.prototype.addColumnsToGui=function(){var t=this,i=this.getNonGhostColumns().map((function(i){return t.createColumnComponent(i,!1)}));if(this.isPotentialDndColumns()){var n=this.potentialDndColumns.map((function(i){return t.createColumnComponent(i,!0)}));this.insertIndex>=i.length?i.push.apply(i,Pb(n)):i.splice.apply(i,Pb([this.insertIndex,0],n))}this.appendChild(this.eColumnDropList),i.forEach((function(i,n){n>0&&t.addArrow(t.eColumnDropList),t.eColumnDropList.appendChild(i.getGui())})),this.addAriaLabelsToComponents()},i.prototype.addAriaLabelsToComponents=function(){var t=this;this.childColumnComponents.forEach((function(i,n){var e=i.getGui();Wr.setAriaPosInSet(e,n+1),Wr.setAriaSetSize(e,t.childColumnComponents.length)}))},i.prototype.createColumnComponent=function(t,i){var n=this,e=new Gb(t,this.dropTarget,i,this.dropZonePurpose,this.horizontal);return e.addEventListener(Gb.EVENT_COLUMN_REMOVE,this.removeColumns.bind(this,[t])),this.beans.context.createBean(e),this.guiDestroyFunctions.push((function(){return n.destroyBean(e)})),i||this.childColumnComponents.push(e),e},i.prototype.addIconAndTitleToGui=function(){var t=this.params.icon,i=document.createElement("div");if(i.setAttribute("aria-hidden","true"),this.addElementClasses(i,"title-bar"),this.addElementClasses(t,"icon"),this.addOrRemoveCssClass("ag-column-drop-empty",this.isExistingColumnsEmpty()),i.appendChild(t),!this.horizontal){var n=document.createElement("span");this.addElementClasses(n,"title"),n.innerHTML=this.params.title,i.appendChild(n)}this.appendChild(i)},i.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},i.prototype.addEmptyMessageToGui=function(){if(this.isExistingColumnsEmpty()&&!this.isPotentialDndColumns()){var t=document.createElement("span");t.innerHTML=this.params.emptyMessage,this.addElementClasses(t,"empty-message"),this.eColumnDropList.appendChild(t)}},i.prototype.addArrow=function(t){if(this.horizontal){var i=this.beans.gridOptionsWrapper.isEnableRtl(),n=Wr.createIconNoSpan(i?"smallLeft":"smallRight",this.beans.gridOptionsWrapper);this.addElementClasses(n,"cell-separator"),t.appendChild(n)}},i.STATE_NOT_DRAGGING="notDragging",i.STATE_NEW_COLUMNS_IN="newColumnsIn",i.STATE_REARRANGE_COLUMNS="rearrangeColumns",Fb([Dt("columnModel")],i.prototype,"colModel",void 0),Fb([Dt("focusService")],i.prototype,"focusService",void 0),i}(io),Ib=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Eb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Tb=function(t){function i(i){return t.call(this,i,"rowGroup")||this}return Ib(i,t),i.prototype.passBeansUp=function(){t.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var i=this.gridOptionsWrapper.getLocaleTextFunc(),n=i("rowGroupColumnsEmptyMessage","Drag here to set row groups"),e=i("groups","Row Groups");t.prototype.init.call(this,{dragAndDropIcon:Xs.ICON_GROUP,icon:Wr.createIconNoSpan("rowGroupPanel",this.gridOptionsWrapper,null),emptyMessage:n,title:e}),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},i.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")},i.prototype.getTooltipParams=function(){var i=t.prototype.getTooltipParams.call(this);return i.location="rowGroupColumnsList",i},i.prototype.isColumnDroppable=function(t){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!t.isPrimary())&&t.isAllowRowGroup()&&!t.isRowGroupActive()},i.prototype.updateColumns=function(t){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:t}):this.columnModel.setRowGroupColumns(t,"toolPanelUi")},i.prototype.getIconName=function(){return this.isPotentialDndColumns()?Xs.ICON_GROUP:Xs.ICON_NOT_ALLOWED},i.prototype.getExistingColumns=function(){return this.columnModel.getRowGroupColumns()},Eb([Dt("columnModel")],i.prototype,"columnModel",void 0),Eb([Dt("loggerFactory")],i.prototype,"loggerFactory",void 0),Eb([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Eb([Ft],i.prototype,"passBeansUp",null),i}(Db),zb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Nb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Lb=function(t){function i(i){return t.call(this,i,"pivot")||this}return zb(i,t),i.prototype.passBeansUp=function(){t.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var i=this.gridOptionsWrapper.getLocaleTextFunc(),n=i("pivotColumnsEmptyMessage","Drag here to set column labels"),e=i("pivots","Column Labels");t.prototype.init.call(this,{dragAndDropIcon:Xs.ICON_GROUP,icon:Wr.createIconNoSpan("pivotPanel",this.gridOptionsWrapper,null),emptyMessage:n,title:e}),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.refresh.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},i.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")},i.prototype.getTooltipParams=function(){var i=t.prototype.getTooltipParams.call(this);return i.location="pivotColumnsList",i},i.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},i.prototype.checkVisibility=function(){var t=this.columnModel.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsWrapper.getPivotPanelShow()){case"always":this.setDisplayed(t);break;case"onlyWhenPivoting":var i=this.columnModel.isPivotActive();this.setDisplayed(t&&i);break;default:this.setDisplayed(!1)}else this.setDisplayed(t)},i.prototype.isColumnDroppable=function(t){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!t.isPrimary())&&t.isAllowPivot()&&!t.isPivotActive()},i.prototype.updateColumns=function(t){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:t}):this.columnModel.setPivotColumns(t,"toolPanelUi")},i.prototype.getIconName=function(){return this.isPotentialDndColumns()?Xs.ICON_PIVOT:Xs.ICON_NOT_ALLOWED},i.prototype.getExistingColumns=function(){return this.columnModel.getPivotColumns()},Nb([Dt("columnModel")],i.prototype,"columnModel",void 0),Nb([Dt("loggerFactory")],i.prototype,"loggerFactory",void 0),Nb([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Nb([Ft],i.prototype,"passBeansUp",null),i}(Db),Bb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Hb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(){return t.call(this)||this}Bb(i,t),i.prototype.postConstruct=function(){this.setGui(this.createNorthPanel()),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,xi.EVENT_NEW_COLUMNS_LOADED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"rowGroupPanelShow",this.onRowGroupChanged.bind(this)),this.onRowGroupChanged()},i.prototype.createNorthPanel=function(){var t=document.createElement("div"),i=this.onDropPanelVisible.bind(this);return t.classList.add("ag-column-drop-wrapper"),Wr.setAriaRole(t,"presentation"),this.rowGroupComp=new Tb(!0),this.createManagedBean(this.rowGroupComp),this.pivotComp=new Lb(!0),this.createManagedBean(this.pivotComp),t.appendChild(this.rowGroupComp.getGui()),t.appendChild(this.pivotComp.getGui()),this.addManagedListener(this.rowGroupComp,io.EVENT_DISPLAYED_CHANGED,i),this.addManagedListener(this.pivotComp,io.EVENT_DISPLAYED_CHANGED,i),this.onDropPanelVisible(),t},i.prototype.onDropPanelVisible=function(){var t=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed();this.rowGroupComp.addOrRemoveCssClass("ag-column-drop-horizontal-half-width",t),this.pivotComp.addOrRemoveCssClass("ag-column-drop-horizontal-half-width",t)},i.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var t=this.gridOptionsWrapper.getRowGroupPanelShow();if(t===Vt.ALWAYS)this.rowGroupComp.setDisplayed(!0);else if(t===Vt.ONLY_WHEN_GROUPING){var i=!this.columnModel.isRowGroupEmpty();this.rowGroupComp.setDisplayed(i)}else this.rowGroupComp.setDisplayed(!1)}},Hb([Dt("columnModel")],i.prototype,"columnModel",void 0),Hb([Ft],i.prototype,"postConstruct",null)}(io);var Wb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Vb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(){return null!==t&&t.apply(this,arguments)||this}Wb(i,t),i.prototype.execute=function(t){var i=this,n=this.columnModel.isPivotMode(),e=this.filterManager.isAggregateFilterPresent(),r=this.gridOptionsWrapper.getGroupAggFiltering()||(n?function(t){return t.node.leafGroup}:function(t){return!t.node.group}),o=function(t,n){void 0===n&&(n=!1),t.childrenAfterFilter&&(t.childrenAfterAggFilter=t.childrenAfterFilter,n&&t.childrenAfterAggFilter.forEach((function(t){return o(t,n)})),i.setAllChildrenCount(t)),t.sibling&&(t.sibling.childrenAfterAggFilter=t.childrenAfterAggFilter)};t.changedPath.forEachChangedNodeDepthFirst(e?function(t){var n;t.childrenAfterAggFilter=(null===(n=t.childrenAfterFilter)||void 0===n?void 0:n.filter((function(t){var n;return r({node:t})&&i.filterManager.doesRowPassAggregateFilters({rowNode:t})?(o(t,!0),!0):null===(n=t.childrenAfterAggFilter)||void 0===n?void 0:n.length})))||null,i.setAllChildrenCount(t),t.sibling&&(t.sibling.childrenAfterAggFilter=t.childrenAfterAggFilter)}:o,!0)},i.prototype.setAllChildrenCountTreeData=function(t){var i=0;t.childrenAfterAggFilter.forEach((function(t){i++,i+=t.allChildrenCount})),t.setAllChildrenCount(i)},i.prototype.setAllChildrenCountGridGrouping=function(t){var i=0;t.childrenAfterAggFilter.forEach((function(t){t.group?i+=t.allChildrenCount:i++})),t.setAllChildrenCount(i)},i.prototype.setAllChildrenCount=function(t){t.hasChildren()?this.gridOptionsWrapper.isTreeData()?this.setAllChildrenCountTreeData(t):this.setAllChildrenCountGridGrouping(t):t.setAllChildrenCount(null)},Vb([Dt("filterManager")],i.prototype,"filterManager",void 0),Vb([Dt("columnModel")],i.prototype,"columnModel",void 0),i=Vb([Pt("filterAggregatesStage")],i)}(Ai);var Ub=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Kb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},$b=function(t){function i(i){return t.call(this,i,"aggregation")||this}return Ub(i,t),i.prototype.passBeansUp=function(){t.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var i=this.gridOptionsWrapper.getLocaleTextFunc(),n=i("valueColumnsEmptyMessage","Drag here to aggregate"),e=i("values","Values");t.prototype.init.call(this,{dragAndDropIcon:Xs.ICON_AGGREGATE,icon:Wr.createIconNoSpan("valuePanel",this.gridOptionsWrapper,null),emptyMessage:n,title:e}),this.addManagedListener(this.eventService,xi.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},i.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")},i.prototype.getTooltipParams=function(){var i=t.prototype.getTooltipParams.call(this);return i.location="valueColumnsList",i},i.prototype.getIconName=function(){return this.isPotentialDndColumns()?Xs.ICON_AGGREGATE:Xs.ICON_NOT_ALLOWED},i.prototype.isColumnDroppable=function(t){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!t.isPrimary())&&t.isAllowValue()&&!t.isValueActive()},i.prototype.updateColumns=function(t){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:t}):this.columnModel.setValueColumns(t,"toolPanelUi")},i.prototype.getExistingColumns=function(){return this.columnModel.getValueColumns()},Kb([Dt("columnModel")],i.prototype,"columnModel",void 0),Kb([Dt("loggerFactory")],i.prototype,"loggerFactory",void 0),Kb([Dt("dragAndDropService")],i.prototype,"dragAndDropService",void 0),Kb([Ft],i.prototype,"passBeansUp",null),i}(Db),qb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Yb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Jb=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return qb(i,t),i.prototype.postConstruct=function(){this.initialiseTabGuard({})},i.prototype.init=function(t,i,n){this.allowDragging=t,this.params=i,this.eventType=n,this.primaryColsHeaderPanel.init(this.params),this.params.suppressColumnExpandAll&&this.params.suppressColumnFilter&&this.params.suppressColumnSelectAll&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addManagedListener(this.primaryColsListPanel,"groupExpanded",this.onGroupExpanded.bind(this)),this.addManagedListener(this.primaryColsListPanel,"selectionChanged",this.onSelectionChange.bind(this)),this.primaryColsListPanel.init(this.params,this.allowDragging,this.eventType),this.addManagedListener(this.primaryColsHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"selectAll",this.onSelectAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"unselectAll",this.onUnselectAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"filterChanged",this.onFilterChanged.bind(this)),this.positionableFeature=new El(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature)},i.prototype.toggleResizable=function(t){this.positionableFeature.setResizable(!!t&&{bottom:!0})},i.prototype.onExpandAll=function(){this.primaryColsListPanel.doSetExpandedAll(!0)},i.prototype.onCollapseAll=function(){this.primaryColsListPanel.doSetExpandedAll(!1)},i.prototype.expandGroups=function(t){this.primaryColsListPanel.setGroupsExpanded(!0,t)},i.prototype.collapseGroups=function(t){this.primaryColsListPanel.setGroupsExpanded(!1,t)},i.prototype.setColumnLayout=function(t){this.primaryColsListPanel.setColumnLayout(t)},i.prototype.onFilterChanged=function(t){this.primaryColsListPanel.setFilterText(t.filterText)},i.prototype.syncLayoutWithGrid=function(){this.primaryColsListPanel.onColumnsChanged()},i.prototype.onSelectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!0)},i.prototype.onUnselectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!1)},i.prototype.onGroupExpanded=function(t){this.primaryColsHeaderPanel.setExpandState(t.state)},i.prototype.onSelectionChange=function(t){this.primaryColsHeaderPanel.setSelectionState(t.state)},i.TEMPLATE='<div class="ag-column-select">\n <ag-primary-cols-header ref="primaryColsHeaderPanel"></ag-primary-cols-header>\n <ag-primary-cols-list ref="primaryColsListPanel"></ag-primary-cols-list>\n </div>',Yb([no("primaryColsHeaderPanel")],i.prototype,"primaryColsHeaderPanel",void 0),Yb([no("primaryColsListPanel")],i.prototype,"primaryColsListPanel",void 0),Yb([Ft],i.prototype,"postConstruct",null),i}(Qf),Zb=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Xb=function(){return Xb=Object.assign||function(t){for(var i,n=1,e=arguments.length;n<e;n++)for(var r in i=arguments[n])Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r]);return t},Xb.apply(this,arguments)},Qb=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.initialised=!1,n.childDestroyFuncs=[],n}Zb(i,t),i.prototype.setVisible=function(i){t.prototype.setDisplayed.call(this,i),i&&!this.initialised&&this.init(this.params)},i.prototype.init=function(t){var i=this;if(this.params=Xb(Xb(Xb({},{suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi}),t),{context:this.gridOptionsWrapper.getContext()}),this.isRowGroupingModuleLoaded()&&!this.params.suppressPivotMode&&(this.pivotModePanel=this.createBean(new nb),this.childDestroyFuncs.push((function(){return i.destroyBean(i.pivotModePanel)})),this.appendChild(this.pivotModePanel)),this.primaryColsPanel=this.createBean(new Jb),this.childDestroyFuncs.push((function(){return i.destroyBean(i.primaryColsPanel)})),this.primaryColsPanel.init(!0,this.params,"toolPanelUi"),this.primaryColsPanel.addCssClass("ag-column-panel-column-select"),this.appendChild(this.primaryColsPanel),this.isRowGroupingModuleLoaded()){this.params.suppressRowGroups||(this.rowGroupDropZonePanel=this.createBean(new Tb(!1)),this.childDestroyFuncs.push((function(){return i.destroyBean(i.rowGroupDropZonePanel)})),this.appendChild(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=this.createBean(new $b(!1)),this.childDestroyFuncs.push((function(){return i.destroyBean(i.valuesDropZonePanel)})),this.appendChild(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=this.createBean(new Lb(!1)),this.childDestroyFuncs.push((function(){return i.destroyBean(i.pivotDropZonePanel)})),this.appendChild(this.pivotDropZonePanel)),this.setLastVisible();var n=this.addManagedListener(this.eventService,xi.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){i.resetChildrenHeight(),i.setLastVisible()}));this.childDestroyFuncs.push((function(){return n()}))}this.initialised=!0},i.prototype.setPivotModeSectionVisible=function(t){var i=this;this.isRowGroupingModuleLoaded()&&(this.pivotModePanel?this.pivotModePanel.setDisplayed(t):t&&(this.pivotModePanel=this.createBean(new nb),this.getGui().insertBefore(this.pivotModePanel.getGui(),this.getGui().firstChild),this.childDestroyFuncs.push((function(){return i.destroyBean(i.pivotModePanel)}))),this.setLastVisible())},i.prototype.setRowGroupsSectionVisible=function(t){this.isRowGroupingModuleLoaded()&&(this.rowGroupDropZonePanel?this.rowGroupDropZonePanel.setDisplayed(t):t&&(this.rowGroupDropZonePanel=this.createManagedBean(new Tb(!1)),this.appendChild(this.rowGroupDropZonePanel)),this.setLastVisible())},i.prototype.setValuesSectionVisible=function(t){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(t):t&&(this.valuesDropZonePanel=this.createManagedBean(new $b(!1)),this.appendChild(this.valuesDropZonePanel)),this.setLastVisible())},i.prototype.setPivotSectionVisible=function(t){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(t):t&&(this.pivotDropZonePanel=this.createManagedBean(new Lb(!1)),this.appendChild(this.pivotDropZonePanel),this.pivotDropZonePanel.setDisplayed(t)),this.setLastVisible())},i.prototype.setResizers=function(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach((function(t){if(t){var i=t.getGui();t.toggleResizable(!i.classList.contains("ag-last-column-drop")&&!i.classList.contains("ag-hidden"))}}))},i.prototype.setLastVisible=function(){var t=this.getGui();Array.prototype.slice.call(t.querySelectorAll(".ag-column-drop")).forEach((function(t){return t.classList.remove("ag-last-column-drop")}));var i=t.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),n=Wr.last(i);n&&n.classList.add("ag-last-column-drop"),this.setResizers()},i.prototype.resetChildrenHeight=function(){for(var t=this.getGui().children,i=0;i<t.length;i++){var n=t[i];n.style.removeProperty("height"),n.style.removeProperty("flex")}},i.prototype.isRowGroupingModuleLoaded=function(){return Ut.assertRegistered(Nt.RowGroupingModule,"Row Grouping")},i.prototype.expandColumnGroups=function(t){this.primaryColsPanel.expandGroups(t)},i.prototype.collapseColumnGroups=function(t){this.primaryColsPanel.collapseGroups(t)},i.prototype.setColumnLayout=function(t){this.primaryColsPanel.setColumnLayout(t)},i.prototype.syncLayoutWithGrid=function(){this.primaryColsPanel.syncLayoutWithGrid()},i.prototype.destroyChildren=function(){this.childDestroyFuncs.forEach((function(t){return t()})),this.childDestroyFuncs.length=0,Wr.clearElement(this.getGui())},i.prototype.refresh=function(){this.destroyChildren(),this.init(this.params)},i.prototype.destroy=function(){this.destroyChildren(),t.prototype.destroy.call(this)},i.TEMPLATE='<div class="ag-column-panel"></div>',Qb([Dt("gridApi")],i.prototype,"gridApi",void 0),Qb([Dt("columnApi")],i.prototype,"columnApi",void 0)}(io);var tw=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),iw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},nw=function(t){function i(){var i=t.call(this,'<div class="ag-tool-panel-horizontal-resize"></div>')||this;return i.minWidth=100,i.maxWidth=null,i}return tw(i,t),i.prototype.setElementToResize=function(t){this.elementToResize=t},i.prototype.postConstruct=function(){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(t),this.setInverted(this.gridOptionsWrapper.isEnableRtl())},i.prototype.dispatchResizeEvent=function(t,i,n){this.eventService.dispatchEvent({type:xi.EVENT_TOOL_PANEL_SIZE_CHANGED,width:n,started:t,ended:i})},i.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)},i.prototype.onResizeEnd=function(t){return this.onResizing(t,!0)},i.prototype.onResizing=function(t,i){void 0===i&&(i=!1);var n=Math.max(this.minWidth,Math.floor(this.startingWidth-t*(this.inverted?-1:1)));null!=this.maxWidth&&(n=Math.min(this.maxWidth,n)),this.elementToResize.style.width=n+"px",this.dispatchResizeEvent(!1,i,n)},i.prototype.setInverted=function(t){this.inverted=t},i.prototype.setMaxWidth=function(t){this.maxWidth=t},i.prototype.setMinWidth=function(t){this.minWidth=null!=t?t:100},iw([Dt("horizontalResizeService")],i.prototype,"horizontalResizeService",void 0),iw([Ft],i.prototype,"postConstruct",null),i}(io),ew=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),rw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ow=function(t){function i(i){var n=t.call(this)||this;return n.toolPanelDef=i,n}return ew(i,t),i.prototype.getToolPanelId=function(){return this.toolPanelDef.id},i.prototype.postConstruct=function(){var t=this.createTemplate();this.setTemplate(t),this.setLabel(),this.setIcon(),this.addManagedListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},i.prototype.createTemplate=function(){return'<div class="ag-side-button" role="presentation">\n <button type="button" ref="eToggleButton" tabindex="-1" role="tab" class="ag-side-button-button">\n <div ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>\n <span ref ="eLabel" class="ag-side-button-label"></span>\n </button>\n </div>'},i.prototype.setLabel=function(){var t=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.toolPanelDef,n=t(i.labelKey,i.labelDefault);this.eLabel.innerText=n},i.prototype.setIcon=function(){this.eIconWrapper.insertAdjacentElement("afterbegin",Wr.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsWrapper))},i.prototype.onButtonPressed=function(){this.dispatchEvent({type:i.EVENT_TOGGLE_BUTTON_CLICKED})},i.prototype.setSelected=function(t){this.addOrRemoveCssClass("ag-selected",t)},i.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",rw([no("eToggleButton")],i.prototype,"eToggleButton",void 0),rw([no("eIconWrapper")],i.prototype,"eIconWrapper",void 0),rw([no("eLabel")],i.prototype,"eLabel",void 0),rw([Ft],i.prototype,"postConstruct",null),i}(io),sw=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),uw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},hw=function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.buttonComps=[],n}return sw(i,t),i.prototype.postConstruct=function(){this.addManagedListener(this.getFocusableElement(),"keydown",this.handleKeyDown.bind(this))},i.prototype.handleKeyDown=function(t){if(t.key===xr.TAB&&t.shiftKey){var i=Wr.last(this.columnModel.getAllDisplayedColumns());this.focusService.focusGridView(i,!0)&&t.preventDefault()}},i.prototype.setToolPanelDefs=function(t){t.forEach(this.addButtonComp.bind(this))},i.prototype.setActiveButton=function(t){this.buttonComps.forEach((function(i){i.setSelected(t===i.getToolPanelId())}))},i.prototype.addButtonComp=function(t){var n=this,e=this.createBean(new ow(t));this.buttonComps.push(e),this.appendChild(e),e.addEventListener(ow.EVENT_TOGGLE_BUTTON_CLICKED,(function(){n.dispatchEvent({type:i.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:t.id})}))},i.prototype.clearButtons=function(){this.buttonComps=this.destroyBeans(this.buttonComps),Wr.clearElement(this.getGui())},i.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",i.TEMPLATE='<div class="ag-side-buttons" role="tablist"></div>',uw([Dt("focusService")],i.prototype,"focusService",void 0),uw([Dt("columnModel")],i.prototype,"columnModel",void 0),uw([Ft],i.prototype,"postConstruct",null),uw([kt],i.prototype,"clearButtons",null),i}(io),cw=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),aw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},lw=function(t){function i(){return t.call(this,i.TEMPLATE)||this}return cw(i,t),i.prototype.setupResize=function(){var t=this.getGui(),i=this.resizeBar=this.createManagedBean(new nw);i.setElementToResize(t),this.appendChild(i)},i.prototype.getToolPanelId=function(){return this.toolPanelId},i.prototype.setToolPanelDef=function(t){var i=t.id,n=t.minWidth,e=t.maxWidth,r=t.width;this.toolPanelId=i,this.width=r;var o=this.userComponentFactory.getToolPanelCompDetails(t,{}).newAgStackInstance();null!=o?(o.then(this.setToolPanelComponent.bind(this)),null!=n&&this.resizeBar.setMinWidth(n),null!=e&&this.resizeBar.setMaxWidth(e)):console.warn("AG Grid: error processing tool panel component "+i+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},i.prototype.setToolPanelComponent=function(t){var i=this;this.toolPanelCompInstance=t,this.appendChild(t.getGui()),this.addDestroyFunc((function(){i.destroyBean(t)})),this.width&&(this.getGui().style.width=this.width+"px")},i.prototype.getToolPanelInstance=function(){return this.toolPanelCompInstance},i.prototype.setResizerSizerSide=function(t){var i=this.gridOptionsWrapper.isEnableRtl(),n="left"===t;this.resizeBar.setInverted(i?n:!n)},i.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},i.TEMPLATE='<div class="ag-tool-panel-wrapper"/>',aw([Dt("userComponentFactory")],i.prototype,"userComponentFactory",void 0),aw([Ft],i.prototype,"setupResize",null),i}(io),fw=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),dw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(){var n=t.call(this,i.TEMPLATE)||this;return n.toolPanelWrappers=[],n}fw(i,t),i.prototype.postConstruct=function(){var t=this;this.sideBarButtonsComp.addEventListener(hw.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef(),this.gridOptionsWrapper.addEventListener("sideBar",(function(){t.clearDownUi(),t.setSideBarDef()})),this.gridApi.registerSideBarComp(this),this.createManagedBean(new go(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},i.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented){var i=this.focusService,n=this.sideBarButtonsComp,e=this.getGui(),r=n.getGui(),o=this.gridOptionsWrapper.getDocument().activeElement,s=e.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)");if(s)if(r.contains(o))i.focusInto(s,t.shiftKey)&&t.preventDefault();else if(!i.isFocusUnderManagedComponent(s)&&t.shiftKey){var u=i.findFocusableElements(s)[0];if(this.gridOptionsWrapper.getDocument().activeElement===u){var h=r.querySelector(".ag-selected button");h&&(t.preventDefault(),h.focus())}}}},i.prototype.handleKeyDown=function(t){var i=this.gridOptionsWrapper.getDocument();if(this.sideBarButtonsComp.getGui().contains(i.activeElement)){var n=this.sideBarButtonsComp.getGui(),e=Array.prototype.slice.call(n.querySelectorAll(".ag-side-button")),r=i.activeElement,o=e.findIndex((function(t){return t.contains(r)})),s=null;switch(t.key){case xr.LEFT:case xr.UP:s=Math.max(0,o-1);break;case xr.RIGHT:case xr.DOWN:s=Math.min(o+1,e.length-1)}if(null!==s){var u=e[s].querySelector("button");u&&(u.focus(),t.preventDefault())}}},i.prototype.onToolPanelButtonClicked=function(t){var i=t.toolPanelId,n=this.openedItem();this.openToolPanel(n===i?void 0:i)},i.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},i.prototype.setSideBarDef=function(){this.setDisplayed(!1);var t=this.gridOptionsWrapper.getSideBar(),i=!!t&&!!t.toolPanels;if(i){this.setDisplayed(i&&!t.hiddenByDefault);var n=t.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(n),this.setupToolPanels(n),this.setSideBarPosition(t.position),t.hiddenByDefault||this.openToolPanel(t.defaultToolPanel)}},i.prototype.setSideBarPosition=function(t){t||(t="right");var i="left"===t,n=i?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",i),this.addOrRemoveCssClass("ag-side-bar-right",!i),this.toolPanelWrappers.forEach((function(t){t.setResizerSizerSide(n)})),this},i.prototype.setupToolPanels=function(t){var i=this;t.forEach((function(t){if(null!=t.id){if("agColumnsToolPanel"===t.toolPanel&&!Ut.assertRegistered(Nt.ColumnToolPanelModule,"Column Tool Panel"))return;if("agFiltersToolPanel"===t.toolPanel&&!Ut.assertRegistered(Nt.FiltersToolPanelModule,"Filters Tool Panel"))return;var n=new lw;i.getContext().createBean(n),n.setToolPanelDef(t),n.setDisplayed(!1),i.getGui().appendChild(n.getGui()),i.toolPanelWrappers.push(n)}else console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")}))},i.prototype.refresh=function(){this.toolPanelWrappers.forEach((function(t){return t.refresh()}))},i.prototype.openToolPanel=function(t){var i=this.openedItem();i!==t&&(this.toolPanelWrappers.forEach((function(i){var n=t===i.getToolPanelId();i.setDisplayed(n)})),i!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(t),this.raiseToolPanelVisibleEvent(t)))},i.prototype.getToolPanelInstance=function(t){var i=this.toolPanelWrappers.filter((function(i){return i.getToolPanelId()===t}))[0];if(i)return i.getToolPanelInstance();console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: "+t)},i.prototype.raiseToolPanelVisibleEvent=function(t){this.eventService.dispatchEvent({type:xi.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:t})},i.prototype.close=function(){this.openToolPanel(void 0)},i.prototype.isToolPanelShowing=function(){return!!this.openedItem()},i.prototype.openedItem=function(){var t=null;return this.toolPanelWrappers.forEach((function(i){i.isDisplayed()&&(t=i.getToolPanelId())})),t},i.prototype.destroyToolPanelWrappers=function(){var t=this;this.toolPanelWrappers.forEach((function(i){Wr.removeFromParent(i.getGui()),t.destroyBean(i)})),this.toolPanelWrappers.length=0},i.prototype.destroy=function(){this.destroyToolPanelWrappers(),t.prototype.destroy.call(this)},i.TEMPLATE='<div class="ag-side-bar ag-unselectable">\n <ag-side-bar-buttons ref="sideBarButtons"></ag-side-bar-buttons>\n </div>',dw([Dt("gridApi")],i.prototype,"gridApi",void 0),dw([Dt("focusService")],i.prototype,"focusService",void 0),dw([no("sideBarButtons")],i.prototype,"sideBarButtonsComp",void 0),dw([Ft],i.prototype,"postConstruct",null)}(io);var vw=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),pw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.isColGroupDef=function(t){return t&&void 0!==t.children},i.getId=function(t){return i.isColGroupDef(t)?t.groupId:t.colId},i}vw(i,t),i.prototype.createColumnTree=function(t){var i=this,n=[],e=function(t,r){if(i.isColGroupDef(t)){var o=t,s=new hi(o,void 0!==o.groupId?o.groupId:o.headerName,!1,r),u=[];return o.children.forEach((function(t){var i=e(t,r+1);i&&u.push(i)})),s.setChildren(u),s}var h=t,c=i.columnModel.getPrimaryColumn(h.colId?h.colId:h.field);return c||n.push(h),c},r=[];return t.forEach((function(t){var i=e(t,0);i&&r.push(i)})),n.length>0&&console.warn("AG Grid: unable to find grid columns for the supplied colDef(s):",n),r},i.prototype.syncLayoutWithGrid=function(t){var i=this.getLeafPathTrees();t(this.mergeLeafPathTrees(i))},i.prototype.getLeafPathTrees=function(){var t=function(i,n){var e;if(i instanceof hi)if(i.isPadding())e=n;else{var r=Object.assign({},i.getColGroupDef());r.groupId=i.getGroupId(),r.children=[n],e=r}else{var o=Object.assign({},i.getColDef());o.colId=i.getColId(),e=o}var s=i.getOriginalParent();return s?t(s,e):e};return this.columnModel.getAllGridColumns().filter((function(t){var i=t.getColDef();return t.isPrimary()&&!i.showRowGroup})).map((function(i){return t(i,i.getColDef())}))},i.prototype.mergeLeafPathTrees=function(t){for(var i,n,e=this,r=function(t,i){if(!e.isColGroupDef(i))return t;var n=t,o=i;return o.children&&o.groupId&&e.addChildrenToGroup(n,o.groupId,o.children[0])||o.children.forEach((function(t){return r(n,t)})),n},o=[],s=1;s<=t.length;s++){var u=t[s-1],h=t[s];n=h,e.isColGroupDef(i=u)&&e.isColGroupDef(n)&&e.getId(i)===e.getId(n)?t[s]=r(u,h):o.push(u)}return o},i.prototype.addChildrenToGroup=function(t,i,n){var e=this;if(!this.isColGroupDef(t))return!0;var r=t,o=n;if(function(t,i){var n=t.children.map(e.getId),r=Wr.includes(n,e.getId(i)),o=Wr.last(t.children),s=o&&e.getId(o)!==e.getId(i);return r&&s}(r,o))return r.children.push(o),!0;if(r.groupId===i){var s=r.children.map(this.getId);if(!Wr.includes(s,this.getId(o)))return r.children.push(o),!0}return r.children.forEach((function(t){return e.addChildrenToGroup(t,i,n)})),!1},pw([Dt("columnModel")],i.prototype,"columnModel",void 0),i=pw([Pt("toolPanelColDefService")],i)}(Ai);var gw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s};!function(){function t(){}t.prototype.selectAllChildren=function(t,i,n){var e=this.extractAllLeafColumns(t);this.setAllColumns(e,i,n)},t.prototype.setColumn=function(t,i,n){this.setAllColumns([t],i,n)},t.prototype.setAllColumns=function(t,i,n){this.columnModel.isPivotMode()?this.setAllPivot(t,i,n):this.setAllVisible(t,i,n)},t.prototype.extractAllLeafColumns=function(t){var i=[],n=function(t){t.forEach((function(t){t.isPassesFilter()&&(t.isGroup()?n(t.getChildren()):i.push(t.getColumn()))}))};return n(t),i},t.prototype.setAllVisible=function(t,i,n){var e=[];t.forEach((function(t){t.getColDef().lockVisible||t.isVisible()!=i&&e.push({colId:t.getId(),hide:!i})})),e.length>0&&this.columnModel.applyColumnState({state:e},n)},t.prototype.setAllPivot=function(t,i,n){this.gridOptionsWrapper.isFunctionsPassive()?this.setAllPivotPassive(t,i):this.setAllPivotActive(t,i,n)},t.prototype.setAllPivotPassive=function(t,i){var n=this.columnModel.getPivotColumns().slice(),e=this.columnModel.getValueColumns().slice(),r=this.columnModel.getRowGroupColumns().slice(),o=!1,s=!1,u=!1;t.forEach(i?function(t){t.isAnyFunctionActive()||(t.isAllowValue()?(e.push(t),s=!0):t.isAllowRowGroup()?(r.push(t),o=!0):t.isAllowPivot()&&(n.push(t),u=!0))}:function(t){t.isAnyFunctionActive()&&(n.indexOf(t)>=0&&(Wr.removeFromArray(n,t),o=!0),e.indexOf(t)>=0&&(Wr.removeFromArray(e,t),s=!0),r.indexOf(t)>=0&&(Wr.removeFromArray(r,t),u=!0))}),o&&this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:n}),u&&this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:r}),s&&this.eventService.dispatchEvent({type:xi.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:r})},t.prototype.setAllPivotActive=function(t,i,n){var e=this,r=[];t.forEach(i?function(t){if(!t.isAnyFunctionActive())if(t.isAllowValue()){var i="string"==typeof t.getAggFunc()?t.getAggFunc():e.aggFuncService.getDefaultAggFunc(t);r.push({colId:t.getId(),aggFunc:i})}else t.isAllowRowGroup()?r.push({colId:t.getId(),rowGroup:!0}):t.isAllowPivot()&&r.push({colId:t.getId(),pivot:!0})}:function(t){(t.isPivotActive()||t.isRowGroupActive()||t.isValueActive())&&r.push({colId:t.getId(),pivot:!1,rowGroup:!1,aggFunc:null})}),r.length>0&&this.columnModel.applyColumnState({state:r},n)},gw([Dt("aggFuncService")],t.prototype,"aggFuncService",void 0),gw([Dt("columnModel")],t.prototype,"columnModel",void 0),gw([Dt("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),gw([Dt("eventService")],t.prototype,"eventService",void 0),t=gw([Pt("modelItemUtils")],t)}();var mw=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),bw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},ww=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return mw(i,t),i.prototype.hideActiveMenu=function(){this.destroyBean(this.activeMenu)},i.prototype.showMenuAfterMouseEvent=function(t,i,n){var e=this;this.showMenu(t,(function(r){var o=r.getGui();e.popupService.positionPopupUnderMouseEvent({type:"columnMenu",column:t,mouseEvent:i,ePopup:o}),n&&r.showTab(n)}),"columnMenu",n,void 0,i.target)},i.prototype.showMenuAfterButtonClick=function(t,i,n,e,r){var o=this,s=-1,u="left";this.gridOptionsWrapper.isEnableRtl()&&(s=1,u="right"),this.showMenu(t,(function(r){var h=r.getGui();o.popupService.positionPopupUnderComponent({type:n,column:t,eventSource:i,ePopup:h,alignSide:u,nudgeX:9*s,nudgeY:-23,keepWithinBounds:!0}),e&&r.showTab(e)}),n,e,r,i)},i.prototype.showMenu=function(t,i,n,e,r,o){var s=this,u=this.createBean(new yw(t,this.lastSelectedTab,r)),h=u.getGui(),c=this.focusService.getFocusedHeader(),a=this.columnModel.getAllDisplayedColumns().indexOf(t),l=o||this.ctrlsService.getGridBodyCtrl().getGui(),f=[];f.push((function(i){if(s.destroyBean(u),t.setMenuVisible(!1,"contextMenu"),i instanceof KeyboardEvent&&o)if(Wr.isVisible(o)){var n=s.focusService.findTabbableParent(o);n&&(t&&s.headerNavigationService.scrollToColumn(t),n.focus())}else if(c&&-1!==a){var e=s.columnModel.getAllDisplayedColumns(),r=e[a]||Wr.last(e);r&&s.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c.headerRowIndex,column:r}})}}));var d=this.gridOptionsWrapper.getLocaleTextFunc(),v=this.popupService.addPopup({modal:!0,eChild:h,closeOnEsc:!0,closedCallback:function(t){f.forEach((function(i){return i(t)}))},afterGuiAttached:function(t){return u.afterGuiAttached(Object.assign({},{container:n},t))},positionCallback:function(){return i(u)},anchorToElement:l,ariaLabel:d("ariaLabelColumnMenu","Column Menu")});if(v){var p=v.stopAnchoringPromise;p&&p.then((function(i){t.addEventListener(qt.EVENT_LEFT_CHANGED,i),t.addEventListener(qt.EVENT_VISIBLE_CHANGED,i),f.push((function(){t.removeEventListener(qt.EVENT_LEFT_CHANGED,i),t.removeEventListener(qt.EVENT_VISIBLE_CHANGED,i)}))}))}e||(u.showTabBasedOnPreviousSelection(),i(u)),u.addEventListener(yw.EVENT_TAB_SELECTED,(function(t){s.lastSelectedTab=t.key})),t.setMenuVisible(!0,"contextMenu"),this.activeMenu=u,u.addEventListener(Ai.EVENT_DESTROYED,(function(){s.activeMenu===u&&(s.activeMenu=null)}))},i.prototype.isMenuEnabled=function(t){return t.getMenuTabs(yw.TABS_DEFAULT).length>0},bw([Dt("popupService")],i.prototype,"popupService",void 0),bw([Dt("focusService")],i.prototype,"focusService",void 0),bw([Dt("headerNavigationService")],i.prototype,"headerNavigationService",void 0),bw([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),bw([Dt("columnModel")],i.prototype,"columnModel",void 0),bw([Pt("menuFactory")],i)}(Ai),yw=function(t){function i(n,e,r){var o=t.call(this)||this;return o.tabFactories={},o.includeChecks={},o.column=n,o.initialSelection=e,o.tabFactories[i.TAB_GENERAL]=o.createMainPanel.bind(o),o.tabFactories[i.TAB_FILTER]=o.createFilterPanel.bind(o),o.tabFactories[i.TAB_COLUMNS]=o.createColumnsPanel.bind(o),o.includeChecks[i.TAB_GENERAL]=function(){return!0},o.includeChecks[i.TAB_FILTER]=function(){return n.isFilterAllowed()},o.includeChecks[i.TAB_COLUMNS]=function(){return!0},o.restrictTo=r,o}return mw(i,t),i.prototype.init=function(){var t=this,i=this.getTabsToCreate().map((function(i){return t.createTab(i)}));this.tabbedLayout=new jl({items:i,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)}),this.createBean(this.tabbedLayout),this.mainMenuList&&this.mainMenuList.setParentComponent(this.tabbedLayout)},i.prototype.getTabsToCreate=function(){var t=this;return this.restrictTo?this.restrictTo:this.column.getMenuTabs(i.TABS_DEFAULT).filter((function(i){return t.isValidMenuTabItem(i)})).filter((function(i){return t.isNotSuppressed(i)})).filter((function(i){return t.isModuleLoaded(i)}))},i.prototype.isModuleLoaded=function(t){return t!==i.TAB_COLUMNS||Ut.isRegistered(Nt.ColumnToolPanelModule)},i.prototype.isValidMenuTabItem=function(t){var n=!0,e=i.TABS_DEFAULT;return null!=this.restrictTo&&(n=this.restrictTo.indexOf(t)>-1,e=this.restrictTo),(n=n&&i.TABS_DEFAULT.indexOf(t)>-1)||console.warn("AG Grid: Trying to render an invalid menu item '"+t+"'. Check that your 'menuTabs' contains one of ["+e+"]"),n},i.prototype.isNotSuppressed=function(t){return this.includeChecks[t]()},i.prototype.createTab=function(t){return this.tabFactories[t]()},i.prototype.showTabBasedOnPreviousSelection=function(){this.showTab(this.initialSelection)},i.prototype.showTab=function(t){this.tabItemColumns&&t===i.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&t===i.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&t===i.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},i.prototype.onTabItemClicked=function(t){var n=null;switch(t.item){case this.tabItemColumns:n=i.TAB_COLUMNS;break;case this.tabItemFilter:n=i.TAB_FILTER;break;case this.tabItemGeneral:n=i.TAB_GENERAL}n&&this.activateTab(n)},i.prototype.activateTab=function(t){this.dispatchEvent({type:i.EVENT_TAB_SELECTED,key:t})},i.prototype.getMenuItems=function(){var t,n=this.getDefaultMenuOptions(),e=this.gridOptionsWrapper.getMainMenuItemsFunc();return t=e?e({column:this.column,defaultItems:n}):n,Wr.removeRepeatsFromArray(t,i.MENU_ITEM_SEPARATOR),t},i.prototype.getDefaultMenuOptions=function(){var t=[],n=!this.column.getColDef().lockPinned,e=this.columnModel.getRowGroupColumns().length,r=e>0,o=this.columnModel.getRowGroupColumns().indexOf(this.column)>=0,s=this.column.isAllowValue(),u=this.column.isAllowRowGroup(),h=this.column.isPrimary(),c=this.columnModel.isPivotMode(),a=this.rowModel.getType()===Vt.ROW_MODEL_TYPE_CLIENT_SIDE,l=this.gridOptionsWrapper.isTreeData(),f=h&&r&&s||!h;return n&&t.push("pinSubMenu"),f&&t.push("valueAggSubMenu"),(n||f)&&t.push(i.MENU_ITEM_SEPARATOR),t.push("autoSizeThis"),t.push("autoSizeAll"),t.push(i.MENU_ITEM_SEPARATOR),u&&this.column.isPrimary()&&t.push(o?"rowUnGroup":"rowGroup"),t.push(i.MENU_ITEM_SEPARATOR),t.push("resetColumns"),a&&(l||e>(c?1:0))&&(t.push("expandAll"),t.push("contractAll")),t},i.prototype.createMainPanel=function(){this.mainMenuList=this.createManagedBean(new ed);var t=this.getMenuItems(),n=this.menuItemMapper.mapWithStockItems(t,this.column);return this.mainMenuList.addMenuItems(n),this.mainMenuList.addEventListener(hd.EVENT_MENU_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:Wr.createIconNoSpan("menu",this.gridOptionsWrapper,this.column),titleLabel:i.TAB_GENERAL.replace("MenuTab",""),bodyPromise:Kr.resolve(this.mainMenuList.getGui()),name:i.TAB_GENERAL},this.tabItemGeneral},i.prototype.onHidePopup=function(t){var i;t&&t.event&&t.event instanceof KeyboardEvent&&(i=t.event),this.hidePopupFunc(i&&{keyboardEvent:i});var n=this.focusService.getFocusedCell(),e=this.gridOptionsWrapper.getDocument();e.activeElement===e.body&&n&&this.focusService.setFocusedCell({rowIndex:n.rowIndex,column:n.column,rowPinned:n.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})},i.prototype.createFilterPanel=function(){var t,n=this.filterManager.getOrCreateFilterWrapper(this.column,"COLUMN_MENU");if(!n)throw new Error("AG Grid - Unable to instantiate filter");return this.tabItemFilter={title:Wr.createIconNoSpan("filter",this.gridOptionsWrapper,this.column),titleLabel:i.TAB_FILTER.replace("MenuTab",""),bodyPromise:null===(t=n)||void 0===t?void 0:t.guiPromise,afterAttachedCallback:function(t){var i;(null===(i=n)||void 0===i?void 0:i.filterPromise)&&n.filterPromise.then((function(i){i&&i.afterGuiAttached&&i.afterGuiAttached(t)}))},name:i.TAB_FILTER},this.tabItemFilter},i.prototype.createColumnsPanel=function(){var t=document.createElement("div");t.classList.add("ag-menu-column-select-wrapper"),this.columnSelectPanel=this.createManagedBean(new Jb);var n=this.column.getColDef().columnsMenuParams;n||(n={}),this.columnSelectPanel.init(!1,{suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!n.contractColumnSelection,suppressColumnExpandAll:!!n.suppressColumnExpandAll,suppressColumnFilter:!!n.suppressColumnFilter,suppressColumnSelectAll:!!n.suppressColumnSelectAll,suppressSyncLayoutWithGrid:!!n.suppressSyncLayoutWithGrid,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},"columnMenu");var e=this.columnSelectPanel.getGui();return e.classList.add("ag-menu-column-select"),t.appendChild(e),this.tabItemColumns={title:Wr.createIconNoSpan("columns",this.gridOptionsWrapper,this.column),titleLabel:i.TAB_COLUMNS.replace("MenuTab",""),bodyPromise:Kr.resolve(t),name:i.TAB_COLUMNS},this.tabItemColumns},i.prototype.afterGuiAttached=function(t){var i=t.hidePopup;this.tabbedLayout.setAfterAttachedParams({container:t.container,hidePopup:i}),i&&(this.hidePopupFunc=i,this.addDestroyFunc(i))},i.prototype.getGui=function(){return this.tabbedLayout.getGui()},i.EVENT_TAB_SELECTED="tabSelected",i.TAB_FILTER="filterMenuTab",i.TABS_DEFAULT=[i.TAB_GENERAL="generalMenuTab",i.TAB_FILTER,i.TAB_COLUMNS="columnsMenuTab"],i.MENU_ITEM_SEPARATOR="separator",bw([Dt("columnModel")],i.prototype,"columnModel",void 0),bw([Dt("filterManager")],i.prototype,"filterManager",void 0),bw([Dt("gridApi")],i.prototype,"gridApi",void 0),bw([Dt("columnApi")],i.prototype,"columnApi",void 0),bw([Dt("menuItemMapper")],i.prototype,"menuItemMapper",void 0),bw([Dt("rowModel")],i.prototype,"rowModel",void 0),bw([Dt("focusService")],i.prototype,"focusService",void 0),bw([Ft],i.prototype,"init",null),i}(Ai),Cw=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),Sw=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Rw="ag-context-menu-open",Ow=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Cw(i,t),i.prototype.hideActiveMenu=function(){this.destroyBean(this.activeMenu)},i.prototype.getMenuItems=function(t,i,n){var e=[];if(Wr.exists(t)&&Ut.isRegistered(Nt.ClipboardModule)&&i&&e.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator"),this.gridOptionsWrapper.isEnableCharts()&&Ut.isRegistered(Nt.RangeSelectionModule)&&Ut.isRegistered(Nt.GridChartsModule)&&(this.columnModel.isPivotMode()&&e.push("pivotChart"),this.rangeService&&!this.rangeService.isEmpty()&&e.push("chartRange")),Wr.exists(t)){var r=!Ut.isRegistered(Nt.CsvExportModule),o=!Ut.isRegistered(Nt.ExcelExportModule),s=this.gridOptionsWrapper.isSuppressExcelExport()||o,u=this.gridOptionsWrapper.isSuppressCsvExport()||r;!(Wr.isIOSUserAgent()||s&&u)&&e.push("export")}if(this.gridOptionsWrapper.getContextMenuItemsFunc()){var h=this.gridOptionsWrapper.getContextMenuItemsFunc();return h?h({node:t,column:i,value:n,defaultItems:e.length?e:void 0}):void 0}return e},i.prototype.onContextMenu=function(t,i,n,e,r,o){!this.gridOptionsWrapper.isAllowContextMenuWithControlKey()&&t&&(t.ctrlKey||t.metaKey)||(t&&this.blockMiddleClickScrollsIfNeeded(t),this.gridOptionsWrapper.isSuppressContextMenu()||this.showMenu(n,e,r,t||i.touches[0],o)&&(t||i).preventDefault())},i.prototype.blockMiddleClickScrollsIfNeeded=function(t){var i=t.which;this.gridOptionsWrapper.isSuppressMiddleClickScrolls()&&2===i&&t.preventDefault()},i.prototype.showMenu=function(t,i,n,e,r){var o=this,s=this.getMenuItems(t,i,n),u=this.ctrlsService.getGridBodyCtrl().getGui();if(void 0===s||Wr.missingOrEmpty(s))return!1;var h=new Aw(s);this.createBean(h);var c=h.getGui(),a={column:i,rowNode:t,type:"contextMenu",mouseEvent:e,ePopup:c,nudgeY:1},l=this.gridOptionsWrapper.getLocaleTextFunc(),f=this.popupService.addPopup({modal:!0,eChild:c,closeOnEsc:!0,closedCallback:function(){u.classList.remove(Rw),o.destroyBean(h)},click:e,positionCallback:function(){o.popupService.positionPopupUnderMouseEvent(Object.assign({},{nudgeX:o.gridOptionsWrapper.isEnableRtl()?-1*(c.offsetWidth+1):1},a))},anchorToElement:r,ariaLabel:l("ariaLabelContextMenu","Context Menu")});return f&&(u.classList.add(Rw),h.afterGuiAttached({container:"contextMenu",hidePopup:f.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=h,h.addEventListener(Ai.EVENT_DESTROYED,(function(){o.activeMenu===h&&(o.activeMenu=null)})),f&&h.addEventListener(hd.EVENT_MENU_ITEM_SELECTED,f.hideFunc),!0},Sw([Dt("popupService")],i.prototype,"popupService",void 0),Sw([It("rangeService")],i.prototype,"rangeService",void 0),Sw([Dt("ctrlsService")],i.prototype,"ctrlsService",void 0),Sw([Dt("columnModel")],i.prototype,"columnModel",void 0),Sw([Pt("contextMenuFactory")],i)}(Ai),Aw=function(t){function i(i){var n=t.call(this,'<div class="ag-menu" role="presentation"></div>')||this;return n.menuList=null,n.focusedCell=null,n.menuItems=i,n}return Cw(i,t),i.prototype.addMenuItems=function(){var t=this,i=this.createManagedBean(new ed),n=this.menuItemMapper.mapWithStockItems(this.menuItems,null);i.addMenuItems(n),this.appendChild(i),this.menuList=i,i.addEventListener(hd.EVENT_MENU_ITEM_SELECTED,(function(i){return t.dispatchEvent(i)}))},i.prototype.afterGuiAttached=function(t){t.hidePopup&&this.addDestroyFunc(t.hidePopup),this.focusedCell=this.focusService.getFocusedCell(),this.menuList&&this.focusService.focusInto(this.menuList.getGui())},i.prototype.restoreFocusedCell=function(){var t=this.focusService.getFocusedCell();if(t&&this.focusedCell&&this.cellPositionUtils.equals(t,this.focusedCell)){var i=this.focusedCell,n=i.rowIndex,e=i.rowPinned,r=i.column,o=this.gridOptionsWrapper.getDocument();o.activeElement===o.body&&this.focusService.setFocusedCell({rowIndex:n,column:r,rowPinned:e,forceBrowserFocus:!0})}},i.prototype.destroy=function(){this.restoreFocusedCell(),t.prototype.destroy.call(this)},Sw([Dt("menuItemMapper")],i.prototype,"menuItemMapper",void 0),Sw([Dt("focusService")],i.prototype,"focusService",void 0),Sw([Dt("cellPositionUtils")],i.prototype,"cellPositionUtils",void 0),Sw([Ft],i.prototype,"addMenuItems",null),i}(io),jw=function(){var t=function(i,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])},t(i,n)};return function(i,n){function e(){this.constructor=i}t(i,n),i.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}}(),_w=function(t,i,n,e){var r,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(i,n,s):r(i,n))||s);return o>3&&s&&Object.defineProperty(i,n,s),s},Gw=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return jw(i,t),i.prototype.mapWithStockItems=function(t,i){var n=this;if(!t)return[];var e=[];return t.forEach((function(t){var r;if(r="string"==typeof t?n.getStockMenuItem(t,i):t){var o=r.subMenu;o&&o instanceof Array&&(r.subMenu=n.mapWithStockItems(r.subMenu,i)),null!=r&&e.push(r)}})),e},i.prototype.getStockMenuItem=function(t,i){var n=this,e=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();switch(t){case"pinSubMenu":return{name:e("pinColumn","Pin Column"),icon:Wr.createIconNoSpan("menuPin",this.gridOptionsWrapper,null),subMenu:["pinLeft","pinRight","clearPinned"]};case"pinLeft":return{name:e("pinLeft","Pin Left"),action:function(){return n.columnModel.setColumnPinned(i,Vt.PINNED_LEFT,"contextMenu")},checked:!!i&&i.isPinnedLeft()};case"pinRight":return{name:e("pinRight","Pin Right"),action:function(){return n.columnModel.setColumnPinned(i,Vt.PINNED_RIGHT,"contextMenu")},checked:!!i&&i.isPinnedRight()};case"clearPinned":return{name:e("noPin","No Pin"),action:function(){return n.columnModel.setColumnPinned(i,null,"contextMenu")},checked:!!i&&!i.isPinned()};case"valueAggSubMenu":return Ut.assertRegistered(Nt.RowGroupingModule,"Aggregation from Menu")?{name:e("valueAggregation","Value Aggregation"),icon:Wr.createIconNoSpan("menuValue",this.gridOptionsWrapper,null),subMenu:this.createAggregationSubMenu(i)}:null;case"autoSizeThis":return{name:e("autosizeThiscolumn","Autosize This Column"),action:function(){return n.columnModel.autoSizeColumn(i,r,"contextMenu")}};case"autoSizeAll":return{name:e("autosizeAllColumns","Autosize All Columns"),action:function(){return n.columnModel.autoSizeAllColumns(r,"contextMenu")}};case"rowGroup":return{name:e("groupBy","Group by")+" "+Wr.escapeString(this.columnModel.getDisplayNameForColumn(i,"header")),action:function(){return n.columnModel.addRowGroupColumn(i,"contextMenu")},icon:Wr.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null)};case"rowUnGroup":return{name:e("ungroupBy","Un-Group by")+" "+Wr.escapeString(this.columnModel.getDisplayNameForColumn(i,"header")),action:function(){return n.columnModel.removeRowGroupColumn(i,"contextMenu")},icon:Wr.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null)};case"resetColumns":return{name:e("resetColumns","Reset Columns"),action:function(){return n.columnModel.resetColumnState("contextMenu")}};case"expandAll":return{name:e("expandAll","Expand All"),action:function(){return n.gridApi.expandAll()}};case"contractAll":return{name:e("collapseAll","Collapse All"),action:function(){return n.gridApi.collapseAll()}};case"copy":return Ut.assertRegistered(Nt.ClipboardModule,"Copy from Menu")?{name:e("copy","Copy"),shortcut:e("ctrlC","Ctrl+C"),icon:Wr.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.copyToClipboard()}}:null;case"copyWithHeaders":return Ut.assertRegistered(Nt.ClipboardModule,"Copy with Headers from Menu")?{name:e("copyWithHeaders","Copy with Headers"),icon:Wr.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.copyToClipboard({includeHeaders:!0})}}:null;case"copyWithGroupHeaders":return Ut.assertRegistered(Nt.ClipboardModule,"Copy with Group Headers from Menu")?{name:e("copyWithGroupHeaders","Copy with Group Headers"),icon:Wr.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}}:null;case"paste":return Ut.assertRegistered(Nt.ClipboardModule,"Paste from Clipboard")?{name:e("paste","Paste"),shortcut:e("ctrlV","Ctrl+V"),disabled:!0,icon:Wr.createIconNoSpan("clipboardPaste",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.pasteFromClipboard()}}:null;case"export":var o=[],s=Ut.isRegistered(Nt.CsvExportModule),u=Ut.isRegistered(Nt.ExcelExportModule);return!this.gridOptionsWrapper.isSuppressCsvExport()&&s&&o.push("csvExport"),!this.gridOptionsWrapper.isSuppressExcelExport()&&u&&o.push("excelExport"),{name:e("export","Export"),subMenu:o,icon:Wr.createIconNoSpan("save",this.gridOptionsWrapper,null)};case"csvExport":return{name:e("csvExport","CSV Export"),icon:Wr.createIconNoSpan("csvExport",this.gridOptionsWrapper,null),action:function(){return n.gridApi.exportDataAsCsv({})}};case"excelExport":return{name:e("excelExport","Excel Export"),icon:Wr.createIconNoSpan("excelExport",this.gridOptionsWrapper,null),action:function(){return n.gridApi.exportDataAsExcel()}};case"separator":return"separator";default:return this.getChartItems(t)||(console.warn("AG Grid: unknown menu item type "+t),null)}},i.prototype.getChartItems=function(t){var i=this,n=this.gridOptionsWrapper.getLocaleTextFunc(),e=function(t,e,r){return{name:n(t,e),action:function(){return i.chartService.createPivotChart({chartType:r})}}},r=function(t,e,r){return{name:n(t,e),action:function(){return i.chartService.createChartFromCurrentRange(r)}}};switch(t){case"pivotChart":return{name:n("pivotChart","Pivot Chart"),subMenu:["pivotColumnChart","pivotBarChart","pivotPieChart","pivotLineChart","pivotXYChart","pivotAreaChart"],icon:Wr.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"chartRange":return{name:n("chartRange","Chart Range"),subMenu:["rangeColumnChart","rangeBarChart","rangePieChart","rangeLineChart","rangeXYChart","rangeAreaChart","rangeHistogramChart","rangeCombinationChart"],icon:Wr.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"pivotColumnChart":return{name:n("columnChart","Column"),subMenu:["pivotGroupedColumn","pivotStackedColumn","pivotNormalizedColumn"]};case"pivotGroupedColumn":return e("groupedColumn","Grouped&lrm;","groupedColumn");case"pivotStackedColumn":return e("stackedColumn","Stacked&lrm;","stackedColumn");case"pivotNormalizedColumn":return e("normalizedColumn","100% Stacked&lrm;","normalizedColumn");case"rangeColumnChart":return{name:n("columnChart","Column"),subMenu:["rangeGroupedColumn","rangeStackedColumn","rangeNormalizedColumn"]};case"rangeGroupedColumn":return r("groupedColumn","Grouped&lrm;","groupedColumn");case"rangeStackedColumn":return r("stackedColumn","Stacked&lrm;","stackedColumn");case"rangeNormalizedColumn":return r("normalizedColumn","100% Stacked&lrm;","normalizedColumn");case"pivotBarChart":return{name:n("barChart","Bar"),subMenu:["pivotGroupedBar","pivotStackedBar","pivotNormalizedBar"]};case"pivotGroupedBar":return e("groupedBar","Grouped&lrm;","groupedBar");case"pivotStackedBar":return e("stackedBar","Stacked&lrm;","stackedBar");case"pivotNormalizedBar":return e("normalizedBar","100% Stacked&lrm;","normalizedBar");case"rangeBarChart":return{name:n("barChart","Bar"),subMenu:["rangeGroupedBar","rangeStackedBar","rangeNormalizedBar"]};case"rangeGroupedBar":return r("groupedBar","Grouped&lrm;","groupedBar");case"rangeStackedBar":return r("stackedBar","Stacked&lrm;","stackedBar");case"rangeNormalizedBar":return r("normalizedBar","100% Stacked&lrm;","normalizedBar");case"pivotPieChart":return{name:n("pieChart","Pie"),subMenu:["pivotPie","pivotDoughnut"]};case"pivotPie":return e("pie","Pie&lrm;","pie");case"pivotDoughnut":return e("doughnut","Doughnut&lrm;","doughnut");case"rangePieChart":return{name:n("pieChart","Pie"),subMenu:["rangePie","rangeDoughnut"]};case"rangePie":return r("pie","Pie&lrm;","pie");case"rangeDoughnut":return r("doughnut","Doughnut&lrm;","doughnut");case"pivotLineChart":return e("line","Line&lrm;","line");case"rangeLineChart":return r("line","Line&lrm;","line");case"pivotXYChart":return{name:n("xyChart","X Y (Scatter)"),subMenu:["pivotScatter","pivotBubble"]};case"pivotScatter":return e("scatter","Scatter&lrm;","scatter");case"pivotBubble":return e("bubble","Bubble&lrm;","bubble");case"rangeXYChart":return{name:n("xyChart","X Y (Scatter)"),subMenu:["rangeScatter","rangeBubble"]};case"rangeScatter":return r("scatter","Scatter&lrm;","scatter");case"rangeBubble":return r("bubble","Bubble&lrm;","bubble");case"pivotAreaChart":return{name:n("areaChart","Area"),subMenu:["pivotArea","pivotStackedArea","pivotNormalizedArea"]};case"pivotArea":return e("area","Area&lrm;","area");case"pivotStackedArea":return e("stackedArea","Stacked&lrm;","stackedArea");case"pivotNormalizedArea":return e("normalizedArea","100% Stacked&lrm;","normalizedArea");case"rangeAreaChart":return{name:n("areaChart","Area"),subMenu:["rangeArea","rangeStackedArea","rangeNormalizedArea"]};case"rangeArea":return r("area","Area&lrm;","area");case"rangeStackedArea":return r("stackedArea","Stacked&lrm;","stackedArea");case"rangeNormalizedArea":return r("normalizedArea","100% Stacked&lrm;","normalizedArea");case"rangeHistogramChart":return r("histogramChart","Histogram&lrm;","histogram");case"rangeColumnLineCombo":return r("columnLineCombo","Column & Line&lrm;","columnLineCombo");case"rangeAreaColumnCombo":return r("AreaColumnCombo","Area & Column&lrm;","areaColumnCombo");case"rangeCombinationChart":return{name:n("combinationChart","Combination"),subMenu:["rangeColumnLineCombo","rangeAreaColumnCombo"]};default:return null}},i.prototype.createAggregationSubMenu=function(t){var i,n=this,e=this.gridOptionsWrapper.getLocaleTextFunc();if(t.isPrimary())i=t;else{var r=t.getColDef().pivotValueColumn;i=Wr.exists(r)?r:void 0}var o=[];if(i){var s=i.isValueActive();this.aggFuncService.getFuncNames(i).forEach((function(t){o.push({name:e(t,t),action:function(){n.columnModel.setColumnAggFunc(i,t,"contextMenu"),n.columnModel.addValueColumn(i,"contextMenu")},checked:s&&i.getAggFunc()===t})}))}return o},_w([Dt("columnModel")],i.prototype,"columnModel",void 0),_w([Dt("gridApi")],i.prototype,"gridApi",void 0),_w([It("clipboardService")],i.prototype,"clipboardService",void 0),_w([It("aggFuncService")],i.prototype,"aggFuncService",void 0),_w([It("chartService")],i.prototype,"chartService",void 0),_w([Pt("menuItemMapper")],i)}(Ai),xw={moduleName:Nt.MenuModule,beans:[ww,Ow,Gw],dependantModules:[Kp]};function Mw(){const t=["2909523kXwted","CompanyName=Sankhya Jiva Tecnologia e Inovao Ltda,LicensedApplication=Sankhya Gestao,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=2,LicensedProductionInstancesCount=0,AssetReference=AG-019460,ExpiryDate=9_November_2022_[v2]_MTY2Nzk1MjAwMDAwMA==10487151e296ee4360f80961ca960869","1131048CARoeW","502909mLEPmu","447255iQEXuN","428UHbJwW","270AFTxAV","194369jhGqTI","1540nWuTrj","2044062GicUQI","30CkXPWg"];return(Mw=function(){return t})()}const Fw=kw;function kw(t,i){const n=Mw();return(kw=function(t){return n[t-=392]})(t,i)}!function(){const t=kw,i=Mw();for(;;)try{if(951926==-parseInt(t(398))/1+-parseInt(t(393))/2+parseInt(t(395))/3+-parseInt(t(400))/4*(parseInt(t(392))/5)+-parseInt(t(401))/6*(-parseInt(t(402))/7)+parseInt(t(397))/8+-parseInt(t(399))/9*(-parseInt(t(394))/10))break;i.push(i.shift())}catch(t){i.push(i.shift())}}();const Pw=Fw(396);class Dw{configFilterColumn(t){this._filterColumn=t,this._filterColumn.addEventListener("applyFilterColumnOptions",this.handleFilteredColumnsChanged.bind(this))}handleFilteredColumnsChanged(t){const i=t.detail;this._filteredColumns.set(i.field,i.values),this._gridOptions.api.refreshHeader(),this._dataUnit.loadData(void 0,void 0,void 0,B)}clearFilter(){this._filteredColumns.clear(),this._gridOptions.api.refreshHeader()}showFilterColumn(t){var i;const n=this.resolveDescriptionColMetadata(t.columnName);null===(i=this._filterColumn)||void 0===i||i.show(Object.assign(Object.assign({},t),{fieldDescriptor:n}))}constructor(t){this.DEFAULT_ROW_HEIGHT=30,this.DEFAULT_HEADER_ROW_HEIGHT=32,this.CHECK_BOX_COL_ID="checkBoxColumn",this.STATUS_COL_ID="statusColumn",this.RECORD_ARCHIVE_COL_ID="__RECORD_ARCHIVE__",this.BLOCK_LOAD_DEBOUNCE=100,this.DEFAULT_FONT_SIZE=14,this.DEFAULT_FONT_SIZE_HTML5=32,this.DEFAULT_ICON_SIZE=12,this.DEFAULT_MAX_SIZE=200,this._menuItems=[],this._idAttribName="__record__id__",this._gridConfig=[],this._filteredColumns=new Map,this._filterColumnleftPosition=0,this._customFormatters=new Map,this._gridShowDom=!1,this.peddingExecutionsOnGridShow=[],this._lastColsConfig=void 0,Ut.registerModules([Kp,Fg,gm,Pm,xw])}getGridConfig(){return this._gridConfig}locateColumn(t,i){this._gridOptions.api.ensureColumnVisible(t),requestAnimationFrame((()=>{this.highlightColumnHeader(t,i)}))}highlightColumnHeader(t,i){const n=i.querySelector(`.ag-header-cell[col-id="${t}"]`);if(!n)return;n.classList.add("ez-grid__column-highlight-header"),n.setAttribute("tabindex","0");const e=t=>{n.contains(t.target)||(n.classList.remove("ez-grid__column-highlight-header"),document.removeEventListener("click",e))};document.addEventListener("click",e)}getSort(t,i){const n=[];return this._gridOptions.columnApi.getColumnState().sort(((t,i)=>t.sortIndex-i.sortIndex)).forEach((({colId:t,sort:i})=>{if(i){const e=this._dataUnit.getField(t),r="asc"===i?m.ASC:m.DESC;n.push(e?{field:e.name,dataType:e.dataType,mode:r}:{field:t,dataType:v.TEXT,mode:r})}})),0===n.length&&void 0===this._gridConfig?i:n}getFilter(){if(this._filteredColumns&&0!==this._filteredColumns.size)return Array.from(this._filteredColumns.entries()).map((([t,i])=>{var n;const e=i.filter((t=>t.check));if(e.length>0){let i=t;const r=this.getCodeColFromDescriptionCol(t);l.isEmpty(r)||(i=r);const o=this._dataUnit.getField(i),s=null!==(n=null==o?void 0:o.dataType)&&void 0!==n?n:v.TEXT;let u="";const h=[];let c;return e.forEach((t=>{const n=`PARAM_${i}_${h.length+1}`;h.push({dataType:s===v.OBJECT?v.TEXT:s,name:n,value:t.value}),null==t.value?c=!0:(u.length>0&&(u+=","),u=`${u}:${n}`)})),{name:`${L}${i}`,expression:this.getExpression(s,i,u,c),params:h}}})).filter((t=>null!=t))}getExpression(t,i,n,e){const r=t===v.DATE?`onlydate(this.${i})`:`this.${i}`;return n.length>0&&e?`(${r} in (${n}) OR ${i} IS NULL)`:e?`${i} IS NULL`:`${r} in (${n})`}initDatagrid(t,i){var n;this._options=i,this._container=t;const e=(null==i?void 0:i.enableLockManagerTaskbarClick)?null==f?void 0:f.addLockManagerCtxId(this._container):null;let r;if(null==i?void 0:i.enableLockManagerLoadingComp){const t=null==f?void 0:f.addLockManagerCtxId(this._container);r=null==f?void 0:f.lock(t,d.APP_LOADING)}if(void 0===this._grid){Np.setLicenseKey(Pw),this._i18n=i.i18n,this._columnStateChangeCallback=i.onColumnStateChange,this._selectionChangeCallback=i.onSelectionChange,this._doubleClickCallBack=i.onDoubleClick,this._multipleSelection=i.allowMultipleSelection,this._dataUnit=i.dataUnit,this._editionManager=new ag(this._dataUnit,i.useEnterLikeTab,i.recordsValidator,i.editionIsDisabled,i.customEditors||this._customEditors,i.customRenders||this._customRenders,i.enableContinuousInsert,i.enableGridInsert,e),this._statusResolver=i.statusResolver,this._dataUnit&&(this._dataUnit.sortingProvider=this,this._dataUnit.addFilterProvider(this)),this._gridOptions={suppressHorizontalScroll:i.suppressHorizontalScroll,localeText:(o=this._options.i18n,{page:o("ez-grid.pageLabel"),more:o("ez-grid.remainingPageLabel"),to:o("ez-grid.remainingTotalLabel"),of:o("ez-grid.remainingTotalLabel"),next:o("ez-grid.nextPage"),previous:o("ez-grid.previousPage"),loadingOoo:o("app.loading"),noRowsToShow:o("ez-grid.noRowsToShow"),pinColumn:o("ez-grid.pinColumn"),unpinColumn:o("ez-grid.unpinColumn"),filterOoo:o("ez-grid.filter"),sortAscending:o("ez-grid.sortAscending"),sortDescending:o("ez-grid.sortDescending"),last:o("ez-grid.last"),first:o("ez-grid.first"),selectAll:o("ez-grid.selectAll"),searchOoo:o("ez-grid.searchOoo"),blanks:o("ez-grid.blanks"),applyFilter:o("ez-grid.applyFilter"),equals:o("ez-grid.equals"),lessThan:o("ez-grid.lessThan"),greaterThan:o("ez-grid.greaterThan"),contains:o("ez-grid.contains"),startsWith:o("ez-grid.startsWith"),endsWith:o("ez-grid.endsWith"),group:o("ez-grid.group"),columns:o("ez-grid.columns"),rowGroupColumns:o("ez-grid.rowGroupColumns"),rowGroupColumnsEmptyMessage:o("ez-grid.rowGroupColumnsEmptyMessage"),valueColumns:o("ez-grid.valueColumns"),pivotMode:o("ez-grid.pivotMode"),groups:o("ez-grid.groups"),values:o("ez-grid.values"),pivots:o("ez-grid.pivots"),valueColumnsEmptyMessage:o("ez-grid.valueColumnsEmptyMessage"),pivotColumnsEmptyMessage:o("ez-grid.pivotColumnsEmptyMessage"),toolPanelButton:o("ez-grid.toolPanelButton"),valueAggregation:o("ez-grid.valueAggregation"),autosizeThiscolumn:o("ez-grid.autosizeThiscolumn"),autosizeAllColumns:o("ez-grid.autosizeAllColumns"),groupBy:o("ez-grid.groupBy"),ungroupBy:o("ez-grid.ungroupBy"),resetColumns:o("ez-grid.resetColumns"),expandAll:o("ez-grid.expandAll"),collapseAll:o("ez-grid.collapseAll"),toolPanel:o("ez-grid.toolPanel"),export:o("ez-grid.export"),csvExport:o("ez-grid.csvExport"),excelExport:o("ez-grid.excelExport"),pinLeft:o("ez-grid.pinLeft"),pinRight:o("ez-grid.pinRight"),noPin:o("ez-grid.noPin"),sum:o("ez-grid.sum"),min:o("ez-grid.min"),max:o("ez-grid.max"),none:o("ez-grid.none"),count:o("ez-grid.count"),average:o("ez-grid.average"),copy:o("ez-grid.copy"),copyWithHeaders:o("ez-grid.copyWithHeaders"),copyWithGroupHeaders:o("ez-grid.copyWithGroupHeaders"),ctrlC:o("ez-grid.ctrlC"),paste:o("ez-grid.paste"),ctrlV:o("ez-grid.ctrlV")}),enableRangeSelection:this._multipleSelection,rowSelection:this._multipleSelection?"multiple":"single",sortingOrder:["desc","asc",null],blockLoadDebounceMillis:this.BLOCK_LOAD_DEBOUNCE,navigateToNextCell:this.navigateToNextCell.bind(this),getRowNodeId:this._dataUnit?t=>"string"==typeof t?t:t[this._idAttribName]:void 0,getMainMenuItems:t=>this.buildMenuItemOptions(t),postProcessPopup:t=>this.setFilterColumnLeftPosition(t),getRowHeight:this.getRowHeight.bind(this),defaultColDef:{headerClass:"ez-grid__cell-header",cellClass:"ez-grid__cell-body",cellClassRules:{invalidValue:t=>this._editionManager.hasInvalidField(t.colDef.field,t.data.__record__id__)},cellStyle:{height:"100%"}},rowClassRules:{"row-striped":({node:t})=>i.enableRowTableStriped&&t.rowIndex%2==0},suppressFieldDotNotation:!0,components:Object.assign({ezGridHeaderComponent:Zp,ezGridCustomHeader:Yp},this._editionManager.getComponents()),context:{editionManager:this._editionManager,dataUnit:this._dataUnit,headerCheckStatusGetter:()=>this.getSelectionHeaderStatus(),headerCheckStatusSetter:t=>this.updateSelectionForAll(t)},processCellForClipboard:this.processFormatterCellCallback,defaultExcelExportParams:{processCellCallback:this.processFormatterCellCallback},defaultCsvExportParams:{processCellCallback:this.processFormatterCellCallback}},this.defineRowModelType(this._gridOptions,i,r),this.setOptionsEvents(this._gridOptions),this.setOptionsSupress(this._gridOptions),this._gridOptions=this._editionManager.configureGrid(this._gridOptions),this._grid=new Dp(t,this._gridOptions);const s=null===(n=this._dataUnit)||void 0===n?void 0:n.getSelectionInfo();(null==s?void 0:s.isAllRecords())?this.selectAll(!0):this.selectRows((null==s?void 0:s.recordIds)||[],!0),this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight()),this._customFormatters=i.customFormatters,this.observer=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting?(this._gridShowDom=!0,this.peddingExecutionsOnGridShow.forEach((t=>t())),this.peddingExecutionsOnGridShow=[]):this._gridShowDom=!1}))}),{root:null,threshold:.1}),this.observer.observe(t)}var o}processFormatterCellCallback(t){const i=t.column.getColDef();return"function"==typeof i.valueFormatter?i.valueFormatter({value:t.value,data:t.node.data,node:t.node,colDef:i,column:t.column,api:t.api,columnApi:t.columnApi,context:t.context}):t.value}setFilterColumnLeftPosition({type:t,ePopup:i}){"columnMenu"!==t||(this._filterColumnleftPosition=i.getBoundingClientRect().left)}buildMenuItemOptions(t){const i=[];return t.column.getColDef().sortable&&(i.push(this.buildMenuItemOptionSort(t,"asc")),i.push(this.buildMenuItemOptionSort(t,"desc")),this._options.suppressFilterColumn||i.push(this.buildMenuItemFilterColumn(t))),this._menuItems.forEach((n=>i.push({icon:n.icon,name:n.label,action:()=>n.action(t)}))),i.push(this.buildMenuItemOptionPin(t)),i}buildMenuItemOptionSort(t,i){return{icon:"asc"===i?"<i class='ez-icon-ordem-ascendente'></i>":"<i class='ez-icon-ordem-descendente'></i>",name:this._i18n("asc"===i?"ez-grid.sortAscending":"ez-grid.sortDescending"),action:()=>this.sortDataByColumn(t,i)}}buildMenuItemFilterColumn(t){const i=t.column.getId(),n=t.column.getColDef().headerName;return{icon:"<i class='ez-icon-filter'></i>",name:this._i18n("ez-grid.filter"),action:()=>this.showFilterColumn({columnName:i,columnLabel:n,leftPosition:this._filterColumnleftPosition,filteredOptions:this._filteredColumns.get(i)})}}resolveDescriptionColMetadata(t){var i;const n=null===(i=this._gridOptions.columnApi.getColumn(t))||void 0===i?void 0:i.getColDef(),e=this.getCodeColFromDescriptionCol(t);if(!l.isEmpty(e))return{label:n.headerName,name:t,userInterface:h.SHORTTEXT,dataType:v.TEXT,properties:{[W]:e}}}buildMenuItemOptionPin(t){const{column:i,columnApi:n}=t,e=t.column.isPinned();return{icon:`<i class='ez-icon-${e?"un-pin":"push-pin"}'></i>`,name:this._i18n(e?"ez-grid.unpinColumn":"ez-grid.pinColumn"),action:()=>{n.applyColumnState({state:[{colId:i.getColId(),pinned:i.isPinned()?null:"left"}]})}}}sortDataByColumn(t,i){const n=t.column,e=t.columnApi;n.getSort()===i?e.applyColumnState({defaultState:{sort:null}}):e.applyColumnState({state:[{colId:n.getColId(),sort:i}],defaultState:{sort:null}})}getRowHeight(){return this.DEFAULT_ROW_HEIGHT}getHeaderRowHeight(){return this.DEFAULT_HEADER_ROW_HEIGHT}navigateToNextCell(t){var i,n,e,r,o,s,u,h,c;switch(t.key){case"ArrowUp":return!1===(null===(i=this._dataUnit)||void 0===i?void 0:i.hasPrevious())?null:(this._gridOptions.api.deselectAll(),(null===(n=t.nextCellPosition)||void 0===n?void 0:n.rowIndex)<0?(null===(e=this._dataUnit)||void 0===e||e.previousRecord(),null):(null===(r=this._dataUnit)||void 0===r||r.setSelectionByIndex([t.nextCellPosition.rowIndex]),t.nextCellPosition));case"ArrowDown":return!1===(null===(o=this._dataUnit)||void 0===o?void 0:o.hasNext())?null:(this._gridOptions.api.deselectAll(),(null===(s=t.nextCellPosition)||void 0===s?void 0:s.rowIndex)?null===(u=this._dataUnit)||void 0===u||u.setSelectionByIndex([t.nextCellPosition.rowIndex]):null===(h=this._dataUnit)||void 0===h||h.nextRecord(),t.nextCellPosition);case"ArrowLeft":case"ArrowRight":return""!==(null===(c=t.nextCellPosition)||void 0===c?void 0:c.column.colDef.headerName)?t.nextCellPosition:null}return null}defineRowModelType(t,i,n){null!=this._dataUnit&&(t.rowModelType="serverSide",t.serverSideDatasource=this._dataSource=new qp(this._dataUnit,this,i,n),t.serverSideSortOnServer=!0,t.columnDefs=this._colDefs)}setOptionsEvents(t){t.onSortChanged=t=>this.onCallStateChange("sort",t),t.onColumnResized=t=>this.onCallStateChange("columnResize",t),t.onColumnPinned=t=>this.onCallStateChange("columnPinned",t),t.onColumnMoved=t=>this.onCallStateChange("columnMoved",t),t.onColumnVisible=t=>this.onCallStateChange("visibleChange",t),t.onSelectionChanged=t=>this.onSelectionChange(t),t.onRowDoubleClicked=t=>this.onRowDoubleClick(t),t.onDragStopped=t=>this.onCallStateChange("columnMovedEnd",t),t.onCellClicked=t=>this.onCellClicked(t)}setOptionsSupress(t){t.suppressDragLeaveHidesColumns=!0,t.suppressMenuHide=!0}getSelectionHeaderStatus(){const t=this._dataUnit.records;if(t&&0===t.length)return!1;const i=this._dataUnit.getSelectionInfo();if(i.isAllRecords())return!0;const n=i.recordIds;if(null==n||0===n.length)return!1;let e;for(let i=0;i<t.length;i++){const r=n.includes(t[i].__record__id__);if(null!=e&&r!==e)return;e=r}return e}updateSelectionForAll(t){t?this._dataUnit.selectAllRecords():this._dataUnit.unSelectAllRecords()}setData(t){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");this._gridOptions.api.setRowData(t)}addRows(){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.")}updateRows(t){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");null==t||t.forEach((t=>this.updateRowData(t)))}updateRowData(t){this._gridOptions.api.getRowNode(t[this._idAttribName]).setData(Object.assign({},t)),this._editionManager.updateCurrentEditorGuiValue(t),this._editionManager.recordValidate()}selectAll(t=!1){try{this._gridOptions.context.selectionChangeQuietly=t,this._gridOptions.api.forEachNode((t=>{t.isSelected()||t.setSelected(!0)}))}finally{const t=Object.assign({},this._gridOptions.context);delete t.selectionChangeQuietly,this._gridOptions.context=t}}selectRows(t,i=!1){var n;try{if(this._gridOptions.context.selectionChangeQuietly=i,void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");let e;this._gridOptions.api.forEachNode((i=>{t&&t.includes(i.id)?i.isSelected()||(i.setSelected(!0),e=i):i.isSelected()&&i.setSelected(!1)}));const r=this._gridOptions.context.selectionHeader;r&&r.updateCheckbox(),e&&(null===(n=this._gridOptions.api)||void 0===n||n.ensureNodeVisible(e))}finally{const t=Object.assign({},this._gridOptions.context);delete t.selectionChangeQuietly,this._gridOptions.context=t}}removeRows(){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");this._gridOptions.api.refreshServerSide({purge:!0})}changeValues(t,i){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");if(t){let n;i?(n=[],i.forEach((t=>{const i=this._gridOptions.api.getRowNode(t);i&&n.push(i)}))):n=this._gridOptions.api.getSelectedNodes(),n.forEach((i=>{const n=i.data;Object.entries(t).forEach((([t,i])=>{n[t]=i})),i.setData(n)})),this._gridOptions.api.refreshCells({force:!0});const e=this._editionManager.getNextInvalidCell();if(e){const t=this._gridOptions.api.getRowNode(e.recordId);t&&e.field&&this.startEdition(t.rowIndex,this._gridOptions.columnApi.getColumn(e.field.name))}}}savingCanceled(t,i){if(!this._gridShowDom)return;const n=this._gridOptions.columnApi.getAllDisplayedColumns(),e=this._gridOptions.api.getRowNode(i).rowIndex,r=n.find((i=>this.isColumnEditable(e,i)&&t.find((t=>t.name===i.getColId()))));this.focusByCollAndRow(r,e),this.startEdition(e,r)}refresh(t=!1){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");this._gridOptions.api.clearRangeSelection(),this._gridOptions.api.refreshServerSide({purge:!0}),this._options.onRefresh(),t&&this.scrollToSelectedRow()}scrollToSelectedRow(){const t=this._gridOptions.api.getSelectedNodes();t&&0!==t.length&&(this._gridShowDom?this._gridOptions.api.ensureNodeVisible(t[0]):this.peddingExecutionsOnGridShow.push((()=>this._gridOptions.api.ensureNodeVisible(t[0]))))}focusOnGridContainer(){this._container.setAttribute("tabindex","-1"),this._container.focus()}setFocus(){var t,i;(null===(i=null===(t=this._dataUnit)||void 0===t?void 0:t.records)||void 0===i?void 0:i.length)?this._dataUnit.getSelectedRecord()?this.syncSelectWithDataUnit():this.setFocusFirstRow():this.focusOnGridContainer()}setAutoFocus(t){var i;null===(i=this._dataSource)||void 0===i||i.setAutoFocus(t)}setEnableGridInsert(t){var i;null===(i=this._dataSource)||void 0===i||i.setEnableGridInsert(t)}setEnableContinuousInsert(t){var i;null===(i=this._editionManager)||void 0===i||i.setEnableContinuousInsert(t)}setFocusFirstRow(){const t=this._gridOptions.api.getDisplayedRowAtIndex(0);t?this.setFocusOnRow(t.rowIndex):this.focusOnGridContainer()}setFocusLastRow(){const t=this._gridOptions.api.getDisplayedRowAtIndex(this._gridOptions.api.getLastDisplayedRow());t&&this.setFocusOnRow(t.rowIndex)}startEditionOnRowByIndex(t){this._dataUnit.setSelectionByIndex([t]);const i=this.getFirstEditableColl(t);i&&(this.focusByCollAndRow(i,t),this.startEdition(t,i))}startEditionOnLastRow(){var t;if(this._gridShowDom){const i=(null===(t=this._dataUnit.records)||void 0===t?void 0:t.length)-1;this.startEditionOnRowByIndex(i)}}syncSelectWithDataUnit(){const t=this._gridOptions.api.getRowNode(this._dataUnit.getSelectedRecord().__record__id__);if(!t||(null==t?void 0:t.rowIndex)<0)return;const i=this._gridOptions.api.getCellRanges().find((i=>i.startRow.rowIndex===t.rowIndex));if((null==i?void 0:i.columns.length)>0)return this._dataUnit.hasNewRecord()?void this.startEdition(t.rowIndex,i.columns[0]):(this.focusByCollAndRow(i.columns[0],t.rowIndex),void this._gridOptions.api.addCellRange({rowStartIndex:t.rowIndex,rowEndIndex:t.rowIndex,columns:i.columns}));this._gridOptions.api.clearRangeSelection(),this.setFocusOnRow(t.rowIndex)}startEdition(t,i){if(!this._gridShowDom)return;this._gridOptions.api.clearRangeSelection(),this._gridOptions.api.addCellRange({rowStartIndex:t,rowEndIndex:t,columns:[i]}),this._gridOptions.api.setFocusedCell(t,i),this._gridOptions.api.startEditingCell({rowIndex:t,colKey:i});const n=this._gridOptions.api.getCellEditorInstances()[0];n&&n.focusIn()}getFirstEditableColl(t){try{return this._gridOptions.columnApi.getAllDisplayedColumns().find((i=>this.isColumnEditable(t,i)))}catch(t){console.warn(t)}}isColumnEditable(t,i){if(""===i.getColDef().headerName||i.getColDef().headerName===this.CHECK_BOX_COL_ID||-1===t)return!1;const n=this._gridOptions.api.getRowNode(this._dataUnit.records[t][this._idAttribName]);return i.isCellEditable(n)}setFocusOnRow(t){let i=this._gridOptions.columnApi.getAllDisplayedColumns().find((t=>""!==t.getColDef().headerName));this.focusByCollAndRow(i,t),this._gridOptions.api.addCellRange({rowStartIndex:t,rowEndIndex:t,columns:[i]})}focusByCollAndRow(t,i){this._gridOptions.api.ensureColumnVisible(t),this._gridOptions.api.ensureIndexVisible(i),this._gridOptions.api.setFocusedCell(i,t)}setColumnsDef(t){const i=Object.assign({colId:this.CHECK_BOX_COL_ID,headerName:this.CHECK_BOX_COL_ID,checkboxSelection:!0,width:29,suppressMovable:!0,suppressAutoSize:!0,suppressMenu:!0,lockPosition:!0,pinned:!0},this._multipleSelection?{headerComponent:"ezGridHeaderComponent",headerClass:"ag-column-select-header"}:{headerComponentParams:{displayName:""}}),n=this._options.suppressCheckBoxCol?[]:[i];null!=this._statusResolver&&n.push({colId:this.STATUS_COL_ID,headerName:"",checkboxSelection:!1,headerCheckboxSelection:!1,width:29,suppressMovable:!0,suppressAutoSize:!0,suppressMenu:!0,lockPosition:!0,pinned:!0,cellRenderer:Jp,cellRendererParams:{statusResolver:this._statusResolver},cellStyle:{"text-align":"center"},suppressNavigable:!0}),t.forEach((t=>{n.push(this.buildColDef(t))})),this._colDefs=n,this._gridOptions&&this._gridOptions.api&&this.setColsDefsWithStateIfNeeded(this._colDefs)}setColsDefsWithStateIfNeeded(t){this._lastColsConfig||this._gridOptions.api.setColumnDefs(this._colDefs);const i=this.getColsDefWithConfigApplied(t,this._lastColsConfig);this._gridOptions.api.setColumnDefs(i)}getColsDefWithConfigApplied(t,i=[]){const n=i.reduce(((t,i,n)=>(t[i.name]=n,t)),{});return t.filter((t=>!n.hasOwnProperty(t.colId))).sort(((t,i)=>{var e,r;return(null!==(e=n[t.field])&&void 0!==e?e:Number.MAX_VALUE)-(null!==(r=n[i.field])&&void 0!==r?r:Number.MAX_VALUE)}))}clearRangeSelection(){this._gridOptions.api.clearRangeSelection()}hideSelectionColumn(){var t,i;null===(i=null===(t=this._gridOptions)||void 0===t?void 0:t.columnApi)||void 0===i||i.setColumnVisible(this.CHECK_BOX_COL_ID,!1)}showSelectionColumn(){var t,i;null===(i=null===(t=this._gridOptions)||void 0===t?void 0:t.columnApi)||void 0===i||i.setColumnVisible(this.CHECK_BOX_COL_ID,!0)}getColumnsDef(){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");return this._gridOptions.columnApi.getColumns().filter((t=>![this.CHECK_BOX_COL_ID,this.STATUS_COL_ID].includes(t.getColId()))).map((t=>{const i=t.getColDef(),n={name:i.field,label:i.headerName};return this.conditionalSet(n,"sortable",i.sortable),this.conditionalSet(n,"resizable",i.resizable),this.conditionalSet(n,"sort",i.sort),this.conditionalSet(n,"sortIndex",i.sortIndex),this.conditionalSet(n,"width",i.width),this.conditionalSet(n,"pinned",null!==i.pinned),this.conditionalSet(n,"hidden",i.hide),n}))}setColumnsState(t){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");this._lastColsConfig=t;const i=this._gridOptions.columnApi.getColumns();let n=this.getColumnsDef(),e=[];const r=i.length-n.length;this._gridConfig=t;let o=[],s=0;t.forEach((i=>{var n,u;const h=this.getColumnWidth(i);this._gridOptions.columnApi.moveColumn(i.name,s+r),this._gridOptions.columnApi.setColumnWidth(i.name,h),e.push(i.name),void 0!==i.ascending&&o.push({colId:i.name,sort:!0!==i.ascending?"desc":"asc",sortIndex:i.orderIndex}),s++;const c=null===(n=this._dataUnit)||void 0===n?void 0:n.getField(i.name);if(this.needToAddDescriptionColumn(i,c,t)){const t=null===(u=null==c?void 0:c.properties)||void 0===u?void 0:u[H];if(!t)return;const i=this._gridOptions.columnApi.getColumn(t),n=null==i?void 0:i.getColDef(),o=this.getColumnWidthByLabel(null==n?void 0:n.headerName);this._gridOptions.columnApi.moveColumn(t,s+r),this._gridOptions.columnApi.setColumnWidth(t,o),e.push(t),s++}}));let u=n.filter((t=>!e.includes(t.name))).map((t=>t.name));this._gridOptions.columnApi.setColumnsVisible(e,!0),this._gridOptions.columnApi.setColumnsVisible(u,!1),this._gridOptions.columnApi.applyColumnState({state:o,defaultState:{sort:null}})}needToAddDescriptionColumn(t,i,n){var e,r;if(!i)return!1;const o=null!==(e=t.configVersion)&&void 0!==e?e:0,s=null===(r=null==i?void 0:i.properties)||void 0===r?void 0:r[H];return(null==i?void 0:i.userInterface)==h.SEARCHPLUS&&o<1&&null!=n.find((t=>t.name===s))}getColumnsState(){if(void 0===this._grid)throw new Error("Erro interno: Grid ainda não inicializado.");return this._gridOptions.columnApi.getColumnState().map((t=>{const i=this._gridOptions.columnApi.getColumn(t.colId),n=i.getColDef(),e=i.getActualWidth(),r={label:n.headerName,name:n.checkboxSelection?"__SELECTION__":t.colId};this.conditionalSet(r,"sort",t.sort),this.conditionalSet(r,"sortIndex",t.sortIndex),this.conditionalSet(r,"width",e),this.conditionalSet(r,"pinned",null!==t.pinned),this.conditionalSet(r,"hidden",t.hide);const o=new Map;return o.set("sortable",n.sortable),this.conditionalSet(r,"props",o),r})).filter((t=>"__SELECTION__"!==t.name&&t.name!==this.STATUS_COL_ID))}getSelection(){return this._gridOptions.api.getSelectedRows()}addColumnMenuItem(t){this._menuItems.map((t=>t.name)).includes(t.name)||this._menuItems.push(t)}quickFilter(t){if(t){const i={term:t,fields:this._gridOptions.columnApi.getColumns().filter((t=>t.isVisible()&&![this.CHECK_BOX_COL_ID,this.STATUS_COL_ID,this.RECORD_ARCHIVE_COL_ID].includes(t.getColId()))).map((t=>t.getColId()))};this._dataSource.quickFilter=i}else this._dataSource.quickFilter=void 0}setSelectedIndex(t){var i;null===(i=this._gridOptions.api.getDisplayedRowAtIndex(t))||void 0===i||i.setSelected(!0)}hasFilterColumn(t){var i;return(null!==(i=this._filteredColumns.get(t))&&void 0!==i?i:[]).map((t=>t.check)).includes(!0)}buildColDef(t){var i,n,e,r,o;let s;const u=l.getBooleanValue(null===(i=t.props)||void 0===i?void 0:i.get("gridSortable"),!0);(null===(n=t.props)||void 0===n?void 0:n.get("gridHeaderTooltip"))?s=null===(e=t.props)||void 0===e?void 0:e.get("gridHeaderTooltip"):!1===u&&(s=this._i18n("ez-grid.columnCantBeOrder"));const c=null===(r=null==t?void 0:t.props)||void 0===r?void 0:r.get(W);return this._editionManager.configureColumn({headerName:t.label,field:t.name,sortable:u,resizable:!0,headerComponent:"ezGridCustomHeader",headerComponentParams:{presentationFrom:c,tooltip:s,isSortable:u,hasFilter:()=>this.hasFilterColumn(t.name),showColumnFilter:i=>this.showFilterColumn({columnName:t.name,columnLabel:t.label,leftPosition:i,filteredOptions:this._filteredColumns.get(t.name),fromIcon:!0})},valueFormatter:i=>{var n,e,r;if(c)return null!==(r=null===(e=null===(n=null==i?void 0:i.data)||void 0===n?void 0:n[c])||void 0===e?void 0:e.label)&&void 0!==r?r:"";if(null==i.value)return"";if(i.value instanceof Promise)return`${this._i18n("app.loading")}...`;if(t.userInterface===h.HTML)return this.setHTMLRender(i,t),"";const o=this._customFormatters.get(t.name);if(o){const n=o.format(i.value,t,i.data.__record__id__);if(n)return n}return this._dataUnit?this._dataUnit.getFormattedValue(t.name,i.value):this.getFormatterByColumn(i,t)},cellStyle:this.getStyleByColumn(t),editable:!(null===(o=t.props)||void 0===o?void 0:o.has(W))})}setHTMLRender(t,i){const n=U.sanitize(t.value);t.colDef.cellRenderer=i=>{if(i.node.rowIndex===t.node.rowIndex){const t=document.createElement("span");return t.innerHTML=n,t}return i.value},t.colDef.cellStyle=n=>{const e=this.getStyleByColumn(i);return n.node.rowIndex===t.node.rowIndex?Object.assign(e,{padding:0}):e}}setCustomFormatters(t){this._customFormatters=t}refreshSelectedRows(){const t=this._gridOptions.api.getSelectedNodes();this._gridOptions.api.redrawRows({rowNodes:t})}getInitCellStyle(){return{"line-height":this.getRowHeight()-1+"px"}}getStyleByColumn(t){var i;let n=this.getInitCellStyle();const e=null===(i=null==t?void 0:t.props)||void 0===i?void 0:i.get("PRIMITIVETUIYPE");switch(null!=e?e:null==t?void 0:t.userInterface){case h.DECIMALNUMBER:case h.INTEGERNUMBER:n["text-align"]="right";break;case h.DATE:case h.DATETIME:case h.TIME:n["text-align"]="center";break;default:n["text-align"]="left"}return n}getFormatterByColumn(t,i){var n,e,r,o;if("OPTIONSELECTOR"===(null==i?void 0:i.userInterface)&&i.options){const n=null==i?void 0:i.options;let e,r;if("string"==typeof n){const t=JSON.parse(n);e=Object.keys(t).map((i=>({value:i,label:t[i]})))}else e=n;return e.forEach((i=>{i.value==t.value&&(r=i)})),null==r?void 0:r.label}if((null==i?void 0:i.userInterface)===h.SWITCH){if("S"===(null==t?void 0:t.value)||!0===(null==t?void 0:t.value)||"true"===(null==t?void 0:t.value))return this._i18n("app.yes");if("N"===(null==t?void 0:t.value)||!1===(null==t?void 0:t.value)||"false"===(null==t?void 0:t.value))return this._i18n("app.no")}if((null==i?void 0:i.userInterface)===h.SEARCH)return null!=(null===(n=null==t?void 0:t.value)||void 0===n?void 0:n.value)?t.value.value+" - "+t.value.label:null==t?void 0:t.value;if((null==i?void 0:i.userInterface)===h.SEARCHPLUS)return null!==(o=null!==(r=null===(e=null==t?void 0:t.value)||void 0===e?void 0:e.value)&&void 0!==r?r:null==t?void 0:t.value)&&void 0!==o?o:"";if((null==i?void 0:i.userInterface)===h.DECIMALNUMBER&&null!=t.value){const n=Number(i.props.get("precision"))||2;return p.format(t.value.toString(),n,n)}if(((null==i?void 0:i.userInterface)===h.DATE||(null==i?void 0:i.userInterface)===h.DATETIME)&&null!=t.value)return t.value.toLocaleDateString();if(((null==i?void 0:i.userInterface)===h.ELAPSEDTIME||(null==i?void 0:i.userInterface)===h.TIME)&&t.value){const i=new g("##:##"),n=String(t.value).padStart(4,"0");return i.format(n)}return(null==i?void 0:i.userInterface)===h.FILE?t.value&&Array.isArray(t.value)?1===t.value.length?t.value[0].name:`${t.value.length} arquivos`:"":void 0}onCallStateChange(t,i){if((!("finished"in i)||i.finished)&&this._columnStateChangeCallback){let n={},e=this.isUIEvent(i.source,i.type);"columnResize"===t&&(n.column={colId:i.column.colId,actualWidth:i.column.actualWidth}),n.isUserChange=e,n.isElementResize=this.isElementResize(i),this._columnStateChangeCallback(t,this.getColumnsState(),n)}}onCellClicked(t){this._editionManager.verifyClickToEdition(t.api,{rowIndex:t.rowIndex,column:t.column,rowPinned:void 0})}isElementResize(t){return t.target&&"eResize"===t.target.getAttribute("ref")}isUIEvent(t,i){return"dragStopped"===i||!!t&&["uiColumnMoved","uiColumnResized","uiColumnDragged","uiColumnExpanded","uiColumnSorted"].includes(t)}onSelectionChange(t){var i,n;const e=null===(n=null===(i=t.api.getSelectedNodes())||void 0===i?void 0:i[0])||void 0===n?void 0:n.id,r=this._dataUnit.isNewRecord(e);this._selectionChangeCallback&&(clearTimeout(this._selectionChangeDeboucing),this._selectionChangeDeboucing=window.setTimeout((async()=>{(r||!e||await this.handleExecuteProceedAutosave())&&this.processBuildSelectionChangeCallback(t)}),0))}async handleExecuteProceedAutosave(){return!this._gridShowDom||await this._editionManager.proceedAutoSave()}processBuildSelectionChangeCallback(t){this._dataUnit?this.handleBuildSelectionChangeWithDU(t.context.selectionChangeQuietly):this.buildSelectionChangeCallback(this._gridOptions.api.getSelectedRows())}handleBuildSelectionChangeWithDU(t){t?this.buildSelectionChangeCallback(this._dataUnit.records):this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows().map((t=>t.__record__id__))).then((t=>this.buildSelectionChangeCallback(t.records)))}buildSelectionChangeCallback(t){this._selectionChangeCallback({selection:t,selectionHeaderStatus:this.getSelectionHeaderStatus()})}onRowDoubleClick(t){var i,n;!this._doubleClickCallBack||this._options.enableGridInsert&&this._dataUnit.hasNewRecord()||(null===(n=null===(i=this._gridOptions)||void 0===i?void 0:i.api)||void 0===n||n.stopEditing(),this._doubleClickCallBack(t.data))}conditionalSet(t,i,n){null!=n&&!1!==n&&(t[i]=n)}processEditionCanceled(){this.clearInvalidCells(!0),this._gridShowDom&&this._dataUnit.clearSelection()}setCellEditors(t){var i,n,e,r,o;if(!this._editionManager)return void(this._customEditors=t);const s=null===(n=null===(i=this._gridOptions)||void 0===i?void 0:i.api)||void 0===n?void 0:n.getEditingCells();this._editionManager.setCellEditors(t),(null==s?void 0:s.length)>0&&this._gridOptions.api.startEditingCell({colKey:null===(r=null===(e=s[0])||void 0===e?void 0:e.column)||void 0===r?void 0:r.getColId(),rowIndex:null===(o=s[0])||void 0===o?void 0:o.rowIndex})}setCellRenders(t){var i,n,e,r,o,s;if(!this._editionManager)return void(this._customRenders=t);this._editionManager.setCellRenders(t);const u=null===(n=null===(i=this._gridOptions)||void 0===i?void 0:i.api)||void 0===n?void 0:n.getEditingCells();null===(e=this._gridOptions)||void 0===e||e.api.redrawRows(),(null==u?void 0:u.length)>0&&this._gridOptions.api.startEditingCell({colKey:null===(o=null===(r=u[0])||void 0===r?void 0:r.column)||void 0===o?void 0:o.getColId(),rowIndex:null===(s=u[0])||void 0===s?void 0:s.rowIndex})}clearInvalidCells(t){this._editionManager&&(this._editionManager.clearInvalidCells(t),this._gridOptions.api.refreshCells({force:!0}))}processContinuousInsert(){this._editionManager.processContinuousInsert()}destroy(){var t;this.observer.disconnect(),null===(t=this._dataSource)||void 0===t||t.destroy()}registryListeners(){var t;null===(t=this._dataSource)||void 0===t||t.registryListeners()}resetPaginationState(){var t,i;null===(i=null===(t=this._gridOptions)||void 0===t?void 0:t.api)||void 0===i||i.clearRangeSelection()}stopEdit(){this._gridOptions.api.stopEditing()}getColumnWidth(t){var i,n,e,r,o,s;if(null==t)return;if(null!=t.customWidth)return t.customWidth;if(null!=t.width&&!isNaN(t.width)){const i=parseInt(t.width);if(i>0)return i+this.DEFAULT_FONT_SIZE_HTML5}const u=null===(i=this._dataUnit)||void 0===i?void 0:i.getField(t.name),c=null!==(n=null==u?void 0:u.label)&&void 0!==n?n:null===(s=null===(o=null===(r=null===(e=this._gridOptions)||void 0===e?void 0:e.columnApi)||void 0===r?void 0:r.getColumn(t.name))||void 0===o?void 0:o.getColDef())||void 0===s?void 0:s.headerName;return(null==u?void 0:u.userInterface)===h.SEARCH?this.DEFAULT_MAX_SIZE:this.getColumnWidthByLabel(c)}getColumnWidthByLabel(t){const i=((null==t?void 0:t.length)||0)*this.DEFAULT_FONT_SIZE+this.DEFAULT_ICON_SIZE;return i>this.DEFAULT_MAX_SIZE?this.DEFAULT_MAX_SIZE:i}getCodeColFromDescriptionCol(t){var i;const n=this._gridOptions.columnApi.getColumn(t),e=null==n?void 0:n.getColDef();return null===(i=null==e?void 0:e.headerComponentParams)||void 0===i?void 0:i.presentationFrom}}function Iw(t){return void 0!==t}function Ew(t,i,n){const e=x();return t?e("utils.selectAllPage"):void 0===n?e("utils.loadingAllRecords",{count:i}):e("utils.selectAllRecords",{total:n})}function Tw(t){return Iw(t)?"":x()("utils.waitForLoad")}function zw(t,i){const n=x();return i?n("utils.allRecordsSelected",{selectionCount:t}):n("utils.selectedRecords",{selectionCount:t,plural:t>1?"s":""})}const Nw=i=>{const{selectionCount:n,currentPageSelected:e,allRecordSelected:r,paginationInfo:o,canSelectAll:s,onSelectAll:u,onSelectPage:h,onClearAll:c,onClose:a,i18n:l}=i,{total:f,hasMore:d,count:v}=o||{};return t("div",Object.assign({class:"ez-box ez-box--shadow-small"},Lw("ezGridSelectionCounter")),t("div",{class:"ez-flex ez-flex--align-items-center ez-size-width--full ez-padding-horizontal--medium"},t("div",{class:"ez-flex ez-flex--wrap ez-flex--align-items-baseline ez-flex--justify-center"},t("label",Object.assign({innerHTML:zw(n,r),class:"ez-text ez-text--primary ez-text--medium ez-margin-right--medium ez-margin-top--medium"},Lw("ezGridSelectionCounter_label"))),t("div",{class:"ez-flex ez-margin-right--medium"},!(!r&&n===f||r&&!d)&&(void 0!==s?s:!!o&&(e||r))&&t("ez-button",Object.assign({key:"selectAllRecordsEzButton",title:Tw(f),enabled:Iw(f),class:"ez-margin-right--medium",label:Ew(r,v,f),mode:"link",onClick:r?h:u},Lw("ezGridSelectionCounter_select"+(r?"Page":"All")))),t("ez-button",Object.assign({key:"clearAllSelectionEzButton",class:"grid__btn-clear",label:l("ez-grid.clearSelection"),mode:"link",onClick:c},Lw("ezGridSelectionCounter_clearAll"))))),t("button",Object.assign({class:"grid__btn-close",title:l("app.close"),onClick:a},Lw("ezGridSelectionCounter_close")),t("ez-icon",{iconName:"close"}))))};function Lw(t){return{[b.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:b.getInternalIDInfo(t)}}class Bw{static getColumnFilters(t,i){return w.getColumnFilters(t,i)}static getFilterFunction(t,i){return w.getFilterFunction(t,i)}static compileDistinct(t,i){return w.compileDistinct(t,i)}static compileDistinctFromArray(t,i,n){return w.compileDistinctFromArray(t,i,n)}}class Hw{constructor(t){this.lastAppliedFilters=[],this.FILTER_COLUMN_TERM="FILTRO_COLUNA_",this.onDataUnitAction=t=>{var i,n;if(t.type===o.DATA_SAVED||t.type===o.RECORDS_REMOVED)return void(this.originalRecords=this.dataUnit.records);if(t.type!==o.DATA_LOADED)return;const e=this.getAppliedFilterNames(null!==(n=null===(i=t.payload)||void 0===i?void 0:i.filters)&&void 0!==n?n:[]);this.originalRecords&&u.equals(e,this.lastAppliedFilters)||(this.originalRecords=t.payload.records,this.lastAppliedFilters=e)},this.dataUnit=t,this.dataUnit.records.length>0&&(this.originalRecords=this.dataUnit.records),this.dataUnit.subscribe(this.onDataUnitAction)}refresh(){this.originalRecords=this.dataUnit.records}getAppliedFilterNames(t){return t.map((t=>t.name)).filter((t=>!t.includes(this.FILTER_COLUMN_TERM)))}getStaticOptions(t){return Promise.resolve(Bw.compileDistinctFromArray(t,this.dataUnit,this.originalRecords))}fetchData(t,i){return new Promise((n=>{const e=this.originalRecords.filter((n=>this.includesSearchTerm(n,i,t))).map((t=>this.buildFieldOption(t,i)));n(this.removeDuplicatedOptions(e))}))}sortItems(t,i){return Hw.defaultSorterMultSelectionOption(this.dataUnit,t,i)}buildFieldOption(t,i){return{value:this.buildValue(t,i),label:this.formatLabel(i,t[i]),check:!0}}buildValue(t,i){var n;let e=t[i];return(null===(n=this.dataUnit.getField(i))||void 0===n?void 0:n.dataType)===v.OBJECT&&(e=e.value),null==e?void 0:e.toString()}removeDuplicatedOptions(t){const i=[];return t.forEach((t=>{i.find((({label:i})=>i===t.label))||i.push(t)})),i}includesSearchTerm(t,i,n){return this.buildLabel(i,t[i]).toLowerCase().includes(n.toLowerCase())}buildLabel(t,i){var n;const{dataType:e}=this.dataUnit.getField(t);return e===v.NUMBER?null==i?void 0:i.toString().replace(".",","):e===v.DATE?"object"==typeof i?null===(n=y.formatDate(this.dataUnit.valueFromString(t,i)))||void 0===n?void 0:n.toString():null==i?void 0:i.toString():e===v.OBJECT?`${null==i?void 0:i.value} - ${null==i?void 0:i.label}`:null==i?void 0:i.toString()}formatLabel(t,i){var n,e;const{userInterface:r,dataType:o}=this.dataUnit.getField(t);return o===v.DATE?"object"==typeof i?y.formatDate(this.dataUnit.valueFromString(t,i)):null==i?void 0:i.toString():o===v.NUMBER&&r!==h.DECIMALNUMBER?null===(n=parseInt(this.dataUnit.getFormattedValue(t,i)))||void 0===n?void 0:n.toString():null===(e=this.dataUnit.getFormattedValue(t,i))||void 0===e?void 0:e.toString()}static defaultSorterMultSelectionOption(t,i,n){const e=t.getField(i);return null==e?C.sortAlphabetically(n):n.sort(((t,i)=>S.compareValues(e,t.value,i.value)))}}const Ww=window,Vw=class{constructor(t){i(this,t),this.ezColumnStateChange=n(this,"ezColumnStateChange",7),this.ezPageChangedChanged=n(this,"ezPageChangedChanged",7),this.ezColumnFilterChanged=n(this,"ezColumnFilterChanged",7),this.ezSelectionChange=n(this,"ezSelectionChange",7),this.ezDoubleClick=n(this,"ezDoubleClick",7),this.configChange=n(this,"configChange",7),this.componentReady=n(this,"componentReady",7),this._gridController=new Dw(!1),this._customEditor=new Map,this._customRenders=new Map,this._paginationInfo=void 0,this._paginationChangedByKeyboard=!0,this._showSelectionCounter=!1,this._isAllSelection=!1,this._currentPageSelected=void 0,this._selectionCount=void 0,this._hasLeftButtons=!1,this._customFormatters=new Map,this.enableLockManagerLoadingComp=!1,this.enableLockManagerTaskbarClick=!0,this.multipleSelection=void 0,this.config=void 0,this.selectionToastConfig=void 0,this.serverUrl=void 0,this.dataUnit=void 0,this.statusResolver=void 0,this.columnfilterDataSource=void 0,this.useEnterLikeTab=!1,this.recordsValidator=void 0,this.canEdit=!0,this.autoFocus=!0,this.paginationCounterMode="auto",this.enableGridInsert=!1,this.enableContinuousInsert=!0,this.suppressCheckboxColumn=!1,this.suppressFilterColumn=!1,this.outlineMode=!1,this.enableRowTableStriped=!0,this.compact=!1,this.useSearchColumn=!0,this.suppressHorizontalScroll=!1,this.mode="complete"}async setColumnsDef(t){this._gridController.setColumnsDef(t)}async getAppliedColumnFilters(){var t;return null!==(t=this._gridController.getFilter())&&void 0!==t?t:[]}async refreshColumnFilterDataSource(){var t,i;this.columnfilterDataSource&&(null===(i=(t=this.columnfilterDataSource).refresh)||void 0===i||i.call(t))}async addColumnMenuItem(t,i,n,e){this._gridController.addColumnMenuItem({label:t,name:i,action:n,icon:e})}async setColumnsState(t){this._gridController.setColumnsState(t)}async setData(t){this._gridController.setData(t)}async getSelection(){return Promise.resolve(this._gridController.getSelection())}async getColumnsState(){return Promise.resolve(this._gridController.getColumnsState())}async getColumns(){return Promise.resolve(this._gridController.getColumnsDef())}async quickFilter(t){this._gridController.quickFilter(t)}async locateColumn(t){this._gridController.locateColumn(t,this._element)}async filterColumns(t){return Promise.resolve(this._gridController.getColumnsState().filter((i=>((t,i)=>{const n=l.replaceAccentuatedCharsLower(null==t?void 0:t.toLocaleLowerCase()),e=l.replaceAccentuatedCharsLower(i.toLocaleLowerCase());return null==n?void 0:n.includes(e)})(i.label,t))))}async addCustomEditor(t,i,n){const e=new Map(this._customEditor);e.set(t,{customEditor:i,detailContext:n}),this._customEditor=e,this._gridController.setCellEditors(e)}async addGridCustomRender(t,i,n){const e=new Map(this._customRenders);e.set(t,{customRender:i,detailContext:n}),this._customRenders=e,this._gridController.setCellRenders(e)}async addCustomValueFormatter(t,i){if(!t||!i)return;const n=new Map(this._customFormatters);n.set(t,i),this._customFormatters=n,this._gridController.setCustomFormatters(n)}async removeCustomValueFormatter(t){if(!t)return;const i=new Map(this._customFormatters);i.delete(t),this._customFormatters=i,this._gridController.setCustomFormatters(i)}async refreshSelectedRows(){this._gridController.refreshSelectedRows()}async getCustomValueFormatter(t){return this._customFormatters.get(t)}async setFocus(){this._gridController.setFocus()}async stopEdit(){this._gridController.stopEdit()}async checkStopEditOutsideClick(t){var i;(null===(i=this._container)||void 0===i?void 0:i.contains(t.target))||this._gridController.stopEdit()}observeConfig(t){this._gridController.setColumnsState(null==t?void 0:t.columns)}updatePaginationTooltip(){this.handleShowCancelPagination(),this._refPaginationLabelTooltip&&this._refPaginationLabelTooltip.getAttribute("data-tooltip")&&this._refPaginationLabelTooltip.setAttribute("data-tooltip",this._getPaginationTooltip())}observePaginationCounterMode(t){"hidden"===t&&this._hidePaginationDescription(),"show"===t&&this._showPaginationDescription()}async observeModeChange(t=this.mode){"simple"===t&&(this.canEdit=!1,this.multipleSelection=!1,this.suppressCheckboxColumn=!0,this.compact=!0)}async handleApplyFilterColumn(){const t=this._gridController.getFilter();this.ezColumnFilterChanged.emit(null!=t?t:[])}onSelectionChange(t){this._currentPageSelected=!0===t.detail.selectionHeaderStatus,this.dataUnit&&this.setSelection(this.dataUnit.getSelectionInfo())}async handleClick(t){this.checkStopEditOutsideClick(t)}setSelection(t){var i;this._selectionCount=null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0,this._isAllSelection=null==t?void 0:t.isAllRecords(),this._showSelectionCounter=this._selectionCount>1||this._isAllSelection}onSelectAllRecords(){var t;null===(t=this.dataUnit)||void 0===t||t.setSelection(_.ALL_RECORDS).then((t=>this.setSelection(t)))}onSelectPageRecords(){var t;null===(t=this.dataUnit)||void 0===t||t.setSelection(this.dataUnit.records.map((t=>t.__record__id__))).then((t=>this.setSelection(t)))}onClearSelectedRecords(){var t;null===(t=this.dataUnit)||void 0===t||t.clearSelection(),this._gridController.clearRangeSelection(),this.setSelection(void 0)}createConfigFromState(t){let i={columns:[]};return t.forEach((t=>{if(!t.hidden){let n={name:t.name};t.width&&(n.width=t.width),t.sort?(n.ascending="ASC"===t.sort.toUpperCase(),n.orderIndex=t.sortIndex):n.orderIndex=0,n&&i.columns.push(n)}})),i}positionSelectionCounter(){var t,i;if(!this._gridSelectionCounter)return;if(!this._showSelectionCounter)return void(this._gridSelectionCounter.style.bottom="");const n=null===(t=this._container)||void 0===t?void 0:t.getBoundingClientRect(),e=null===(i=this._gridSelectionCounter)||void 0===i?void 0:i.getBoundingClientRect();n&&e&&(this._gridSelectionCounter.style.bottom=document.body.clientHeight-(n.bottom-30)+"px",this._gridSelectionCounter.style.left=this.calculatePositionLeft(n,e))}calculatePositionLeft(t,i){let n=t.left+t.width/2;const e=t.left+this._container.clientWidth;return n-i.width/2+i.width>e&&(n=e-i.width/2),`${n}px`}setEvents(){window.removeEventListener("scroll",this.positionSelectionCounter.bind(this)),window.addEventListener("scroll",this.positionSelectionCounter.bind(this))}resizeSelectionCounter(){null!=this._gridSelectionCounter&&(this._gridSelectionCounter.style.width="",this._gridSelectionCounter.clientHeight>42&&(this._gridSelectionCounter.style.width="min-content"),this.positionSelectionCounter())}configSelectionCounter(){null!=this._element&&(null!=this._resizeObserver&&this._resizeObserver.unobserve(this._element),this._resizeObserver=new ResizeObserver(R.debounce(this.resizeSelectionCounter.bind(this),200)),this._resizeObserver.observe(this._element),this.resizeSelectionCounter())}onColumnStateChange(t,i,n){var e;if(this.ezColumnStateChange.emit({type:t,state:i,isUserChange:n.isUserChange}),n.isUserChange)if("columnMovedEnd"!==t||n.isElementResize){if("columnResize"===t&&(null===(e=n.column)||void 0===e?void 0:e.colId)){let t;t=this.config?Object.assign({},this.config):this.createConfigFromState(i);let e=t.columns.find((t=>t.name===n.column.colId));e&&(e.customWidth=n.column.actualWidth,this.configChange.emit(t))}}else{let t;this.config?(t={columns:[]},i.forEach((i=>{let n=this.config.columns.find((t=>t.name===i.name));n&&(n.width=i.width,t.columns.push(n))}))):t=this.createConfigFromState(i),t.columns.length>0&&this.configChange.emit(t)}}buildDataElementId(){b.addIDInfo(this._element,null,{dataUnit:this.dataUnit}),this._refPaginationControl&&b.addIDInfo(this._refPaginationControl,"pagination",{id:"ezGrid"})}handlePageChange(){this.resetPaginationState(),this._gridController.setFocusFirstRow(),this.ezPageChangedChanged.emit()}previousPage(){this.dataUnit&&this.dataUnit.previousPage().then((()=>this.handlePageChange()))}nextPage(){this.dataUnit&&this.dataUnit.nextPage().then((()=>this.handlePageChange()))}nextRecord(){if(this.dataUnit){if(0===this.dataUnit.getSelectionInfo().records.length)return void this.dataUnit.selectFirst();this.dataUnit.nextRecord()}}previousRecord(){this.dataUnit&&this.dataUnit.previousRecord()}resetPaginationState(){var t;this._paginationChangedByKeyboard=!1,null===(t=this._gridController)||void 0===t||t.resetPaginationState()}resolvePaginationClassMode(){return this.shouldPresentPaginationLabel()?"pagination-expanded":"pagination-contracted"}async handleCancelPagination(){var t;this.dataUnit.cancelPagination=!0,await(null===(t=this._cancelPaginationPopoverElement)||void 0===t?void 0:t.hide())}renderCancelPagination(){return t("ez-popover",{ref:t=>this._cancelPaginationPopoverElement=t,"overlay-type":"none",autoClose:!1},t("div",{class:"cancel-pagination"},t("ez-icon",{iconName:"sync",size:"x-large",class:"spin"}),t("span",{onClick:()=>this.handleCancelPagination(),class:"cancel-pagination-btn"},this.i18n("ez-grid.cancelPagination"))))}handleShowCancelPagination(){var t,i,n;this._hasToShowCancelPagination()?(null===(i=this._cancelPaginationPopoverElement)||void 0===i?void 0:i.opened)||null===(n=this._cancelPaginationPopoverElement)||void 0===n||n.show("15px"):null===(t=this._cancelPaginationPopoverElement)||void 0===t||t.hide()}getPaginationControl(){if(!this._paginationInfo)return null;const{currentPage:i,hasMore:n}=this._paginationInfo;return t("div",{class:`grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`,ref:t=>this._refPaginationControl=t},this.renderCancelPagination(),t("div",{class:"ez-text ez-text--primary ez-text--medium ez-margin-right--medium",ref:t=>this._refPaginationLabel=t},t("span",{class:"grid-header__pagination-label"},this.shouldPresentPaginationLabel()&&t("strong",{class:"ez-text ez-text--primary ez-text--medium"},this._getActualPageLabel()),this.shouldPresentPaginationLabel()&&this._getRemainingPageLabel())),t("div",{id:"grid-pagination-tooltip",ref:t=>this._refPaginationLabelTooltip=t,class:"ez-flex ez-margin-right--medium",title:`${this._getActualPageLabel()} ${this._getRemainingPageLabel()}`},t("ez-button",{size:"small",class:"ez-margin-right--medium",iconName:"chevron-left",mode:"icon",enabled:i>0,onClick:()=>this.previousPage(),label:this.i18n("ez-grid.previousPage")}),t("ez-button",{size:"small",iconName:"chevron-right",mode:"icon",enabled:n,onClick:()=>this.nextPage(),label:this.i18n("ez-grid.nextPage")})))}shouldPresentPaginationLabel(){return"show"===this.paginationCounterMode||"auto"===this.paginationCounterMode}componentDidLoad(){const t=a.getContextValue("__SNK__APPLICATION__");this.enableLockManagerLoadingComp=!(t&&!(null==t?void 0:t.enableLockManagerLoadingApp))&&this.enableLockManagerLoadingComp,this._gridController.initDatagrid(this._container,{onColumnStateChange:(t,i,n)=>this.onColumnStateChange(t,i,n),onSelectionChange:t=>this.ezSelectionChange.emit(t),onPaginationChange:(t,i)=>{this.handlePaginationChange(i,t)},onPaginationUpdate:t=>{this._paginationInfo=t},onDoubleClick:t=>{this.ezDoubleClick.emit(t)},allowMultipleSelection:this.multipleSelection,serverURL:this.serverUrl,dataUnit:this.dataUnit,statusResolver:this.statusResolver,useEnterLikeTab:this.useEnterLikeTab,recordsValidator:this.recordsValidator,editionIsDisabled:()=>!this.canEdit,customFormatters:this._customFormatters,autoFocus:this.autoFocus,enableGridInsert:this.enableGridInsert,enableContinuousInsert:this.enableContinuousInsert,suppressFilterColumn:this.suppressFilterColumn,suppressCheckBoxCol:this.suppressCheckboxColumn,onRefresh:()=>{this.dataUnit&&this.setSelection(this.dataUnit.getSelectionInfo())},enableLockManagerTaskbarClick:this.enableLockManagerTaskbarClick,enableLockManagerLoadingComp:this.enableLockManagerLoadingComp,enableRowTableStriped:this.enableRowTableStriped,suppressHorizontalScroll:this.suppressHorizontalScroll,i18n:this.i18n}),this.config&&this.observeConfig(this.config),null!=this.dataUnit&&(this._paginationInfo=this.dataUnit.getPaginationInfo()),this.buildDataElementId(),this.setEvents(),this.componentReady.emit(),this._gridController.configFilterColumn(this._filterColumn),this.initKeyboardManager()}handlePaginationChange(t,i){var n;!1!==t&&this.autoFocus&&((null===(n=this._paginationInfo)||void 0===n?void 0:n.currentPage)>(null==i?void 0:i.currentPage)&&this._paginationChangedByKeyboard?this._gridController.setFocusLastRow():(this._gridController.setFocusFirstRow(),this._paginationChangedByKeyboard=!0)),this._paginationInfo=i}_getActualPageLabel(){const{firstRecord:t,lastRecord:i}=this._paginationInfo;return`${t}-${i}`}_getRemainingPageLabel(){const{total:t,count:i}=this._paginationInfo;return`${null==t?this.i18n("ez-grid.remainingPageLabel",{count:i+1}):this.i18n("ez-grid.remainingTotalLabel",{total:t})}`}_hasToShowCancelPagination(){var t;const{total:i,count:n}=null!==(t=this._paginationInfo)&&void 0!==t?t:{};return!this.dataUnit.cancelPagination&&void 0===i&&n>this.dataUnit.pageSize}_getPaginationTooltip(){return this._getActualPageLabel()+this._getRemainingPageLabel()}_initHeaderOverflowWatcher(){var t;null===(t=this._headerOverflowWatcher)||void 0===t||t.destroy(),this._refPaginationControl&&(this._headerOverflowWatcher=new O(this.buildOverFlowWatcherParams()))}buildOverFlowWatcherParams(){return{element:this._refPaginationControl,callback:this.handleOverFlow.bind(this),notOverFlow:["grid-pagination-tooltip"]}}handleOverFlow(){if(!this._refPaginationLabel||!this._refPaginationControl)return;const t=this._refPaginationControl.clientWidth,i=this._refPaginationLabel.scrollWidth,n=this._refPaginationControl.querySelector("#grid-pagination-tooltip"),e=i+((null==n?void 0:n.clientWidth)||0)+(this._getElementMargins(this._refPaginationLabel)+(n?this._getElementMargins(n):0));t>e+this._getPaginationDescriptionWidth()?this._showPaginationDescription():t<=e&&this._hidePaginationDescription()}_getPaginationDescriptionWidth(){var t;return(null===(t=this._refPaginationLabelTooltip)||void 0===t?void 0:t.scrollWidth)||0}_getElementMargins(t){const i=getComputedStyle(t);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}_hidePaginationDescription(){this._refPaginationLabel.classList.add(A),this._refPaginationLabelTooltip.setAttribute("data-flow","bottom"),this._refPaginationLabelTooltip.setAttribute("data-tooltip",this._getPaginationTooltip())}_showPaginationDescription(){this._refPaginationLabel.classList.remove(A),this._refPaginationLabelTooltip.removeAttribute("data-flow"),this._refPaginationLabelTooltip.removeAttribute("data-tooltip")}disconnectedCallback(){var t,i;null===(t=this._headerOverflowWatcher)||void 0===t||t.destroy(),null===(i=this._gridController)||void 0===i||i.destroy(),this.removeShortcuts()}connectedCallback(){var t;this.observeModeChange(),null===(t=this._gridController)||void 0===t||t.registryListeners()}componentWillRender(){this.configSelectionCounter()}componentDidRender(){Ww.addEventListener("onSubmitFilter",(()=>{G.info(this.i18n("ez-grid.filterAppliedSuccess"))}))}async componentWillLoad(){this.i18n=await M(),this._hasLeftButtons=!!this._element.querySelector('[slot="leftButtons"]'),this.dataUnit.name.includes("InMemoryDataUnit")}componentDidUpdate(){this._gridController.setAutoFocus(this.autoFocus),this._gridController.setEnableGridInsert(this.enableGridInsert),this._gridController.setEnableContinuousInsert(this.enableContinuousInsert),this.dataUnit&&this._showSelectionCounter&&this.setSelection(this.dataUnit.getSelectionInfo()),"auto"===this.paginationCounterMode&&this._initHeaderOverflowWatcher()}getDataSource(){return this.columnfilterDataSource||(this.columnfilterDataSource=new Hw(this.dataUnit)),this.columnfilterDataSource}hideHeader(){return"simple"===this.mode||!this._hasLeftButtons&&!this._paginationInfo}resolveLeftHeaderClass(){return"show"==this.paginationCounterMode?"left__header-expanded":"left__header-contracted"}async initKeyboardManager(){this._keyboardManager=new j({propagate:!1,element:this._element}),this._keyboardManager.bind("ctrl + .",(()=>{this._paginationInfo&&this.nextRecord()}),{description:this.i18n("ez-grid.nextRecord"),element:this._element}).bind("ctrl + ,",(()=>{this._paginationInfo&&this.previousRecord()}),{description:this.i18n("ez-grid.previousRecord"),element:this._element}).bind("ctrl + alt + ArrowLeft",(()=>{if(!this._paginationInfo)return;const{currentPage:t}=this._paginationInfo;t>0&&this.previousPage()}),{description:this.i18n("ez-grid.previousPage"),element:this._element}).bind("ctrl + alt + ArrowRight",(()=>{if(!this._paginationInfo)return;const{hasMore:t}=this._paginationInfo;t&&this.nextPage()}),{description:this.i18n("ez-grid.nextPage"),element:this._element}),this.useSearchColumn&&this._keyboardManager.bind(E,(async()=>{if(!this._container||!this._ezPopoverSearchColumn)return;const t=this._container.getBoundingClientRect();await T(this._columnSearch),this._ezPopoverSearchColumn.showUnder(this._container,{horizontalGap:t.width-z,verticalGap:-1*t.height})}),{description:this.i18n("ez-grid.searchColumn"),element:this._element})}async removeShortcuts(){var t;null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}renderFieldSearchColumn(){return this._columnSearch=N({value:l.generateUUID(),label:this.i18n("ez-grid.labelSearchColumn")},(({argument:t})=>new Promise((i=>{this.filterColumns(t).then((t=>{i(t.filter((t=>!t.hidden)).map((t=>({label:t.label,value:t.name}))))}))}))),(async t=>{null!=t&&null!=t.value&&(await this.locateColumn(t.value),this._ezPopoverSearchColumn&&this._ezPopoverSearchColumn.hide(),this._container&&requestAnimationFrame((()=>this._container.focus())))})),this._columnSearch}render(){var i;return t(e,{"no-header":this.hideHeader()},t("div",{class:{"grid__container ez-grid":!0,"outline-mode":this.outlineMode,"shadow-mode":!this.outlineMode,"no-padding":this.compact,"header-overlay":!this.hideHeader(),"no-scroll":this.suppressHorizontalScroll},ref:t=>this._container=t,tabindex:"0"}),t("div",{class:{"ez-box ez-padding--small grid-header":!0,"outline-mode":this.outlineMode,"shadow-mode":!this.outlineMode&&!this.hideHeader()},tabindex:"0"},t("filter-column",{class:"grid-header__popover",noHeaderTaskBar:!this._hasLeftButtons,dataSource:this.getDataSource(),dataUnit:this.dataUnit,gridHeaderHidden:this.hideHeader(),ref:t=>this._filterColumn=t}),t("div",{class:"grid-header__position"},t("div",{class:`grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}`},t("slot",{name:"leftButtons"})),this.getPaginationControl())),t("ez-popover",{ref:t=>this._ezPopoverSearchColumn=t,overlayType:"none"},this.renderFieldSearchColumn()),t("div",{ref:t=>this._gridSelectionCounter=t,class:`grid__selection-counter ez-elevation--4\n ${this._showSelectionCounter?"grid__selection-counter--opened":""}\n `},t(Nw,{selectionCount:this._selectionCount,currentPageSelected:this._currentPageSelected,paginationInfo:this._paginationInfo,canSelectAll:null===(i=this.selectionToastConfig)||void 0===i?void 0:i.canSelectAll,allRecordSelected:this._isAllSelection,i18n:this.i18n,onSelectAll:()=>this.onSelectAllRecords(),onSelectPage:()=>this.onSelectPageRecords(),onClearAll:()=>this.onClearSelectedRecords(),onClose:()=>this._showSelectionCounter=!1})),t("div",{class:"grid__footer"},t("slot",{name:"footer"})))}static get assetsDirs(){return["../assets"]}get _element(){return r(this)}static get watchers(){return{config:["observeConfig"],_paginationInfo:["updatePaginationTooltip"],paginationCounterMode:["observePaginationCounterMode"],mode:["observeModeChange"]}}};Vw.style=".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color);border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-small)}.grid__container.no-scroll.sc-ez-grid{width:100vw}.sc-ez-grid-h:not([no-header]) .grid__container.sc-ez-grid{border:none}.grid__container.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__container--shadow--outline);border:none;outline:none}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center;flex-grow:1;flex-shrink:1}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{justify-content:flex-end;flex-wrap:nowrap;flex-shrink:1;flex-grow:1}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}.pagination-contracted.sc-ez-grid{width:100px}.pagination-expanded.sc-ez-grid{min-width:150px}.left__header-contracted.sc-ez-grid{width:auto}.left__header-expanded.sc-ez-grid{flex-grow:1}.grid__footer.sc-ez-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}.cancel-pagination.sc-ez-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:8px;width:180px}.cancel-pagination-btn.sc-ez-grid{color:var(--color--error);font-size:var(--text--medium);font-weight:var(--text-weight--large);font-family:var(--font-pattern, Roboto);text-wrap:nowrap;cursor:pointer}.spin.sc-ez-grid{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";export{Vw as ez_grid}