primereact 10.7.0 → 10.8.1

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 (356) hide show
  1. package/README.md +1 -0
  2. package/api/api.cjs.js +18 -14
  3. package/api/api.cjs.min.js +1 -1
  4. package/api/api.d.ts +3 -3
  5. package/api/api.esm.js +18 -14
  6. package/api/api.esm.min.js +1 -1
  7. package/api/api.js +18 -14
  8. package/api/api.min.js +1 -1
  9. package/autocomplete/autocomplete.cjs.js +18 -7
  10. package/autocomplete/autocomplete.cjs.min.js +1 -1
  11. package/autocomplete/autocomplete.d.ts +4 -3
  12. package/autocomplete/autocomplete.esm.js +18 -7
  13. package/autocomplete/autocomplete.esm.min.js +1 -1
  14. package/autocomplete/autocomplete.js +18 -7
  15. package/autocomplete/autocomplete.min.js +1 -1
  16. package/button/button.d.ts +2 -2
  17. package/calendar/calendar.cjs.js +14 -10
  18. package/calendar/calendar.cjs.min.js +1 -1
  19. package/calendar/calendar.d.ts +4 -3
  20. package/calendar/calendar.esm.js +14 -10
  21. package/calendar/calendar.esm.min.js +1 -1
  22. package/calendar/calendar.js +14 -10
  23. package/calendar/calendar.min.js +1 -1
  24. package/cascadeselect/cascadeselect.d.ts +4 -3
  25. package/column/column.d.ts +8 -14
  26. package/core/core.js +54 -62
  27. package/core/core.min.js +9 -9
  28. package/datatable/datatable.cjs.js +59 -62
  29. package/datatable/datatable.cjs.min.js +1 -1
  30. package/datatable/datatable.d.ts +38 -2
  31. package/datatable/datatable.esm.js +59 -62
  32. package/datatable/datatable.esm.min.js +1 -1
  33. package/datatable/datatable.js +59 -62
  34. package/datatable/datatable.min.js +1 -1
  35. package/dialog/dialog.cjs.js +1 -1
  36. package/dialog/dialog.cjs.min.js +1 -1
  37. package/dialog/dialog.esm.js +1 -1
  38. package/dialog/dialog.esm.min.js +1 -1
  39. package/dialog/dialog.js +1 -1
  40. package/dialog/dialog.min.js +1 -1
  41. package/dropdown/dropdown.cjs.js +13 -7
  42. package/dropdown/dropdown.cjs.min.js +1 -1
  43. package/dropdown/dropdown.esm.js +13 -7
  44. package/dropdown/dropdown.esm.min.js +1 -1
  45. package/dropdown/dropdown.js +13 -7
  46. package/dropdown/dropdown.min.js +1 -1
  47. package/editor/editor.cjs.js +15 -3
  48. package/editor/editor.cjs.min.js +1 -1
  49. package/editor/editor.esm.js +16 -3
  50. package/editor/editor.esm.min.js +1 -1
  51. package/editor/editor.js +15 -3
  52. package/editor/editor.min.js +1 -1
  53. package/icons/sortamountdown/index.cjs.js +1 -16
  54. package/icons/sortamountdown/index.cjs.min.js +1 -1
  55. package/icons/sortamountdown/index.esm.js +1 -16
  56. package/icons/sortamountdown/index.esm.min.js +1 -1
  57. package/icons/sortamountdown/index.js +1 -16
  58. package/icons/sortamountdown/index.min.js +1 -1
  59. package/icons/sortamountupalt/index.cjs.js +1 -16
  60. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  61. package/icons/sortamountupalt/index.esm.js +1 -16
  62. package/icons/sortamountupalt/index.esm.min.js +1 -1
  63. package/icons/sortamountupalt/index.js +1 -16
  64. package/icons/sortamountupalt/index.min.js +1 -1
  65. package/inplace/inplace.d.ts +1 -1
  66. package/inputnumber/inputnumber.cjs.js +1 -0
  67. package/inputnumber/inputnumber.cjs.min.js +1 -1
  68. package/inputnumber/inputnumber.esm.js +1 -0
  69. package/inputnumber/inputnumber.esm.min.js +1 -1
  70. package/inputnumber/inputnumber.js +1 -0
  71. package/inputnumber/inputnumber.min.js +1 -1
  72. package/inputotp/inputotp.cjs.js +4 -3
  73. package/inputotp/inputotp.cjs.min.js +1 -1
  74. package/inputotp/inputotp.d.ts +2 -3
  75. package/inputotp/inputotp.esm.js +4 -3
  76. package/inputotp/inputotp.esm.min.js +1 -1
  77. package/inputotp/inputotp.js +4 -3
  78. package/inputotp/inputotp.min.js +1 -1
  79. package/listbox/listbox.cjs.js +4 -0
  80. package/listbox/listbox.cjs.min.js +1 -1
  81. package/listbox/listbox.esm.js +4 -0
  82. package/listbox/listbox.esm.min.js +1 -1
  83. package/listbox/listbox.js +4 -0
  84. package/listbox/listbox.min.js +1 -1
  85. package/mention/mention.cjs.js +1 -0
  86. package/mention/mention.cjs.min.js +1 -1
  87. package/mention/mention.esm.js +1 -0
  88. package/mention/mention.esm.min.js +1 -1
  89. package/mention/mention.js +1 -0
  90. package/mention/mention.min.js +1 -1
  91. package/menu/menu.cjs.js +3 -3
  92. package/menu/menu.cjs.min.js +1 -1
  93. package/menu/menu.esm.js +3 -3
  94. package/menu/menu.esm.min.js +1 -1
  95. package/menu/menu.js +3 -3
  96. package/menu/menu.min.js +1 -1
  97. package/menubar/menubar.cjs.js +1 -1
  98. package/menubar/menubar.cjs.min.js +1 -1
  99. package/menubar/menubar.esm.js +1 -1
  100. package/menubar/menubar.esm.min.js +1 -1
  101. package/menubar/menubar.js +1 -1
  102. package/menubar/menubar.min.js +1 -1
  103. package/messages/messages.d.ts +21 -0
  104. package/multiselect/multiselect.cjs.js +8 -5
  105. package/multiselect/multiselect.cjs.min.js +1 -1
  106. package/multiselect/multiselect.d.ts +1 -9
  107. package/multiselect/multiselect.esm.js +8 -5
  108. package/multiselect/multiselect.esm.min.js +1 -1
  109. package/multiselect/multiselect.js +8 -5
  110. package/multiselect/multiselect.min.js +1 -1
  111. package/orderlist/orderlist.cjs.js +3 -2
  112. package/orderlist/orderlist.cjs.min.js +1 -1
  113. package/orderlist/orderlist.esm.js +3 -2
  114. package/orderlist/orderlist.esm.min.js +1 -1
  115. package/orderlist/orderlist.js +3 -2
  116. package/orderlist/orderlist.min.js +1 -1
  117. package/package.json +1 -1
  118. package/paginator/paginator.cjs.js +9 -7
  119. package/paginator/paginator.cjs.min.js +1 -1
  120. package/paginator/paginator.esm.js +9 -7
  121. package/paginator/paginator.esm.min.js +1 -1
  122. package/paginator/paginator.js +9 -7
  123. package/paginator/paginator.min.js +1 -1
  124. package/panelmenu/panelmenu.d.ts +2 -2
  125. package/password/password.cjs.js +1 -0
  126. package/password/password.cjs.min.js +1 -1
  127. package/password/password.esm.js +1 -0
  128. package/password/password.esm.min.js +1 -1
  129. package/password/password.js +1 -0
  130. package/password/password.min.js +1 -1
  131. package/picklist/picklist.cjs.js +9 -7
  132. package/picklist/picklist.cjs.min.js +1 -1
  133. package/picklist/picklist.esm.js +9 -7
  134. package/picklist/picklist.esm.min.js +1 -1
  135. package/picklist/picklist.js +9 -7
  136. package/picklist/picklist.min.js +1 -1
  137. package/primereact.all.cjs.js +342 -314
  138. package/primereact.all.cjs.min.js +1 -1
  139. package/primereact.all.esm.js +342 -314
  140. package/primereact.all.esm.min.js +1 -1
  141. package/primereact.all.js +342 -314
  142. package/primereact.all.min.js +1 -1
  143. package/radiobutton/radiobutton.cjs.js +9 -9
  144. package/radiobutton/radiobutton.cjs.min.js +1 -1
  145. package/radiobutton/radiobutton.esm.js +9 -9
  146. package/radiobutton/radiobutton.esm.min.js +1 -1
  147. package/radiobutton/radiobutton.js +9 -9
  148. package/radiobutton/radiobutton.min.js +1 -1
  149. package/resources/themes/lara-dark-amber/fonts/InterVariable-Italic.woff2 +0 -0
  150. package/resources/themes/lara-dark-amber/fonts/InterVariable.woff2 +0 -0
  151. package/resources/themes/lara-dark-amber/theme.css +2 -2
  152. package/resources/themes/lara-dark-blue/fonts/InterVariable-Italic.woff2 +0 -0
  153. package/resources/themes/lara-dark-blue/fonts/InterVariable.woff2 +0 -0
  154. package/resources/themes/lara-dark-blue/theme.css +2 -2
  155. package/resources/themes/lara-dark-cyan/fonts/InterVariable-Italic.woff2 +0 -0
  156. package/resources/themes/lara-dark-cyan/fonts/InterVariable.woff2 +0 -0
  157. package/resources/themes/lara-dark-cyan/theme.css +2 -2
  158. package/resources/themes/lara-dark-green/fonts/InterVariable-Italic.woff2 +0 -0
  159. package/resources/themes/lara-dark-green/fonts/InterVariable.woff2 +0 -0
  160. package/resources/themes/lara-dark-green/theme.css +2 -2
  161. package/resources/themes/lara-dark-indigo/fonts/InterVariable-Italic.woff2 +0 -0
  162. package/resources/themes/lara-dark-indigo/fonts/InterVariable.woff2 +0 -0
  163. package/resources/themes/lara-dark-indigo/theme.css +2 -2
  164. package/resources/themes/lara-dark-pink/fonts/InterVariable-Italic.woff2 +0 -0
  165. package/resources/themes/lara-dark-pink/fonts/InterVariable.woff2 +0 -0
  166. package/resources/themes/lara-dark-pink/theme.css +2 -2
  167. package/resources/themes/lara-dark-purple/fonts/InterVariable-Italic.woff2 +0 -0
  168. package/resources/themes/lara-dark-purple/fonts/InterVariable.woff2 +0 -0
  169. package/resources/themes/lara-dark-purple/theme.css +6 -6
  170. package/resources/themes/lara-dark-teal/fonts/InterVariable-Italic.woff2 +0 -0
  171. package/resources/themes/lara-dark-teal/fonts/InterVariable.woff2 +0 -0
  172. package/resources/themes/lara-dark-teal/theme.css +2 -2
  173. package/resources/themes/lara-light-amber/fonts/InterVariable-Italic.woff2 +0 -0
  174. package/resources/themes/lara-light-amber/fonts/InterVariable.woff2 +0 -0
  175. package/resources/themes/lara-light-amber/theme.css +2 -2
  176. package/resources/themes/lara-light-blue/fonts/InterVariable-Italic.woff2 +0 -0
  177. package/resources/themes/lara-light-blue/fonts/InterVariable.woff2 +0 -0
  178. package/resources/themes/lara-light-blue/theme.css +2 -2
  179. package/resources/themes/lara-light-cyan/fonts/InterVariable-Italic.woff2 +0 -0
  180. package/resources/themes/lara-light-cyan/fonts/InterVariable.woff2 +0 -0
  181. package/resources/themes/lara-light-cyan/theme.css +2 -2
  182. package/resources/themes/lara-light-green/fonts/InterVariable-Italic.woff2 +0 -0
  183. package/resources/themes/lara-light-green/fonts/InterVariable.woff2 +0 -0
  184. package/resources/themes/lara-light-green/theme.css +2 -2
  185. package/resources/themes/lara-light-indigo/fonts/InterVariable-Italic.woff2 +0 -0
  186. package/resources/themes/lara-light-indigo/fonts/InterVariable.woff2 +0 -0
  187. package/resources/themes/lara-light-indigo/theme.css +2 -2
  188. package/resources/themes/lara-light-pink/fonts/InterVariable-Italic.woff2 +0 -0
  189. package/resources/themes/lara-light-pink/fonts/InterVariable.woff2 +0 -0
  190. package/resources/themes/lara-light-pink/theme.css +2 -2
  191. package/resources/themes/lara-light-purple/fonts/InterVariable-Italic.woff2 +0 -0
  192. package/resources/themes/lara-light-purple/fonts/InterVariable.woff2 +0 -0
  193. package/resources/themes/lara-light-purple/theme.css +6 -6
  194. package/resources/themes/lara-light-teal/fonts/InterVariable-Italic.woff2 +0 -0
  195. package/resources/themes/lara-light-teal/fonts/InterVariable.woff2 +0 -0
  196. package/resources/themes/lara-light-teal/theme.css +2 -2
  197. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  198. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  199. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  200. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  201. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  202. package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  203. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  204. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  205. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  206. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  207. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  208. package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  209. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  210. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  211. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  212. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  213. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  214. package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  215. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  216. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  217. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  218. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  219. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  220. package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  221. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  222. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  223. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  224. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  225. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  226. package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  227. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  228. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  229. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  230. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  231. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  232. package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  233. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  234. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  235. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  236. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  237. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  238. package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  239. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  240. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  241. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  242. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  243. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  244. package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  245. package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
  246. package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
  247. package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
  248. package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
  249. package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
  250. package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
  251. package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
  252. package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
  253. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  254. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  255. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  256. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  257. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  258. package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  259. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  260. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  261. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  262. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  263. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  264. package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  265. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
  266. package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
  267. package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
  268. package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
  269. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
  270. package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
  271. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
  272. package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
  273. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
  274. package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
  275. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  276. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  277. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  278. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  279. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  280. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  281. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  282. package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  283. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  284. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  285. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  286. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  287. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  288. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  289. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  290. package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  291. package/sidebar/sidebar.cjs.js +1 -1
  292. package/sidebar/sidebar.cjs.min.js +1 -1
  293. package/sidebar/sidebar.esm.js +1 -1
  294. package/sidebar/sidebar.esm.min.js +1 -1
  295. package/sidebar/sidebar.js +1 -1
  296. package/sidebar/sidebar.min.js +1 -1
  297. package/stepper/stepper.cjs.js +7 -1
  298. package/stepper/stepper.cjs.min.js +1 -1
  299. package/stepper/stepper.esm.js +8 -2
  300. package/stepper/stepper.esm.min.js +1 -1
  301. package/stepper/stepper.js +7 -1
  302. package/stepper/stepper.min.js +1 -1
  303. package/toast/toast.cjs.js +9 -7
  304. package/toast/toast.cjs.min.js +1 -1
  305. package/toast/toast.d.ts +1 -1
  306. package/toast/toast.esm.js +9 -7
  307. package/toast/toast.esm.min.js +1 -1
  308. package/toast/toast.js +9 -7
  309. package/toast/toast.min.js +1 -1
  310. package/tree/tree.cjs.js +5 -1
  311. package/tree/tree.cjs.min.js +1 -1
  312. package/tree/tree.esm.js +5 -1
  313. package/tree/tree.esm.min.js +1 -1
  314. package/tree/tree.js +5 -1
  315. package/tree/tree.min.js +1 -1
  316. package/treetable/treetable.d.ts +6 -6
  317. package/utils/utils.cjs.js +5 -0
  318. package/utils/utils.cjs.min.js +1 -1
  319. package/utils/utils.d.ts +1 -0
  320. package/utils/utils.esm.js +5 -0
  321. package/utils/utils.esm.min.js +1 -1
  322. package/utils/utils.js +5 -0
  323. package/utils/utils.min.js +1 -1
  324. package/web-types.json +16 -7
  325. package/resources/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
  326. package/resources/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
  327. package/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  328. package/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  329. package/resources/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
  330. package/resources/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
  331. package/resources/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
  332. package/resources/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
  333. package/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  334. package/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  335. package/resources/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
  336. package/resources/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
  337. package/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  338. package/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  339. package/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  340. package/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  341. package/resources/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
  342. package/resources/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
  343. package/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  344. package/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  345. package/resources/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
  346. package/resources/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
  347. package/resources/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
  348. package/resources/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
  349. package/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  350. package/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  351. package/resources/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
  352. package/resources/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
  353. package/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  354. package/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  355. package/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  356. package/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
package/tree/tree.min.js CHANGED
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.tree=function(e,n,t,r,o,l,a,i,c,u,d,s,p,f){"use strict";function g(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var m=g(n);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},v.apply(this,arguments)}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e){if(Array.isArray(e))return h(e)}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function x(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e){return y(e)||b(e)||x(e)||S()}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function C(e,n){if("object"!==E(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function O(e){var n=C(e,"string");return"symbol"===E(n)?n:String(n)}function D(e,n,t){return(n=O(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function I(e){if(Array.isArray(e))return e}function N(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,l,a,i=[],c=!0,u=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=l.call(t)).done)&&(i.push(r.value),i.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return i}}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,n){return I(e)||N(e,n)||x(e,n)||w()}var P=r.ComponentBase.extend({defaultProps:{__TYPE:"Tree",__parentMetadata:null,id:null,value:null,ariaLabel:null,ariaLabelledBy:null,checkboxIcon:null,className:null,collapseIcon:null,contentClassName:null,contentStyle:null,contextMenuSelectionKey:null,disabled:!1,dragdropScope:null,emptyMessage:null,expandIcon:null,expandedKeys:null,filter:!1,filterBy:"label",filterIcon:null,filterLocale:void 0,filterMode:"lenient",filterPlaceholder:null,filterTemplate:null,filterValue:null,footer:null,header:null,level:0,loading:!1,loadingIcon:null,metaKeySelection:!1,nodeTemplate:null,onCollapse:null,onContextMenu:null,onContextMenuSelectionChange:null,onDragDrop:null,onExpand:null,onFilterValueChange:null,onNodeClick:null,onNodeDoubleClick:null,onSelect:null,onSelectionChange:null,onToggle:null,onUnselect:null,propagateSelectionDown:!0,propagateSelectionUp:!0,selectionKeys:null,selectionMode:null,showHeader:!0,style:null,togglerTemplate:null,children:void 0},css:{classes:{root:function(e){var n=e.props;return i.classNames("p-tree p-component",{"p-tree-selectable":n.selectionMode,"p-tree-loading":n.loading,"p-disabled":n.disabled})},loadingOverlay:"p-tree-loading-overlay p-component-overlay",loadingIcon:"p-tree-loading-icon",filterContainer:"p-tree-filter-container",input:"p-tree-filter p-inputtext p-component",searchIcon:"p-tree-filter-icon",container:"p-tree-container",node:function(e){return i.classNames("p-treenode",{"p-treenode-leaf":e.isLeaf})},content:function(e){var n=e.nodeProps,t=e.checked,r=e.selected;return i.classNames("p-treenode-content",{"p-treenode-selectable":n.selectionMode&&!1!==n.node.selectable,"p-highlight":(0,e.isCheckboxSelectionMode)()?t:r,"p-highlight-contextmenu":n.contextMenuSelectionKey&&n.contextMenuSelectionKey===n.node.key,"p-disabled":n.disabled})},toggler:"p-tree-toggler p-link",togglerIcon:"p-tree-toggler-icon",nodeCheckbox:function(e){return i.classNames({"p-indeterminate":e.partialChecked})},nodeIcon:"p-treenode-icon",label:"p-treenode-label",subgroup:"p-treenode-children",checkIcon:"p-checkbox-icon",emptyMessage:"p-treenode p-tree-empty-message",droppoint:"p-treenode-droppoint",header:"p-tree-header",footer:"p-tree-footer"}}}),M=r.ComponentBase.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:{box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(e){var n=e.props,t=e.context;return i.classNames("p-checkbox p-component",{"p-highlight":e.checked,"p-disabled":n.disabled,"p-invalid":n.invalid,"p-variant-filled":n.variant?"filled"===n.variant:t&&"filled"===t.inputStyle})}}}});function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function U(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){D(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var K=m.memo(m.forwardRef((function(e,n){var l=o.useMergeProps(),a=m.useContext(t.PrimeReactContext),u=M.getProps(e,a),d=j(m.useState(!1),2),s=d[1],p=M.setMetaData({props:u,state:{focused:d[0]},context:{checked:u.checked===u.trueValue,disabled:u.disabled}}),g=p.ptm,h=p.cx;r.useHandleStyle(M.css.styles,p.isUnstyled,{name:"checkbox"});var y=m.useRef(null),b=m.useRef(u.inputRef),x=function(){return u.checked===u.trueValue},S=function(e){if(!u.disabled&&!u.readonly&&u.onChange){var n,t=x()?u.falseValue:u.trueValue;if(null==u||null===(n=u.onChange)||void 0===n||n.call(u,{originalEvent:e,value:u.value,checked:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{type:"checkbox",name:u.name,id:u.id,value:u.value,checked:t}}),e.defaultPrevented)return;i.DomHandler.focus(b.current)}};m.useImperativeHandle(n,(function(){return{props:u,focus:function(){return i.DomHandler.focus(b.current)},getElement:function(){return y.current},getInput:function(){return b.current}}})),m.useEffect((function(){i.ObjectUtils.combinedRefs(b,u.inputRef)}),[b,u.inputRef]),o.useUpdateEffect((function(){b.current.checked=x()}),[u.checked,u.trueValue]),o.useMountEffect((function(){u.autoFocus&&i.DomHandler.focus(b.current,u.autoFocus)}));var k,E,C,O,D,I=x(),N=i.ObjectUtils.isNotEmpty(u.tooltip),w=M.getOtherProps(u),P=l({id:u.id,className:i.classNames(u.className,h("root",{checked:I,context:a})),style:u.style,"data-p-highlight":I,"data-p-disabled":u.disabled,onContextMenu:u.onContextMenu,onMouseDown:u.onMouseDown},w,g("root"));return m.createElement(m.Fragment,null,m.createElement("div",v({ref:y},P),(O=i.ObjectUtils.reduceKeys(w,i.DomHandler.ARIA_PROPS),D=l(U({id:u.inputId,type:"checkbox",className:h("input"),name:u.name,tabIndex:u.tabIndex,onFocus:function(e){return s(!0),void(null==u||null===(n=u.onFocus)||void 0===n||n.call(u));var n},onBlur:function(e){return s(!1),void(null==u||null===(n=u.onBlur)||void 0===n||n.call(u));var n},onChange:function(e){return S(e)},disabled:u.disabled,readOnly:u.readOnly,required:u.required,"aria-invalid":u.invalid,checked:I},O),g("input")),m.createElement("input",v({ref:b},D))),(k=l({className:h("icon")},g("icon")),E=l({className:h("box",{checked:I}),"data-p-highlight":I,"data-p-disabled":u.disabled},g("box")),C=i.IconUtils.getJSXIcon(I?u.icon||m.createElement(c.CheckIcon,k):null,U({},k),{props:u,checked:I}),m.createElement("div",E,C))),N&&m.createElement(f.Tooltip,v({target:y,content:u.tooltip,pt:g("tooltip")},u.tooltipOptions)))})));function A(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=L(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function L(e,n){if(e){if("string"==typeof e)return R(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(e,n):void 0}}function R(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){D(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}K.displayName="Checkbox";var V=m.memo((function(e){var n,t,r,l,a,f,g,v=m.useRef(null),h=m.useRef(null),y=m.useRef(!1),b=o.useMergeProps(),x=e.isNodeLeaf(e.node),S=e.node.label,E=!!e.expandedKeys&&void 0!==e.expandedKeys[e.node.key]||e.node.expanded,C=e.ptm,O=e.cx,I=function(n){return C(n,{hostName:e.hostName,context:{selected:!ce()&&re(),expanded:E||!1,checked:!!ce()&&oe(),isLeaf:x}})},N=function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.expandedKeys?F({},e.expandedKeys):{};r[e.node.key]=!0,e.onToggle({originalEvent:n,value:r,navigateFocusToChild:t}),P(n,!0)},w=function(n){var t=F({},e.expandedKeys);delete t[e.node.key],e.onToggle({originalEvent:n,value:t}),P(n,!1)},j=function(n){e.disabled||(E?w(n):N(n,!1),n.preventDefault(),n.stopPropagation())},P=function(n,t){t?e.onExpand&&e.onExpand({originalEvent:n,node:e.node}):e.onCollapse&&e.onCollapse({originalEvent:n,node:e.node})},M=function(e){var n=e.nextSibling;return n?"droppoint"===n.getAttribute("data-pc-section")?n.nextElementSibling?n.nextElementSibling:null:n:null},T=function e(n){var t=L(n);return t?M(t)||e(t):null},U=function n(t){var r=t.children[1];return r?n(r.children[r.children.length-(e.dragdropScope?2:1)]):t},L=function(e){var n=e.parentElement.parentElement;return i.DomHandler.hasClass(n,"p-treenode")?n:null},R=function(n){e.onClick&&e.onClick({originalEvent:n,node:e.node});var t=n.target.nodeName;if(!e.disabled&&"INPUT"!==t&&"BUTTON"!==t&&"A"!==t&&!i.DomHandler.hasClass(n.target,"p-clickable")){if(e.selectionMode&&!1!==e.node.selectable){var r;if(ce()){var o=oe();r=e.selectionKeys?F({},e.selectionKeys):{},o?(e.propagateSelectionDown?te(e.node,!1,r):delete r[e.node.key],e.propagateSelectionUp&&e.onPropagateUp&&e.onPropagateUp({originalEvent:n,check:!1,selectionKeys:r}),e.onUnselect&&e.onUnselect({originalEvent:n,node:e.node})):(e.propagateSelectionDown?te(e.node,!0,r):r[e.node.key]={checked:!0},e.propagateSelectionUp&&e.onPropagateUp&&e.onPropagateUp({originalEvent:n,check:!0,selectionKeys:r}),e.onSelect&&e.onSelect({originalEvent:n,node:e.node}))}else{var l=re();if(!y.current&&e.metaKeySelection){var a=n.metaKey||n.ctrlKey;l&&a?(ae()?r=null:delete(r=F({},e.selectionKeys))[e.node.key],e.onUnselect&&e.onUnselect({originalEvent:n,node:e.node})):(ae()?r=e.node.key:ie()&&((r=a&&e.selectionKeys?F({},e.selectionKeys):{})[e.node.key]=!0),e.onSelect&&e.onSelect({originalEvent:n,node:e.node}))}else ae()?l?(r=null,e.onUnselect&&e.onUnselect({originalEvent:n,node:e.node})):(r=e.node.key,e.onSelect&&e.onSelect({originalEvent:n,node:e.node})):l?(delete(r=F({},e.selectionKeys))[e.node.key],e.onUnselect&&e.onUnselect({originalEvent:n,node:e.node})):((r=e.selectionKeys?F({},e.selectionKeys):{})[e.node.key]=!0,e.onSelect&&e.onSelect({originalEvent:n,node:e.node}))}e.onSelectionChange&&e.onSelectionChange({originalEvent:n,value:r})}y.current=!1}},H=function(n){e.onDoubleClick&&e.onDoubleClick({originalEvent:n,node:e.node})},J=function(n){e.disabled||(i.DomHandler.clearSelection(),e.onContextMenuSelectionChange&&e.onContextMenuSelectionChange({originalEvent:n,value:e.node.key}),e.onContextMenu&&e.onContextMenu({originalEvent:n,node:e.node}))},X=function(e){if(le(e))switch(e.code){case"Tab":G();break;case"ArrowDown":_(e);break;case"ArrowUp":q(e);break;case"ArrowRight":$(e);break;case"ArrowLeft":z(e);break;case"Enter":case"NumpadEnter":case"Space":Y(e)}},_=function(n){var t="toggler"===n.target.getAttribute("data-pc-section")?n.target.closest('[role="treeitem"]'):n.target,r=t.children[1],o=B(t);if(r)Z(t,e.dragdropScope?r.children[1]:r.children[0]);else if(o)Z(t,o);else{var l=T(t);l&&Z(t,l)}n.preventDefault()},B=function(n){var t=n.nextElementSibling;return t?e.dragdropScope?t.nextElementSibling:t:null},q=function(n){var t,r=n.target,o=(t=r.previousElementSibling)?e.dragdropScope?t.previousElementSibling:t:null;if(o)Z(r,o,U(o));else{var l=L(r);l&&Z(r,l)}n.preventDefault()},$=function(e){x||E||(e.currentTarget.tabIndex=-1,N(e,!0))},z=function(n){var t=i.DomHandler.findSingle(n.currentTarget,'[data-pc-section="toggler"]');if(0===e.level&&!E)return!1;if(E&&!x)return t.click(),!1;var r=ee(n.currentTarget);r&&Z(n.currentTarget,r)},Y=function(e){W(e,y.current),R(e),e.preventDefault()},G=function(){Q()},Q=function(){var e=i.DomHandler.find(v.current.closest('[data-pc-section="container"]'),'[role="treeitem"]'),n=k(e).some((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));if(k(e).forEach((function(e){e.tabIndex=-1})),n){var t=k(e).filter((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));t[0].tabIndex=0}else k(e)[0].tabIndex=0},W=function(n,t){if(null!==e.selectionMode){var r=k(i.DomHandler.find(h.current.parentElement,'[role="treeitem"]'));n.currentTarget.tabIndex=!1===t?-1:0,r.every((function(e){return-1===e.tabIndex}))&&(r[0].tabIndex=0)}},Z=function(e,n,t){var r;e.tabIndex="-1",n.tabIndex="0",(r=t||n)&&r.focus()},ee=function e(n){var t=n.closest("ul").closest("li");if(t){var r=i.DomHandler.findSingle(t,"button");return r&&"hidden"!==r.style.visibility?t:e(n.previousElementSibling)}return null},ne=function(n){var t,r=n.check,o=n.selectionKeys,l=A(e.node.children);try{for(l.s();!(t=l.n()).done;){var a=t.value;o[a.key]&&o[a.key].checked&&0}}catch(e){l.e(e)}finally{l.f()}var c=e.node.key,u=i.ObjectUtils.findChildrenByKey(e.originalOptions,c),d=u.some((function(e){return e.key in o})),s=u.every((function(e){return e.key in o&&o[e.key].checked}));d&&!s?o[c]={checked:!1,partialChecked:!0}:s?o[c]={checked:!0,partialChecked:!1}:r?o[c]={checked:!1,partialChecked:!1}:delete o[c],e.propagateSelectionUp&&e.onPropagateUp&&e.onPropagateUp(n)},te=function e(n,t,r){if(t?r[n.key]={checked:!0,partialChecked:!1}:delete r[n.key],n.children&&n.children.length)for(var o=0;o<n.children.length;o++)e(n.children[o],t,r)},re=function(){return!(!e.selectionMode||!e.selectionKeys)&&(ae()?e.selectionKeys===e.node.key:void 0!==e.selectionKeys[e.node.key])},oe=function(){return!!e.selectionKeys&&(e.selectionKeys[e.node.key]&&e.selectionKeys[e.node.key].checked)||!1},le=function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))},ae=function(){return e.selectionMode&&"single"===e.selectionMode},ie=function(){return e.selectionMode&&"multiple"===e.selectionMode},ce=function(){return e.selectionMode&&"checkbox"===e.selectionMode},ue=function(){y.current=!0},de=function(n,t){(n.preventDefault(),!1!==e.node.droppable)&&(i.DomHandler.removeClass(n.target,"p-treenode-droppoint-active"),e.onDropPoint&&e.onDropPoint({originalEvent:n,path:e.path,index:-1===t?e.index:e.index+1,position:t}))},se=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&(n.dataTransfer.dropEffect="move",n.preventDefault())},pe=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&i.DomHandler.addClass(n.target,"p-treenode-droppoint-active")},fe=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&i.DomHandler.removeClass(n.target,"p-treenode-droppoint-active")},ge=function(n){e.dragdropScope&&!1!==e.node.droppable&&(i.DomHandler.removeClass(v.current,"p-treenode-dragover"),n.preventDefault(),n.stopPropagation(),e.onDrop&&e.onDrop({originalEvent:n,path:e.path,index:e.index}))},me=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&!1!==e.node.droppable&&(n.dataTransfer.dropEffect="move",n.preventDefault(),n.stopPropagation())},ve=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&!1!==e.node.droppable&&i.DomHandler.addClass(v.current,"p-treenode-dragover")},he=function(n){if(e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&!1!==e.node.droppable){var t=n.currentTarget.getBoundingClientRect();(n.nativeEvent.x>t.left+t.width||n.nativeEvent.x<t.left||n.nativeEvent.y>=Math.floor(t.top+t.height)||n.nativeEvent.y<t.top)&&i.DomHandler.removeClass(v.current,"p-treenode-dragover")}},ye=function(n){n.dataTransfer.setData("text",e.dragdropScope),n.dataTransfer.setData(e.dragdropScope,e.dragdropScope),e.onDragStart&&e.onDragStart({originalEvent:n,path:e.path,index:e.index})},be=function(n){e.onDragEnd&&e.onDragEnd({originalEvent:n})},xe=function(){var n=b({className:O("label")},I("label")),t=m.createElement("span",n,S);e.nodeTemplate&&(t=i.ObjectUtils.getJSXElement(e.nodeTemplate,e.node,{onTogglerClick:j,className:"p-treenode-label",element:t,props:e,expanded:E}));return t},Se=function(){if(ce()&&!1!==e.node.selectable){var n,t=oe(),r=!!e.selectionKeys&&e.selectionKeys[e.node.key]&&e.selectionKeys[e.node.key].partialChecked,o=b({className:O("checkIcon")}),l=i.IconUtils.getJSXIcon(t?e.checkboxIcon||m.createElement(c.CheckIcon,o):r?e.checkboxIcon||m.createElement(s.MinusIcon,o):null,F({},o),e),a=b({className:O("nodeCheckbox",{partialChecked:r}),checked:t||r,icon:l,tabIndex:-1,unstyled:null==e||null===(n=e.isUnstyled)||void 0===n?void 0:n.call(e),"data-p-checked":t,"data-p-partialchecked":r,onChange:R},I("nodeCheckbox"));return m.createElement(K,a)}return null},ke=function(){var n=e.node.icon||(E?e.node.expandedIcon:e.node.collapsedIcon);if(n){var t=b({className:i.classNames(n,O("nodeIcon"))},I("nodeIcon"));return i.IconUtils.getJSXIcon(n,F({},t),{props:e})}return null},Ee=function(){var n=b({className:O("togglerIcon"),"aria-hidden":!0},I("togglerIcon")),t=i.IconUtils.getJSXIcon(E?e.collapseIcon||m.createElement(u.ChevronDownIcon,n):e.expandIcon||m.createElement(d.ChevronRightIcon,n),F({},n),{props:e,expanded:E}),r=b({type:"button",className:O("toggler"),tabIndex:-1,"aria-hidden":!0,onClick:j},I("toggler")),o=m.createElement("button",r,t,m.createElement(p.Ripple,null));e.togglerTemplate&&(o=i.ObjectUtils.getJSXElement(e.togglerTemplate,e.node,{onClick:j,containerClassName:"p-tree-toggler p-link",iconClassName:"p-tree-toggler-icon",element:o,props:e,expanded:E}));return o},Ce=function(n){if(e.dragdropScope){var t=b({className:O("droppoint"),role:"treeitem",onDrop:function(e){return de(e,n)},onDragOver:se,onDragEnter:pe,onDragLeave:fe},I("droppoint"));return m.createElement("li",t)}return null},Oe=function(){var n=re(),t=oe(),r=Ee(),o=Se(),l=ke(),a=xe(),c=b({ref:v,className:i.classNames(e.node.className,O("content",{checked:t,selected:n,nodeProps:e,isCheckboxSelectionMode:ce})),style:e.node.style,onClick:R,onDoubleClick:H,onContextMenu:J,onTouchEnd:ue,draggable:e.dragdropScope&&!1!==e.node.draggable&&!e.disabled,onDrop:ge,onDragOver:me,onDragEnter:ve,onDragLeave:he,onDragStart:ye,onDragEnd:be,"data-p-highlight":ce()?t:n},I("content"));return m.createElement("div",c,r,o,l,a)},De=(t=e.disabled||0!==e.index?-1:0,r=re(),l=oe(),a=Oe(),n=b({className:O("subgroup"),role:"group"},I("subgroup")),f=i.ObjectUtils.isNotEmpty(e.node.children)&&E?m.createElement("ul",n,e.node.children.map((function(n,t){return m.createElement(V,{key:n.key||n.label,node:n,checkboxIcon:e.checkboxIcon,collapseIcon:e.collapseIcon,contextMenuSelectionKey:e.contextMenuSelectionKey,cx:O,disabled:e.disabled,dragdropScope:e.dragdropScope,expandIcon:e.expandIcon,expandedKeys:e.expandedKeys,index:t,isNodeLeaf:e.isNodeLeaf,last:t===e.node.children.length-1,metaKeySelection:e.metaKeySelection,nodeTemplate:e.nodeTemplate,onClick:e.onClick,onCollapse:e.onCollapse,onContextMenu:e.onContextMenu,onContextMenuSelectionChange:e.onContextMenuSelectionChange,onDoubleClick:e.onDoubleClick,onDragEnd:e.onDragEnd,onDragStart:e.onDragStart,onDrop:e.onDrop,onDropPoint:e.onDropPoint,onExpand:e.onExpand,onPropagateUp:ne,onSelect:e.onSelect,onSelectionChange:e.onSelectionChange,onToggle:e.onToggle,onUnselect:e.onUnselect,originalOptions:e.originalOptions,parent:e.node,path:e.path+"-"+t,propagateSelectionDown:e.propagateSelectionDown,propagateSelectionUp:e.propagateSelectionUp,ptm:C,selectionKeys:e.selectionKeys,selectionMode:e.selectionMode,togglerTemplate:e.togglerTemplate})}))):null,g=b(D(D({ref:h,className:i.classNames(e.node.className,O("node",{isLeaf:x})),style:e.node.style,tabIndex:t,role:"treeitem","aria-label":S,"aria-level":e.level,"aria-expanded":E,"aria-checked":l,"aria-setsize":e.node.children?e.node.children.length:0,"aria-posinset":e.index+1,onKeyDown:X},"aria-expanded",E),"aria-selected",l||r),I("node")),m.createElement("li",g,a,f));if(e.dragdropScope&&!e.disabled){var Ie=Ce(-1),Ne=e.last?Ce(1):null;return m.createElement(m.Fragment,null,Ie,De,Ne)}return De}));function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function X(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach((function(n){D(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=B(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function B(e,n){if(e){if("string"==typeof e)return q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,n):void 0}}function q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}V.displayName="UITreeNode";var $=m.memo(m.forwardRef((function(e,n){var c=o.useMergeProps(),u=m.useContext(t.PrimeReactContext),d=P.getProps(e,u),s=j(m.useState(""),2),p=s[0],f=s[1],g=j(m.useState(d.expandedKeys),2),h=g[0],y=g[1],b=m.useRef(null),x=m.useRef([]),S=m.useRef(null),E=m.useRef(!1),C=d.onFilterValueChange?d.filterValue:p,O=d.onToggle?d.expandedKeys:h,D=m.useRef(null),I=P.setMetaData({props:d,state:{filterValue:C,expandedKeys:O}}),N=I.ptm,w=I.cx,M=I.isUnstyled;r.useHandleStyle(P.css.styles,M,{name:"tree"});var T,U,K,A={filter:function(e){return Z(e)},reset:function(){return oe()}},L=function(e){var n=e.originalEvent,t=e.value,r=e.navigateFocusToChild;d.onToggle?d.onToggle({originalEvent:n,value:t}):(r&&(D.current=n),y(t))};T=function(){if(D.current){var e=D.current,n="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,t=n.children[1];if(t){n&&(n.tabIndex="-1");var r=d.dragdropScope?t.children[1]:t.children[0];r&&(r.tabIndex="0",r.focus())}D.current=null}},U=[O],K=m.useRef(!1),m.useEffect((function(){if(K.current)return T&&T();K.current=!0}),U);var R=function(e){S.current={path:e.path,index:e.index}},H=function(){S.current=null},F=function e(n){if(Array.isArray(n))return n.map(e);if(n&&Object.getPrototypeOf(n)===Object.prototype){var t={};for(var r in n)t[r]="data"!==r?e(n[r]):n[r];return t}return n},J=function(e){var n;if($(null===(n=S.current)||void 0===n?void 0:n.path,e.path)){var t=F(d.value),r=S.current.path.split("-");r.pop();var o=G(t,r),l=o?o.children[S.current.index]:t[S.current.index],a=G(t,e.path.split("-"));a.children?a.children.push(l):a.children=[l],o?o.children.splice(S.current.index,1):t.splice(S.current.index,1),d.onDragDrop&&d.onDragDrop({originalEvent:e.originalEvent,value:t,dragNode:l,dropNode:a,dropIndex:e.index})}},B=function(e){if(z(e)){var n=F(d.value),t=S.current.path.split("-");t.pop();var r=e.path.split("-");r.pop();var o=G(n,t),l=G(n,r),a=o?o.children[S.current.index]:n[S.current.index],i=Y(S.current.path,e.path);if(o?o.children.splice(S.current.index,1):n.splice(S.current.index,1),e.position<0){var c=i?S.current.index>e.index?e.index:e.index-1:e.index;l?l.children.splice(c,0,a):n.splice(c,0,a)}else l?l.children.push(a):n.push(a);d.onDragDrop&&d.onDragDrop({originalEvent:e.originalEvent,value:n,dragNode:a,dropNode:l,dropIndex:e.index})}},q=function(e,n){return!!e&&(e!==n&&0!==n.indexOf(e))},$=function(e,n){return!!q(e,n)&&!(e.indexOf("-")>0&&e.substring(0,e.lastIndexOf("-"))===n)},z=function(e){var n;return!!q(null===(n=S.current)||void 0===n?void 0:n.path,e.path)&&(-1!==e.position||!Y(S.current.path,e.path)||S.current.index+1!==e.index)},Y=function(e,n){return 1===e.length&&1===n.length||e.substring(0,e.lastIndexOf("-"))===n.substring(0,n.lastIndexOf("-"))},G=function e(n,t){if(0===t.length)return null;var r=parseInt(t[0],10),o=n.children?n.children[r]:n[r];return 1===t.length?o:(t.shift(),e(o,t))},Q=function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},W=function(e){13===e.which&&e.preventDefault()},Z=function(e){E.current=!0;var n=e.target.value;d.onFilterValueChange?d.onFilterValueChange({originalEvent:e,value:n}):f(n)},ee=function(e){f(i.ObjectUtils.isNotEmpty(e)?e:""),ne()},ne=function(){if(E.current){if(i.ObjectUtils.isEmpty(C))x.current=d.value;else{x.current=[];var e,n=d.filterBy.split(","),t=C.toLocaleLowerCase(d.filterLocale),r="strict"===d.filterMode,o=_(d.value);try{for(o.s();!(e=o.n()).done;){var l=X({},e.value),a={searchFields:n,filterText:t,isStrictMode:r};(r&&(te(l,a)||re(l,a))||!r&&(re(l,a)||te(l,a)))&&x.current.push(l)}}catch(e){o.e(e)}finally{o.f()}}E.current=!1}},te=function(e,n){if(e){var t=!1;if(e.children){var r=k(e.children);e.children=[];var o,l=_(r);try{for(l.s();!(o=l.n()).done;){var a=X({},o.value);re(a,n)&&(t=!0,e.children.push(a))}}catch(e){l.e(e)}finally{l.f()}}if(t)return e.expanded=!0,!0}},re=function(e,n){var t,r=n.searchFields,o=n.filterText,l=n.isStrictMode,a=!1,c=_(r);try{for(c.s();!(t=c.n()).done;){String(i.ObjectUtils.resolveFieldData(e,t.value)).toLocaleLowerCase(d.filterLocale).indexOf(o)>-1&&(a=!0)}}catch(e){c.e(e)}finally{c.f()}return(!a||l&&!Q(e))&&(a=te(e,{searchFields:r,filterText:o,isStrictMode:l})||a),a},oe=function(){f("")};m.useImperativeHandle(n,(function(){return{props:d,filter:ee,getElement:function(){return b.current}}}));var le=function(e,n,t){return m.createElement(V,{hostName:"Tree",key:e.key||e.label,node:e,level:d.level+1,originalOptions:d.value,index:n,last:t,path:String(n),checkboxIcon:d.checkboxIcon,collapseIcon:d.collapseIcon,contextMenuSelectionKey:d.contextMenuSelectionKey,cx:w,disabled:d.disabled,dragdropScope:d.dragdropScope,expandIcon:d.expandIcon,expandedKeys:O,isNodeLeaf:Q,metaKeySelection:d.metaKeySelection,nodeTemplate:d.nodeTemplate,onClick:d.onNodeClick,onCollapse:d.onCollapse,onContextMenu:d.onContextMenu,onContextMenuSelectionChange:d.onContextMenuSelectionChange,onDoubleClick:d.onNodeDoubleClick,onDragEnd:H,onDragStart:R,onDrop:J,onDropPoint:B,onExpand:d.onExpand,onSelect:d.onSelect,onSelectionChange:d.onSelectionChange,onToggle:L,onUnselect:d.onUnselect,propagateSelectionDown:d.propagateSelectionDown,propagateSelectionUp:d.propagateSelectionUp,ptm:N,selectionKeys:d.selectionKeys,selectionMode:d.selectionMode,togglerTemplate:d.togglerTemplate,isUnstyled:M})},ae=function(e){var n=c(X({className:i.classNames(d.contentClassName,w("container")),role:"tree","aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,style:d.contentStyle},de),N("container"));return m.createElement("ul",n,e)},ie=function(e){return e.map((function(n,t){return le(n,t,t===e.length-1)}))},ce=function(){if(d.filter){var e=i.ObjectUtils.isNotEmpty(C)?C:"",n=c({className:w("searchIcon")},N("searchIcon")),t=i.IconUtils.getJSXIcon(d.filterIcon||m.createElement(l.SearchIcon,n),X({},n),{props:d}),r=c({className:w("filterContainer")},N("filterContainer")),o=c({type:"text",value:e,autoComplete:"off",className:w("input"),placeholder:d.filterPlaceholder,"aria-label":d.filterPlaceholder,onKeyDown:W,onChange:Z,disabled:d.disabled},N("input")),a=m.createElement("div",r,m.createElement("input",o),t);if(d.filterTemplate)a=i.ObjectUtils.getJSXElement(d.filterTemplate,{className:"p-tree-filter-container",element:a,filterOptions:A,filterInputKeyDown:W,filterInputChange:Z,filterIconClassName:"p-dropdown-filter-icon",props:d});return m.createElement(m.Fragment,null,a)}return null},ue=P.getOtherProps(d),de=i.ObjectUtils.reduceKeys(ue,i.DomHandler.ARIA_PROPS),se=function(){if(d.loading){var e=c({className:w("loadingIcon")},N("loadingIcon")),n=d.loadingIcon||m.createElement(a.SpinnerIcon,v({},e,{spin:!0})),t=i.IconUtils.getJSXIcon(n,X({},e),{props:d}),r=c({className:w("loadingOverlay")},N("loadingOverlay"));return m.createElement("div",r,t)}return null}(),pe=function(){if(d.value){d.filter&&(E.current=!0,ne());var e=d.filter&&x.current?x.current:d.value;if(e.length>0){var n=ie(e);return ae(n)}var r=(o=c({className:i.classNames(d.contentClassName,w("emptyMessage")),role:"treeitem"},N("emptyMessage")),l=i.ObjectUtils.getJSXElement(d.emptyMessage,d)||t.localeOption("emptyMessage"),m.createElement("li",o,m.createElement("span",{className:"p-treenode-content"},l)));return ae(r)}var o,l;return null}(),fe=function(){if(d.showHeader){var e=ce(),n=e;if(d.header)n=i.ObjectUtils.getJSXElement(d.header,{filterContainerClassName:"p-tree-filter-container",filterIconClassName:"p-tree-filter-icon",filterInput:{className:"p-tree-filter p-inputtext p-component",onKeyDown:W,onChange:Z},filterElement:e,element:n,props:d});var t=c({className:w("header")},N("header"));return m.createElement("div",t,n)}return null}(),ge=function(){var e=i.ObjectUtils.getJSXElement(d.footer,d),n=c({className:w("footer")},N("footer"));return m.createElement("div",n,e)}(),me=c({ref:b,className:i.classNames(d.className,w("root")),style:d.style,id:d.id},P.getOtherProps(d),N("root"));return m.createElement("div",me,se,fe,pe,ge)})));return $.displayName="Tree",e.Tree=$,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.search,primereact.icons.spinner,primereact.utils,primereact.icons.check,primereact.icons.chevrondown,primereact.icons.chevronright,primereact.icons.minus,primereact.ripple,primereact.tooltip);
1
+ this.primereact=this.primereact||{},this.primereact.tree=function(e,n,t,r,o,l,a,i,c,u,d,s,p,f){"use strict";function g(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var m=g(n);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},v.apply(this,arguments)}function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function y(e){if(Array.isArray(e))return h(e)}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function x(e,n){if(e){if("string"==typeof e)return h(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,n):void 0}}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e){return y(e)||b(e)||x(e)||S()}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function C(e,n){if("object"!==E(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}function O(e){var n=C(e,"string");return"symbol"===E(n)?n:String(n)}function D(e,n,t){return(n=O(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function I(e){if(Array.isArray(e))return e}function N(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,l,a,i=[],c=!0,u=!1;try{if(l=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=l.call(t)).done)&&(i.push(r.value),i.length!==n);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw o}}return i}}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,n){return I(e)||N(e,n)||x(e,n)||w()}var P=r.ComponentBase.extend({defaultProps:{__TYPE:"Tree",__parentMetadata:null,id:null,value:null,ariaLabel:null,ariaLabelledBy:null,checkboxIcon:null,className:null,collapseIcon:null,contentClassName:null,contentStyle:null,contextMenuSelectionKey:null,disabled:!1,dragdropScope:null,emptyMessage:null,expandIcon:null,expandedKeys:null,filter:!1,filterBy:"label",filterIcon:null,filterLocale:void 0,filterMode:"lenient",filterPlaceholder:null,filterTemplate:null,filterValue:null,footer:null,header:null,level:0,loading:!1,loadingIcon:null,metaKeySelection:!1,nodeTemplate:null,onCollapse:null,onContextMenu:null,onContextMenuSelectionChange:null,onDragDrop:null,onExpand:null,onFilterValueChange:null,onNodeClick:null,onNodeDoubleClick:null,onSelect:null,onSelectionChange:null,onToggle:null,onUnselect:null,propagateSelectionDown:!0,propagateSelectionUp:!0,selectionKeys:null,selectionMode:null,showHeader:!0,style:null,togglerTemplate:null,children:void 0},css:{classes:{root:function(e){var n=e.props;return i.classNames("p-tree p-component",{"p-tree-selectable":n.selectionMode,"p-tree-loading":n.loading,"p-disabled":n.disabled})},loadingOverlay:"p-tree-loading-overlay p-component-overlay",loadingIcon:"p-tree-loading-icon",filterContainer:"p-tree-filter-container",input:"p-tree-filter p-inputtext p-component",searchIcon:"p-tree-filter-icon",container:"p-tree-container",node:function(e){return i.classNames("p-treenode",{"p-treenode-leaf":e.isLeaf})},content:function(e){var n=e.nodeProps,t=e.checked,r=e.selected;return i.classNames("p-treenode-content",{"p-treenode-selectable":n.selectionMode&&!1!==n.node.selectable,"p-highlight":(0,e.isCheckboxSelectionMode)()?t:r,"p-highlight-contextmenu":n.contextMenuSelectionKey&&n.contextMenuSelectionKey===n.node.key,"p-disabled":n.disabled})},toggler:"p-tree-toggler p-link",togglerIcon:"p-tree-toggler-icon",nodeCheckbox:function(e){return i.classNames({"p-indeterminate":e.partialChecked})},nodeIcon:"p-treenode-icon",label:"p-treenode-label",subgroup:"p-treenode-children",checkIcon:"p-checkbox-icon",emptyMessage:"p-treenode p-tree-empty-message",droppoint:"p-treenode-droppoint",header:"p-tree-header",footer:"p-tree-footer"}}}),M=r.ComponentBase.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:{box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(e){var n=e.props,t=e.context;return i.classNames("p-checkbox p-component",{"p-highlight":e.checked,"p-disabled":n.disabled,"p-invalid":n.invalid,"p-variant-filled":n.variant?"filled"===n.variant:t&&"filled"===t.inputStyle})}}}});function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function U(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){D(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var K=m.memo(m.forwardRef((function(e,n){var l=o.useMergeProps(),a=m.useContext(t.PrimeReactContext),u=M.getProps(e,a),d=j(m.useState(!1),2),s=d[1],p=M.setMetaData({props:u,state:{focused:d[0]},context:{checked:u.checked===u.trueValue,disabled:u.disabled}}),g=p.ptm,h=p.cx;r.useHandleStyle(M.css.styles,p.isUnstyled,{name:"checkbox"});var y=m.useRef(null),b=m.useRef(u.inputRef),x=function(){return u.checked===u.trueValue},S=function(e){if(!u.disabled&&!u.readonly&&u.onChange){var n,t=x()?u.falseValue:u.trueValue;if(null==u||null===(n=u.onChange)||void 0===n||n.call(u,{originalEvent:e,value:u.value,checked:t,stopPropagation:function(){null==e||e.stopPropagation()},preventDefault:function(){null==e||e.preventDefault()},target:{type:"checkbox",name:u.name,id:u.id,value:u.value,checked:t}}),e.defaultPrevented)return;i.DomHandler.focus(b.current)}};m.useImperativeHandle(n,(function(){return{props:u,focus:function(){return i.DomHandler.focus(b.current)},getElement:function(){return y.current},getInput:function(){return b.current}}})),m.useEffect((function(){i.ObjectUtils.combinedRefs(b,u.inputRef)}),[b,u.inputRef]),o.useUpdateEffect((function(){b.current.checked=x()}),[u.checked,u.trueValue]),o.useMountEffect((function(){u.autoFocus&&i.DomHandler.focus(b.current,u.autoFocus)}));var k,E,C,O,D,I=x(),N=i.ObjectUtils.isNotEmpty(u.tooltip),w=M.getOtherProps(u),P=l({id:u.id,className:i.classNames(u.className,h("root",{checked:I,context:a})),style:u.style,"data-p-highlight":I,"data-p-disabled":u.disabled,onContextMenu:u.onContextMenu,onMouseDown:u.onMouseDown},w,g("root"));return m.createElement(m.Fragment,null,m.createElement("div",v({ref:y},P),(O=i.ObjectUtils.reduceKeys(w,i.DomHandler.ARIA_PROPS),D=l(U({id:u.inputId,type:"checkbox",className:h("input"),name:u.name,tabIndex:u.tabIndex,onFocus:function(e){return s(!0),void(null==u||null===(n=u.onFocus)||void 0===n||n.call(u));var n},onBlur:function(e){return s(!1),void(null==u||null===(n=u.onBlur)||void 0===n||n.call(u));var n},onChange:function(e){return S(e)},disabled:u.disabled,readOnly:u.readOnly,required:u.required,"aria-invalid":u.invalid,checked:I},O),g("input")),m.createElement("input",v({ref:b},D))),(k=l({className:h("icon")},g("icon")),E=l({className:h("box",{checked:I}),"data-p-highlight":I,"data-p-disabled":u.disabled},g("box")),C=i.IconUtils.getJSXIcon(I?u.icon||m.createElement(c.CheckIcon,k):null,U({},k),{props:u,checked:I}),m.createElement("div",E,C))),N&&m.createElement(f.Tooltip,v({target:y,content:u.tooltip,pt:g("tooltip")},u.tooltipOptions)))})));function A(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=L(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function L(e,n){if(e){if("string"==typeof e)return R(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(e,n):void 0}}function R(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function H(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){D(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}K.displayName="Checkbox";var V=m.memo((function(e){var n,t,r,l,a,f,g,v=m.useRef(null),h=m.useRef(null),y=m.useRef(!1),b=o.useMergeProps(),x=e.isNodeLeaf(e.node),S=e.node.label,E=!!e.expandedKeys&&void 0!==e.expandedKeys[e.node.key]||e.node.expanded,C=e.ptm,O=e.cx,I=function(n){return C(n,{hostName:e.hostName,context:{selected:!ce()&&re(),expanded:E||!1,checked:!!ce()&&oe(),isLeaf:x}})},N=function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.expandedKeys?F({},e.expandedKeys):{};r[e.node.key]=!0,e.onToggle({originalEvent:n,value:r,navigateFocusToChild:t}),P(n,!0)},w=function(n){var t=F({},e.expandedKeys);delete t[e.node.key],e.onToggle({originalEvent:n,value:t}),P(n,!1)},j=function(n){e.disabled||(E?w(n):N(n,!1),n.preventDefault(),n.stopPropagation())},P=function(n,t){t?e.onExpand&&e.onExpand({originalEvent:n,node:e.node}):e.onCollapse&&e.onCollapse({originalEvent:n,node:e.node})},M=function(e){var n=e.nextSibling;return n?"droppoint"===n.getAttribute("data-pc-section")?n.nextElementSibling?n.nextElementSibling:null:n:null},T=function e(n){var t=L(n);return t?M(t)||e(t):null},U=function n(t){var r=t.children[1];return r?n(r.children[r.children.length-(e.dragdropScope?2:1)]):t},L=function(e){var n=e.parentElement.parentElement;return i.DomHandler.hasClass(n,"p-treenode")?n:null},R=function(n){e.onClick&&e.onClick({originalEvent:n,node:e.node});var t=n.target.nodeName;if(!e.disabled&&"INPUT"!==t&&"BUTTON"!==t&&"A"!==t&&!i.DomHandler.hasClass(n.target,"p-clickable")){if(e.selectionMode&&!1!==e.node.selectable){var r;if(ce()){var o=oe();r=e.selectionKeys?F({},e.selectionKeys):{},o?(e.propagateSelectionDown?te(e.node,!1,r):delete r[e.node.key],e.propagateSelectionUp&&e.onPropagateUp&&e.onPropagateUp({originalEvent:n,check:!1,selectionKeys:r}),e.onUnselect&&e.onUnselect({originalEvent:n,node:e.node})):(e.propagateSelectionDown?te(e.node,!0,r):r[e.node.key]={checked:!0},e.propagateSelectionUp&&e.onPropagateUp&&e.onPropagateUp({originalEvent:n,check:!0,selectionKeys:r}),e.onSelect&&e.onSelect({originalEvent:n,node:e.node}))}else{var l=re();if(!y.current&&e.metaKeySelection){var a=n.metaKey||n.ctrlKey;l&&a?(ae()?r=null:delete(r=F({},e.selectionKeys))[e.node.key],e.onUnselect&&e.onUnselect({originalEvent:n,node:e.node})):(ae()?r=e.node.key:ie()&&((r=a&&e.selectionKeys?F({},e.selectionKeys):{})[e.node.key]=!0),e.onSelect&&e.onSelect({originalEvent:n,node:e.node}))}else ae()?l?(r=null,e.onUnselect&&e.onUnselect({originalEvent:n,node:e.node})):(r=e.node.key,e.onSelect&&e.onSelect({originalEvent:n,node:e.node})):l?(delete(r=F({},e.selectionKeys))[e.node.key],e.onUnselect&&e.onUnselect({originalEvent:n,node:e.node})):((r=e.selectionKeys?F({},e.selectionKeys):{})[e.node.key]=!0,e.onSelect&&e.onSelect({originalEvent:n,node:e.node}))}e.onSelectionChange&&e.onSelectionChange({originalEvent:n,value:r})}y.current=!1}},H=function(n){e.onDoubleClick&&e.onDoubleClick({originalEvent:n,node:e.node})},J=function(n){e.disabled||(i.DomHandler.clearSelection(),e.onContextMenuSelectionChange&&e.onContextMenuSelectionChange({originalEvent:n,value:e.node.key}),e.onContextMenu&&e.onContextMenu({originalEvent:n,node:e.node}))},X=function(e){if(le(e))switch(e.code){case"Tab":G();break;case"ArrowDown":_(e);break;case"ArrowUp":q(e);break;case"ArrowRight":$(e);break;case"ArrowLeft":z(e);break;case"Enter":case"NumpadEnter":Y(e);break;case"Space":["INPUT"].includes(e.target.nodeName)||Y(e)}},_=function(n){var t="toggler"===n.target.getAttribute("data-pc-section")?n.target.closest('[role="treeitem"]'):n.target,r=t.children[1],o=B(t);if(r)Z(t,e.dragdropScope?r.children[1]:r.children[0]);else if(o)Z(t,o);else{var l=T(t);l&&Z(t,l)}n.preventDefault()},B=function(n){var t=n.nextElementSibling;return t?e.dragdropScope?t.nextElementSibling:t:null},q=function(n){var t,r=n.target,o=(t=r.previousElementSibling)?e.dragdropScope?t.previousElementSibling:t:null;if(o)Z(r,o,U(o));else{var l=L(r);l&&Z(r,l)}n.preventDefault()},$=function(e){x||E||(e.currentTarget.tabIndex=-1,N(e,!0))},z=function(n){var t=i.DomHandler.findSingle(n.currentTarget,'[data-pc-section="toggler"]');if(0===e.level&&!E)return!1;if(E&&!x)return t.click(),!1;var r=ee(n.currentTarget);r&&Z(n.currentTarget,r)},Y=function(e){W(e,y.current),R(e),e.preventDefault()},G=function(){Q()},Q=function(){var e=i.DomHandler.find(v.current.closest('[data-pc-section="container"]'),'[role="treeitem"]'),n=k(e).some((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));if(k(e).forEach((function(e){e.tabIndex=-1})),n){var t=k(e).filter((function(e){return"true"===e.getAttribute("aria-selected")||"true"===e.getAttribute("aria-checked")}));t[0].tabIndex=0}else k(e)[0].tabIndex=0},W=function(n,t){if(null!==e.selectionMode){var r=k(i.DomHandler.find(h.current.parentElement,'[role="treeitem"]'));n.currentTarget.tabIndex=!1===t?-1:0,r.every((function(e){return-1===e.tabIndex}))&&(r[0].tabIndex=0)}},Z=function(e,n,t){var r;e.tabIndex="-1",n.tabIndex="0",(r=t||n)&&r.focus()},ee=function e(n){var t=n.closest("ul").closest("li");if(t){var r=i.DomHandler.findSingle(t,"button");return r&&"hidden"!==r.style.visibility?t:e(n.previousElementSibling)}return null},ne=function(n){var t,r=n.check,o=n.selectionKeys,l=A(e.node.children);try{for(l.s();!(t=l.n()).done;){var a=t.value;o[a.key]&&o[a.key].checked&&0}}catch(e){l.e(e)}finally{l.f()}var c=e.node.key,u=i.ObjectUtils.findChildrenByKey(e.originalOptions,c),d=u.some((function(e){return e.key in o})),s=u.every((function(e){return e.key in o&&o[e.key].checked}));d&&!s?o[c]={checked:!1,partialChecked:!0}:s?o[c]={checked:!0,partialChecked:!1}:r?o[c]={checked:!1,partialChecked:!1}:delete o[c],e.propagateSelectionUp&&e.onPropagateUp&&e.onPropagateUp(n)},te=function e(n,t,r){if(t?r[n.key]={checked:!0,partialChecked:!1}:delete r[n.key],n.children&&n.children.length)for(var o=0;o<n.children.length;o++)e(n.children[o],t,r)},re=function(){return!(!e.selectionMode||!e.selectionKeys)&&(ae()?e.selectionKeys===e.node.key:void 0!==e.selectionKeys[e.node.key])},oe=function(){return!!e.selectionKeys&&(e.selectionKeys[e.node.key]&&e.selectionKeys[e.node.key].checked)||!1},le=function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))},ae=function(){return e.selectionMode&&"single"===e.selectionMode},ie=function(){return e.selectionMode&&"multiple"===e.selectionMode},ce=function(){return e.selectionMode&&"checkbox"===e.selectionMode},ue=function(){y.current=!0},de=function(n,t){(n.preventDefault(),!1!==e.node.droppable)&&(i.DomHandler.removeClass(n.target,"p-treenode-droppoint-active"),e.onDropPoint&&e.onDropPoint({originalEvent:n,path:e.path,index:-1===t?e.index:e.index+1,position:t}))},se=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&(n.dataTransfer.dropEffect="move",n.preventDefault())},pe=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&i.DomHandler.addClass(n.target,"p-treenode-droppoint-active")},fe=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&i.DomHandler.removeClass(n.target,"p-treenode-droppoint-active")},ge=function(n){e.dragdropScope&&!1!==e.node.droppable&&(i.DomHandler.removeClass(v.current,"p-treenode-dragover"),n.preventDefault(),n.stopPropagation(),e.onDrop&&e.onDrop({originalEvent:n,path:e.path,index:e.index}))},me=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&!1!==e.node.droppable&&(n.dataTransfer.dropEffect="move",n.preventDefault(),n.stopPropagation())},ve=function(n){e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&!1!==e.node.droppable&&i.DomHandler.addClass(v.current,"p-treenode-dragover")},he=function(n){if(e.dragdropScope&&n.dataTransfer.types[1]===e.dragdropScope.toLocaleLowerCase()&&!1!==e.node.droppable){var t=n.currentTarget.getBoundingClientRect();(n.nativeEvent.x>t.left+t.width||n.nativeEvent.x<t.left||n.nativeEvent.y>=Math.floor(t.top+t.height)||n.nativeEvent.y<t.top)&&i.DomHandler.removeClass(v.current,"p-treenode-dragover")}},ye=function(n){n.dataTransfer.setData("text",e.dragdropScope),n.dataTransfer.setData(e.dragdropScope,e.dragdropScope),e.onDragStart&&e.onDragStart({originalEvent:n,path:e.path,index:e.index})},be=function(n){e.onDragEnd&&e.onDragEnd({originalEvent:n})},xe=function(){var n=b({className:O("label")},I("label")),t=m.createElement("span",n,S);e.nodeTemplate&&(t=i.ObjectUtils.getJSXElement(e.nodeTemplate,e.node,{onTogglerClick:j,className:"p-treenode-label",element:t,props:e,expanded:E}));return t},Se=function(){if(ce()&&!1!==e.node.selectable){var n,t=oe(),r=!!e.selectionKeys&&e.selectionKeys[e.node.key]&&e.selectionKeys[e.node.key].partialChecked,o=b({className:O("checkIcon")}),l=i.IconUtils.getJSXIcon(t?e.checkboxIcon||m.createElement(c.CheckIcon,o):r?e.checkboxIcon||m.createElement(s.MinusIcon,o):null,F({},o),e),a=b({className:O("nodeCheckbox",{partialChecked:r}),checked:t||r,icon:l,tabIndex:-1,unstyled:null==e||null===(n=e.isUnstyled)||void 0===n?void 0:n.call(e),"data-p-checked":t,"data-p-partialchecked":r,onChange:R},I("nodeCheckbox"));return m.createElement(K,a)}return null},ke=function(){var n=e.node.icon||(E?e.node.expandedIcon:e.node.collapsedIcon);if(n){var t=b({className:i.classNames(n,O("nodeIcon"))},I("nodeIcon"));return i.IconUtils.getJSXIcon(n,F({},t),{props:e})}return null},Ee=function(){var n=b({className:O("togglerIcon"),"aria-hidden":!0},I("togglerIcon")),t=i.IconUtils.getJSXIcon(E?e.collapseIcon||m.createElement(u.ChevronDownIcon,n):e.expandIcon||m.createElement(d.ChevronRightIcon,n),F({},n),{props:e,expanded:E}),r=b({type:"button",className:O("toggler"),tabIndex:-1,"aria-hidden":!0,onClick:j},I("toggler")),o=m.createElement("button",r,t,m.createElement(p.Ripple,null));e.togglerTemplate&&(o=i.ObjectUtils.getJSXElement(e.togglerTemplate,e.node,{onClick:j,containerClassName:"p-tree-toggler p-link",iconClassName:"p-tree-toggler-icon",element:o,props:e,expanded:E}));return o},Ce=function(n){if(e.dragdropScope){var t=b({className:O("droppoint"),role:"treeitem",onDrop:function(e){return de(e,n)},onDragOver:se,onDragEnter:pe,onDragLeave:fe},I("droppoint"));return m.createElement("li",t)}return null},Oe=function(){var n=re(),t=oe(),r=Ee(),o=Se(),l=ke(),a=xe(),c=b({ref:v,className:i.classNames(e.node.className,O("content",{checked:t,selected:n,nodeProps:e,isCheckboxSelectionMode:ce})),style:e.node.style,onClick:R,onDoubleClick:H,onContextMenu:J,onTouchEnd:ue,draggable:e.dragdropScope&&!1!==e.node.draggable&&!e.disabled,onDrop:ge,onDragOver:me,onDragEnter:ve,onDragLeave:he,onDragStart:ye,onDragEnd:be,"data-p-highlight":ce()?t:n},I("content"));return m.createElement("div",c,r,o,l,a)},De=(t=e.disabled||0!==e.index?-1:0,r=re(),l=oe(),a=Oe(),n=b({className:O("subgroup"),role:"group"},I("subgroup")),f=i.ObjectUtils.isNotEmpty(e.node.children)&&E?m.createElement("ul",n,e.node.children.map((function(n,t){return m.createElement(V,{key:n.key||n.label,node:n,checkboxIcon:e.checkboxIcon,collapseIcon:e.collapseIcon,contextMenuSelectionKey:e.contextMenuSelectionKey,cx:O,disabled:e.disabled,dragdropScope:e.dragdropScope,expandIcon:e.expandIcon,expandedKeys:e.expandedKeys,index:t,isNodeLeaf:e.isNodeLeaf,last:t===e.node.children.length-1,metaKeySelection:e.metaKeySelection,nodeTemplate:e.nodeTemplate,onClick:e.onClick,onCollapse:e.onCollapse,onContextMenu:e.onContextMenu,onContextMenuSelectionChange:e.onContextMenuSelectionChange,onDoubleClick:e.onDoubleClick,onDragEnd:e.onDragEnd,onDragStart:e.onDragStart,onDrop:e.onDrop,onDropPoint:e.onDropPoint,onExpand:e.onExpand,onPropagateUp:ne,onSelect:e.onSelect,onSelectionChange:e.onSelectionChange,onToggle:e.onToggle,onUnselect:e.onUnselect,originalOptions:e.originalOptions,parent:e.node,path:e.path+"-"+t,propagateSelectionDown:e.propagateSelectionDown,propagateSelectionUp:e.propagateSelectionUp,ptm:C,selectionKeys:e.selectionKeys,selectionMode:e.selectionMode,togglerTemplate:e.togglerTemplate})}))):null,g=b(D(D({ref:h,className:i.classNames(e.node.className,O("node",{isLeaf:x})),style:e.node.style,tabIndex:t,role:"treeitem","aria-label":S,"aria-level":e.level,"aria-expanded":E,"aria-checked":l,"aria-setsize":e.node.children?e.node.children.length:0,"aria-posinset":e.index+1,onKeyDown:X},"aria-expanded",E),"aria-selected",l||r),I("node")),m.createElement("li",g,a,f));if(e.dragdropScope&&!e.disabled){var Ie=Ce(-1),Ne=e.last?Ce(1):null;return m.createElement(m.Fragment,null,Ie,De,Ne)}return De}));function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function X(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach((function(n){D(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=B(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,l=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw l}}}}function B(e,n){if(e){if("string"==typeof e)return q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,n):void 0}}function q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}V.displayName="UITreeNode";var $=m.memo(m.forwardRef((function(e,n){var c=o.useMergeProps(),u=m.useContext(t.PrimeReactContext),d=P.getProps(e,u),s=j(m.useState(""),2),p=s[0],f=s[1],g=j(m.useState(d.expandedKeys),2),h=g[0],y=g[1],b=m.useRef(null),x=m.useRef([]),S=m.useRef(null),E=m.useRef(!1),C=d.onFilterValueChange?d.filterValue:p,O=d.onToggle?d.expandedKeys:h,D=m.useRef(null),I=P.setMetaData({props:d,state:{filterValue:C,expandedKeys:O}}),N=I.ptm,w=I.cx,M=I.isUnstyled;r.useHandleStyle(P.css.styles,M,{name:"tree"});var T,U,K,A={filter:function(e){return Z(e)},reset:function(){return oe()}},L=function(e){var n=e.originalEvent,t=e.value,r=e.navigateFocusToChild;d.onToggle?d.onToggle({originalEvent:n,value:t}):(r&&(D.current=n),y(t))};T=function(){if(D.current){var e=D.current,n="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,t=n.children[1];if(t){n&&(n.tabIndex="-1");var r=d.dragdropScope?t.children[1]:t.children[0];r&&(r.tabIndex="0",r.focus())}D.current=null}},U=[O],K=m.useRef(!1),m.useEffect((function(){if(K.current)return T&&T();K.current=!0}),U);var R=function(e){S.current={path:e.path,index:e.index}},H=function(){S.current=null},F=function e(n){if(Array.isArray(n))return n.map(e);if(n&&Object.getPrototypeOf(n)===Object.prototype){var t={};for(var r in n)t[r]="data"!==r?e(n[r]):n[r];return t}return n},J=function(e){var n;if($(null===(n=S.current)||void 0===n?void 0:n.path,e.path)){var t=F(d.value),r=S.current.path.split("-");r.pop();var o=G(t,r),l=o?o.children[S.current.index]:t[S.current.index],a=G(t,e.path.split("-"));a.children?a.children.push(l):a.children=[l],o?o.children.splice(S.current.index,1):t.splice(S.current.index,1),d.onDragDrop&&d.onDragDrop({originalEvent:e.originalEvent,value:t,dragNode:l,dropNode:a,dropIndex:e.index})}},B=function(e){if(z(e)){var n=F(d.value),t=S.current.path.split("-");t.pop();var r=e.path.split("-");r.pop();var o=G(n,t),l=G(n,r),a=o?o.children[S.current.index]:n[S.current.index],i=Y(S.current.path,e.path);if(o?o.children.splice(S.current.index,1):n.splice(S.current.index,1),e.position<0){var c=i?S.current.index>e.index?e.index:e.index-1:e.index;l?l.children.splice(c,0,a):n.splice(c,0,a)}else l?l.children.push(a):n.push(a);d.onDragDrop&&d.onDragDrop({originalEvent:e.originalEvent,value:n,dragNode:a,dropNode:l,dropIndex:e.index})}},q=function(e,n){return!!e&&(e!==n&&0!==n.indexOf(e))},$=function(e,n){return!!q(e,n)&&!(e.indexOf("-")>0&&e.substring(0,e.lastIndexOf("-"))===n)},z=function(e){var n;return!!q(null===(n=S.current)||void 0===n?void 0:n.path,e.path)&&(-1!==e.position||!Y(S.current.path,e.path)||S.current.index+1!==e.index)},Y=function(e,n){return 1===e.length&&1===n.length||e.substring(0,e.lastIndexOf("-"))===n.substring(0,n.lastIndexOf("-"))},G=function e(n,t){if(0===t.length)return null;var r=parseInt(t[0],10),o=n.children?n.children[r]:n[r];return 1===t.length?o:(t.shift(),e(o,t))},Q=function(e){return!1!==e.leaf&&!(e.children&&e.children.length)},W=function(e){13===e.which&&e.preventDefault()},Z=function(e){E.current=!0;var n=e.target.value;d.onFilterValueChange?d.onFilterValueChange({originalEvent:e,value:n}):f(n)},ee=function(e){f(i.ObjectUtils.isNotEmpty(e)?e:""),ne()},ne=function(){if(E.current){if(i.ObjectUtils.isEmpty(C))x.current=d.value;else{x.current=[];var e,n=d.filterBy.split(","),t=C.toLocaleLowerCase(d.filterLocale),r="strict"===d.filterMode,o=_(d.value);try{for(o.s();!(e=o.n()).done;){var l=X({},e.value),a={searchFields:n,filterText:t,isStrictMode:r};(r&&(te(l,a)||re(l,a))||!r&&(re(l,a)||te(l,a)))&&x.current.push(l)}}catch(e){o.e(e)}finally{o.f()}}E.current=!1}},te=function(e,n){if(e){var t=!1;if(e.children){var r=k(e.children);e.children=[];var o,l=_(r);try{for(l.s();!(o=l.n()).done;){var a=X({},o.value);re(a,n)&&(t=!0,e.children.push(a))}}catch(e){l.e(e)}finally{l.f()}}if(t)return e.expanded=!0,!0}},re=function(e,n){var t,r=n.searchFields,o=n.filterText,l=n.isStrictMode,a=!1,c=_(r);try{for(c.s();!(t=c.n()).done;){String(i.ObjectUtils.resolveFieldData(e,t.value)).toLocaleLowerCase(d.filterLocale).indexOf(o)>-1&&(a=!0)}}catch(e){c.e(e)}finally{c.f()}return(!a||l&&!Q(e))&&(a=te(e,{searchFields:r,filterText:o,isStrictMode:l})||a),a},oe=function(){f("")};m.useImperativeHandle(n,(function(){return{props:d,filter:ee,getElement:function(){return b.current}}}));var le=function(e,n,t){return m.createElement(V,{hostName:"Tree",key:e.key||e.label,node:e,level:d.level+1,originalOptions:d.value,index:n,last:t,path:String(n),checkboxIcon:d.checkboxIcon,collapseIcon:d.collapseIcon,contextMenuSelectionKey:d.contextMenuSelectionKey,cx:w,disabled:d.disabled,dragdropScope:d.dragdropScope,expandIcon:d.expandIcon,expandedKeys:O,isNodeLeaf:Q,metaKeySelection:d.metaKeySelection,nodeTemplate:d.nodeTemplate,onClick:d.onNodeClick,onCollapse:d.onCollapse,onContextMenu:d.onContextMenu,onContextMenuSelectionChange:d.onContextMenuSelectionChange,onDoubleClick:d.onNodeDoubleClick,onDragEnd:H,onDragStart:R,onDrop:J,onDropPoint:B,onExpand:d.onExpand,onSelect:d.onSelect,onSelectionChange:d.onSelectionChange,onToggle:L,onUnselect:d.onUnselect,propagateSelectionDown:d.propagateSelectionDown,propagateSelectionUp:d.propagateSelectionUp,ptm:N,selectionKeys:d.selectionKeys,selectionMode:d.selectionMode,togglerTemplate:d.togglerTemplate,isUnstyled:M})},ae=function(e){var n=c(X({className:i.classNames(d.contentClassName,w("container")),role:"tree","aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,style:d.contentStyle},de),N("container"));return m.createElement("ul",n,e)},ie=function(e){return e.map((function(n,t){return le(n,t,t===e.length-1)}))},ce=function(){if(d.filter){var e=i.ObjectUtils.isNotEmpty(C)?C:"",n=c({className:w("searchIcon")},N("searchIcon")),t=i.IconUtils.getJSXIcon(d.filterIcon||m.createElement(l.SearchIcon,n),X({},n),{props:d}),r=c({className:w("filterContainer")},N("filterContainer")),o=c({type:"text",value:e,autoComplete:"off",className:w("input"),placeholder:d.filterPlaceholder,"aria-label":d.filterPlaceholder,onKeyDown:W,onChange:Z,disabled:d.disabled},N("input")),a=m.createElement("div",r,m.createElement("input",o),t);if(d.filterTemplate)a=i.ObjectUtils.getJSXElement(d.filterTemplate,{className:"p-tree-filter-container",element:a,filterOptions:A,filterInputKeyDown:W,filterInputChange:Z,filterIconClassName:"p-dropdown-filter-icon",props:d});return m.createElement(m.Fragment,null,a)}return null},ue=P.getOtherProps(d),de=i.ObjectUtils.reduceKeys(ue,i.DomHandler.ARIA_PROPS),se=function(){if(d.loading){var e=c({className:w("loadingIcon")},N("loadingIcon")),n=d.loadingIcon||m.createElement(a.SpinnerIcon,v({},e,{spin:!0})),t=i.IconUtils.getJSXIcon(n,X({},e),{props:d}),r=c({className:w("loadingOverlay")},N("loadingOverlay"));return m.createElement("div",r,t)}return null}(),pe=function(){if(d.value){d.filter&&(E.current=!0,ne());var e=d.filter&&x.current?x.current:d.value;if(e.length>0){var n=ie(e);return ae(n)}var r=(o=c({className:i.classNames(d.contentClassName,w("emptyMessage")),role:"treeitem"},N("emptyMessage")),l=i.ObjectUtils.getJSXElement(d.emptyMessage,d)||t.localeOption("emptyMessage"),m.createElement("li",o,m.createElement("span",{className:"p-treenode-content"},l)));return ae(r)}var o,l;return null}(),fe=function(){if(d.showHeader){var e=ce(),n=e;if(d.header)n=i.ObjectUtils.getJSXElement(d.header,{filterContainerClassName:"p-tree-filter-container",filterIconClassName:"p-tree-filter-icon",filterInput:{className:"p-tree-filter p-inputtext p-component",onKeyDown:W,onChange:Z},filterElement:e,element:n,props:d});var t=c({className:w("header")},N("header"));return m.createElement("div",t,n)}return null}(),ge=function(){var e=i.ObjectUtils.getJSXElement(d.footer,d),n=c({className:w("footer")},N("footer"));return m.createElement("div",n,e)}(),me=c({ref:b,className:i.classNames(d.className,w("root")),style:d.style,id:d.id},P.getOtherProps(d),N("root"));return m.createElement("div",me,se,fe,pe,ge)})));return $.displayName="Tree",e.Tree=$,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.componentbase,primereact.hooks,primereact.icons.search,primereact.icons.spinner,primereact.utils,primereact.icons.check,primereact.icons.chevrondown,primereact.icons.chevronright,primereact.icons.minus,primereact.ripple,primereact.tooltip);
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import * as React from 'react';
11
11
  import { CSSProperties } from 'react';
12
- import { ColumnProps } from '../column';
12
+ import { Column } from '../column';
13
13
  import { ComponentHooks } from '../componentbase/componentbase';
14
14
  import { InputTextPassThroughOptions } from '../inputtext/inputtext';
15
15
  import { PaginatorPassThroughOptions, PaginatorTemplate } from '../paginator';
@@ -478,7 +478,7 @@ interface TreeTablePageEvent {
478
478
  /**
479
479
  * Total number of pages.
480
480
  */
481
- pageCount: number;
481
+ totalPages: number;
482
482
  }
483
483
 
484
484
  /**
@@ -514,7 +514,7 @@ interface TreeTableSelectionEvent {
514
514
  /**
515
515
  * Selected node key.
516
516
  */
517
- value: TreeTableSelectionKeysType;
517
+ value: TreeTableSelectionKeysType | string;
518
518
  }
519
519
 
520
520
  /**
@@ -530,7 +530,7 @@ interface TreeTableColumnResizeEndEvent {
530
530
  /**
531
531
  * Properties of the resized column.
532
532
  */
533
- column: ColumnProps;
533
+ column: Column;
534
534
  /**
535
535
  * Change in column width.
536
536
  */
@@ -927,9 +927,9 @@ export interface TreeTableProps extends Omit<React.DetailedHTMLProps<React.Input
927
927
  onExpand?(event: TreeTableEvent): void;
928
928
  /**
929
929
  * Callback to invoke on filtering.
930
- * @param {TreeTableFilterMeta[]} filters - Custom treetable event.
930
+ * @param {TreeTableFilterMeta} filters - Custom treetable event.
931
931
  */
932
- onFilter?(filters: TreeTableFilterMeta[]): void;
932
+ onFilter?(filters: TreeTableFilterMeta): void;
933
933
  /**
934
934
  * Callback to invoke on pagination.
935
935
  * @param {TreeTablePageEvent} event - Custom page event.
@@ -1855,6 +1855,11 @@ var ObjectUtils = /*#__PURE__*/function () {
1855
1855
  value: function isLetter(_char2) {
1856
1856
  return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
1857
1857
  }
1858
+ }, {
1859
+ key: "isScalar",
1860
+ value: function isScalar(value) {
1861
+ return value != null && (typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint' || typeof value === 'boolean');
1862
+ }
1858
1863
 
1859
1864
  /**
1860
1865
  * Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
@@ -1 +1 @@
1
- "use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));function n(e){if(Array.isArray(e))return e}function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){return n(e)||r(e,t)||o(e,t)||a()}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t){for(var r=[],i=0;i<t.length;i++){var o=t[i];if(o){var a=u(o);if("string"===a||"number"===a)r.push(o);else if("object"===a){var s=Array.isArray(o)?o:Object.entries(o).map((function(e){var t=l(e,2);return t[1]?t[0]:null}));r=s.length?r.concat(s.filter((function(e){return!!e}))):r}}}return r.join(" ").trim()}}function c(e){if(Array.isArray(e))return i(e)}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e){return c(e)||f(e)||o(e)||d()}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function g(e){var t=p(e,"string");return"symbol"===u(t)?t:String(t)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function m(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function k(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=function(){function e(){v(this,e)}return m(e,null,[{key:"innerWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0}},{key:"width",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},{key:"getOuterWidth",value:function(e,t){if(e){var n=e.getBoundingClientRect().width||e.offsetWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}},{key:"getOuterHeight",value:function(e,t){if(e){var n=e.getBoundingClientRect().height||e.offsetHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}},{key:"getClientHeight",value:function(e,t){if(e){var n=e.clientHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}},{key:"getClientWidth",value:function(e,t){if(e){var n=e.clientWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}},{key:"getViewport",value:function(){var e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}},{key:"getOffset",value:function(e){if(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(e){if(e)for(var t=e.parentNode.childNodes,n=0,r=0;r<t.length;r++){if(t[r]===e)return n;1===t[r].nodeType&&n++}return-1}},{key:"addMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.add(n[r]);else for(var i=t.split(" "),o=0;o<i.length;o++)e.className=e.className+" "+i[o]}},{key:"removeMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.remove(n[r]);else for(var i=t.split(" "),o=0;o<i.length;o++)e.className=e.className.replace(new RegExp("(^|\\b)"+i[o].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(e,t){e&&t&&(e.classList?e.classList.add(t):e.className=e.className+" "+t)}},{key:"removeClass",value:function(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}},{key:"addStyles",value:function(e){e&&Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach((function(t){var n=l(t,2);return e.style[n[0]]=n[1]}))}},{key:"find",value:function(e,t){return e?Array.from(e.querySelectorAll(t)):[]}},{key:"findSingle",value:function(e,t){return e?e.querySelector(t):null}},{key:"setAttributes",value:function(e){var t=this;if(e){var n=function t(n,r){var i,o,a=null!=e&&null!==(i=e.$attrs)&&void 0!==i&&i[n]?[null==e||null===(o=e.$attrs)||void 0===o?void 0:o[n]]:[];return[r].flat().reduce((function(e,r){if(null!=r){var i=u(r);if("string"===i||"number"===i)e.push(r);else if("object"===i){var o=Array.isArray(r)?t(n,r):Object.entries(r).map((function(e){var t=l(e,2),r=t[0],i=t[1];return"style"!==n||!i&&0!==i?i?r:void 0:"".concat(r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(i)}));e=o.length?e.concat(o.filter((function(e){return!!e}))):e}}return e}),a)};Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach((function(r){var i=l(r,2),o=i[0],a=i[1];if(null!=a){var u=o.match(/^on(.+)/);u?e.addEventListener(u[1].toLowerCase(),a):"p-bind"===o?t.setAttributes(e,a):(a="class"===o?y(new Set(n("class",a))).join(" ").trim():"style"===o?n("style",a).join(";").trim():a,(e.$attrs=e.$attrs||{})&&(e.$attrs[o]=a),e.setAttribute(o,a))}}))}}},{key:"getAttribute",value:function(e,t){if(e){var n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}},{key:"isAttributeEquals",value:function(e,t,n){return!!e&&this.getAttribute(e,t)===n}},{key:"isAttributeNotEquals",value:function(e,t,n){return!this.isAttributeEquals(e,t,n)}},{key:"getHeight",value:function(e){if(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)}return 0}},{key:"getWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}return 0}},{key:"alignOverlay",value:function(t,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t&&n&&("self"===r?this.relativePosition(t,n):(i&&(t.style.minWidth=e.getOuterWidth(n)+"px"),this.absolutePosition(t,n)))}},{key:"absolutePosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left";if(e&&t){var r,i,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=o.height,l=o.width,u=t.offsetHeight,s=t.offsetWidth,c=t.getBoundingClientRect(),f=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),y=this.getViewport();c.top+u+a>y.height?((r=c.top+f-a)<0&&(r=f),e.style.transformOrigin="bottom"):(r=u+c.top+f,e.style.transformOrigin="top");var v=c.left,p="left"===n?0:l-s;i=v+s+l>y.width?Math.max(0,v+d+s-l):v-p+d,e.style.top=r+"px",e.style.left=i+"px"}}},{key:"relativePosition",value:function(e,t){if(e&&t){var n,r,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=t.offsetHeight,a=t.getBoundingClientRect(),l=this.getViewport();a.top+o+i.height>l.height?(a.top+(n=-1*i.height)<0&&(n=-1*a.top),e.style.transformOrigin="bottom"):(n=o,e.style.transformOrigin="top"),r=i.width>l.width?-1*a.left:a.left+i.width>l.width?-1*(a.left+i.width-l.width):0,e.style.top=n+"px",e.style.left=r+"px"}}},{key:"flipfitCollision",value:function(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left top",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left bottom",a=arguments.length>4?arguments[4]:void 0;if(t&&n){var l=n.getBoundingClientRect(),u=this.getViewport(),s=i.split(" "),c=o.split(" "),f=function(e,t){return t?+e.substring(e.search(/(\+|-)/g))||0:e.substring(0,e.search(/(\+|-)/g))||e},d={my:{x:f(s[0]),y:f(s[1]||s[0]),offsetX:f(s[0],!0),offsetY:f(s[1]||s[0],!0)},at:{x:f(c[0]),y:f(c[1]||c[0]),offsetX:f(c[0],!0),offsetY:f(c[1]||c[0],!0)}},y={left:function(){return d.my.offsetX+d.at.offsetX+l.left+("left"===d.my.x?0:-1*("center"===d.my.x?r.getOuterWidth(t)/2:r.getOuterWidth(t)))},top:function(){return d.my.offsetY+d.at.offsetY+l.top+("top"===d.my.y?0:-1*("center"===d.my.y?r.getOuterHeight(t)/2:r.getOuterHeight(t)))}},v={count:{x:0,y:0},left:function(){var n=y.left(),r=e.getWindowScrollLeft();t.style.left=n+r+"px",2===this.count.x?(t.style.left=r+"px",this.count.x=0):n<0&&(this.count.x++,d.my.x="left",d.at.x="right",d.my.offsetX*=-1,d.at.offsetX*=-1,this.right())},right:function(){var r=y.left()+e.getOuterWidth(n),i=e.getWindowScrollLeft();t.style.left=r+i+"px",2===this.count.x?(t.style.left=u.width-e.getOuterWidth(t)+i+"px",this.count.x=0):r+e.getOuterWidth(t)>u.width&&(this.count.x++,d.my.x="right",d.at.x="left",d.my.offsetX*=-1,d.at.offsetX*=-1,this.left())},top:function(){var n=y.top(),r=e.getWindowScrollTop();t.style.top=n+r+"px",2===this.count.y?(t.style.left=r+"px",this.count.y=0):n<0&&(this.count.y++,d.my.y="top",d.at.y="bottom",d.my.offsetY*=-1,d.at.offsetY*=-1,this.bottom())},bottom:function(){var r=y.top()+e.getOuterHeight(n),i=e.getWindowScrollTop();t.style.top=r+i+"px",2===this.count.y?(t.style.left=u.height-e.getOuterHeight(t)+i+"px",this.count.y=0):r+e.getOuterHeight(n)>u.height&&(this.count.y++,d.my.y="bottom",d.at.y="top",d.my.offsetY*=-1,d.at.offsetY*=-1,this.top())},center:function(r){if("y"===r){var i=y.top()+e.getOuterHeight(n)/2;t.style.top=i+e.getWindowScrollTop()+"px",i<0?this.bottom():i+e.getOuterHeight(n)>u.height&&this.top()}else{var o=y.left()+e.getOuterWidth(n)/2;t.style.left=o+e.getWindowScrollLeft()+"px",o<0?this.left():o+e.getOuterWidth(t)>u.width&&this.right()}}};v[d.at.x]("x"),v[d.at.y]("y"),this.isFunction(a)&&a(d)}}},{key:"findCollisionPosition",value:function(e){if(e){var t="left"===e?"right":"left";return"top"===e||"bottom"===e?{axis:"y",my:"center ".concat("top"===e?"bottom":"top"),at:"center ".concat(e)}:{axis:"x",my:"".concat(t," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(e){var r,i=this.getParents(e),o=/(auto|scroll)/,a=function(e){var t=e?getComputedStyle(e):null;return t&&(o.test(t.getPropertyValue("overflow"))||o.test(t.getPropertyValue("overflow-x"))||o.test(t.getPropertyValue("overflow-y")))},l=function(e){n.push(t&&("BODY"===e.nodeName||"HTML"===e.nodeName||9===e.nodeType)?window:e)},u=w(i);try{for(u.s();!(r=u.n()).done;){var s=r.value,c=1===s.nodeType&&s.dataset.scrollselectors;if(c){var f,d=w(c.split(","));try{for(d.s();!(f=d.n()).done;){var y=this.findSingle(s,f.value);y&&a(y)&&l(y)}}catch(e){d.e(e)}finally{d.f()}}1===s.nodeType&&a(s)&&l(s)}}catch(e){u.e(e)}finally{u.f()}}return n.some((function(e){return e===document.body||e===window}))||n.push(window),n}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementDimensions",value:function(e){var t={};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}},{key:"fadeIn",value:function(e,t){if(e){e.style.opacity=0;var n=+new Date,r=0;!function i(){r=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))}()}}},{key:"fadeOut",value:function(e,t){if(e)var n=1,r=50/t,i=setInterval((function(){(n-=r)<=0&&(n=0,clearInterval(i)),e.style.opacity=n}),50)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}}},{key:"removeChild",value:function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}}},{key:"isElement",value:function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":u(HTMLElement))?e instanceof HTMLElement:e&&"object"===u(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}},{key:"scrollInView",value:function(e,t){var n=getComputedStyle(e).getPropertyValue("border-top-width"),r=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("padding-top"),o=i?parseFloat(i):0,a=e.getBoundingClientRect(),l=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-r-o,u=e.scrollTop,s=e.clientHeight,c=this.getOuterHeight(t);l<0?e.scrollTop=u+l:l+c>s&&(e.scrollTop=u+l-s+c)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var r=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}},{key:"blockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";!!!document.body.style.getPropertyValue("--scrollbar-width")&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}},{key:"unblockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}},{key:"isVisible",value:function(e){return e&&(0!==e.clientHeight||0!==e.getClientRects().length||"none"!==getComputedStyle(e).display)}},{key:"isExist",value:function(e){return!(null==e||!e.nodeName||!e.parentNode)}},{key:"getFocusableElements",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[],o=w(e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)));try{for(o.s();!(n=o.n()).done;){var a=n.value;"none"!==getComputedStyle(a).display&&"hidden"!==getComputedStyle(a).visibility&&i.push(a)}}catch(e){o.e(e)}finally{o.f()}return i}},{key:"getFirstFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[0]:null}},{key:"getLastFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[r.length-1]:null}},{key:"focus",value:function(e,t){e&&document.activeElement!==e&&e.focus({preventScroll:void 0===t||!t})}},{key:"focusFirstElement",value:function(t,n){if(t){var r=e.getFirstFocusableElement(t);return r&&e.focus(r,n),r}}},{key:"getCursorOffset",value:function(e,t,n,r){if(e){var i=getComputedStyle(e),o=document.createElement("div");o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.visibility="hidden",o.style.pointerEvents="none",o.style.overflow=i.overflow,o.style.width=i.width,o.style.height=i.height,o.style.padding=i.padding,o.style.border=i.border,o.style.overflowWrap=i.overflowWrap,o.style.whiteSpace=i.whiteSpace,o.style.lineHeight=i.lineHeight,o.innerHTML=t.replace(/\r\n|\r|\n/g,"<br />");var a=document.createElement("span");a.textContent=r,o.appendChild(a);var l=document.createTextNode(n);o.appendChild(l),document.body.appendChild(o);var u=a.offsetLeft,s=a.offsetTop,c=a.clientHeight;return document.body.removeChild(o),{left:Math.abs(u-e.scrollLeft),top:Math.abs(s-e.scrollTop)+c}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"isClickable",value:function(e){var t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"===t||"TEXTAREA"===t||"BUTTON"===t||"A"===t||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(e,t){if("string"==typeof t)e.style.cssText=this.style;else for(var n in this.style)e.style[n]=t[n]}},{key:"exportCSV",value:function(t,n){var r=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(r,n+".csv"):e.saveAs({name:n+".csv",src:URL.createObjectURL(r)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}},{key:"saveAs",value:function(e){if(e){var t=document.createElement("a");if(void 0!==t.download){var n=e.name;return t.setAttribute("href",e.src),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),!0}}return!1}},{key:"createInlineStyle",value:function(t,n){var r=document.createElement("style");return e.addNonce(r,t),n||(n=document.head),n.appendChild(r),r}},{key:"removeInlineStyle",value:function(e){if(this.isExist(e)){try{e.parentNode.removeChild(e)}catch(e){}e=null}return e}},{key:"addNonce",value:function(e,t){try{t||(t=process.env.REACT_APP_CSS_NONCE)}catch(e){}t&&e.setAttribute("nonce",t)}},{key:"getTargetElement",value:function(e){if(!e)return null;if("document"===e)return document;if("window"===e)return window;if("object"===u(e)&&e.hasOwnProperty("current"))return this.isExist(e.current)?e.current:null;var t,n=(t=e)&&t.constructor&&t.call&&t.apply?e():e;return n&&9===n.nodeType||this.isExist(n)?n:null}},{key:"getAttributeNames",value:function(e){var t,n,r;for(n=[],r=e.attributes,t=0;t<r.length;++t)n.push(r[t].nodeName);return n.sort(),n}},{key:"isEqualElement",value:function(t,n){var r,i,o,a,l;if(r=e.getAttributeNames(t),i=e.getAttributeNames(n),r.join(",")!==i.join(","))return!1;for(var u=0;u<r.length;++u)if("style"===(o=r[u]))for(var s=t.style,c=n.style,f=/^\d+$/,d=0,y=Object.keys(s);d<y.length;d++){var v=y[d];if(!f.test(v)&&s[v]!==c[v])return!1}else if(t.getAttribute(o)!==n.getAttribute(o))return!1;for(a=t.firstChild,l=n.firstChild;a&&l;a=a.nextSibling,l=l.nextSibling){if(a.nodeType!==l.nodeType)return!1;if(1===a.nodeType){if(!e.isEqualElement(a,l))return!1}else if(a.nodeValue!==l.nodeValue)return!1}return!a&&!l}},{key:"hasCSSAnimation",value:function(e){if(e){var t=getComputedStyle(e);return parseFloat(t.getPropertyValue("animation-duration")||"0")>0}return!1}},{key:"hasCSSTransition",value:function(e){if(e){var t=getComputedStyle(e);return parseFloat(t.getPropertyValue("transition-duration")||"0")>0}return!1}}])}();function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=S(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function S(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}b(O,"DATA_PROPS",["data-"]),b(O,"ARIA_PROPS",["aria","focus-target"]);var A=function(){return m((function e(){v(this,e)}),null,[{key:"equals",value:function(e,t,n){return n&&e&&"object"===u(e)&&t&&"object"===u(t)?this.deepEquals(this.resolveFieldData(e,n),this.resolveFieldData(t,n)):this.deepEquals(e,t)}},{key:"deepEquals",value:function(e,t){if(e===t)return!0;if(e&&t&&"object"===u(e)&&"object"===u(t)){var n,r,i,o=Array.isArray(e),a=Array.isArray(t);if(o&&a){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(o!==a)return!1;var l=e instanceof Date,s=t instanceof Date;if(l!==s)return!1;if(l&&s)return e.getTime()===t.getTime();var c=e instanceof RegExp,f=t instanceof RegExp;if(c!==f)return!1;if(c&&f)return e.toString()===t.toString();var d=Object.keys(e);if((r=d.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=r;0!=n--;)if(!this.deepEquals(e[i=d[n]],t[i]))return!1;return!0}return e!=e&&t!=t}},{key:"resolveFieldData",value:function(e,t){if(!e||!t)return null;try{var n=e[t];if(this.isNotEmpty(n))return n}catch(e){}if(Object.keys(e).length){if(this.isFunction(t))return t(e);if(this.isNotEmpty(e[t]))return e[t];if(-1===t.indexOf("."))return e[t];for(var r=t.split("."),i=e,o=0,a=r.length;o<a;++o){if(null==i)return null;i=i[r[o]]}return i}return null}},{key:"findDiffKeys",value:function(e,t){return e&&t?Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)})).reduce((function(t,n){return t[n]=e[n],t}),{}):{}}},{key:"reduceKeys",value:function(e,t){var n={};return e&&t&&0!==t.length?(Object.keys(e).filter((function(e){return t.some((function(t){return e.startsWith(t)}))})).forEach((function(t){n[t]=e[t],delete e[t]})),n):n}},{key:"reorderArray",value:function(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}},{key:"findIndexInList",value:function(e,t,n){var r=this;return t?t.findIndex(n?function(t){return r.equals(t,e,n)}:function(t){return t===e}):-1}},{key:"getJSXElement",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getItemValue",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e?e[t]:void 0;return void 0===n?(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})[t]:n}},{key:"getPropCaseInsensitive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.toFlatCase(t);for(var i in e)if(e.hasOwnProperty(i)&&this.toFlatCase(i)===r)return e[i];for(var o in n)if(n.hasOwnProperty(o)&&this.toFlatCase(o)===r)return n[o]}},{key:"getMergedProps",value:function(e,t){return Object.assign({},t,e)}},{key:"getDiffProps",value:function(e,t){return this.findDiffKeys(e,t)}},{key:"getPropValue",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getComponentProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isNotEmpty(e)?this.getProp(e.props,t,n):void 0}},{key:"getComponentProps",value:function(e,t){return this.isNotEmpty(e)?this.getMergedProps(e.props,t):void 0}},{key:"getComponentDiffProps",value:function(e,t){return this.isNotEmpty(e)?this.getDiffProps(e.props,t):void 0}},{key:"isValidChild",value:function(e,t,n){if(e){var r,i=this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0);!i&&null!=e&&null!==(r=e.type)&&void 0!==r&&null!==(r=r._payload)&&void 0!==r&&r.value&&(i=e.type._payload.value.find((function(e){return e===t})));var o=i===t;try{0}catch(e){}return o}return!1}},{key:"getRefElement",value:function(e){return e?"object"===u(e)&&e.hasOwnProperty("current")?e.current:e:null}},{key:"combinedRefs",value:function(e,t){e&&t&&("function"==typeof t?t(e.current):t.current=e.current)}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}},{key:"toFlatCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"toCapitalCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e[0].toUpperCase()+e.slice(1):e}},{key:"trim",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.trim():e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===u(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isObject",value:function(e){return null!==e&&e instanceof Object&&e.constructor===Object}},{key:"isDate",value:function(e){return null!==e&&e instanceof Date&&e.constructor===Date}},{key:"isArray",value:function(e){return null!==e&&Array.isArray(e)}},{key:"isString",value:function(e){return null!==e&&"string"==typeof e}},{key:"isPrintableCharacter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}},{key:"isLetter",value:function(e){return/^[a-zA-Z\u00C0-\u017F]$/.test(e)}},{key:"findLast",value:function(e,t){var n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch(r){n=y(e).reverse().find(t)}return n}},{key:"findLastIndex",value:function(e,t){var n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf(y(e).reverse().find(t))}return n}},{key:"sort",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=this.compare(e,t,arguments.length>3?arguments[3]:void 0,n),o=n;return(this.isEmpty(e)||this.isEmpty(t))&&(o=1===r?n:r),o*i}},{key:"compare",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=this.isEmpty(e),o=this.isEmpty(t);return i&&o?0:i?r:o?-r:"string"==typeof e&&"string"==typeof t?n(e,t):e<t?-1:e>t?1:0}},{key:"localeComparator",value:function(e){return new Intl.Collator(e,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(e,t){var n,r=C(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.key===t)return i.children||[];if(i.children){var o=this.findChildrenByKey(i.children,t);if(o.length>0)return o}}}catch(e){r.e(e)}finally{r.f()}return[]}},{key:"mutateFieldData",value:function(e,t,n){if("object"===u(e)&&"string"==typeof t)for(var r=t.split("."),i=e,o=0,a=r.length;o<a;++o){if(o+1-a==0){i[r[o]]=n;break}i[r[o]]||(i[r[o]]={}),i=i[r[o]]}}}])}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=function(){return m((function e(){v(this,e)}),null,[{key:"getJSXIcon",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null;if(null!==e){var o=u(e),a=s(n.className,"string"===o&&e);if(i=t.createElement("span",x({},n,{className:a})),"string"!==o){var l=F({iconProps:n,element:i},r);return A.getJSXElement(e,l)}}return i}}])}();function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=0;var R,H,B,M,V=(R=[],H=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=M(e,t,n),i=r.value+(r.key===e?0:n)+1;return R.push({key:e,value:i}),i},B=function(e,t){return M(e,t).value},M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(R).reverse().find((function(n){return!!t||n.key===e}))||{key:e,value:n}},{get:function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n,r){t&&(t.style.zIndex=String(H(e,n,r)))},clear:function(e){var t;e&&(t=V.get(e),R=R.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(e,t){return B(e,t)}});exports.DomHandler=O,exports.EventBus=function(){var e=new Map;return{on:function(t,n){var r=e.get(t);r?r.push(n):r=[n],e.set(t,r)},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){var r=e.get(t);r&&r.slice().forEach((function(e){return e(n)}))}}},exports.IconUtils=T,exports.ObjectUtils=A,exports.UniqueComponentId=function(){return I++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pr_id_").concat(I)},exports.ZIndexUtils=V,exports.classNames=s,exports.mask=function(e,t){var n,r,i,o,a,l,u,s,c,f,d,y;t=L(L({},{mask:null,slotChar:"_",autoClear:!0,unmask:!1,readOnly:!1,onComplete:null,onChange:null,onFocus:null,onBlur:null}),t);var v=function(t,n){var r,i,o;if(e.offsetParent&&e===document.activeElement)return"number"!=typeof t?(e.setSelectionRange?(i=e.selectionStart,o=e.selectionEnd):document.selection&&document.selection.createRange&&(o=(i=0-(r=document.selection.createRange()).duplicate().moveStart("character",-1e5))+r.text.length),{begin:i,end:o}):(i=t,o="number"==typeof n?n:i,void(e.setSelectionRange?e.setSelectionRange(i,o):e.createTextRange&&((r=e.createTextRange()).collapse(!0),r.moveEnd("character",o),r.moveStart("character",i),r.select())))},p=function(){for(var e=o;e<=u;e++)if(n[e]&&d[e]===g(e))return!1;return!0},g=function(e){return t.slotChar.charAt(e<t.slotChar.length?e:0)},h=function(){return t.unmask?W():e&&e.value},m=function(e){for(;++e<i&&!n[e];);return e},b=function(e){for(;--e>=0&&!n[e];);return e},w=function(e,t){var r,a;if(!(e<0)){for(r=e,a=m(t);r<i;r++)if(n[r]){if(!(a<i&&n[r].test(d[a])))break;d[r]=d[a],d[a]=g(a),a=m(a)}A(),v(Math.max(o,e))}},k=function(e){var t,r,o,a;for(t=e,r=g(e);t<i;t++)if(n[t]){if(o=m(t),a=d[t],d[t]=r,!(o<i&&n[o].test(a)))break;r=a}},E=function(r){var a=e.value,l=v();if(s&&s.length&&s.length>a.length){for(P(!0);l.begin>0&&!n[l.begin-1];)l.begin--;if(0===l.begin)for(;l.begin<o&&!n[l.begin];)l.begin++;v(l.begin,l.begin)}else{for(P(!0);l.begin<i&&!n[l.begin];)l.begin++;v(l.begin,l.begin)}t.onComplete&&p()&&t.onComplete({originalEvent:r,value:h()})},x=function(n){if(P(),t.onBlur&&t.onBlur(n),D(n),e.value!==c){var r=document.createEvent("HTMLEvents");r.initEvent("change",!0,!1),e.dispatchEvent(r)}},C=function(n){if(!t.readOnly){var r,i,o,a=n.which||n.keyCode;s=e.value,8===a||46===a||O.isIOS()&&127===a?((o=(r=v()).end)-(i=r.begin)==0&&(i=46!==a?b(i):o=m(i-1),o=46===a?m(o):o),j(i,o),w(i,o-1),D(n),n.preventDefault()):13===a?(x(n),D(n)):27===a&&(e.value=c,v(0,P()),D(n),n.preventDefault())}},S=function(e){if(!t.readOnly){var r,o,a,l,s=e.which||e.keyCode,c=v();if(!(e.ctrlKey||e.altKey||e.metaKey||s<32)){if(s&&13!==s){if(c.end-c.begin!=0&&(j(c.begin,c.end),w(c.begin,c.end-1)),(r=m(c.begin-1))<i&&(o=String.fromCharCode(s),n[r].test(o))){if(k(r),d[r]=o,A(),a=m(r),O.isAndroid()){setTimeout((function(){v(a)}),0)}else v(a);c.begin<=u&&(l=p())}e.preventDefault()}D(e),t.onComplete&&l&&t.onComplete({originalEvent:e,value:h()})}}},j=function(e,t){var r;for(r=e;r<t&&r<i;r++)n[r]&&(d[r]=g(r))},A=function(){e.value=d.join("")},P=function(a){var l,u,s,c=e.value,f=-1;for(l=0,s=0;l<i;l++)if(n[l]){for(d[l]=g(l);s++<c.length;)if(u=c.charAt(s-1),n[l].test(u)){d[l]=u,f=l;break}if(s>c.length){j(l+1,i);break}}else d[l]===c.charAt(s)&&s++,l<r&&(f=l);return a?A():f+1<r?t.autoClear||d.join("")===y?(e.value&&(e.value=""),j(0,i)):A():(A(),e.value=e.value.substring(0,f+1)),r?l:o},F=function(n){var r;t.readOnly||(clearTimeout(f),c=e.value,r=P(),f=setTimeout((function(){e===document.activeElement&&(A(),r===t.mask.replace("?","").length?v(0,r):v(r))}),100),t.onFocus&&t.onFocus(n))},T=function(e){l?E(e):N(e)},N=function(e){if(!t.readOnly){var n=P(!0);v(n),D(e),t.onComplete&&p()&&t.onComplete({originalEvent:e,value:h()})}},W=function(){for(var e=[],t=0;t<d.length;t++){var r=d[t];n[t]&&r!==g(t)&&e.push(r)}return e.join("")},D=function(e){if(t.onChange){var n=h();t.onChange({originalEvent:e,value:y!==n?n:"",stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{value:y!==n?n:""}})}},I=function(){e.addEventListener("focus",F),e.addEventListener("blur",x),e.addEventListener("keydown",C),e.addEventListener("keypress",S),e.addEventListener("input",T),e.addEventListener("paste",N)},R=function(){n=[],r=t.mask.length,i=t.mask.length,o=null,a={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},l=O.isChrome()&&O.isAndroid();for(var e=t.mask.split(""),s=0;s<e.length;s++){var c=e[s];"?"===c?(i--,r=s):a[c]?(n.push(new RegExp(a[c])),null===o&&(o=n.length-1),s<r&&(u=n.length-1)):n.push(null)}d=[];for(var f=0;f<e.length;f++){var v=e[f];"?"!==v&&d.push(a[v]?g(f):v)}y=d.join("")};return e&&t.mask&&(R(),I()),{init:R,bindEvents:I,unbindEvents:function(){e.removeEventListener("focus",F),e.removeEventListener("blur",x),e.removeEventListener("keydown",C),e.removeEventListener("keypress",S),e.removeEventListener("input",T),e.removeEventListener("paste",N)},updateModel:D,getValue:h}},exports.mergeProps=function(e){if(e){var t=function(e){return"function"==typeof e},n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).classNameMergeFunction,r=t(n);return e.reduce((function(e,i){if(!i)return e;var o=function(){var o=i[a];if("style"===a)e.style=D(D({},e.style),i.style);else if("className"===a){var l="";l=r?n(e.className,i.className):[e.className,i.className].join(" ").trim(),e.className=l||void 0}else if(t(o)){var u=e[a];e[a]=u?function(){u.apply(void 0,arguments),o.apply(void 0,arguments)}:o}else e[a]=o};for(var a in i)o();return e}),{})}};
1
+ "use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));function n(e){if(Array.isArray(e))return e}function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){return n(e)||r(e,t)||o(e,t)||a()}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t){for(var r=[],i=0;i<t.length;i++){var o=t[i];if(o){var a=u(o);if("string"===a||"number"===a)r.push(o);else if("object"===a){var s=Array.isArray(o)?o:Object.entries(o).map((function(e){var t=l(e,2);return t[1]?t[0]:null}));r=s.length?r.concat(s.filter((function(e){return!!e}))):r}}}return r.join(" ").trim()}}function c(e){if(Array.isArray(e))return i(e)}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e){return c(e)||f(e)||o(e)||d()}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function g(e){var t=v(e,"string");return"symbol"===u(t)?t:String(t)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function m(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function k(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=function(){function e(){p(this,e)}return m(e,null,[{key:"innerWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}return 0}},{key:"width",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},{key:"getOuterWidth",value:function(e,t){if(e){var n=e.getBoundingClientRect().width||e.offsetWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}},{key:"getOuterHeight",value:function(e,t){if(e){var n=e.getBoundingClientRect().height||e.offsetHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}},{key:"getClientHeight",value:function(e,t){if(e){var n=e.clientHeight;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}},{key:"getClientWidth",value:function(e,t){if(e){var n=e.clientWidth;if(t){var r=getComputedStyle(e);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}},{key:"getViewport",value:function(){var e=window,t=document,n=t.documentElement,r=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||r.clientWidth,height:e.innerHeight||n.clientHeight||r.clientHeight}}},{key:"getOffset",value:function(e){if(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(e){if(e)for(var t=e.parentNode.childNodes,n=0,r=0;r<t.length;r++){if(t[r]===e)return n;1===t[r].nodeType&&n++}return-1}},{key:"addMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.add(n[r]);else for(var i=t.split(" "),o=0;o<i.length;o++)e.className=e.className+" "+i[o]}},{key:"removeMultipleClasses",value:function(e,t){if(e&&t)if(e.classList)for(var n=t.split(" "),r=0;r<n.length;r++)e.classList.remove(n[r]);else for(var i=t.split(" "),o=0;o<i.length;o++)e.className=e.className.replace(new RegExp("(^|\\b)"+i[o].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(e,t){e&&t&&(e.classList?e.classList.add(t):e.className=e.className+" "+t)}},{key:"removeClass",value:function(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}},{key:"addStyles",value:function(e){e&&Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach((function(t){var n=l(t,2);return e.style[n[0]]=n[1]}))}},{key:"find",value:function(e,t){return e?Array.from(e.querySelectorAll(t)):[]}},{key:"findSingle",value:function(e,t){return e?e.querySelector(t):null}},{key:"setAttributes",value:function(e){var t=this;if(e){var n=function t(n,r){var i,o,a=null!=e&&null!==(i=e.$attrs)&&void 0!==i&&i[n]?[null==e||null===(o=e.$attrs)||void 0===o?void 0:o[n]]:[];return[r].flat().reduce((function(e,r){if(null!=r){var i=u(r);if("string"===i||"number"===i)e.push(r);else if("object"===i){var o=Array.isArray(r)?t(n,r):Object.entries(r).map((function(e){var t=l(e,2),r=t[0],i=t[1];return"style"!==n||!i&&0!==i?i?r:void 0:"".concat(r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(i)}));e=o.length?e.concat(o.filter((function(e){return!!e}))):e}}return e}),a)};Object.entries(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).forEach((function(r){var i=l(r,2),o=i[0],a=i[1];if(null!=a){var u=o.match(/^on(.+)/);u?e.addEventListener(u[1].toLowerCase(),a):"p-bind"===o?t.setAttributes(e,a):(a="class"===o?y(new Set(n("class",a))).join(" ").trim():"style"===o?n("style",a).join(";").trim():a,(e.$attrs=e.$attrs||{})&&(e.$attrs[o]=a),e.setAttribute(o,a))}}))}}},{key:"getAttribute",value:function(e,t){if(e){var n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}},{key:"isAttributeEquals",value:function(e,t,n){return!!e&&this.getAttribute(e,t)===n}},{key:"isAttributeNotEquals",value:function(e,t,n){return!this.isAttributeEquals(e,t,n)}},{key:"getHeight",value:function(e){if(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)}return 0}},{key:"getWidth",value:function(e){if(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}return 0}},{key:"alignOverlay",value:function(t,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t&&n&&("self"===r?this.relativePosition(t,n):(i&&(t.style.minWidth=e.getOuterWidth(n)+"px"),this.absolutePosition(t,n)))}},{key:"absolutePosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left";if(e&&t){var r,i,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=o.height,l=o.width,u=t.offsetHeight,s=t.offsetWidth,c=t.getBoundingClientRect(),f=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),y=this.getViewport();c.top+u+a>y.height?((r=c.top+f-a)<0&&(r=f),e.style.transformOrigin="bottom"):(r=u+c.top+f,e.style.transformOrigin="top");var p=c.left,v="left"===n?0:l-s;i=p+s+l>y.width?Math.max(0,p+d+s-l):p-v+d,e.style.top=r+"px",e.style.left=i+"px"}}},{key:"relativePosition",value:function(e,t){if(e&&t){var n,r,i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=t.offsetHeight,a=t.getBoundingClientRect(),l=this.getViewport();a.top+o+i.height>l.height?(a.top+(n=-1*i.height)<0&&(n=-1*a.top),e.style.transformOrigin="bottom"):(n=o,e.style.transformOrigin="top"),r=i.width>l.width?-1*a.left:a.left+i.width>l.width?-1*(a.left+i.width-l.width):0,e.style.top=n+"px",e.style.left=r+"px"}}},{key:"flipfitCollision",value:function(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left top",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left bottom",a=arguments.length>4?arguments[4]:void 0;if(t&&n){var l=n.getBoundingClientRect(),u=this.getViewport(),s=i.split(" "),c=o.split(" "),f=function(e,t){return t?+e.substring(e.search(/(\+|-)/g))||0:e.substring(0,e.search(/(\+|-)/g))||e},d={my:{x:f(s[0]),y:f(s[1]||s[0]),offsetX:f(s[0],!0),offsetY:f(s[1]||s[0],!0)},at:{x:f(c[0]),y:f(c[1]||c[0]),offsetX:f(c[0],!0),offsetY:f(c[1]||c[0],!0)}},y={left:function(){return d.my.offsetX+d.at.offsetX+l.left+("left"===d.my.x?0:-1*("center"===d.my.x?r.getOuterWidth(t)/2:r.getOuterWidth(t)))},top:function(){return d.my.offsetY+d.at.offsetY+l.top+("top"===d.my.y?0:-1*("center"===d.my.y?r.getOuterHeight(t)/2:r.getOuterHeight(t)))}},p={count:{x:0,y:0},left:function(){var n=y.left(),r=e.getWindowScrollLeft();t.style.left=n+r+"px",2===this.count.x?(t.style.left=r+"px",this.count.x=0):n<0&&(this.count.x++,d.my.x="left",d.at.x="right",d.my.offsetX*=-1,d.at.offsetX*=-1,this.right())},right:function(){var r=y.left()+e.getOuterWidth(n),i=e.getWindowScrollLeft();t.style.left=r+i+"px",2===this.count.x?(t.style.left=u.width-e.getOuterWidth(t)+i+"px",this.count.x=0):r+e.getOuterWidth(t)>u.width&&(this.count.x++,d.my.x="right",d.at.x="left",d.my.offsetX*=-1,d.at.offsetX*=-1,this.left())},top:function(){var n=y.top(),r=e.getWindowScrollTop();t.style.top=n+r+"px",2===this.count.y?(t.style.left=r+"px",this.count.y=0):n<0&&(this.count.y++,d.my.y="top",d.at.y="bottom",d.my.offsetY*=-1,d.at.offsetY*=-1,this.bottom())},bottom:function(){var r=y.top()+e.getOuterHeight(n),i=e.getWindowScrollTop();t.style.top=r+i+"px",2===this.count.y?(t.style.left=u.height-e.getOuterHeight(t)+i+"px",this.count.y=0):r+e.getOuterHeight(n)>u.height&&(this.count.y++,d.my.y="bottom",d.at.y="top",d.my.offsetY*=-1,d.at.offsetY*=-1,this.top())},center:function(r){if("y"===r){var i=y.top()+e.getOuterHeight(n)/2;t.style.top=i+e.getWindowScrollTop()+"px",i<0?this.bottom():i+e.getOuterHeight(n)>u.height&&this.top()}else{var o=y.left()+e.getOuterWidth(n)/2;t.style.left=o+e.getWindowScrollLeft()+"px",o<0?this.left():o+e.getOuterWidth(t)>u.width&&this.right()}}};p[d.at.x]("x"),p[d.at.y]("y"),this.isFunction(a)&&a(d)}}},{key:"findCollisionPosition",value:function(e){if(e){var t="left"===e?"right":"left";return"top"===e||"bottom"===e?{axis:"y",my:"center ".concat("top"===e?"bottom":"top"),at:"center ".concat(e)}:{axis:"x",my:"".concat(t," center"),at:"".concat(e," center")}}}},{key:"getParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}},{key:"getScrollableParents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(e){var r,i=this.getParents(e),o=/(auto|scroll)/,a=function(e){var t=e?getComputedStyle(e):null;return t&&(o.test(t.getPropertyValue("overflow"))||o.test(t.getPropertyValue("overflow-x"))||o.test(t.getPropertyValue("overflow-y")))},l=function(e){n.push(t&&("BODY"===e.nodeName||"HTML"===e.nodeName||9===e.nodeType)?window:e)},u=w(i);try{for(u.s();!(r=u.n()).done;){var s=r.value,c=1===s.nodeType&&s.dataset.scrollselectors;if(c){var f,d=w(c.split(","));try{for(d.s();!(f=d.n()).done;){var y=this.findSingle(s,f.value);y&&a(y)&&l(y)}}catch(e){d.e(e)}finally{d.f()}}1===s.nodeType&&a(s)&&l(s)}}catch(e){u.e(e)}finally{u.f()}}return n.some((function(e){return e===document.body||e===window}))||n.push(window),n}},{key:"getHiddenElementOuterHeight",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementOuterWidth",value:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}return 0}},{key:"getHiddenElementDimensions",value:function(e){var t={};return e&&(e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible"),t}},{key:"fadeIn",value:function(e,t){if(e){e.style.opacity=0;var n=+new Date,r=0;!function i(){r=+e.style.opacity+((new Date).getTime()-n)/t,e.style.opacity=r,n=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(i)||setTimeout(i,16))}()}}},{key:"fadeOut",value:function(e,t){if(e)var n=1,r=50/t,i=setInterval((function(){(n-=r)<=0&&(n=0,clearInterval(i)),e.style.opacity=n}),50)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"appendChild",value:function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}}},{key:"removeChild",value:function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}}},{key:"isElement",value:function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":u(HTMLElement))?e instanceof HTMLElement:e&&"object"===u(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}},{key:"scrollInView",value:function(e,t){var n=getComputedStyle(e).getPropertyValue("border-top-width"),r=n?parseFloat(n):0,i=getComputedStyle(e).getPropertyValue("padding-top"),o=i?parseFloat(i):0,a=e.getBoundingClientRect(),l=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-r-o,u=e.scrollTop,s=e.clientHeight,c=this.getOuterHeight(t);l<0?e.scrollTop=u+l:l+c>s&&(e.scrollTop=u+l-s+c)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}},{key:"calculateScrollbarWidth",value:function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!=this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var r=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}},{key:"blockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";!!!document.body.style.getPropertyValue("--scrollbar-width")&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}},{key:"unblockBodyScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}},{key:"isVisible",value:function(e){return e&&(0!==e.clientHeight||0!==e.getClientRects().length||"none"!==getComputedStyle(e).display)}},{key:"isExist",value:function(e){return!(null==e||!e.nodeName||!e.parentNode)}},{key:"getFocusableElements",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[],o=w(e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r,',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(r)));try{for(o.s();!(n=o.n()).done;){var a=n.value;"none"!==getComputedStyle(a).display&&"hidden"!==getComputedStyle(a).visibility&&i.push(a)}}catch(e){o.e(e)}finally{o.f()}return i}},{key:"getFirstFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[0]:null}},{key:"getLastFocusableElement",value:function(t,n){var r=e.getFocusableElements(t,n);return r.length>0?r[r.length-1]:null}},{key:"focus",value:function(e,t){e&&document.activeElement!==e&&e.focus({preventScroll:void 0===t||!t})}},{key:"focusFirstElement",value:function(t,n){if(t){var r=e.getFirstFocusableElement(t);return r&&e.focus(r,n),r}}},{key:"getCursorOffset",value:function(e,t,n,r){if(e){var i=getComputedStyle(e),o=document.createElement("div");o.style.position="absolute",o.style.top="0px",o.style.left="0px",o.style.visibility="hidden",o.style.pointerEvents="none",o.style.overflow=i.overflow,o.style.width=i.width,o.style.height=i.height,o.style.padding=i.padding,o.style.border=i.border,o.style.overflowWrap=i.overflowWrap,o.style.whiteSpace=i.whiteSpace,o.style.lineHeight=i.lineHeight,o.innerHTML=t.replace(/\r\n|\r|\n/g,"<br />");var a=document.createElement("span");a.textContent=r,o.appendChild(a);var l=document.createTextNode(n);o.appendChild(l),document.body.appendChild(o);var u=a.offsetLeft,s=a.offsetTop,c=a.clientHeight;return document.body.removeChild(o),{left:Math.abs(u-e.scrollLeft),top:Math.abs(s-e.scrollTop)+c}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(e,t,n){e[t].apply(e,n)}},{key:"isClickable",value:function(e){var t=e.nodeName,n=e.parentElement&&e.parentElement.nodeName;return"INPUT"===t||"TEXTAREA"===t||"BUTTON"===t||"A"===t||"INPUT"===n||"TEXTAREA"===n||"BUTTON"===n||"A"===n||this.hasClass(e,"p-button")||this.hasClass(e.parentElement,"p-button")||this.hasClass(e.parentElement,"p-checkbox")||this.hasClass(e.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(e,t){if("string"==typeof t)e.style.cssText=this.style;else for(var n in this.style)e.style[n]=t[n]}},{key:"exportCSV",value:function(t,n){var r=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(r,n+".csv"):e.saveAs({name:n+".csv",src:URL.createObjectURL(r)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}},{key:"saveAs",value:function(e){if(e){var t=document.createElement("a");if(void 0!==t.download){var n=e.name;return t.setAttribute("href",e.src),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),!0}}return!1}},{key:"createInlineStyle",value:function(t,n){var r=document.createElement("style");return e.addNonce(r,t),n||(n=document.head),n.appendChild(r),r}},{key:"removeInlineStyle",value:function(e){if(this.isExist(e)){try{e.parentNode.removeChild(e)}catch(e){}e=null}return e}},{key:"addNonce",value:function(e,t){try{t||(t=process.env.REACT_APP_CSS_NONCE)}catch(e){}t&&e.setAttribute("nonce",t)}},{key:"getTargetElement",value:function(e){if(!e)return null;if("document"===e)return document;if("window"===e)return window;if("object"===u(e)&&e.hasOwnProperty("current"))return this.isExist(e.current)?e.current:null;var t,n=(t=e)&&t.constructor&&t.call&&t.apply?e():e;return n&&9===n.nodeType||this.isExist(n)?n:null}},{key:"getAttributeNames",value:function(e){var t,n,r;for(n=[],r=e.attributes,t=0;t<r.length;++t)n.push(r[t].nodeName);return n.sort(),n}},{key:"isEqualElement",value:function(t,n){var r,i,o,a,l;if(r=e.getAttributeNames(t),i=e.getAttributeNames(n),r.join(",")!==i.join(","))return!1;for(var u=0;u<r.length;++u)if("style"===(o=r[u]))for(var s=t.style,c=n.style,f=/^\d+$/,d=0,y=Object.keys(s);d<y.length;d++){var p=y[d];if(!f.test(p)&&s[p]!==c[p])return!1}else if(t.getAttribute(o)!==n.getAttribute(o))return!1;for(a=t.firstChild,l=n.firstChild;a&&l;a=a.nextSibling,l=l.nextSibling){if(a.nodeType!==l.nodeType)return!1;if(1===a.nodeType){if(!e.isEqualElement(a,l))return!1}else if(a.nodeValue!==l.nodeValue)return!1}return!a&&!l}},{key:"hasCSSAnimation",value:function(e){if(e){var t=getComputedStyle(e);return parseFloat(t.getPropertyValue("animation-duration")||"0")>0}return!1}},{key:"hasCSSTransition",value:function(e){if(e){var t=getComputedStyle(e);return parseFloat(t.getPropertyValue("transition-duration")||"0")>0}return!1}}])}();function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=S(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function S(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}b(O,"DATA_PROPS",["data-"]),b(O,"ARIA_PROPS",["aria","focus-target"]);var A=function(){return m((function e(){p(this,e)}),null,[{key:"equals",value:function(e,t,n){return n&&e&&"object"===u(e)&&t&&"object"===u(t)?this.deepEquals(this.resolveFieldData(e,n),this.resolveFieldData(t,n)):this.deepEquals(e,t)}},{key:"deepEquals",value:function(e,t){if(e===t)return!0;if(e&&t&&"object"===u(e)&&"object"===u(t)){var n,r,i,o=Array.isArray(e),a=Array.isArray(t);if(o&&a){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(o!==a)return!1;var l=e instanceof Date,s=t instanceof Date;if(l!==s)return!1;if(l&&s)return e.getTime()===t.getTime();var c=e instanceof RegExp,f=t instanceof RegExp;if(c!==f)return!1;if(c&&f)return e.toString()===t.toString();var d=Object.keys(e);if((r=d.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=r;0!=n--;)if(!this.deepEquals(e[i=d[n]],t[i]))return!1;return!0}return e!=e&&t!=t}},{key:"resolveFieldData",value:function(e,t){if(!e||!t)return null;try{var n=e[t];if(this.isNotEmpty(n))return n}catch(e){}if(Object.keys(e).length){if(this.isFunction(t))return t(e);if(this.isNotEmpty(e[t]))return e[t];if(-1===t.indexOf("."))return e[t];for(var r=t.split("."),i=e,o=0,a=r.length;o<a;++o){if(null==i)return null;i=i[r[o]]}return i}return null}},{key:"findDiffKeys",value:function(e,t){return e&&t?Object.keys(e).filter((function(e){return!t.hasOwnProperty(e)})).reduce((function(t,n){return t[n]=e[n],t}),{}):{}}},{key:"reduceKeys",value:function(e,t){var n={};return e&&t&&0!==t.length?(Object.keys(e).filter((function(e){return t.some((function(t){return e.startsWith(t)}))})).forEach((function(t){n[t]=e[t],delete e[t]})),n):n}},{key:"reorderArray",value:function(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}},{key:"findIndexInList",value:function(e,t,n){var r=this;return t?t.findIndex(n?function(t){return r.equals(t,e,n)}:function(t){return t===e}):-1}},{key:"getJSXElement",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getItemValue",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e?e[t]:void 0;return void 0===n?(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})[t]:n}},{key:"getPropCaseInsensitive",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.toFlatCase(t);for(var i in e)if(e.hasOwnProperty(i)&&this.toFlatCase(i)===r)return e[i];for(var o in n)if(n.hasOwnProperty(o)&&this.toFlatCase(o)===r)return n[o]}},{key:"getMergedProps",value:function(e,t){return Object.assign({},t,e)}},{key:"getDiffProps",value:function(e,t){return this.findDiffKeys(e,t)}},{key:"getPropValue",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.isFunction(e)?e.apply(void 0,n):e}},{key:"getComponentProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isNotEmpty(e)?this.getProp(e.props,t,n):void 0}},{key:"getComponentProps",value:function(e,t){return this.isNotEmpty(e)?this.getMergedProps(e.props,t):void 0}},{key:"getComponentDiffProps",value:function(e,t){return this.isNotEmpty(e)?this.getDiffProps(e.props,t):void 0}},{key:"isValidChild",value:function(e,t,n){if(e){var r,i=this.getComponentProp(e,"__TYPE")||(e.type?e.type.displayName:void 0);!i&&null!=e&&null!==(r=e.type)&&void 0!==r&&null!==(r=r._payload)&&void 0!==r&&r.value&&(i=e.type._payload.value.find((function(e){return e===t})));var o=i===t;try{0}catch(e){}return o}return!1}},{key:"getRefElement",value:function(e){return e?"object"===u(e)&&e.hasOwnProperty("current")?e.current:e:null}},{key:"combinedRefs",value:function(e,t){e&&t&&("function"==typeof t?t(e.current):t.current=e.current)}},{key:"removeAccents",value:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}},{key:"toFlatCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e}},{key:"toCapitalCase",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e[0].toUpperCase()+e.slice(1):e}},{key:"trim",value:function(e){return this.isNotEmpty(e)&&this.isString(e)?e.trim():e}},{key:"isEmpty",value:function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"===u(e)&&0===Object.keys(e).length}},{key:"isNotEmpty",value:function(e){return!this.isEmpty(e)}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isObject",value:function(e){return null!==e&&e instanceof Object&&e.constructor===Object}},{key:"isDate",value:function(e){return null!==e&&e instanceof Date&&e.constructor===Date}},{key:"isArray",value:function(e){return null!==e&&Array.isArray(e)}},{key:"isString",value:function(e){return null!==e&&"string"==typeof e}},{key:"isPrintableCharacter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}},{key:"isLetter",value:function(e){return/^[a-zA-Z\u00C0-\u017F]$/.test(e)}},{key:"isScalar",value:function(e){return null!=e&&("string"==typeof e||"number"==typeof e||"bigint"==typeof e||"boolean"==typeof e)}},{key:"findLast",value:function(e,t){var n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch(r){n=y(e).reverse().find(t)}return n}},{key:"findLastIndex",value:function(e,t){var n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch(r){n=e.lastIndexOf(y(e).reverse().find(t))}return n}},{key:"sort",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=this.compare(e,t,arguments.length>3?arguments[3]:void 0,n),o=n;return(this.isEmpty(e)||this.isEmpty(t))&&(o=1===r?n:r),o*i}},{key:"compare",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=this.isEmpty(e),o=this.isEmpty(t);return i&&o?0:i?r:o?-r:"string"==typeof e&&"string"==typeof t?n(e,t):e<t?-1:e>t?1:0}},{key:"localeComparator",value:function(e){return new Intl.Collator(e,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(e,t){var n,r=C(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.key===t)return i.children||[];if(i.children){var o=this.findChildrenByKey(i.children,t);if(o.length>0)return o}}}catch(e){r.e(e)}finally{r.f()}return[]}},{key:"mutateFieldData",value:function(e,t,n){if("object"===u(e)&&"string"==typeof t)for(var r=t.split("."),i=e,o=0,a=r.length;o<a;++o){if(o+1-a==0){i[r[o]]=n;break}i[r[o]]||(i[r[o]]={}),i=i[r[o]]}}}])}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=function(){return m((function e(){p(this,e)}),null,[{key:"getJSXIcon",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null;if(null!==e){var o=u(e),a=s(n.className,"string"===o&&e);if(i=t.createElement("span",x({},n,{className:a})),"string"!==o){var l=F({iconProps:n,element:i},r);return A.getJSXElement(e,l)}}return i}}])}();function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=0;var R,H,B,M,V=(R=[],H=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999,r=M(e,t,n),i=r.value+(r.key===e?0:n)+1;return R.push({key:e,value:i}),i},B=function(e,t){return M(e,t).value},M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(R).reverse().find((function(n){return!!t||n.key===e}))||{key:e,value:n}},{get:function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n,r){t&&(t.style.zIndex=String(H(e,n,r)))},clear:function(e){var t;e&&(t=V.get(e),R=R.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(e,t){return B(e,t)}});exports.DomHandler=O,exports.EventBus=function(){var e=new Map;return{on:function(t,n){var r=e.get(t);r?r.push(n):r=[n],e.set(t,r)},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){var r=e.get(t);r&&r.slice().forEach((function(e){return e(n)}))}}},exports.IconUtils=T,exports.ObjectUtils=A,exports.UniqueComponentId=function(){return I++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pr_id_").concat(I)},exports.ZIndexUtils=V,exports.classNames=s,exports.mask=function(e,t){var n,r,i,o,a,l,u,s,c,f,d,y;t=L(L({},{mask:null,slotChar:"_",autoClear:!0,unmask:!1,readOnly:!1,onComplete:null,onChange:null,onFocus:null,onBlur:null}),t);var p=function(t,n){var r,i,o;if(e.offsetParent&&e===document.activeElement)return"number"!=typeof t?(e.setSelectionRange?(i=e.selectionStart,o=e.selectionEnd):document.selection&&document.selection.createRange&&(o=(i=0-(r=document.selection.createRange()).duplicate().moveStart("character",-1e5))+r.text.length),{begin:i,end:o}):(i=t,o="number"==typeof n?n:i,void(e.setSelectionRange?e.setSelectionRange(i,o):e.createTextRange&&((r=e.createTextRange()).collapse(!0),r.moveEnd("character",o),r.moveStart("character",i),r.select())))},v=function(){for(var e=o;e<=u;e++)if(n[e]&&d[e]===g(e))return!1;return!0},g=function(e){return t.slotChar.charAt(e<t.slotChar.length?e:0)},h=function(){return t.unmask?W():e&&e.value},m=function(e){for(;++e<i&&!n[e];);return e},b=function(e){for(;--e>=0&&!n[e];);return e},w=function(e,t){var r,a;if(!(e<0)){for(r=e,a=m(t);r<i;r++)if(n[r]){if(!(a<i&&n[r].test(d[a])))break;d[r]=d[a],d[a]=g(a),a=m(a)}A(),p(Math.max(o,e))}},k=function(e){var t,r,o,a;for(t=e,r=g(e);t<i;t++)if(n[t]){if(o=m(t),a=d[t],d[t]=r,!(o<i&&n[o].test(a)))break;r=a}},E=function(r){var a=e.value,l=p();if(s&&s.length&&s.length>a.length){for(P(!0);l.begin>0&&!n[l.begin-1];)l.begin--;if(0===l.begin)for(;l.begin<o&&!n[l.begin];)l.begin++;p(l.begin,l.begin)}else{for(P(!0);l.begin<i&&!n[l.begin];)l.begin++;p(l.begin,l.begin)}t.onComplete&&v()&&t.onComplete({originalEvent:r,value:h()})},x=function(n){if(P(),t.onBlur&&t.onBlur(n),D(n),e.value!==c){var r=document.createEvent("HTMLEvents");r.initEvent("change",!0,!1),e.dispatchEvent(r)}},C=function(n){if(!t.readOnly){var r,i,o,a=n.which||n.keyCode;s=e.value,8===a||46===a||O.isIOS()&&127===a?((o=(r=p()).end)-(i=r.begin)==0&&(i=46!==a?b(i):o=m(i-1),o=46===a?m(o):o),j(i,o),w(i,o-1),D(n),n.preventDefault()):13===a?(x(n),D(n)):27===a&&(e.value=c,p(0,P()),D(n),n.preventDefault())}},S=function(e){if(!t.readOnly){var r,o,a,l,s=e.which||e.keyCode,c=p();if(!(e.ctrlKey||e.altKey||e.metaKey||s<32)){if(s&&13!==s){if(c.end-c.begin!=0&&(j(c.begin,c.end),w(c.begin,c.end-1)),(r=m(c.begin-1))<i&&(o=String.fromCharCode(s),n[r].test(o))){if(k(r),d[r]=o,A(),a=m(r),O.isAndroid()){setTimeout((function(){p(a)}),0)}else p(a);c.begin<=u&&(l=v())}e.preventDefault()}D(e),t.onComplete&&l&&t.onComplete({originalEvent:e,value:h()})}}},j=function(e,t){var r;for(r=e;r<t&&r<i;r++)n[r]&&(d[r]=g(r))},A=function(){e.value=d.join("")},P=function(a){var l,u,s,c=e.value,f=-1;for(l=0,s=0;l<i;l++)if(n[l]){for(d[l]=g(l);s++<c.length;)if(u=c.charAt(s-1),n[l].test(u)){d[l]=u,f=l;break}if(s>c.length){j(l+1,i);break}}else d[l]===c.charAt(s)&&s++,l<r&&(f=l);return a?A():f+1<r?t.autoClear||d.join("")===y?(e.value&&(e.value=""),j(0,i)):A():(A(),e.value=e.value.substring(0,f+1)),r?l:o},F=function(n){var r;t.readOnly||(clearTimeout(f),c=e.value,r=P(),f=setTimeout((function(){e===document.activeElement&&(A(),r===t.mask.replace("?","").length?p(0,r):p(r))}),100),t.onFocus&&t.onFocus(n))},T=function(e){l?E(e):N(e)},N=function(e){if(!t.readOnly){var n=P(!0);p(n),D(e),t.onComplete&&v()&&t.onComplete({originalEvent:e,value:h()})}},W=function(){for(var e=[],t=0;t<d.length;t++){var r=d[t];n[t]&&r!==g(t)&&e.push(r)}return e.join("")},D=function(e){if(t.onChange){var n=h();t.onChange({originalEvent:e,value:y!==n?n:"",stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},target:{value:y!==n?n:""}})}},I=function(){e.addEventListener("focus",F),e.addEventListener("blur",x),e.addEventListener("keydown",C),e.addEventListener("keypress",S),e.addEventListener("input",T),e.addEventListener("paste",N)},R=function(){n=[],r=t.mask.length,i=t.mask.length,o=null,a={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},l=O.isChrome()&&O.isAndroid();for(var e=t.mask.split(""),s=0;s<e.length;s++){var c=e[s];"?"===c?(i--,r=s):a[c]?(n.push(new RegExp(a[c])),null===o&&(o=n.length-1),s<r&&(u=n.length-1)):n.push(null)}d=[];for(var f=0;f<e.length;f++){var p=e[f];"?"!==p&&d.push(a[p]?g(f):p)}y=d.join("")};return e&&t.mask&&(R(),I()),{init:R,bindEvents:I,unbindEvents:function(){e.removeEventListener("focus",F),e.removeEventListener("blur",x),e.removeEventListener("keydown",C),e.removeEventListener("keypress",S),e.removeEventListener("input",T),e.removeEventListener("paste",N)},updateModel:D,getValue:h}},exports.mergeProps=function(e){if(e){var t=function(e){return"function"==typeof e},n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).classNameMergeFunction,r=t(n);return e.reduce((function(e,i){if(!i)return e;var o=function(){var o=i[a];if("style"===a)e.style=D(D({},e.style),i.style);else if("className"===a){var l="";l=r?n(e.className,i.className):[e.className,i.className].join(" ").trim(),e.className=l||void 0}else if(t(o)){var u=e[a];e[a]=u?function(){u.apply(void 0,arguments),o.apply(void 0,arguments)}:o}else e[a]=o};for(var a in i)o();return e}),{})}};
package/utils/utils.d.ts CHANGED
@@ -146,6 +146,7 @@ export declare class ObjectUtils {
146
146
  static isString(value: any): boolean;
147
147
  static isPrintableCharacter(char: string): boolean;
148
148
  static isLetter(char: string): boolean;
149
+ static isScalar(value: any): boolean;
149
150
  static findLast(value: any[], callback: () => any): any;
150
151
  static findLastIndex(value: any[], callback: () => any): number;
151
152
  static sort(value1: any, value2: any, order: number, locale: string | string[]): number;
@@ -1831,6 +1831,11 @@ var ObjectUtils = /*#__PURE__*/function () {
1831
1831
  value: function isLetter(_char2) {
1832
1832
  return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
1833
1833
  }
1834
+ }, {
1835
+ key: "isScalar",
1836
+ value: function isScalar(value) {
1837
+ return value != null && (typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint' || typeof value === 'boolean');
1838
+ }
1834
1839
 
1835
1840
  /**
1836
1841
  * Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.