@dartcom/ui-kit 3.0.0 → 3.1.0

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 (1323) hide show
  1. package/dist/cjs/_virtual/_commonjsHelpers.js +0 -2
  2. package/dist/cjs/_virtual/_commonjsHelpers.js.map +1 -1
  3. package/dist/cjs/_virtual/index.js +5 -3
  4. package/dist/cjs/_virtual/index.js.map +1 -1
  5. package/dist/cjs/_virtual/index2.js +3 -3
  6. package/dist/cjs/_virtual/index3.js +2 -6
  7. package/dist/cjs/_virtual/index3.js.map +1 -1
  8. package/dist/cjs/_virtual/index4.js +0 -2
  9. package/dist/cjs/_virtual/index4.js.map +1 -1
  10. package/dist/cjs/_virtual/index5.js +2 -8
  11. package/dist/cjs/_virtual/index5.js.map +1 -1
  12. package/dist/cjs/_virtual/index6.js +2 -4
  13. package/dist/cjs/_virtual/index6.js.map +1 -1
  14. package/dist/cjs/_virtual/react-is.development.js +0 -2
  15. package/dist/cjs/_virtual/react-is.development.js.map +1 -1
  16. package/dist/cjs/_virtual/react-is.development2.js +0 -2
  17. package/dist/cjs/_virtual/react-is.development2.js.map +1 -1
  18. package/dist/cjs/_virtual/react-is.development3.js +0 -2
  19. package/dist/cjs/_virtual/react-is.development3.js.map +1 -1
  20. package/dist/cjs/_virtual/react-is.production.js +0 -2
  21. package/dist/cjs/_virtual/react-is.production.js.map +1 -1
  22. package/dist/cjs/_virtual/react-is.production.min.js +0 -2
  23. package/dist/cjs/_virtual/react-is.production.min.js.map +1 -1
  24. package/dist/cjs/_virtual/react-is.production.min2.js +0 -2
  25. package/dist/cjs/_virtual/react-is.production.min2.js.map +1 -1
  26. package/dist/cjs/components/buttons/delete/delete.js +9 -10
  27. package/dist/cjs/components/buttons/delete/delete.js.map +1 -1
  28. package/dist/cjs/components/checkbox/checkbox.js +7 -8
  29. package/dist/cjs/components/checkbox/checkbox.js.map +1 -1
  30. package/dist/cjs/components/drag-list/drag-list.js +3 -3
  31. package/dist/cjs/components/drag-list/drag-list.js.map +1 -1
  32. package/dist/cjs/components/drag-list/draggable/draggable.js +2 -2
  33. package/dist/cjs/components/drag-list/draggable/draggable.js.map +1 -1
  34. package/dist/cjs/components/form/form.js +4 -4
  35. package/dist/cjs/components/form/form.js.map +1 -1
  36. package/dist/cjs/components/input/input.js +5 -6
  37. package/dist/cjs/components/input/input.js.map +1 -1
  38. package/dist/cjs/components/layers/leaflet/hooks/useGetLeafletLayer.js +4 -10
  39. package/dist/cjs/components/layers/leaflet/hooks/useGetLeafletLayer.js.map +1 -1
  40. package/dist/cjs/components/layers/leaflet/leaflet.js +4 -5
  41. package/dist/cjs/components/layers/leaflet/leaflet.js.map +1 -1
  42. package/dist/cjs/components/list/list.js +8 -9
  43. package/dist/cjs/components/list/list.js.map +1 -1
  44. package/dist/cjs/components/no-data/no-data.js +2 -2
  45. package/dist/cjs/components/no-data/no-data.js.map +1 -1
  46. package/dist/cjs/components/paragraph/paragraph.js +2 -2
  47. package/dist/cjs/components/paragraph/paragraph.js.map +1 -1
  48. package/dist/cjs/components/select/select.js +6 -7
  49. package/dist/cjs/components/select/select.js.map +1 -1
  50. package/dist/cjs/configs/global/constants.js +0 -2
  51. package/dist/cjs/configs/global/constants.js.map +1 -1
  52. package/dist/cjs/configs/global/global.js +0 -2
  53. package/dist/cjs/configs/global/global.js.map +1 -1
  54. package/dist/cjs/constants/api.js +0 -2
  55. package/dist/cjs/constants/api.js.map +1 -1
  56. package/dist/cjs/constants/map.js +0 -2
  57. package/dist/cjs/constants/map.js.map +1 -1
  58. package/dist/cjs/index.js +11 -13
  59. package/dist/cjs/index.js.map +1 -1
  60. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
  61. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -1
  62. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  63. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
  64. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +2 -2
  65. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -1
  66. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  67. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -1
  68. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  69. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
  70. package/dist/cjs/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +2 -8
  71. package/dist/cjs/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -1
  72. package/dist/cjs/node_modules/@dnd-kit/core/dist/core.esm.js +9 -15
  73. package/dist/cjs/node_modules/@dnd-kit/core/dist/core.esm.js.map +1 -1
  74. package/dist/cjs/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +2 -8
  75. package/dist/cjs/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -1
  76. package/dist/cjs/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -2
  77. package/dist/cjs/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -1
  78. package/dist/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +3 -3
  79. package/dist/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +1 -1
  80. package/dist/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +1 -1
  81. package/dist/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -1
  82. package/dist/cjs/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +3 -3
  83. package/dist/cjs/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -1
  84. package/dist/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +1 -1
  85. package/dist/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -1
  86. package/dist/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +5 -11
  87. package/dist/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +1 -1
  88. package/dist/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +3 -6
  89. package/dist/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +1 -1
  90. package/dist/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +3 -12
  91. package/dist/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -1
  92. package/dist/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +1 -5
  93. package/dist/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -1
  94. package/dist/cjs/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +6 -12
  95. package/dist/cjs/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js.map +1 -1
  96. package/dist/cjs/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js +2 -2
  97. package/dist/cjs/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js.map +1 -1
  98. package/dist/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +1 -1
  99. package/dist/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -1
  100. package/dist/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +3 -6
  101. package/dist/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js.map +1 -1
  102. package/dist/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -2
  103. package/dist/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +1 -1
  104. package/dist/cjs/node_modules/@mui/icons-material/esm/Delete.js +2 -2
  105. package/dist/cjs/node_modules/@mui/icons-material/esm/Delete.js.map +1 -1
  106. package/dist/cjs/node_modules/@mui/material/esm/Autocomplete/Autocomplete.js +165 -167
  107. package/dist/cjs/node_modules/@mui/material/esm/Autocomplete/Autocomplete.js.map +1 -1
  108. package/dist/cjs/node_modules/@mui/material/esm/Autocomplete/autocompleteClasses.js +3 -4
  109. package/dist/cjs/node_modules/@mui/material/esm/Autocomplete/autocompleteClasses.js.map +1 -1
  110. package/dist/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.js +33 -35
  111. package/dist/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.js.map +1 -1
  112. package/dist/cjs/node_modules/@mui/material/esm/Backdrop/backdropClasses.js +2 -4
  113. package/dist/cjs/node_modules/@mui/material/esm/Backdrop/backdropClasses.js.map +1 -1
  114. package/dist/cjs/node_modules/@mui/material/esm/Box/Box.js +11 -12
  115. package/dist/cjs/node_modules/@mui/material/esm/Box/Box.js.map +1 -1
  116. package/dist/cjs/node_modules/@mui/material/esm/Box/boxClasses.js +2 -3
  117. package/dist/cjs/node_modules/@mui/material/esm/Box/boxClasses.js.map +1 -1
  118. package/dist/cjs/node_modules/@mui/material/esm/Button/Button.js +58 -60
  119. package/dist/cjs/node_modules/@mui/material/esm/Button/Button.js.map +1 -1
  120. package/dist/cjs/node_modules/@mui/material/esm/Button/buttonClasses.js +3 -4
  121. package/dist/cjs/node_modules/@mui/material/esm/Button/buttonClasses.js.map +1 -1
  122. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js +58 -60
  123. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js.map +1 -1
  124. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/Ripple.js +14 -15
  125. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/Ripple.js.map +1 -1
  126. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js +26 -28
  127. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js.map +1 -1
  128. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/buttonBaseClasses.js +3 -4
  129. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/buttonBaseClasses.js.map +1 -1
  130. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js +2 -3
  131. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js.map +1 -1
  132. package/dist/cjs/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js +4 -6
  133. package/dist/cjs/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js.map +1 -1
  134. package/dist/cjs/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js +4 -6
  135. package/dist/cjs/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js.map +1 -1
  136. package/dist/cjs/node_modules/@mui/material/esm/Checkbox/Checkbox.js +46 -48
  137. package/dist/cjs/node_modules/@mui/material/esm/Checkbox/Checkbox.js.map +1 -1
  138. package/dist/cjs/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js +4 -5
  139. package/dist/cjs/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js.map +1 -1
  140. package/dist/cjs/node_modules/@mui/material/esm/Chip/Chip.js +95 -97
  141. package/dist/cjs/node_modules/@mui/material/esm/Chip/Chip.js.map +1 -1
  142. package/dist/cjs/node_modules/@mui/material/esm/Chip/chipClasses.js +3 -4
  143. package/dist/cjs/node_modules/@mui/material/esm/Chip/chipClasses.js.map +1 -1
  144. package/dist/cjs/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js +61 -36
  145. package/dist/cjs/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js.map +1 -1
  146. package/dist/cjs/node_modules/@mui/material/esm/CircularProgress/circularProgressClasses.js +2 -4
  147. package/dist/cjs/node_modules/@mui/material/esm/CircularProgress/circularProgressClasses.js.map +1 -1
  148. package/dist/cjs/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js +3 -5
  149. package/dist/cjs/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
  150. package/dist/cjs/node_modules/@mui/material/esm/Dialog/Dialog.js +71 -73
  151. package/dist/cjs/node_modules/@mui/material/esm/Dialog/Dialog.js.map +1 -1
  152. package/dist/cjs/node_modules/@mui/material/esm/Dialog/DialogContext.js +4 -6
  153. package/dist/cjs/node_modules/@mui/material/esm/Dialog/DialogContext.js.map +1 -1
  154. package/dist/cjs/node_modules/@mui/material/esm/Dialog/dialogClasses.js +3 -4
  155. package/dist/cjs/node_modules/@mui/material/esm/Dialog/dialogClasses.js.map +1 -1
  156. package/dist/cjs/node_modules/@mui/material/esm/DialogActions/DialogActions.js +13 -15
  157. package/dist/cjs/node_modules/@mui/material/esm/DialogActions/DialogActions.js.map +1 -1
  158. package/dist/cjs/node_modules/@mui/material/esm/DialogActions/dialogActionsClasses.js +2 -4
  159. package/dist/cjs/node_modules/@mui/material/esm/DialogActions/dialogActionsClasses.js.map +1 -1
  160. package/dist/cjs/node_modules/@mui/material/esm/DialogContent/DialogContent.js +15 -17
  161. package/dist/cjs/node_modules/@mui/material/esm/DialogContent/DialogContent.js.map +1 -1
  162. package/dist/cjs/node_modules/@mui/material/esm/DialogContent/dialogContentClasses.js +2 -4
  163. package/dist/cjs/node_modules/@mui/material/esm/DialogContent/dialogContentClasses.js.map +1 -1
  164. package/dist/cjs/node_modules/@mui/material/esm/DialogContentText/DialogContentText.js +14 -16
  165. package/dist/cjs/node_modules/@mui/material/esm/DialogContentText/DialogContentText.js.map +1 -1
  166. package/dist/cjs/node_modules/@mui/material/esm/DialogContentText/dialogContentTextClasses.js +2 -4
  167. package/dist/cjs/node_modules/@mui/material/esm/DialogContentText/dialogContentTextClasses.js.map +1 -1
  168. package/dist/cjs/node_modules/@mui/material/esm/DialogTitle/DialogTitle.js +15 -17
  169. package/dist/cjs/node_modules/@mui/material/esm/DialogTitle/DialogTitle.js.map +1 -1
  170. package/dist/cjs/node_modules/@mui/material/esm/DialogTitle/dialogTitleClasses.js +3 -4
  171. package/dist/cjs/node_modules/@mui/material/esm/DialogTitle/dialogTitleClasses.js.map +1 -1
  172. package/dist/cjs/node_modules/@mui/material/esm/Fade/Fade.js +29 -31
  173. package/dist/cjs/node_modules/@mui/material/esm/Fade/Fade.js.map +1 -1
  174. package/dist/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.js +65 -67
  175. package/dist/cjs/node_modules/@mui/material/esm/FilledInput/FilledInput.js.map +1 -1
  176. package/dist/cjs/node_modules/@mui/material/esm/FilledInput/filledInputClasses.js +5 -6
  177. package/dist/cjs/node_modules/@mui/material/esm/FilledInput/filledInputClasses.js.map +1 -1
  178. package/dist/cjs/node_modules/@mui/material/esm/FormControl/FormControl.js +31 -33
  179. package/dist/cjs/node_modules/@mui/material/esm/FormControl/FormControl.js.map +1 -1
  180. package/dist/cjs/node_modules/@mui/material/esm/FormControl/FormControlContext.js +4 -6
  181. package/dist/cjs/node_modules/@mui/material/esm/FormControl/FormControlContext.js.map +1 -1
  182. package/dist/cjs/node_modules/@mui/material/esm/FormControl/formControlClasses.js +2 -4
  183. package/dist/cjs/node_modules/@mui/material/esm/FormControl/formControlClasses.js.map +1 -1
  184. package/dist/cjs/node_modules/@mui/material/esm/FormControl/formControlState.js +1 -1
  185. package/dist/cjs/node_modules/@mui/material/esm/FormControl/formControlState.js.map +1 -1
  186. package/dist/cjs/node_modules/@mui/material/esm/FormControl/useFormControl.js +5 -6
  187. package/dist/cjs/node_modules/@mui/material/esm/FormControl/useFormControl.js.map +1 -1
  188. package/dist/cjs/node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js +45 -47
  189. package/dist/cjs/node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js.map +1 -1
  190. package/dist/cjs/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js +3 -4
  191. package/dist/cjs/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js.map +1 -1
  192. package/dist/cjs/node_modules/@mui/material/esm/FormHelperText/FormHelperText.js +28 -30
  193. package/dist/cjs/node_modules/@mui/material/esm/FormHelperText/FormHelperText.js.map +1 -1
  194. package/dist/cjs/node_modules/@mui/material/esm/FormHelperText/formHelperTextClasses.js +3 -4
  195. package/dist/cjs/node_modules/@mui/material/esm/FormHelperText/formHelperTextClasses.js.map +1 -1
  196. package/dist/cjs/node_modules/@mui/material/esm/FormLabel/FormLabel.js +31 -33
  197. package/dist/cjs/node_modules/@mui/material/esm/FormLabel/FormLabel.js.map +1 -1
  198. package/dist/cjs/node_modules/@mui/material/esm/FormLabel/formLabelClasses.js +3 -4
  199. package/dist/cjs/node_modules/@mui/material/esm/FormLabel/formLabelClasses.js.map +1 -1
  200. package/dist/cjs/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js +6 -6
  201. package/dist/cjs/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  202. package/dist/cjs/node_modules/@mui/material/esm/Grow/Grow.js +30 -32
  203. package/dist/cjs/node_modules/@mui/material/esm/Grow/Grow.js.map +1 -1
  204. package/dist/cjs/node_modules/@mui/material/esm/IconButton/IconButton.js +35 -37
  205. package/dist/cjs/node_modules/@mui/material/esm/IconButton/IconButton.js.map +1 -1
  206. package/dist/cjs/node_modules/@mui/material/esm/IconButton/iconButtonClasses.js +3 -4
  207. package/dist/cjs/node_modules/@mui/material/esm/IconButton/iconButtonClasses.js.map +1 -1
  208. package/dist/cjs/node_modules/@mui/material/esm/Input/Input.js +59 -61
  209. package/dist/cjs/node_modules/@mui/material/esm/Input/Input.js.map +1 -1
  210. package/dist/cjs/node_modules/@mui/material/esm/Input/inputClasses.js +5 -6
  211. package/dist/cjs/node_modules/@mui/material/esm/Input/inputClasses.js.map +1 -1
  212. package/dist/cjs/node_modules/@mui/material/esm/InputBase/InputBase.js +81 -83
  213. package/dist/cjs/node_modules/@mui/material/esm/InputBase/InputBase.js.map +1 -1
  214. package/dist/cjs/node_modules/@mui/material/esm/InputBase/inputBaseClasses.js +3 -4
  215. package/dist/cjs/node_modules/@mui/material/esm/InputBase/inputBaseClasses.js.map +1 -1
  216. package/dist/cjs/node_modules/@mui/material/esm/InputBase/utils.js +0 -2
  217. package/dist/cjs/node_modules/@mui/material/esm/InputBase/utils.js.map +1 -1
  218. package/dist/cjs/node_modules/@mui/material/esm/InputLabel/InputLabel.js +30 -32
  219. package/dist/cjs/node_modules/@mui/material/esm/InputLabel/InputLabel.js.map +1 -1
  220. package/dist/cjs/node_modules/@mui/material/esm/InputLabel/inputLabelClasses.js +2 -4
  221. package/dist/cjs/node_modules/@mui/material/esm/InputLabel/inputLabelClasses.js.map +1 -1
  222. package/dist/cjs/node_modules/@mui/material/esm/List/List.js +17 -19
  223. package/dist/cjs/node_modules/@mui/material/esm/List/List.js.map +1 -1
  224. package/dist/cjs/node_modules/@mui/material/esm/List/ListContext.js +4 -6
  225. package/dist/cjs/node_modules/@mui/material/esm/List/ListContext.js.map +1 -1
  226. package/dist/cjs/node_modules/@mui/material/esm/List/listClasses.js +2 -4
  227. package/dist/cjs/node_modules/@mui/material/esm/List/listClasses.js.map +1 -1
  228. package/dist/cjs/node_modules/@mui/material/esm/ListItem/ListItem.js +46 -48
  229. package/dist/cjs/node_modules/@mui/material/esm/ListItem/ListItem.js.map +1 -1
  230. package/dist/cjs/node_modules/@mui/material/esm/ListItem/listItemClasses.js +2 -4
  231. package/dist/cjs/node_modules/@mui/material/esm/ListItem/listItemClasses.js.map +1 -1
  232. package/dist/cjs/node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js +2 -3
  233. package/dist/cjs/node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js.map +1 -1
  234. package/dist/cjs/node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +13 -15
  235. package/dist/cjs/node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  236. package/dist/cjs/node_modules/@mui/material/esm/ListItemSecondaryAction/listItemSecondaryActionClasses.js +2 -4
  237. package/dist/cjs/node_modules/@mui/material/esm/ListItemSecondaryAction/listItemSecondaryActionClasses.js.map +1 -1
  238. package/dist/cjs/node_modules/@mui/material/esm/ListSubheader/ListSubheader.js +21 -23
  239. package/dist/cjs/node_modules/@mui/material/esm/ListSubheader/ListSubheader.js.map +1 -1
  240. package/dist/cjs/node_modules/@mui/material/esm/ListSubheader/listSubheaderClasses.js +2 -4
  241. package/dist/cjs/node_modules/@mui/material/esm/ListSubheader/listSubheaderClasses.js.map +1 -1
  242. package/dist/cjs/node_modules/@mui/material/esm/Menu/Menu.js +47 -49
  243. package/dist/cjs/node_modules/@mui/material/esm/Menu/Menu.js.map +1 -1
  244. package/dist/cjs/node_modules/@mui/material/esm/Menu/menuClasses.js +2 -4
  245. package/dist/cjs/node_modules/@mui/material/esm/Menu/menuClasses.js.map +1 -1
  246. package/dist/cjs/node_modules/@mui/material/esm/MenuList/MenuList.js +21 -23
  247. package/dist/cjs/node_modules/@mui/material/esm/MenuList/MenuList.js.map +1 -1
  248. package/dist/cjs/node_modules/@mui/material/esm/Modal/Modal.js +50 -52
  249. package/dist/cjs/node_modules/@mui/material/esm/Modal/Modal.js.map +1 -1
  250. package/dist/cjs/node_modules/@mui/material/esm/Modal/ModalManager.js +7 -9
  251. package/dist/cjs/node_modules/@mui/material/esm/Modal/ModalManager.js.map +1 -1
  252. package/dist/cjs/node_modules/@mui/material/esm/Modal/modalClasses.js +2 -4
  253. package/dist/cjs/node_modules/@mui/material/esm/Modal/modalClasses.js.map +1 -1
  254. package/dist/cjs/node_modules/@mui/material/esm/Modal/useModal.js +12 -13
  255. package/dist/cjs/node_modules/@mui/material/esm/Modal/useModal.js.map +1 -1
  256. package/dist/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js +30 -32
  257. package/dist/cjs/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js.map +1 -1
  258. package/dist/cjs/node_modules/@mui/material/esm/NativeSelect/nativeSelectClasses.js +3 -4
  259. package/dist/cjs/node_modules/@mui/material/esm/NativeSelect/nativeSelectClasses.js.map +1 -1
  260. package/dist/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js +13 -13
  261. package/dist/cjs/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js.map +1 -1
  262. package/dist/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js +67 -69
  263. package/dist/cjs/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js.map +1 -1
  264. package/dist/cjs/node_modules/@mui/material/esm/OutlinedInput/outlinedInputClasses.js +5 -6
  265. package/dist/cjs/node_modules/@mui/material/esm/OutlinedInput/outlinedInputClasses.js.map +1 -1
  266. package/dist/cjs/node_modules/@mui/material/esm/Paper/Paper.js +20 -22
  267. package/dist/cjs/node_modules/@mui/material/esm/Paper/Paper.js.map +1 -1
  268. package/dist/cjs/node_modules/@mui/material/esm/Paper/paperClasses.js +2 -4
  269. package/dist/cjs/node_modules/@mui/material/esm/Paper/paperClasses.js.map +1 -1
  270. package/dist/cjs/node_modules/@mui/material/esm/Popover/Popover.js +71 -73
  271. package/dist/cjs/node_modules/@mui/material/esm/Popover/Popover.js.map +1 -1
  272. package/dist/cjs/node_modules/@mui/material/esm/Popover/popoverClasses.js +2 -4
  273. package/dist/cjs/node_modules/@mui/material/esm/Popover/popoverClasses.js.map +1 -1
  274. package/dist/cjs/node_modules/@mui/material/esm/Popper/BasePopper.js +45 -47
  275. package/dist/cjs/node_modules/@mui/material/esm/Popper/BasePopper.js.map +1 -1
  276. package/dist/cjs/node_modules/@mui/material/esm/Popper/Popper.js +42 -44
  277. package/dist/cjs/node_modules/@mui/material/esm/Popper/Popper.js.map +1 -1
  278. package/dist/cjs/node_modules/@mui/material/esm/Popper/popperClasses.js +2 -4
  279. package/dist/cjs/node_modules/@mui/material/esm/Popper/popperClasses.js.map +1 -1
  280. package/dist/cjs/node_modules/@mui/material/esm/Portal/Portal.js +15 -17
  281. package/dist/cjs/node_modules/@mui/material/esm/Portal/Portal.js.map +1 -1
  282. package/dist/cjs/node_modules/@mui/material/esm/Select/Select.js +46 -48
  283. package/dist/cjs/node_modules/@mui/material/esm/Select/Select.js.map +1 -1
  284. package/dist/cjs/node_modules/@mui/material/esm/Select/SelectInput.js +62 -64
  285. package/dist/cjs/node_modules/@mui/material/esm/Select/SelectInput.js.map +1 -1
  286. package/dist/cjs/node_modules/@mui/material/esm/Select/selectClasses.js +3 -3
  287. package/dist/cjs/node_modules/@mui/material/esm/Select/selectClasses.js.map +1 -1
  288. package/dist/cjs/node_modules/@mui/material/esm/Slide/Slide.js +35 -37
  289. package/dist/cjs/node_modules/@mui/material/esm/Slide/Slide.js.map +1 -1
  290. package/dist/cjs/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js +24 -26
  291. package/dist/cjs/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js.map +1 -1
  292. package/dist/cjs/node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js +2 -4
  293. package/dist/cjs/node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js.map +1 -1
  294. package/dist/cjs/node_modules/@mui/material/esm/TextField/TextField.js +75 -77
  295. package/dist/cjs/node_modules/@mui/material/esm/TextField/TextField.js.map +1 -1
  296. package/dist/cjs/node_modules/@mui/material/esm/TextField/textFieldClasses.js +2 -4
  297. package/dist/cjs/node_modules/@mui/material/esm/TextField/textFieldClasses.js.map +1 -1
  298. package/dist/cjs/node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js +19 -21
  299. package/dist/cjs/node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js.map +1 -1
  300. package/dist/cjs/node_modules/@mui/material/esm/Typography/Typography.js +29 -31
  301. package/dist/cjs/node_modules/@mui/material/esm/Typography/Typography.js.map +1 -1
  302. package/dist/cjs/node_modules/@mui/material/esm/Typography/typographyClasses.js +2 -4
  303. package/dist/cjs/node_modules/@mui/material/esm/Typography/typographyClasses.js.map +1 -1
  304. package/dist/cjs/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js +16 -17
  305. package/dist/cjs/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js.map +1 -1
  306. package/dist/cjs/node_modules/@mui/material/esm/colors/blue.js +2 -13
  307. package/dist/cjs/node_modules/@mui/material/esm/colors/blue.js.map +1 -1
  308. package/dist/cjs/node_modules/@mui/material/esm/colors/common.js +1 -2
  309. package/dist/cjs/node_modules/@mui/material/esm/colors/common.js.map +1 -1
  310. package/dist/cjs/node_modules/@mui/material/esm/colors/green.js +2 -12
  311. package/dist/cjs/node_modules/@mui/material/esm/colors/green.js.map +1 -1
  312. package/dist/cjs/node_modules/@mui/material/esm/colors/grey.js +1 -2
  313. package/dist/cjs/node_modules/@mui/material/esm/colors/grey.js.map +1 -1
  314. package/dist/cjs/node_modules/@mui/material/esm/colors/lightBlue.js +2 -13
  315. package/dist/cjs/node_modules/@mui/material/esm/colors/lightBlue.js.map +1 -1
  316. package/dist/cjs/node_modules/@mui/material/esm/colors/orange.js +2 -13
  317. package/dist/cjs/node_modules/@mui/material/esm/colors/orange.js.map +1 -1
  318. package/dist/cjs/node_modules/@mui/material/esm/colors/purple.js +2 -12
  319. package/dist/cjs/node_modules/@mui/material/esm/colors/purple.js.map +1 -1
  320. package/dist/cjs/node_modules/@mui/material/esm/colors/red.js +2 -13
  321. package/dist/cjs/node_modules/@mui/material/esm/colors/red.js.map +1 -1
  322. package/dist/cjs/node_modules/@mui/material/esm/internal/SwitchBase.js +46 -48
  323. package/dist/cjs/node_modules/@mui/material/esm/internal/SwitchBase.js.map +1 -1
  324. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/ArrowDropDown.js +2 -2
  325. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/ArrowDropDown.js.map +1 -1
  326. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/Cancel.js +2 -2
  327. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/Cancel.js.map +1 -1
  328. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/CheckBox.js +2 -2
  329. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/CheckBox.js.map +1 -1
  330. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js +2 -2
  331. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js.map +1 -1
  332. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/Close.js +2 -2
  333. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/Close.js.map +1 -1
  334. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/IndeterminateCheckBox.js +2 -2
  335. package/dist/cjs/node_modules/@mui/material/esm/internal/svg-icons/IndeterminateCheckBox.js.map +1 -1
  336. package/dist/cjs/node_modules/@mui/material/esm/internal/switchBaseClasses.js +2 -4
  337. package/dist/cjs/node_modules/@mui/material/esm/internal/switchBaseClasses.js.map +1 -1
  338. package/dist/cjs/node_modules/@mui/material/esm/styles/createColorScheme.js +5 -5
  339. package/dist/cjs/node_modules/@mui/material/esm/styles/createColorScheme.js.map +1 -1
  340. package/dist/cjs/node_modules/@mui/material/esm/styles/createGetSelector.js +2 -2
  341. package/dist/cjs/node_modules/@mui/material/esm/styles/createGetSelector.js.map +1 -1
  342. package/dist/cjs/node_modules/@mui/material/esm/styles/createMixins.js +1 -1
  343. package/dist/cjs/node_modules/@mui/material/esm/styles/createMixins.js.map +1 -1
  344. package/dist/cjs/node_modules/@mui/material/esm/styles/createPalette.js +45 -45
  345. package/dist/cjs/node_modules/@mui/material/esm/styles/createPalette.js.map +1 -1
  346. package/dist/cjs/node_modules/@mui/material/esm/styles/createTheme.js +7 -7
  347. package/dist/cjs/node_modules/@mui/material/esm/styles/createTheme.js.map +1 -1
  348. package/dist/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.js +16 -16
  349. package/dist/cjs/node_modules/@mui/material/esm/styles/createThemeNoVars.js.map +1 -1
  350. package/dist/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.js +14 -14
  351. package/dist/cjs/node_modules/@mui/material/esm/styles/createThemeWithVars.js.map +1 -1
  352. package/dist/cjs/node_modules/@mui/material/esm/styles/createTransitions.js +1 -1
  353. package/dist/cjs/node_modules/@mui/material/esm/styles/createTransitions.js.map +1 -1
  354. package/dist/cjs/node_modules/@mui/material/esm/styles/createTypography.js +2 -2
  355. package/dist/cjs/node_modules/@mui/material/esm/styles/createTypography.js.map +1 -1
  356. package/dist/cjs/node_modules/@mui/material/esm/styles/defaultTheme.js +2 -3
  357. package/dist/cjs/node_modules/@mui/material/esm/styles/defaultTheme.js.map +1 -1
  358. package/dist/cjs/node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js +1 -2
  359. package/dist/cjs/node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js.map +1 -1
  360. package/dist/cjs/node_modules/@mui/material/esm/styles/getOverlayAlpha.js +1 -1
  361. package/dist/cjs/node_modules/@mui/material/esm/styles/getOverlayAlpha.js.map +1 -1
  362. package/dist/cjs/node_modules/@mui/material/esm/styles/identifier.js +1 -1
  363. package/dist/cjs/node_modules/@mui/material/esm/styles/identifier.js.map +1 -1
  364. package/dist/cjs/node_modules/@mui/material/esm/styles/rootShouldForwardProp.js +2 -3
  365. package/dist/cjs/node_modules/@mui/material/esm/styles/rootShouldForwardProp.js.map +1 -1
  366. package/dist/cjs/node_modules/@mui/material/esm/styles/shadows.js +1 -2
  367. package/dist/cjs/node_modules/@mui/material/esm/styles/shadows.js.map +1 -1
  368. package/dist/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js +1 -1
  369. package/dist/cjs/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js.map +1 -1
  370. package/dist/cjs/node_modules/@mui/material/esm/styles/slotShouldForwardProp.js +1 -1
  371. package/dist/cjs/node_modules/@mui/material/esm/styles/slotShouldForwardProp.js.map +1 -1
  372. package/dist/cjs/node_modules/@mui/material/esm/styles/stringifyTheme.js +0 -2
  373. package/dist/cjs/node_modules/@mui/material/esm/styles/stringifyTheme.js.map +1 -1
  374. package/dist/cjs/node_modules/@mui/material/esm/styles/styled.js +6 -7
  375. package/dist/cjs/node_modules/@mui/material/esm/styles/styled.js.map +1 -1
  376. package/dist/cjs/node_modules/@mui/material/esm/styles/useTheme.js +6 -7
  377. package/dist/cjs/node_modules/@mui/material/esm/styles/useTheme.js.map +1 -1
  378. package/dist/cjs/node_modules/@mui/material/esm/styles/zIndex.js +1 -2
  379. package/dist/cjs/node_modules/@mui/material/esm/styles/zIndex.js.map +1 -1
  380. package/dist/cjs/node_modules/@mui/material/esm/transitions/utils.js +0 -2
  381. package/dist/cjs/node_modules/@mui/material/esm/transitions/utils.js.map +1 -1
  382. package/dist/cjs/node_modules/@mui/material/esm/useAutocomplete/useAutocomplete.js +16 -17
  383. package/dist/cjs/node_modules/@mui/material/esm/useAutocomplete/useAutocomplete.js.map +1 -1
  384. package/dist/cjs/node_modules/@mui/material/esm/useLazyRipple/useLazyRipple.js +5 -6
  385. package/dist/cjs/node_modules/@mui/material/esm/useLazyRipple/useLazyRipple.js.map +1 -1
  386. package/dist/cjs/node_modules/@mui/material/esm/utils/capitalize.js +1 -1
  387. package/dist/cjs/node_modules/@mui/material/esm/utils/createSimplePaletteValueFilter.js +1 -1
  388. package/dist/cjs/node_modules/@mui/material/esm/utils/createSimplePaletteValueFilter.js.map +1 -1
  389. package/dist/cjs/node_modules/@mui/material/esm/utils/createSvgIcon.js +6 -7
  390. package/dist/cjs/node_modules/@mui/material/esm/utils/createSvgIcon.js.map +1 -1
  391. package/dist/cjs/node_modules/@mui/material/esm/utils/debounce.js +1 -1
  392. package/dist/cjs/node_modules/@mui/material/esm/utils/getScrollbarSize.js +1 -1
  393. package/dist/cjs/node_modules/@mui/material/esm/utils/isMuiElement.js +1 -1
  394. package/dist/cjs/node_modules/@mui/material/esm/utils/memoTheme.js +3 -4
  395. package/dist/cjs/node_modules/@mui/material/esm/utils/memoTheme.js.map +1 -1
  396. package/dist/cjs/node_modules/@mui/material/esm/utils/mergeSlotProps.js +1 -1
  397. package/dist/cjs/node_modules/@mui/material/esm/utils/mergeSlotProps.js.map +1 -1
  398. package/dist/cjs/node_modules/@mui/material/esm/utils/ownerDocument.js +1 -1
  399. package/dist/cjs/node_modules/@mui/material/esm/utils/ownerWindow.js +1 -1
  400. package/dist/cjs/node_modules/@mui/material/esm/utils/unsupportedProp.js +1 -1
  401. package/dist/cjs/node_modules/@mui/material/esm/utils/useControlled.js +1 -1
  402. package/dist/cjs/node_modules/@mui/material/esm/utils/useEnhancedEffect.js +1 -1
  403. package/dist/cjs/node_modules/@mui/material/esm/utils/useEventCallback.js +1 -1
  404. package/dist/cjs/node_modules/@mui/material/esm/utils/useForkRef.js +1 -1
  405. package/dist/cjs/node_modules/@mui/material/esm/utils/useId.js +1 -1
  406. package/dist/cjs/node_modules/@mui/material/esm/utils/useSlot.js +5 -5
  407. package/dist/cjs/node_modules/@mui/material/esm/utils/useSlot.js.map +1 -1
  408. package/dist/cjs/node_modules/@mui/material/esm/zero-styled/index.js +2 -4
  409. package/dist/cjs/node_modules/@mui/material/esm/zero-styled/index.js.map +1 -1
  410. package/dist/cjs/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js +4 -4
  411. package/dist/cjs/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  412. package/dist/cjs/node_modules/@mui/styled-engine/esm/index.js +3 -3
  413. package/dist/cjs/node_modules/@mui/styled-engine/esm/index.js.map +1 -1
  414. package/dist/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +8 -11
  415. package/dist/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
  416. package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +9 -9
  417. package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
  418. package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.js +6 -9
  419. package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -1
  420. package/dist/cjs/node_modules/@mui/system/esm/borders/borders.js +3 -5
  421. package/dist/cjs/node_modules/@mui/system/esm/borders/borders.js.map +1 -1
  422. package/dist/cjs/node_modules/@mui/system/esm/breakpoints/breakpoints.js +0 -2
  423. package/dist/cjs/node_modules/@mui/system/esm/breakpoints/breakpoints.js.map +1 -1
  424. package/dist/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +4 -9
  425. package/dist/cjs/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -1
  426. package/dist/cjs/node_modules/@mui/system/esm/compose/compose.js +2 -2
  427. package/dist/cjs/node_modules/@mui/system/esm/compose/compose.js.map +1 -1
  428. package/dist/cjs/node_modules/@mui/system/esm/createBox/createBox.js +8 -9
  429. package/dist/cjs/node_modules/@mui/system/esm/createBox/createBox.js.map +1 -1
  430. package/dist/cjs/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js +2 -1
  431. package/dist/cjs/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js.map +1 -1
  432. package/dist/cjs/node_modules/@mui/system/esm/createStyled/createStyled.js +8 -8
  433. package/dist/cjs/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -1
  434. package/dist/cjs/node_modules/@mui/system/esm/createTheme/applyStyles.js +1 -1
  435. package/dist/cjs/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +1 -1
  436. package/dist/cjs/node_modules/@mui/system/esm/createTheme/createSpacing.js +1 -1
  437. package/dist/cjs/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +1 -1
  438. package/dist/cjs/node_modules/@mui/system/esm/createTheme/createTheme.js +10 -10
  439. package/dist/cjs/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -1
  440. package/dist/cjs/node_modules/@mui/system/esm/createTheme/shape.js +1 -2
  441. package/dist/cjs/node_modules/@mui/system/esm/createTheme/shape.js.map +1 -1
  442. package/dist/cjs/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js +3 -3
  443. package/dist/cjs/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js.map +1 -1
  444. package/dist/cjs/node_modules/@mui/system/esm/cssGrid/cssGrid.js +13 -15
  445. package/dist/cjs/node_modules/@mui/system/esm/cssGrid/cssGrid.js.map +1 -1
  446. package/dist/cjs/node_modules/@mui/system/esm/cssVars/createGetCssVar.js +1 -1
  447. package/dist/cjs/node_modules/@mui/system/esm/cssVars/createGetCssVar.js.map +1 -1
  448. package/dist/cjs/node_modules/@mui/system/esm/cssVars/cssVarsParser.js +1 -1
  449. package/dist/cjs/node_modules/@mui/system/esm/cssVars/cssVarsParser.js.map +1 -1
  450. package/dist/cjs/node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js +0 -2
  451. package/dist/cjs/node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js.map +1 -1
  452. package/dist/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.js +7 -7
  453. package/dist/cjs/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -1
  454. package/dist/cjs/node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js +1 -1
  455. package/dist/cjs/node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js.map +1 -1
  456. package/dist/cjs/node_modules/@mui/system/esm/memoTheme.js +2 -2
  457. package/dist/cjs/node_modules/@mui/system/esm/memoTheme.js.map +1 -1
  458. package/dist/cjs/node_modules/@mui/system/esm/memoize/memoize.js +1 -1
  459. package/dist/cjs/node_modules/@mui/system/esm/memoize/memoize.js.map +1 -1
  460. package/dist/cjs/node_modules/@mui/system/esm/merge/merge.js +2 -2
  461. package/dist/cjs/node_modules/@mui/system/esm/merge/merge.js.map +1 -1
  462. package/dist/cjs/node_modules/@mui/system/esm/palette/palette.js +4 -6
  463. package/dist/cjs/node_modules/@mui/system/esm/palette/palette.js.map +1 -1
  464. package/dist/cjs/node_modules/@mui/system/esm/preprocessStyles.js +1 -1
  465. package/dist/cjs/node_modules/@mui/system/esm/preprocessStyles.js.map +1 -1
  466. package/dist/cjs/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +3 -4
  467. package/dist/cjs/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js.map +1 -1
  468. package/dist/cjs/node_modules/@mui/system/esm/sizing/sizing.js +9 -11
  469. package/dist/cjs/node_modules/@mui/system/esm/sizing/sizing.js.map +1 -1
  470. package/dist/cjs/node_modules/@mui/system/esm/spacing/spacing.js +6 -8
  471. package/dist/cjs/node_modules/@mui/system/esm/spacing/spacing.js.map +1 -1
  472. package/dist/cjs/node_modules/@mui/system/esm/style/style.js +3 -3
  473. package/dist/cjs/node_modules/@mui/system/esm/style/style.js.map +1 -1
  474. package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +5 -6
  475. package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +1 -1
  476. package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +2 -2
  477. package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js.map +1 -1
  478. package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +6 -7
  479. package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -1
  480. package/dist/cjs/node_modules/@mui/system/esm/useTheme/useTheme.js +3 -3
  481. package/dist/cjs/node_modules/@mui/system/esm/useTheme/useTheme.js.map +1 -1
  482. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js +4 -5
  483. package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js.map +1 -1
  484. package/dist/cjs/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +1 -2
  485. package/dist/cjs/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -1
  486. package/dist/cjs/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js +1 -1
  487. package/dist/cjs/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js.map +1 -1
  488. package/dist/cjs/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js +2 -2
  489. package/dist/cjs/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +1 -1
  490. package/dist/cjs/node_modules/@mui/utils/esm/capitalize/capitalize.js +2 -2
  491. package/dist/cjs/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -1
  492. package/dist/cjs/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +1 -1
  493. package/dist/cjs/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -1
  494. package/dist/cjs/node_modules/@mui/utils/esm/clamp/clamp.js +1 -1
  495. package/dist/cjs/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -1
  496. package/dist/cjs/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +1 -1
  497. package/dist/cjs/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -1
  498. package/dist/cjs/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js +1 -1
  499. package/dist/cjs/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js.map +1 -1
  500. package/dist/cjs/node_modules/@mui/utils/esm/debounce/debounce.js +1 -1
  501. package/dist/cjs/node_modules/@mui/utils/esm/debounce/debounce.js.map +1 -1
  502. package/dist/cjs/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +5 -6
  503. package/dist/cjs/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -1
  504. package/dist/cjs/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +4 -5
  505. package/dist/cjs/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -1
  506. package/dist/cjs/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +3 -3
  507. package/dist/cjs/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -1
  508. package/dist/cjs/node_modules/@mui/utils/esm/exactProp/exactProp.js +1 -1
  509. package/dist/cjs/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -1
  510. package/dist/cjs/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js +1 -1
  511. package/dist/cjs/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +1 -1
  512. package/dist/cjs/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +1 -1
  513. package/dist/cjs/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -1
  514. package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +2 -2
  515. package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -1
  516. package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +2 -2
  517. package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -1
  518. package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +2 -2
  519. package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -1
  520. package/dist/cjs/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js +4 -5
  521. package/dist/cjs/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js.map +1 -1
  522. package/dist/cjs/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js +1 -1
  523. package/dist/cjs/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js.map +1 -1
  524. package/dist/cjs/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +1 -2
  525. package/dist/cjs/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -1
  526. package/dist/cjs/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js +2 -2
  527. package/dist/cjs/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js.map +1 -1
  528. package/dist/cjs/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js +1 -1
  529. package/dist/cjs/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +1 -1
  530. package/dist/cjs/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js +5 -6
  531. package/dist/cjs/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -1
  532. package/dist/cjs/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +4 -4
  533. package/dist/cjs/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +1 -1
  534. package/dist/cjs/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js +1 -1
  535. package/dist/cjs/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +1 -1
  536. package/dist/cjs/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +1 -1
  537. package/dist/cjs/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +1 -1
  538. package/dist/cjs/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js +2 -2
  539. package/dist/cjs/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js.map +1 -1
  540. package/dist/cjs/node_modules/@mui/utils/esm/refType/refType.js +3 -4
  541. package/dist/cjs/node_modules/@mui/utils/esm/refType/refType.js.map +1 -1
  542. package/dist/cjs/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js +1 -1
  543. package/dist/cjs/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +1 -1
  544. package/dist/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +1 -1
  545. package/dist/cjs/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -1
  546. package/dist/cjs/node_modules/@mui/utils/esm/setRef/setRef.js +1 -1
  547. package/dist/cjs/node_modules/@mui/utils/esm/setRef/setRef.js.map +1 -1
  548. package/dist/cjs/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js +1 -1
  549. package/dist/cjs/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js.map +1 -1
  550. package/dist/cjs/node_modules/@mui/utils/esm/useControlled/useControlled.js +6 -9
  551. package/dist/cjs/node_modules/@mui/utils/esm/useControlled/useControlled.js.map +1 -1
  552. package/dist/cjs/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +4 -6
  553. package/dist/cjs/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -1
  554. package/dist/cjs/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +5 -6
  555. package/dist/cjs/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js.map +1 -1
  556. package/dist/cjs/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +4 -5
  557. package/dist/cjs/node_modules/@mui/utils/esm/useForkRef/useForkRef.js.map +1 -1
  558. package/dist/cjs/node_modules/@mui/utils/esm/useId/useId.js +4 -5
  559. package/dist/cjs/node_modules/@mui/utils/esm/useId/useId.js.map +1 -1
  560. package/dist/cjs/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js +4 -5
  561. package/dist/cjs/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js.map +1 -1
  562. package/dist/cjs/node_modules/@mui/utils/esm/useOnMount/useOnMount.js +4 -5
  563. package/dist/cjs/node_modules/@mui/utils/esm/useOnMount/useOnMount.js.map +1 -1
  564. package/dist/cjs/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js +6 -8
  565. package/dist/cjs/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js.map +1 -1
  566. package/dist/cjs/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js +5 -5
  567. package/dist/cjs/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js.map +1 -1
  568. package/dist/cjs/node_modules/@mui/utils/esm/useTimeout/useTimeout.js +3 -3
  569. package/dist/cjs/node_modules/@mui/utils/esm/useTimeout/useTimeout.js.map +1 -1
  570. package/dist/cjs/node_modules/@popperjs/core/lib/createPopper.js +6 -8
  571. package/dist/cjs/node_modules/@popperjs/core/lib/createPopper.js.map +1 -1
  572. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/contains.js +1 -1
  573. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/contains.js.map +1 -1
  574. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +3 -3
  575. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js.map +1 -1
  576. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +7 -7
  577. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js.map +1 -1
  578. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +8 -8
  579. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js.map +1 -1
  580. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +2 -2
  581. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js.map +1 -1
  582. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +1 -1
  583. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js.map +1 -1
  584. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +5 -5
  585. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js.map +1 -1
  586. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +1 -1
  587. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js.map +1 -1
  588. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +2 -2
  589. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js.map +1 -1
  590. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +1 -1
  591. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js.map +1 -1
  592. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +4 -4
  593. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js.map +1 -1
  594. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +11 -11
  595. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js.map +1 -1
  596. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +3 -3
  597. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js.map +1 -1
  598. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +4 -4
  599. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js.map +1 -1
  600. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +5 -5
  601. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js.map +1 -1
  602. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +1 -1
  603. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getWindow.js.map +1 -1
  604. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +2 -2
  605. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js.map +1 -1
  606. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +2 -2
  607. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js.map +1 -1
  608. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +3 -5
  609. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js.map +1 -1
  610. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +2 -2
  611. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js.map +1 -1
  612. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +2 -2
  613. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js.map +1 -1
  614. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +2 -2
  615. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js.map +1 -1
  616. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +5 -5
  617. package/dist/cjs/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js.map +1 -1
  618. package/dist/cjs/node_modules/@popperjs/core/lib/enums.js +0 -2
  619. package/dist/cjs/node_modules/@popperjs/core/lib/enums.js.map +1 -1
  620. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +3 -3
  621. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/applyStyles.js.map +1 -1
  622. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/arrow.js +7 -7
  623. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/arrow.js.map +1 -1
  624. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +8 -8
  625. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.map +1 -1
  626. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +2 -2
  627. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/eventListeners.js.map +1 -1
  628. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/flip.js +12 -12
  629. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/flip.js.map +1 -1
  630. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/hide.js +3 -3
  631. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/hide.js.map +1 -1
  632. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/offset.js +2 -2
  633. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/offset.js.map +1 -1
  634. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +2 -3
  635. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js.map +1 -1
  636. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +9 -9
  637. package/dist/cjs/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js.map +1 -1
  638. package/dist/cjs/node_modules/@popperjs/core/lib/popper.js +10 -12
  639. package/dist/cjs/node_modules/@popperjs/core/lib/popper.js.map +1 -1
  640. package/dist/cjs/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +5 -5
  641. package/dist/cjs/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.map +1 -1
  642. package/dist/cjs/node_modules/@popperjs/core/lib/utils/computeOffsets.js +4 -4
  643. package/dist/cjs/node_modules/@popperjs/core/lib/utils/computeOffsets.js.map +1 -1
  644. package/dist/cjs/node_modules/@popperjs/core/lib/utils/debounce.js +1 -1
  645. package/dist/cjs/node_modules/@popperjs/core/lib/utils/debounce.js.map +1 -1
  646. package/dist/cjs/node_modules/@popperjs/core/lib/utils/detectOverflow.js +6 -7
  647. package/dist/cjs/node_modules/@popperjs/core/lib/utils/detectOverflow.js.map +1 -1
  648. package/dist/cjs/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +1 -1
  649. package/dist/cjs/node_modules/@popperjs/core/lib/utils/expandToHashMap.js.map +1 -1
  650. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getAltAxis.js +1 -1
  651. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getAltAxis.js.map +1 -1
  652. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +1 -1
  653. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getBasePlacement.js.map +1 -1
  654. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +1 -1
  655. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js.map +1 -1
  656. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +1 -1
  657. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js.map +1 -1
  658. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +1 -1
  659. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js.map +1 -1
  660. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +1 -1
  661. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.map +1 -1
  662. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getVariation.js +1 -1
  663. package/dist/cjs/node_modules/@popperjs/core/lib/utils/getVariation.js.map +1 -1
  664. package/dist/cjs/node_modules/@popperjs/core/lib/utils/math.js +0 -2
  665. package/dist/cjs/node_modules/@popperjs/core/lib/utils/math.js.map +1 -1
  666. package/dist/cjs/node_modules/@popperjs/core/lib/utils/mergeByName.js +1 -1
  667. package/dist/cjs/node_modules/@popperjs/core/lib/utils/mergeByName.js.map +1 -1
  668. package/dist/cjs/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +2 -2
  669. package/dist/cjs/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js.map +1 -1
  670. package/dist/cjs/node_modules/@popperjs/core/lib/utils/orderModifiers.js +1 -1
  671. package/dist/cjs/node_modules/@popperjs/core/lib/utils/orderModifiers.js.map +1 -1
  672. package/dist/cjs/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +1 -1
  673. package/dist/cjs/node_modules/@popperjs/core/lib/utils/rectToClientRect.js.map +1 -1
  674. package/dist/cjs/node_modules/@popperjs/core/lib/utils/userAgent.js +1 -1
  675. package/dist/cjs/node_modules/@popperjs/core/lib/utils/userAgent.js.map +1 -1
  676. package/dist/cjs/node_modules/@popperjs/core/lib/utils/within.js +0 -2
  677. package/dist/cjs/node_modules/@popperjs/core/lib/utils/within.js.map +1 -1
  678. package/dist/cjs/node_modules/@react-leaflet/core/lib/context.js +1 -4
  679. package/dist/cjs/node_modules/@react-leaflet/core/lib/context.js.map +1 -1
  680. package/dist/cjs/node_modules/axios/index.js +46 -0
  681. package/dist/cjs/node_modules/axios/index.js.map +1 -0
  682. package/dist/cjs/node_modules/axios/lib/adapters/adapters.js +9 -9
  683. package/dist/cjs/node_modules/axios/lib/adapters/adapters.js.map +1 -1
  684. package/dist/cjs/node_modules/axios/lib/adapters/fetch.js +24 -26
  685. package/dist/cjs/node_modules/axios/lib/adapters/fetch.js.map +1 -1
  686. package/dist/cjs/node_modules/axios/lib/adapters/xhr.js +16 -16
  687. package/dist/cjs/node_modules/axios/lib/adapters/xhr.js.map +1 -1
  688. package/dist/cjs/node_modules/axios/lib/axios.js +20 -23
  689. package/dist/cjs/node_modules/axios/lib/axios.js.map +1 -1
  690. package/dist/cjs/node_modules/axios/lib/cancel/CancelToken.js +2 -4
  691. package/dist/cjs/node_modules/axios/lib/cancel/CancelToken.js.map +1 -1
  692. package/dist/cjs/node_modules/axios/lib/cancel/CanceledError.js +3 -3
  693. package/dist/cjs/node_modules/axios/lib/cancel/CanceledError.js.map +1 -1
  694. package/dist/cjs/node_modules/axios/lib/cancel/isCancel.js +1 -1
  695. package/dist/cjs/node_modules/axios/lib/cancel/isCancel.js.map +1 -1
  696. package/dist/cjs/node_modules/axios/lib/core/Axios.js +21 -23
  697. package/dist/cjs/node_modules/axios/lib/core/Axios.js.map +1 -1
  698. package/dist/cjs/node_modules/axios/lib/core/AxiosError.js +4 -4
  699. package/dist/cjs/node_modules/axios/lib/core/AxiosError.js.map +1 -1
  700. package/dist/cjs/node_modules/axios/lib/core/AxiosHeaders.js +28 -30
  701. package/dist/cjs/node_modules/axios/lib/core/AxiosHeaders.js.map +1 -1
  702. package/dist/cjs/node_modules/axios/lib/core/InterceptorManager.js +2 -4
  703. package/dist/cjs/node_modules/axios/lib/core/InterceptorManager.js.map +1 -1
  704. package/dist/cjs/node_modules/axios/lib/core/buildFullPath.js +3 -3
  705. package/dist/cjs/node_modules/axios/lib/core/buildFullPath.js.map +1 -1
  706. package/dist/cjs/node_modules/axios/lib/core/dispatchRequest.js +10 -10
  707. package/dist/cjs/node_modules/axios/lib/core/dispatchRequest.js.map +1 -1
  708. package/dist/cjs/node_modules/axios/lib/core/mergeConfig.js +14 -14
  709. package/dist/cjs/node_modules/axios/lib/core/mergeConfig.js.map +1 -1
  710. package/dist/cjs/node_modules/axios/lib/core/settle.js +3 -3
  711. package/dist/cjs/node_modules/axios/lib/core/settle.js.map +1 -1
  712. package/dist/cjs/node_modules/axios/lib/core/transformData.js +4 -4
  713. package/dist/cjs/node_modules/axios/lib/core/transformData.js.map +1 -1
  714. package/dist/cjs/node_modules/axios/lib/defaults/index.js +25 -27
  715. package/dist/cjs/node_modules/axios/lib/defaults/index.js.map +1 -1
  716. package/dist/cjs/node_modules/axios/lib/defaults/transitional.js +1 -1
  717. package/dist/cjs/node_modules/axios/lib/defaults/transitional.js.map +1 -1
  718. package/dist/cjs/node_modules/axios/lib/env/data.js +0 -2
  719. package/dist/cjs/node_modules/axios/lib/env/data.js.map +1 -1
  720. package/dist/cjs/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +2 -2
  721. package/dist/cjs/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +1 -1
  722. package/dist/cjs/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -3
  723. package/dist/cjs/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -1
  724. package/dist/cjs/node_modules/axios/lib/helpers/bind.js +1 -1
  725. package/dist/cjs/node_modules/axios/lib/helpers/bind.js.map +1 -1
  726. package/dist/cjs/node_modules/axios/lib/helpers/buildURL.js +4 -4
  727. package/dist/cjs/node_modules/axios/lib/helpers/buildURL.js.map +1 -1
  728. package/dist/cjs/node_modules/axios/lib/helpers/combineURLs.js +1 -1
  729. package/dist/cjs/node_modules/axios/lib/helpers/combineURLs.js.map +1 -1
  730. package/dist/cjs/node_modules/axios/lib/helpers/composeSignals.js +4 -6
  731. package/dist/cjs/node_modules/axios/lib/helpers/composeSignals.js.map +1 -1
  732. package/dist/cjs/node_modules/axios/lib/helpers/cookies.js +5 -5
  733. package/dist/cjs/node_modules/axios/lib/helpers/cookies.js.map +1 -1
  734. package/dist/cjs/node_modules/axios/lib/helpers/formDataToJSON.js +8 -8
  735. package/dist/cjs/node_modules/axios/lib/helpers/formDataToJSON.js.map +1 -1
  736. package/dist/cjs/node_modules/axios/lib/helpers/isAbsoluteURL.js +1 -1
  737. package/dist/cjs/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -1
  738. package/dist/cjs/node_modules/axios/lib/helpers/isAxiosError.js +2 -2
  739. package/dist/cjs/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -1
  740. package/dist/cjs/node_modules/axios/lib/helpers/isURLSameOrigin.js +5 -5
  741. package/dist/cjs/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -1
  742. package/dist/cjs/node_modules/axios/lib/helpers/null.js +1 -1
  743. package/dist/cjs/node_modules/axios/lib/helpers/null.js.map +1 -1
  744. package/dist/cjs/node_modules/axios/lib/helpers/parseHeaders.js +2 -2
  745. package/dist/cjs/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -1
  746. package/dist/cjs/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
  747. package/dist/cjs/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -1
  748. package/dist/cjs/node_modules/axios/lib/helpers/progressEventReducer.js +3 -5
  749. package/dist/cjs/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -1
  750. package/dist/cjs/node_modules/axios/lib/helpers/resolveConfig.js +11 -11
  751. package/dist/cjs/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -1
  752. package/dist/cjs/node_modules/axios/lib/helpers/speedometer.js +1 -1
  753. package/dist/cjs/node_modules/axios/lib/helpers/speedometer.js.map +1 -1
  754. package/dist/cjs/node_modules/axios/lib/helpers/spread.js +1 -1
  755. package/dist/cjs/node_modules/axios/lib/helpers/spread.js.map +1 -1
  756. package/dist/cjs/node_modules/axios/lib/helpers/throttle.js +1 -1
  757. package/dist/cjs/node_modules/axios/lib/helpers/throttle.js.map +1 -1
  758. package/dist/cjs/node_modules/axios/lib/helpers/toFormData.js +24 -24
  759. package/dist/cjs/node_modules/axios/lib/helpers/toFormData.js.map +1 -1
  760. package/dist/cjs/node_modules/axios/lib/helpers/toURLEncodedForm.js +3 -3
  761. package/dist/cjs/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +1 -1
  762. package/dist/cjs/node_modules/axios/lib/helpers/trackStream.js +1 -3
  763. package/dist/cjs/node_modules/axios/lib/helpers/trackStream.js.map +1 -1
  764. package/dist/cjs/node_modules/axios/lib/helpers/validator.js +6 -6
  765. package/dist/cjs/node_modules/axios/lib/helpers/validator.js.map +1 -1
  766. package/dist/cjs/node_modules/axios/lib/platform/browser/classes/Blob.js +1 -1
  767. package/dist/cjs/node_modules/axios/lib/platform/browser/classes/Blob.js.map +1 -1
  768. package/dist/cjs/node_modules/axios/lib/platform/browser/classes/FormData.js +1 -1
  769. package/dist/cjs/node_modules/axios/lib/platform/browser/classes/FormData.js.map +1 -1
  770. package/dist/cjs/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +2 -2
  771. package/dist/cjs/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +1 -1
  772. package/dist/cjs/node_modules/axios/lib/platform/browser/index.js +4 -4
  773. package/dist/cjs/node_modules/axios/lib/platform/browser/index.js.map +1 -1
  774. package/dist/cjs/node_modules/axios/lib/platform/common/utils.js +0 -2
  775. package/dist/cjs/node_modules/axios/lib/platform/common/utils.js.map +1 -1
  776. package/dist/cjs/node_modules/axios/lib/platform/index.js +2 -2
  777. package/dist/cjs/node_modules/axios/lib/platform/index.js.map +1 -1
  778. package/dist/cjs/node_modules/axios/lib/utils.js +2 -2
  779. package/dist/cjs/node_modules/axios/lib/utils.js.map +1 -1
  780. package/dist/cjs/node_modules/clsx/dist/clsx.js +1 -1
  781. package/dist/cjs/node_modules/clsx/dist/clsx.js.map +1 -1
  782. package/dist/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -2
  783. package/dist/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -1
  784. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -3
  785. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  786. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -2
  787. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  788. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -3
  789. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -1
  790. package/dist/cjs/node_modules/object-assign/index.js +0 -2
  791. package/dist/cjs/node_modules/object-assign/index.js.map +1 -1
  792. package/dist/cjs/node_modules/prop-types/checkPropTypes.js +0 -2
  793. package/dist/cjs/node_modules/prop-types/checkPropTypes.js.map +1 -1
  794. package/dist/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -2
  795. package/dist/cjs/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
  796. package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -2
  797. package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  798. package/dist/cjs/node_modules/prop-types/index.js +1 -3
  799. package/dist/cjs/node_modules/prop-types/index.js.map +1 -1
  800. package/dist/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -2
  801. package/dist/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
  802. package/dist/cjs/node_modules/prop-types/lib/has.js +0 -2
  803. package/dist/cjs/node_modules/prop-types/lib/has.js.map +1 -1
  804. package/dist/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -3
  805. package/dist/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  806. package/dist/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -2
  807. package/dist/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  808. package/dist/cjs/node_modules/prop-types/node_modules/react-is/index.js +1 -3
  809. package/dist/cjs/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
  810. package/dist/cjs/node_modules/react-hook-form/dist/index.esm.js +33 -41
  811. package/dist/cjs/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  812. package/dist/cjs/node_modules/react-is/cjs/react-is.development.js +145 -0
  813. package/dist/cjs/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  814. package/dist/cjs/node_modules/react-is/cjs/react-is.production.js +142 -0
  815. package/dist/cjs/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  816. package/dist/cjs/node_modules/react-is/index.js +22 -0
  817. package/dist/cjs/node_modules/react-is/index.js.map +1 -0
  818. package/dist/cjs/node_modules/react-leaflet/lib/hooks.js +0 -2
  819. package/dist/cjs/node_modules/react-leaflet/lib/hooks.js.map +1 -1
  820. package/dist/cjs/node_modules/react-transition-group/esm/Transition.js +31 -37
  821. package/dist/cjs/node_modules/react-transition-group/esm/Transition.js.map +1 -1
  822. package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroup.js +16 -21
  823. package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroup.js.map +1 -1
  824. package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroupContext.js +2 -6
  825. package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -1
  826. package/dist/cjs/node_modules/react-transition-group/esm/config.js +1 -1
  827. package/dist/cjs/node_modules/react-transition-group/esm/config.js.map +1 -1
  828. package/dist/cjs/node_modules/react-transition-group/esm/utils/ChildMapping.js +0 -2
  829. package/dist/cjs/node_modules/react-transition-group/esm/utils/ChildMapping.js.map +1 -1
  830. package/dist/cjs/node_modules/react-transition-group/esm/utils/PropTypes.js +16 -18
  831. package/dist/cjs/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -1
  832. package/dist/cjs/node_modules/react-transition-group/esm/utils/reflow.js +0 -2
  833. package/dist/cjs/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -1
  834. package/dist/cjs/node_modules/stylis/src/Enum.js +0 -2
  835. package/dist/cjs/node_modules/stylis/src/Enum.js.map +1 -1
  836. package/dist/cjs/node_modules/stylis/src/Middleware.js +0 -2
  837. package/dist/cjs/node_modules/stylis/src/Middleware.js.map +1 -1
  838. package/dist/cjs/node_modules/stylis/src/Parser.js +0 -2
  839. package/dist/cjs/node_modules/stylis/src/Parser.js.map +1 -1
  840. package/dist/cjs/node_modules/stylis/src/Serializer.js +0 -2
  841. package/dist/cjs/node_modules/stylis/src/Serializer.js.map +1 -1
  842. package/dist/cjs/node_modules/stylis/src/Tokenizer.js +0 -2
  843. package/dist/cjs/node_modules/stylis/src/Tokenizer.js.map +1 -1
  844. package/dist/cjs/node_modules/stylis/src/Utility.js +0 -2
  845. package/dist/cjs/node_modules/stylis/src/Utility.js.map +1 -1
  846. package/dist/cjs/node_modules/tangram/dist/tangram.min.js +3 -9
  847. package/dist/cjs/node_modules/tangram/dist/tangram.min.js.map +1 -1
  848. package/dist/cjs/services/api/api.service.js +2 -3
  849. package/dist/cjs/services/api/api.service.js.map +1 -1
  850. package/dist/esm/_virtual/index.js +1 -1
  851. package/dist/esm/_virtual/index2.js +1 -1
  852. package/dist/esm/_virtual/index3.js +1 -1
  853. package/dist/esm/_virtual/index5.js +1 -1
  854. package/dist/esm/components/buttons/delete/delete.js.map +1 -1
  855. package/dist/esm/components/checkbox/checkbox.js.map +1 -1
  856. package/dist/esm/components/drag-list/drag-list.js +1 -1
  857. package/dist/esm/components/drag-list/drag-list.js.map +1 -1
  858. package/dist/esm/components/drag-list/draggable/draggable.js.map +1 -1
  859. package/dist/esm/components/form/form.js.map +1 -1
  860. package/dist/esm/components/input/input.js.map +1 -1
  861. package/dist/esm/components/layers/leaflet/hooks/useGetLeafletLayer.js +1 -1
  862. package/dist/esm/components/layers/leaflet/hooks/useGetLeafletLayer.js.map +1 -1
  863. package/dist/esm/components/layers/leaflet/leaflet.js.map +1 -1
  864. package/dist/esm/components/list/list.js.map +1 -1
  865. package/dist/esm/components/no-data/no-data.js.map +1 -1
  866. package/dist/esm/components/paragraph/paragraph.js.map +1 -1
  867. package/dist/esm/components/select/select.js.map +1 -1
  868. package/dist/esm/configs/global/constants.js.map +1 -1
  869. package/dist/esm/configs/global/global.js.map +1 -1
  870. package/dist/esm/constants/api.js.map +1 -1
  871. package/dist/esm/constants/map.js.map +1 -1
  872. package/dist/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -1
  873. package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
  874. package/dist/esm/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -1
  875. package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -1
  876. package/dist/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
  877. package/dist/esm/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -1
  878. package/dist/esm/node_modules/@dnd-kit/core/dist/core.esm.js +1 -1
  879. package/dist/esm/node_modules/@dnd-kit/core/dist/core.esm.js.map +1 -1
  880. package/dist/esm/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +1 -1
  881. package/dist/esm/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -1
  882. package/dist/esm/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -1
  883. package/dist/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +1 -1
  884. package/dist/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +1 -1
  885. package/dist/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -1
  886. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +1 -1
  887. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -1
  888. package/dist/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -1
  889. package/dist/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +1 -1
  890. package/dist/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +1 -1
  891. package/dist/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +1 -1
  892. package/dist/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +1 -1
  893. package/dist/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -1
  894. package/dist/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -1
  895. package/dist/esm/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js.map +1 -1
  896. package/dist/esm/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js.map +1 -1
  897. package/dist/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -1
  898. package/dist/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js.map +1 -1
  899. package/dist/esm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +1 -1
  900. package/dist/esm/node_modules/@mui/material/esm/Autocomplete/Autocomplete.js +1 -1
  901. package/dist/esm/node_modules/@mui/material/esm/Autocomplete/autocompleteClasses.js +1 -1
  902. package/dist/esm/node_modules/@mui/material/esm/Autocomplete/autocompleteClasses.js.map +1 -1
  903. package/dist/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js +1 -1
  904. package/dist/esm/node_modules/@mui/material/esm/Backdrop/backdropClasses.js.map +1 -1
  905. package/dist/esm/node_modules/@mui/material/esm/Box/Box.js +1 -1
  906. package/dist/esm/node_modules/@mui/material/esm/Box/boxClasses.js +1 -1
  907. package/dist/esm/node_modules/@mui/material/esm/Box/boxClasses.js.map +1 -1
  908. package/dist/esm/node_modules/@mui/material/esm/Button/Button.js +1 -1
  909. package/dist/esm/node_modules/@mui/material/esm/Button/buttonClasses.js +1 -1
  910. package/dist/esm/node_modules/@mui/material/esm/Button/buttonClasses.js.map +1 -1
  911. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js +1 -1
  912. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/Ripple.js +1 -1
  913. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js +5 -5
  914. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js.map +1 -1
  915. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/buttonBaseClasses.js +1 -1
  916. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/buttonBaseClasses.js.map +1 -1
  917. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js +1 -1
  918. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js.map +1 -1
  919. package/dist/esm/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js +1 -1
  920. package/dist/esm/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js +1 -1
  921. package/dist/esm/node_modules/@mui/material/esm/Checkbox/Checkbox.js +1 -1
  922. package/dist/esm/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js +1 -1
  923. package/dist/esm/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js.map +1 -1
  924. package/dist/esm/node_modules/@mui/material/esm/Chip/Chip.js +1 -1
  925. package/dist/esm/node_modules/@mui/material/esm/Chip/chipClasses.js +1 -1
  926. package/dist/esm/node_modules/@mui/material/esm/Chip/chipClasses.js.map +1 -1
  927. package/dist/esm/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js +7 -7
  928. package/dist/esm/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js.map +1 -1
  929. package/dist/esm/node_modules/@mui/material/esm/CircularProgress/circularProgressClasses.js +1 -1
  930. package/dist/esm/node_modules/@mui/material/esm/CircularProgress/circularProgressClasses.js.map +1 -1
  931. package/dist/esm/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  932. package/dist/esm/node_modules/@mui/material/esm/Dialog/Dialog.js +1 -1
  933. package/dist/esm/node_modules/@mui/material/esm/Dialog/DialogContext.js +1 -1
  934. package/dist/esm/node_modules/@mui/material/esm/Dialog/dialogClasses.js +1 -1
  935. package/dist/esm/node_modules/@mui/material/esm/Dialog/dialogClasses.js.map +1 -1
  936. package/dist/esm/node_modules/@mui/material/esm/DialogActions/DialogActions.js +1 -1
  937. package/dist/esm/node_modules/@mui/material/esm/DialogActions/dialogActionsClasses.js.map +1 -1
  938. package/dist/esm/node_modules/@mui/material/esm/DialogContent/DialogContent.js +1 -1
  939. package/dist/esm/node_modules/@mui/material/esm/DialogContent/dialogContentClasses.js.map +1 -1
  940. package/dist/esm/node_modules/@mui/material/esm/DialogContentText/DialogContentText.js +1 -1
  941. package/dist/esm/node_modules/@mui/material/esm/DialogContentText/dialogContentTextClasses.js.map +1 -1
  942. package/dist/esm/node_modules/@mui/material/esm/DialogTitle/DialogTitle.js +1 -1
  943. package/dist/esm/node_modules/@mui/material/esm/DialogTitle/dialogTitleClasses.js +1 -1
  944. package/dist/esm/node_modules/@mui/material/esm/DialogTitle/dialogTitleClasses.js.map +1 -1
  945. package/dist/esm/node_modules/@mui/material/esm/Fade/Fade.js +1 -1
  946. package/dist/esm/node_modules/@mui/material/esm/FilledInput/FilledInput.js +1 -1
  947. package/dist/esm/node_modules/@mui/material/esm/FilledInput/filledInputClasses.js +1 -1
  948. package/dist/esm/node_modules/@mui/material/esm/FilledInput/filledInputClasses.js.map +1 -1
  949. package/dist/esm/node_modules/@mui/material/esm/FormControl/FormControl.js +1 -1
  950. package/dist/esm/node_modules/@mui/material/esm/FormControl/FormControlContext.js +1 -1
  951. package/dist/esm/node_modules/@mui/material/esm/FormControl/formControlClasses.js.map +1 -1
  952. package/dist/esm/node_modules/@mui/material/esm/FormControl/formControlState.js.map +1 -1
  953. package/dist/esm/node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js +1 -1
  954. package/dist/esm/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js +1 -1
  955. package/dist/esm/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js.map +1 -1
  956. package/dist/esm/node_modules/@mui/material/esm/FormHelperText/FormHelperText.js +1 -1
  957. package/dist/esm/node_modules/@mui/material/esm/FormHelperText/formHelperTextClasses.js +1 -1
  958. package/dist/esm/node_modules/@mui/material/esm/FormHelperText/formHelperTextClasses.js.map +1 -1
  959. package/dist/esm/node_modules/@mui/material/esm/FormLabel/FormLabel.js +1 -1
  960. package/dist/esm/node_modules/@mui/material/esm/FormLabel/formLabelClasses.js +1 -1
  961. package/dist/esm/node_modules/@mui/material/esm/FormLabel/formLabelClasses.js.map +1 -1
  962. package/dist/esm/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js +1 -1
  963. package/dist/esm/node_modules/@mui/material/esm/Grow/Grow.js +1 -1
  964. package/dist/esm/node_modules/@mui/material/esm/IconButton/IconButton.js +1 -1
  965. package/dist/esm/node_modules/@mui/material/esm/IconButton/iconButtonClasses.js +1 -1
  966. package/dist/esm/node_modules/@mui/material/esm/IconButton/iconButtonClasses.js.map +1 -1
  967. package/dist/esm/node_modules/@mui/material/esm/Input/Input.js +1 -1
  968. package/dist/esm/node_modules/@mui/material/esm/Input/inputClasses.js +1 -1
  969. package/dist/esm/node_modules/@mui/material/esm/Input/inputClasses.js.map +1 -1
  970. package/dist/esm/node_modules/@mui/material/esm/InputBase/InputBase.js +1 -1
  971. package/dist/esm/node_modules/@mui/material/esm/InputBase/inputBaseClasses.js +1 -1
  972. package/dist/esm/node_modules/@mui/material/esm/InputBase/inputBaseClasses.js.map +1 -1
  973. package/dist/esm/node_modules/@mui/material/esm/InputBase/utils.js.map +1 -1
  974. package/dist/esm/node_modules/@mui/material/esm/InputLabel/InputLabel.js +1 -1
  975. package/dist/esm/node_modules/@mui/material/esm/InputLabel/inputLabelClasses.js.map +1 -1
  976. package/dist/esm/node_modules/@mui/material/esm/List/List.js +1 -1
  977. package/dist/esm/node_modules/@mui/material/esm/List/ListContext.js +1 -1
  978. package/dist/esm/node_modules/@mui/material/esm/List/listClasses.js.map +1 -1
  979. package/dist/esm/node_modules/@mui/material/esm/ListItem/ListItem.js +1 -1
  980. package/dist/esm/node_modules/@mui/material/esm/ListItem/listItemClasses.js.map +1 -1
  981. package/dist/esm/node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js +1 -1
  982. package/dist/esm/node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js.map +1 -1
  983. package/dist/esm/node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  984. package/dist/esm/node_modules/@mui/material/esm/ListItemSecondaryAction/listItemSecondaryActionClasses.js.map +1 -1
  985. package/dist/esm/node_modules/@mui/material/esm/ListSubheader/ListSubheader.js +1 -1
  986. package/dist/esm/node_modules/@mui/material/esm/ListSubheader/listSubheaderClasses.js.map +1 -1
  987. package/dist/esm/node_modules/@mui/material/esm/Menu/Menu.js +1 -1
  988. package/dist/esm/node_modules/@mui/material/esm/Menu/menuClasses.js.map +1 -1
  989. package/dist/esm/node_modules/@mui/material/esm/MenuList/MenuList.js +1 -1
  990. package/dist/esm/node_modules/@mui/material/esm/Modal/Modal.js +1 -1
  991. package/dist/esm/node_modules/@mui/material/esm/Modal/ModalManager.js.map +1 -1
  992. package/dist/esm/node_modules/@mui/material/esm/Modal/modalClasses.js.map +1 -1
  993. package/dist/esm/node_modules/@mui/material/esm/Modal/useModal.js +1 -1
  994. package/dist/esm/node_modules/@mui/material/esm/NativeSelect/NativeSelectInput.js +1 -1
  995. package/dist/esm/node_modules/@mui/material/esm/NativeSelect/nativeSelectClasses.js +1 -1
  996. package/dist/esm/node_modules/@mui/material/esm/NativeSelect/nativeSelectClasses.js.map +1 -1
  997. package/dist/esm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js +1 -1
  998. package/dist/esm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js +1 -1
  999. package/dist/esm/node_modules/@mui/material/esm/OutlinedInput/outlinedInputClasses.js +1 -1
  1000. package/dist/esm/node_modules/@mui/material/esm/OutlinedInput/outlinedInputClasses.js.map +1 -1
  1001. package/dist/esm/node_modules/@mui/material/esm/Paper/Paper.js +1 -1
  1002. package/dist/esm/node_modules/@mui/material/esm/Paper/paperClasses.js.map +1 -1
  1003. package/dist/esm/node_modules/@mui/material/esm/Popover/Popover.js +1 -1
  1004. package/dist/esm/node_modules/@mui/material/esm/Popover/popoverClasses.js.map +1 -1
  1005. package/dist/esm/node_modules/@mui/material/esm/Popper/BasePopper.js +1 -1
  1006. package/dist/esm/node_modules/@mui/material/esm/Popper/Popper.js +1 -1
  1007. package/dist/esm/node_modules/@mui/material/esm/Popper/popperClasses.js.map +1 -1
  1008. package/dist/esm/node_modules/@mui/material/esm/Portal/Portal.js +1 -1
  1009. package/dist/esm/node_modules/@mui/material/esm/Select/Select.js +1 -1
  1010. package/dist/esm/node_modules/@mui/material/esm/Select/SelectInput.js +1 -1
  1011. package/dist/esm/node_modules/@mui/material/esm/Select/selectClasses.js.map +1 -1
  1012. package/dist/esm/node_modules/@mui/material/esm/Slide/Slide.js +1 -1
  1013. package/dist/esm/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js +1 -1
  1014. package/dist/esm/node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js.map +1 -1
  1015. package/dist/esm/node_modules/@mui/material/esm/TextField/TextField.js +1 -1
  1016. package/dist/esm/node_modules/@mui/material/esm/TextField/textFieldClasses.js.map +1 -1
  1017. package/dist/esm/node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js +1 -1
  1018. package/dist/esm/node_modules/@mui/material/esm/Typography/Typography.js +1 -1
  1019. package/dist/esm/node_modules/@mui/material/esm/Typography/typographyClasses.js.map +1 -1
  1020. package/dist/esm/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js +1 -1
  1021. package/dist/esm/node_modules/@mui/material/esm/colors/blue.js +1 -1
  1022. package/dist/esm/node_modules/@mui/material/esm/colors/blue.js.map +1 -1
  1023. package/dist/esm/node_modules/@mui/material/esm/colors/common.js +1 -1
  1024. package/dist/esm/node_modules/@mui/material/esm/colors/common.js.map +1 -1
  1025. package/dist/esm/node_modules/@mui/material/esm/colors/green.js +1 -1
  1026. package/dist/esm/node_modules/@mui/material/esm/colors/green.js.map +1 -1
  1027. package/dist/esm/node_modules/@mui/material/esm/colors/grey.js +1 -1
  1028. package/dist/esm/node_modules/@mui/material/esm/colors/grey.js.map +1 -1
  1029. package/dist/esm/node_modules/@mui/material/esm/colors/lightBlue.js +1 -1
  1030. package/dist/esm/node_modules/@mui/material/esm/colors/lightBlue.js.map +1 -1
  1031. package/dist/esm/node_modules/@mui/material/esm/colors/orange.js +1 -1
  1032. package/dist/esm/node_modules/@mui/material/esm/colors/orange.js.map +1 -1
  1033. package/dist/esm/node_modules/@mui/material/esm/colors/purple.js +1 -1
  1034. package/dist/esm/node_modules/@mui/material/esm/colors/purple.js.map +1 -1
  1035. package/dist/esm/node_modules/@mui/material/esm/colors/red.js +1 -1
  1036. package/dist/esm/node_modules/@mui/material/esm/colors/red.js.map +1 -1
  1037. package/dist/esm/node_modules/@mui/material/esm/internal/SwitchBase.js +1 -1
  1038. package/dist/esm/node_modules/@mui/material/esm/internal/switchBaseClasses.js.map +1 -1
  1039. package/dist/esm/node_modules/@mui/material/esm/styles/createColorScheme.js.map +1 -1
  1040. package/dist/esm/node_modules/@mui/material/esm/styles/createGetSelector.js.map +1 -1
  1041. package/dist/esm/node_modules/@mui/material/esm/styles/createMixins.js.map +1 -1
  1042. package/dist/esm/node_modules/@mui/material/esm/styles/createPalette.js.map +1 -1
  1043. package/dist/esm/node_modules/@mui/material/esm/styles/createTheme.js.map +1 -1
  1044. package/dist/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js +1 -1
  1045. package/dist/esm/node_modules/@mui/material/esm/styles/createThemeNoVars.js.map +1 -1
  1046. package/dist/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js +1 -1
  1047. package/dist/esm/node_modules/@mui/material/esm/styles/createThemeWithVars.js.map +1 -1
  1048. package/dist/esm/node_modules/@mui/material/esm/styles/createTransitions.js.map +1 -1
  1049. package/dist/esm/node_modules/@mui/material/esm/styles/createTypography.js.map +1 -1
  1050. package/dist/esm/node_modules/@mui/material/esm/styles/defaultTheme.js +1 -1
  1051. package/dist/esm/node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js +1 -1
  1052. package/dist/esm/node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js.map +1 -1
  1053. package/dist/esm/node_modules/@mui/material/esm/styles/getOverlayAlpha.js.map +1 -1
  1054. package/dist/esm/node_modules/@mui/material/esm/styles/identifier.js.map +1 -1
  1055. package/dist/esm/node_modules/@mui/material/esm/styles/rootShouldForwardProp.js +1 -1
  1056. package/dist/esm/node_modules/@mui/material/esm/styles/rootShouldForwardProp.js.map +1 -1
  1057. package/dist/esm/node_modules/@mui/material/esm/styles/shadows.js +1 -1
  1058. package/dist/esm/node_modules/@mui/material/esm/styles/shadows.js.map +1 -1
  1059. package/dist/esm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js.map +1 -1
  1060. package/dist/esm/node_modules/@mui/material/esm/styles/slotShouldForwardProp.js.map +1 -1
  1061. package/dist/esm/node_modules/@mui/material/esm/styles/stringifyTheme.js.map +1 -1
  1062. package/dist/esm/node_modules/@mui/material/esm/styles/styled.js +1 -1
  1063. package/dist/esm/node_modules/@mui/material/esm/styles/zIndex.js +1 -1
  1064. package/dist/esm/node_modules/@mui/material/esm/styles/zIndex.js.map +1 -1
  1065. package/dist/esm/node_modules/@mui/material/esm/transitions/utils.js.map +1 -1
  1066. package/dist/esm/node_modules/@mui/material/esm/useAutocomplete/useAutocomplete.js +1 -1
  1067. package/dist/esm/node_modules/@mui/material/esm/utils/capitalize.js +1 -1
  1068. package/dist/esm/node_modules/@mui/material/esm/utils/createSimplePaletteValueFilter.js.map +1 -1
  1069. package/dist/esm/node_modules/@mui/material/esm/utils/debounce.js +1 -1
  1070. package/dist/esm/node_modules/@mui/material/esm/utils/getScrollbarSize.js +1 -1
  1071. package/dist/esm/node_modules/@mui/material/esm/utils/isMuiElement.js +1 -1
  1072. package/dist/esm/node_modules/@mui/material/esm/utils/memoTheme.js +1 -1
  1073. package/dist/esm/node_modules/@mui/material/esm/utils/memoTheme.js.map +1 -1
  1074. package/dist/esm/node_modules/@mui/material/esm/utils/mergeSlotProps.js.map +1 -1
  1075. package/dist/esm/node_modules/@mui/material/esm/utils/ownerDocument.js +1 -1
  1076. package/dist/esm/node_modules/@mui/material/esm/utils/ownerWindow.js +1 -1
  1077. package/dist/esm/node_modules/@mui/material/esm/utils/unsupportedProp.js +1 -1
  1078. package/dist/esm/node_modules/@mui/material/esm/utils/useControlled.js +1 -1
  1079. package/dist/esm/node_modules/@mui/material/esm/utils/useEnhancedEffect.js +1 -1
  1080. package/dist/esm/node_modules/@mui/material/esm/utils/useEventCallback.js +1 -1
  1081. package/dist/esm/node_modules/@mui/material/esm/utils/useForkRef.js +1 -1
  1082. package/dist/esm/node_modules/@mui/material/esm/utils/useId.js +1 -1
  1083. package/dist/esm/node_modules/@mui/material/esm/zero-styled/index.js.map +1 -1
  1084. package/dist/esm/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js +1 -1
  1085. package/dist/esm/node_modules/@mui/styled-engine/esm/index.js +1 -1
  1086. package/dist/esm/node_modules/@mui/styled-engine/esm/index.js.map +1 -1
  1087. package/dist/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  1088. package/dist/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  1089. package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
  1090. package/dist/esm/node_modules/@mui/system/esm/borders/borders.js.map +1 -1
  1091. package/dist/esm/node_modules/@mui/system/esm/breakpoints/breakpoints.js.map +1 -1
  1092. package/dist/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +1 -1
  1093. package/dist/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -1
  1094. package/dist/esm/node_modules/@mui/system/esm/compose/compose.js.map +1 -1
  1095. package/dist/esm/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js.map +1 -1
  1096. package/dist/esm/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -1
  1097. package/dist/esm/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +1 -1
  1098. package/dist/esm/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +1 -1
  1099. package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -1
  1100. package/dist/esm/node_modules/@mui/system/esm/createTheme/shape.js +1 -1
  1101. package/dist/esm/node_modules/@mui/system/esm/createTheme/shape.js.map +1 -1
  1102. package/dist/esm/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js.map +1 -1
  1103. package/dist/esm/node_modules/@mui/system/esm/cssGrid/cssGrid.js.map +1 -1
  1104. package/dist/esm/node_modules/@mui/system/esm/cssVars/createGetCssVar.js.map +1 -1
  1105. package/dist/esm/node_modules/@mui/system/esm/cssVars/cssVarsParser.js.map +1 -1
  1106. package/dist/esm/node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js.map +1 -1
  1107. package/dist/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -1
  1108. package/dist/esm/node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js.map +1 -1
  1109. package/dist/esm/node_modules/@mui/system/esm/memoTheme.js.map +1 -1
  1110. package/dist/esm/node_modules/@mui/system/esm/memoize/memoize.js.map +1 -1
  1111. package/dist/esm/node_modules/@mui/system/esm/merge/merge.js.map +1 -1
  1112. package/dist/esm/node_modules/@mui/system/esm/palette/palette.js.map +1 -1
  1113. package/dist/esm/node_modules/@mui/system/esm/preprocessStyles.js.map +1 -1
  1114. package/dist/esm/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +1 -1
  1115. package/dist/esm/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js.map +1 -1
  1116. package/dist/esm/node_modules/@mui/system/esm/sizing/sizing.js.map +1 -1
  1117. package/dist/esm/node_modules/@mui/system/esm/spacing/spacing.js +1 -1
  1118. package/dist/esm/node_modules/@mui/system/esm/spacing/spacing.js.map +1 -1
  1119. package/dist/esm/node_modules/@mui/system/esm/style/style.js.map +1 -1
  1120. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +1 -1
  1121. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +1 -1
  1122. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js.map +1 -1
  1123. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -1
  1124. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -1
  1125. package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +1 -1
  1126. package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -1
  1127. package/dist/esm/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js.map +1 -1
  1128. package/dist/esm/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +1 -1
  1129. package/dist/esm/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -1
  1130. package/dist/esm/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -1
  1131. package/dist/esm/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -1
  1132. package/dist/esm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -1
  1133. package/dist/esm/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js.map +1 -1
  1134. package/dist/esm/node_modules/@mui/utils/esm/debounce/debounce.js.map +1 -1
  1135. package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  1136. package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -1
  1137. package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
  1138. package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -1
  1139. package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
  1140. package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -1
  1141. package/dist/esm/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -1
  1142. package/dist/esm/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +1 -1
  1143. package/dist/esm/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -1
  1144. package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -1
  1145. package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -1
  1146. package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
  1147. package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -1
  1148. package/dist/esm/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js.map +1 -1
  1149. package/dist/esm/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js.map +1 -1
  1150. package/dist/esm/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +1 -1
  1151. package/dist/esm/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -1
  1152. package/dist/esm/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js +1 -1
  1153. package/dist/esm/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js.map +1 -1
  1154. package/dist/esm/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +1 -1
  1155. package/dist/esm/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -1
  1156. package/dist/esm/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +1 -1
  1157. package/dist/esm/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +1 -1
  1158. package/dist/esm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +1 -1
  1159. package/dist/esm/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js.map +1 -1
  1160. package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js +1 -1
  1161. package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js.map +1 -1
  1162. package/dist/esm/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +1 -1
  1163. package/dist/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -1
  1164. package/dist/esm/node_modules/@mui/utils/esm/setRef/setRef.js.map +1 -1
  1165. package/dist/esm/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js.map +1 -1
  1166. package/dist/esm/node_modules/@mui/utils/esm/useControlled/useControlled.js +1 -1
  1167. package/dist/esm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +1 -1
  1168. package/dist/esm/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js +1 -1
  1169. package/dist/esm/node_modules/@popperjs/core/lib/createPopper.js.map +1 -1
  1170. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/contains.js.map +1 -1
  1171. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js.map +1 -1
  1172. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +1 -1
  1173. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js.map +1 -1
  1174. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js.map +1 -1
  1175. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js.map +1 -1
  1176. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js.map +1 -1
  1177. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js.map +1 -1
  1178. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js.map +1 -1
  1179. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js.map +1 -1
  1180. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js.map +1 -1
  1181. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js.map +1 -1
  1182. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js.map +1 -1
  1183. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js.map +1 -1
  1184. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js.map +1 -1
  1185. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js.map +1 -1
  1186. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindow.js.map +1 -1
  1187. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js.map +1 -1
  1188. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js.map +1 -1
  1189. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js.map +1 -1
  1190. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js.map +1 -1
  1191. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js.map +1 -1
  1192. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js.map +1 -1
  1193. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js.map +1 -1
  1194. package/dist/esm/node_modules/@popperjs/core/lib/enums.js.map +1 -1
  1195. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/applyStyles.js.map +1 -1
  1196. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/arrow.js.map +1 -1
  1197. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.map +1 -1
  1198. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/eventListeners.js.map +1 -1
  1199. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/flip.js.map +1 -1
  1200. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/hide.js.map +1 -1
  1201. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/offset.js.map +1 -1
  1202. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +1 -1
  1203. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js.map +1 -1
  1204. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js.map +1 -1
  1205. package/dist/esm/node_modules/@popperjs/core/lib/popper.js +1 -1
  1206. package/dist/esm/node_modules/@popperjs/core/lib/popper.js.map +1 -1
  1207. package/dist/esm/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.map +1 -1
  1208. package/dist/esm/node_modules/@popperjs/core/lib/utils/computeOffsets.js.map +1 -1
  1209. package/dist/esm/node_modules/@popperjs/core/lib/utils/debounce.js.map +1 -1
  1210. package/dist/esm/node_modules/@popperjs/core/lib/utils/detectOverflow.js +1 -1
  1211. package/dist/esm/node_modules/@popperjs/core/lib/utils/detectOverflow.js.map +1 -1
  1212. package/dist/esm/node_modules/@popperjs/core/lib/utils/expandToHashMap.js.map +1 -1
  1213. package/dist/esm/node_modules/@popperjs/core/lib/utils/getAltAxis.js.map +1 -1
  1214. package/dist/esm/node_modules/@popperjs/core/lib/utils/getBasePlacement.js.map +1 -1
  1215. package/dist/esm/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js.map +1 -1
  1216. package/dist/esm/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js.map +1 -1
  1217. package/dist/esm/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js.map +1 -1
  1218. package/dist/esm/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.map +1 -1
  1219. package/dist/esm/node_modules/@popperjs/core/lib/utils/getVariation.js.map +1 -1
  1220. package/dist/esm/node_modules/@popperjs/core/lib/utils/math.js.map +1 -1
  1221. package/dist/esm/node_modules/@popperjs/core/lib/utils/mergeByName.js.map +1 -1
  1222. package/dist/esm/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js.map +1 -1
  1223. package/dist/esm/node_modules/@popperjs/core/lib/utils/orderModifiers.js.map +1 -1
  1224. package/dist/esm/node_modules/@popperjs/core/lib/utils/rectToClientRect.js.map +1 -1
  1225. package/dist/esm/node_modules/@popperjs/core/lib/utils/userAgent.js.map +1 -1
  1226. package/dist/esm/node_modules/@popperjs/core/lib/utils/within.js.map +1 -1
  1227. package/dist/esm/node_modules/@react-leaflet/core/lib/context.js +1 -1
  1228. package/dist/esm/node_modules/@react-leaflet/core/lib/context.js.map +1 -1
  1229. package/dist/esm/node_modules/axios/index.js +2 -0
  1230. package/dist/esm/node_modules/axios/index.js.map +1 -0
  1231. package/dist/esm/node_modules/axios/lib/adapters/adapters.js.map +1 -1
  1232. package/dist/esm/node_modules/axios/lib/adapters/fetch.js.map +1 -1
  1233. package/dist/esm/node_modules/axios/lib/adapters/xhr.js.map +1 -1
  1234. package/dist/esm/node_modules/axios/lib/axios.js +1 -1
  1235. package/dist/esm/node_modules/axios/lib/cancel/CancelToken.js +1 -1
  1236. package/dist/esm/node_modules/axios/lib/cancel/isCancel.js.map +1 -1
  1237. package/dist/esm/node_modules/axios/lib/core/Axios.js +1 -1
  1238. package/dist/esm/node_modules/axios/lib/core/AxiosHeaders.js +1 -1
  1239. package/dist/esm/node_modules/axios/lib/core/InterceptorManager.js +1 -1
  1240. package/dist/esm/node_modules/axios/lib/defaults/index.js +1 -1
  1241. package/dist/esm/node_modules/axios/lib/defaults/transitional.js.map +1 -1
  1242. package/dist/esm/node_modules/axios/lib/env/data.js.map +1 -1
  1243. package/dist/esm/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -1
  1244. package/dist/esm/node_modules/axios/lib/helpers/HttpStatusCode.js.map +1 -1
  1245. package/dist/esm/node_modules/axios/lib/helpers/bind.js.map +1 -1
  1246. package/dist/esm/node_modules/axios/lib/helpers/combineURLs.js.map +1 -1
  1247. package/dist/esm/node_modules/axios/lib/helpers/composeSignals.js +1 -1
  1248. package/dist/esm/node_modules/axios/lib/helpers/composeSignals.js.map +1 -1
  1249. package/dist/esm/node_modules/axios/lib/helpers/cookies.js.map +1 -1
  1250. package/dist/esm/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -1
  1251. package/dist/esm/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -1
  1252. package/dist/esm/node_modules/axios/lib/helpers/null.js.map +1 -1
  1253. package/dist/esm/node_modules/axios/lib/helpers/parseProtocol.js.map +1 -1
  1254. package/dist/esm/node_modules/axios/lib/helpers/progressEventReducer.js.map +1 -1
  1255. package/dist/esm/node_modules/axios/lib/helpers/resolveConfig.js.map +1 -1
  1256. package/dist/esm/node_modules/axios/lib/helpers/speedometer.js.map +1 -1
  1257. package/dist/esm/node_modules/axios/lib/helpers/spread.js.map +1 -1
  1258. package/dist/esm/node_modules/axios/lib/helpers/throttle.js.map +1 -1
  1259. package/dist/esm/node_modules/axios/lib/helpers/trackStream.js +1 -1
  1260. package/dist/esm/node_modules/axios/lib/helpers/trackStream.js.map +1 -1
  1261. package/dist/esm/node_modules/axios/lib/platform/browser/classes/Blob.js.map +1 -1
  1262. package/dist/esm/node_modules/axios/lib/platform/browser/classes/FormData.js.map +1 -1
  1263. package/dist/esm/node_modules/axios/lib/platform/browser/index.js.map +1 -1
  1264. package/dist/esm/node_modules/axios/lib/platform/common/utils.js.map +1 -1
  1265. package/dist/esm/node_modules/axios/lib/platform/index.js.map +1 -1
  1266. package/dist/esm/node_modules/clsx/dist/clsx.js.map +1 -1
  1267. package/dist/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -1
  1268. package/dist/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -1
  1269. package/dist/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  1270. package/dist/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  1271. package/dist/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  1272. package/dist/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -1
  1273. package/dist/esm/node_modules/object-assign/index.js.map +1 -1
  1274. package/dist/esm/node_modules/prop-types/checkPropTypes.js.map +1 -1
  1275. package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
  1276. package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
  1277. package/dist/esm/node_modules/prop-types/index.js +1 -1
  1278. package/dist/esm/node_modules/prop-types/index.js.map +1 -1
  1279. package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
  1280. package/dist/esm/node_modules/prop-types/lib/has.js.map +1 -1
  1281. package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -1
  1282. package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
  1283. package/dist/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
  1284. package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  1285. package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
  1286. package/dist/esm/node_modules/react-hook-form/dist/index.esm.js +1 -1
  1287. package/dist/esm/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  1288. package/dist/esm/node_modules/react-is/cjs/react-is.development.js +11 -0
  1289. package/dist/esm/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  1290. package/dist/esm/node_modules/react-is/cjs/react-is.production.js +11 -0
  1291. package/dist/esm/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  1292. package/dist/esm/node_modules/react-is/index.js +2 -0
  1293. package/dist/esm/node_modules/react-is/index.js.map +1 -0
  1294. package/dist/esm/node_modules/react-leaflet/lib/hooks.js.map +1 -1
  1295. package/dist/esm/node_modules/react-transition-group/esm/Transition.js +1 -1
  1296. package/dist/esm/node_modules/react-transition-group/esm/Transition.js.map +1 -1
  1297. package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
  1298. package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js.map +1 -1
  1299. package/dist/esm/node_modules/react-transition-group/esm/TransitionGroupContext.js.map +1 -1
  1300. package/dist/esm/node_modules/react-transition-group/esm/config.js.map +1 -1
  1301. package/dist/esm/node_modules/react-transition-group/esm/utils/ChildMapping.js +1 -1
  1302. package/dist/esm/node_modules/react-transition-group/esm/utils/ChildMapping.js.map +1 -1
  1303. package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  1304. package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -1
  1305. package/dist/esm/node_modules/react-transition-group/esm/utils/reflow.js.map +1 -1
  1306. package/dist/esm/node_modules/stylis/src/Enum.js.map +1 -1
  1307. package/dist/esm/node_modules/stylis/src/Middleware.js.map +1 -1
  1308. package/dist/esm/node_modules/stylis/src/Parser.js +1 -1
  1309. package/dist/esm/node_modules/stylis/src/Parser.js.map +1 -1
  1310. package/dist/esm/node_modules/stylis/src/Serializer.js.map +1 -1
  1311. package/dist/esm/node_modules/stylis/src/Tokenizer.js +1 -1
  1312. package/dist/esm/node_modules/stylis/src/Tokenizer.js.map +1 -1
  1313. package/dist/esm/node_modules/stylis/src/Utility.js.map +1 -1
  1314. package/dist/esm/node_modules/tangram/dist/tangram.min.js +1 -1
  1315. package/dist/esm/node_modules/tangram/dist/tangram.min.js.map +1 -1
  1316. package/dist/esm/scene.yaml.js +2 -0
  1317. package/dist/esm/scene.yaml.js.map +1 -0
  1318. package/dist/esm/services/api/api.service.js +1 -1
  1319. package/dist/esm/services/api/api.service.js.map +1 -1
  1320. package/dist/esm/types/components/checkbox/checkbox.stories.d.ts.map +1 -1
  1321. package/dist/esm/types/components/layers/leaflet/leaflet.stories.d.ts.map +1 -1
  1322. package/dist/esm/types/components/select/select.stories.d.ts.map +1 -1
  1323. package/package.json +37 -36
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/react-hook-form/dist/index.esm.mjs"],"sourcesContent":["import React from 'react';\n\nvar isCheckBoxInput = (element) => element.type === 'checkbox';\n\nvar isDateObject = (value) => value instanceof Date;\n\nvar isNullOrUndefined = (value) => value == null;\n\nconst isObjectType = (value) => typeof value === 'object';\nvar isObject = (value) => !isNullOrUndefined(value) &&\n !Array.isArray(value) &&\n isObjectType(value) &&\n !isDateObject(value);\n\nvar getEventValue = (event) => isObject(event) && event.target\n ? isCheckBoxInput(event.target)\n ? event.target.checked\n : event.target.value\n : event;\n\nvar getNodeParentName = (name) => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar isPlainObject = (tempObject) => {\n const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;\n return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf'));\n};\n\nvar isWeb = typeof window !== 'undefined' &&\n typeof window.HTMLElement !== 'undefined' &&\n typeof document !== 'undefined';\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n const isFileListInstance = typeof FileList !== 'undefined' ? data instanceof FileList : false;\n if (data instanceof Date) {\n copy = new Date(data);\n }\n else if (!(isWeb && (data instanceof Blob || isFileListInstance)) &&\n (isArray || isObject(data))) {\n copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));\n if (!isArray && !isPlainObject(data)) {\n copy = data;\n }\n else {\n for (const key in data) {\n if (data.hasOwnProperty(key)) {\n copy[key] = cloneObject(data[key]);\n }\n }\n }\n }\n else {\n return data;\n }\n return copy;\n}\n\nvar isKey = (value) => /^\\w*$/.test(value);\n\nvar isUndefined = (val) => val === undefined;\n\nvar compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar stringToPath = (input) => compact(input.replace(/[\"|']|\\]/g, '').split(/\\.|\\[/));\n\nvar get = (object, path, defaultValue) => {\n if (!path || !isObject(object)) {\n return defaultValue;\n }\n const result = (isKey(path) ? [path] : stringToPath(path)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], object);\n return isUndefined(result) || result === object\n ? isUndefined(object[path])\n ? defaultValue\n : object[path]\n : result;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\nvar set = (object, path, value) => {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue =\n isObject(objValue) || Array.isArray(objValue)\n ? objValue\n : !isNaN(+tempPath[index + 1])\n ? []\n : {};\n }\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return;\n }\n object[key] = newValue;\n object = object[key];\n }\n};\n\nconst EVENTS = {\n BLUR: 'blur',\n FOCUS_OUT: 'focusout',\n CHANGE: 'change',\n};\nconst VALIDATION_MODE = {\n onBlur: 'onBlur',\n onChange: 'onChange',\n onSubmit: 'onSubmit',\n onTouched: 'onTouched',\n all: 'all',\n};\nconst INPUT_VALIDATION_RULES = {\n max: 'max',\n min: 'min',\n maxLength: 'maxLength',\n minLength: 'minLength',\n pattern: 'pattern',\n required: 'required',\n validate: 'validate',\n};\n\nconst HookFormContext = React.createContext(null);\nHookFormContext.displayName = 'HookFormContext';\n/**\n * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @returns return all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst useFormContext = () => React.useContext(HookFormContext);\n/**\n * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @param props - all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst FormProvider = (props) => {\n const { children, ...data } = props;\n return (React.createElement(HookFormContext.Provider, { value: data }, children));\n};\n\nvar getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {\n const result = {\n defaultValues: control._defaultValues,\n };\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {\n control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n },\n });\n }\n return result;\n};\n\nconst useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\n\n/**\n * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)\n *\n * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, control } = useForm({\n * defaultValues: {\n * firstName: \"firstName\"\n * }});\n * const { dirtyFields } = useFormState({\n * control\n * });\n * const onSubmit = (data) => console.log(data);\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input {...register(\"firstName\")} placeholder=\"First Name\" />\n * {dirtyFields.firstName && <p>Field is dirty.</p>}\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFormState(props) {\n const methods = useFormContext();\n const { control = methods.control, disabled, name, exact } = props || {};\n const [formState, updateFormState] = React.useState(control._formState);\n const _localProxyFormState = React.useRef({\n isDirty: false,\n isLoading: false,\n dirtyFields: false,\n touchedFields: false,\n validatingFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n });\n useIsomorphicLayoutEffect(() => control._subscribe({\n name,\n formState: _localProxyFormState.current,\n exact,\n callback: (formState) => {\n !disabled &&\n updateFormState({\n ...control._formState,\n ...formState,\n });\n },\n }), [name, disabled, exact]);\n React.useEffect(() => {\n _localProxyFormState.current.isValid && control._setValid(true);\n }, [control]);\n return React.useMemo(() => getProxyFormState(formState, control, _localProxyFormState.current, false), [formState, control]);\n}\n\nvar isString = (value) => typeof value === 'string';\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names, defaultValue);\n }\n if (Array.isArray(names)) {\n return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName),\n get(formValues, fieldName)));\n }\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\nvar isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2, _internal_visited = new WeakSet()) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n if (_internal_visited.has(object1) || _internal_visited.has(object2)) {\n return true;\n }\n _internal_visited.add(object1);\n _internal_visited.add(object2);\n for (const key of keys1) {\n const val1 = object1[key];\n if (!keys2.includes(key)) {\n return false;\n }\n if (key !== 'ref') {\n const val2 = object2[key];\n if ((isDateObject(val1) && isDateObject(val2)) ||\n (isObject(val1) && isObject(val2)) ||\n (Array.isArray(val1) && Array.isArray(val2))\n ? !deepEqual(val1, val2, _internal_visited)\n : val1 !== val2) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * Custom hook to subscribe to field change and isolate re-rendering at the component level.\n *\n * @remarks\n *\n * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)\n *\n * @example\n * ```tsx\n * const { control } = useForm();\n * const values = useWatch({\n * name: \"fieldName\"\n * control,\n * })\n * ```\n */\nfunction useWatch(props) {\n const methods = useFormContext();\n const { control = methods.control, name, defaultValue, disabled, exact, compute, } = props || {};\n const _defaultValue = React.useRef(defaultValue);\n const _compute = React.useRef(compute);\n const _computeFormValues = React.useRef(undefined);\n _compute.current = compute;\n const defaultValueMemo = React.useMemo(() => control._getWatch(name, _defaultValue.current), [control, name]);\n const [value, updateValue] = React.useState(_compute.current ? _compute.current(defaultValueMemo) : defaultValueMemo);\n useIsomorphicLayoutEffect(() => control._subscribe({\n name,\n formState: {\n values: true,\n },\n exact,\n callback: (formState) => {\n if (!disabled) {\n const formValues = generateWatchOutput(name, control._names, formState.values || control._formValues, false, _defaultValue.current);\n if (_compute.current) {\n const computedFormValues = _compute.current(formValues);\n if (!deepEqual(computedFormValues, _computeFormValues.current)) {\n updateValue(computedFormValues);\n _computeFormValues.current = computedFormValues;\n }\n }\n else {\n updateValue(formValues);\n }\n }\n },\n }), [control, disabled, name, exact]);\n React.useEffect(() => control._removeUnmounted());\n return value;\n}\n\n/**\n * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns field properties, field and form state. {@link UseControllerReturn}\n *\n * @example\n * ```tsx\n * function Input(props) {\n * const { field, fieldState, formState } = useController(props);\n * return (\n * <div>\n * <input {...field} placeholder={props.name} />\n * <p>{fieldState.isTouched && \"Touched\"}</p>\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * </div>\n * );\n * }\n * ```\n */\nfunction useController(props) {\n const methods = useFormContext();\n const { name, disabled, control = methods.control, shouldUnregister, defaultValue, } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const defaultValueMemo = React.useMemo(() => get(control._formValues, name, get(control._defaultValues, name, defaultValue)), [control, name, defaultValue]);\n const value = useWatch({\n control,\n name,\n defaultValue: defaultValueMemo,\n exact: true,\n });\n const formState = useFormState({\n control,\n name,\n exact: true,\n });\n const _props = React.useRef(props);\n const _registerProps = React.useRef(control.register(name, {\n ...props.rules,\n value,\n ...(isBoolean(props.disabled) ? { disabled: props.disabled } : {}),\n }));\n _props.current = props;\n const fieldState = React.useMemo(() => Object.defineProperties({}, {\n invalid: {\n enumerable: true,\n get: () => !!get(formState.errors, name),\n },\n isDirty: {\n enumerable: true,\n get: () => !!get(formState.dirtyFields, name),\n },\n isTouched: {\n enumerable: true,\n get: () => !!get(formState.touchedFields, name),\n },\n isValidating: {\n enumerable: true,\n get: () => !!get(formState.validatingFields, name),\n },\n error: {\n enumerable: true,\n get: () => get(formState.errors, name),\n },\n }), [formState, name]);\n const onChange = React.useCallback((event) => _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name: name,\n },\n type: EVENTS.CHANGE,\n }), [name]);\n const onBlur = React.useCallback(() => _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name: name,\n },\n type: EVENTS.BLUR,\n }), [name, control._formValues]);\n const ref = React.useCallback((elm) => {\n const field = get(control._fields, name);\n if (field && elm) {\n field._f.ref = {\n focus: () => elm.focus && elm.focus(),\n select: () => elm.select && elm.select(),\n setCustomValidity: (message) => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity(),\n };\n }\n }, [control._fields, name]);\n const field = React.useMemo(() => ({\n name,\n value,\n ...(isBoolean(disabled) || formState.disabled\n ? { disabled: formState.disabled || disabled }\n : {}),\n onChange,\n onBlur,\n ref,\n }), [name, disabled, formState.disabled, onChange, onBlur, ref, value]);\n React.useEffect(() => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n control.register(name, {\n ..._props.current.rules,\n ...(isBoolean(_props.current.disabled)\n ? { disabled: _props.current.disabled }\n : {}),\n });\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field && field._f) {\n field._f.mount = value;\n }\n };\n updateMounted(name, true);\n if (_shouldUnregisterField) {\n const value = cloneObject(get(control._options.defaultValues, name));\n set(control._defaultValues, name, value);\n if (isUndefined(get(control._formValues, name))) {\n set(control._formValues, name, value);\n }\n }\n !isArrayField && control.register(name);\n return () => {\n (isArrayField\n ? _shouldUnregisterField && !control._state.action\n : _shouldUnregisterField)\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n React.useEffect(() => {\n control._setDisabledField({\n disabled,\n name,\n });\n }, [disabled, name, control]);\n return React.useMemo(() => ({\n field,\n formState,\n fieldState,\n }), [field, formState, fieldState]);\n}\n\n/**\n * Component based on `useController` hook to work with controlled component.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns provide field handler functions, field and form state.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control } = useForm<FormValues>({\n * defaultValues: {\n * test: \"\"\n * }\n * });\n *\n * return (\n * <form>\n * <Controller\n * control={control}\n * name=\"test\"\n * render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (\n * <>\n * <input\n * onChange={onChange} // send value to hook form\n * onBlur={onBlur} // notify when input is touched\n * value={value} // return updated value\n * ref={ref} // set ref for focus management\n * />\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * <p>{fieldState.isTouched ? \"touched\" : \"\"}</p>\n * </>\n * )}\n * />\n * </form>\n * );\n * }\n * ```\n */\nconst Controller = (props) => props.render(useController(props));\n\nconst flatten = (obj) => {\n const output = {};\n for (const key of Object.keys(obj)) {\n if (isObjectType(obj[key]) && obj[key] !== null) {\n const nested = flatten(obj[key]);\n for (const nestedKey of Object.keys(nested)) {\n output[`${key}.${nestedKey}`] = nested[nestedKey];\n }\n }\n else {\n output[key] = obj[key];\n }\n }\n return output;\n};\n\nconst POST_REQUEST = 'post';\n/**\n * Form component to manage submission.\n *\n * @param props - to setup submission detail. {@link FormProps}\n *\n * @returns form component or headless render prop.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control, formState: { errors } } = useForm();\n *\n * return (\n * <Form action=\"/api\" control={control}>\n * <input {...register(\"name\")} />\n * <p>{errors?.root?.server && 'Server error'}</p>\n * <button>Submit</button>\n * </Form>\n * );\n * }\n * ```\n */\nfunction Form(props) {\n const methods = useFormContext();\n const [mounted, setMounted] = React.useState(false);\n const { control = methods.control, onSubmit, children, action, method = POST_REQUEST, headers, encType, onError, render, onSuccess, validateStatus, ...rest } = props;\n const submit = async (event) => {\n let hasError = false;\n let type = '';\n await control.handleSubmit(async (data) => {\n const formData = new FormData();\n let formDataJson = '';\n try {\n formDataJson = JSON.stringify(data);\n }\n catch (_a) { }\n const flattenFormValues = flatten(control._formValues);\n for (const key in flattenFormValues) {\n formData.append(key, flattenFormValues[key]);\n }\n if (onSubmit) {\n await onSubmit({\n data,\n event,\n method,\n formData,\n formDataJson,\n });\n }\n if (action) {\n try {\n const shouldStringifySubmissionData = [\n headers && headers['Content-Type'],\n encType,\n ].some((value) => value && value.includes('json'));\n const response = await fetch(String(action), {\n method,\n headers: {\n ...headers,\n ...(encType && encType !== 'multipart/form-data'\n ? { 'Content-Type': encType }\n : {}),\n },\n body: shouldStringifySubmissionData ? formDataJson : formData,\n });\n if (response &&\n (validateStatus\n ? !validateStatus(response.status)\n : response.status < 200 || response.status >= 300)) {\n hasError = true;\n onError && onError({ response });\n type = String(response.status);\n }\n else {\n onSuccess && onSuccess({ response });\n }\n }\n catch (error) {\n hasError = true;\n onError && onError({ error });\n }\n }\n })(event);\n if (hasError && props.control) {\n props.control._subjects.state.next({\n isSubmitSuccessful: false,\n });\n props.control.setError('root.server', {\n type,\n });\n }\n };\n React.useEffect(() => {\n setMounted(true);\n }, []);\n return render ? (React.createElement(React.Fragment, null, render({\n submit,\n }))) : (React.createElement(\"form\", { noValidate: mounted, action: action, method: method, encType: encType, onSubmit: submit, ...rest }, children));\n}\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria\n ? {\n ...errors[name],\n types: {\n ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true,\n },\n }\n : {};\n\nvar convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]);\n\nvar createSubject = () => {\n let _observers = [];\n const next = (value) => {\n for (const observer of _observers) {\n observer.next && observer.next(value);\n }\n };\n const subscribe = (observer) => {\n _observers.push(observer);\n return {\n unsubscribe: () => {\n _observers = _observers.filter((o) => o !== observer);\n },\n };\n };\n const unsubscribe = () => {\n _observers = [];\n };\n return {\n get observers() {\n return _observers;\n },\n next,\n subscribe,\n unsubscribe,\n };\n};\n\nvar isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;\n\nvar isFileInput = (element) => element.type === 'file';\n\nvar isFunction = (value) => typeof value === 'function';\n\nvar isHTMLElement = (value) => {\n if (!isWeb) {\n return false;\n }\n const owner = value ? value.ownerDocument : 0;\n return (value instanceof\n (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement));\n};\n\nvar isMultipleSelect = (element) => element.type === `select-multiple`;\n\nvar isRadioInput = (element) => element.type === 'radio';\n\nvar isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = (ref) => isHTMLElement(ref) && ref.isConnected;\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n return object;\n}\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && !isUndefined(obj[key])) {\n return false;\n }\n }\n return true;\n}\nfunction unset(object, path) {\n const paths = Array.isArray(path)\n ? path\n : isKey(path)\n ? [path]\n : stringToPath(path);\n const childObject = paths.length === 1 ? object : baseGet(object, paths);\n const index = paths.length - 1;\n const key = paths[index];\n if (childObject) {\n delete childObject[key];\n }\n if (index !== 0 &&\n ((isObject(childObject) && isEmptyObject(childObject)) ||\n (Array.isArray(childObject) && isEmptyArray(childObject)))) {\n unset(object, paths.slice(0, -1));\n }\n return object;\n}\n\nvar objectHasFunction = (data) => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n return false;\n};\n\nfunction markFieldsDirty(data, fields = {}) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n }\n else if (!isNullOrUndefined(data[key])) {\n fields[key] = true;\n }\n }\n }\n return fields;\n}\nfunction getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {\n const isParentNodeArray = Array.isArray(data);\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) ||\n (isObject(data[key]) && !objectHasFunction(data[key]))) {\n if (isUndefined(formValues) ||\n isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = Array.isArray(data[key])\n ? markFieldsDirty(data[key], [])\n : { ...markFieldsDirty(data[key]) };\n }\n else {\n getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n }\n else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n }\n return dirtyFieldsFromValues;\n}\nvar getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));\n\nconst defaultResult = {\n value: false,\n isValid: false,\n};\nconst validResult = { value: true, isValid: true };\nvar getCheckboxValue = (options) => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options\n .filter((option) => option && option.checked && !option.disabled)\n .map((option) => option.value);\n return { value: values, isValid: !!values.length };\n }\n return options[0].checked && !options[0].disabled\n ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value)\n ? isUndefined(options[0].value) || options[0].value === ''\n ? validResult\n : { value: options[0].value, isValid: true }\n : validResult\n : defaultResult;\n }\n return defaultResult;\n};\n\nvar getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value)\n ? value\n : valueAsNumber\n ? value === ''\n ? NaN\n : value\n ? +value\n : value\n : valueAsDate && isString(value)\n ? new Date(value)\n : setValueAs\n ? setValueAs(value)\n : value;\n\nconst defaultReturn = {\n isValid: false,\n value: null,\n};\nvar getRadioValue = (options) => Array.isArray(options)\n ? options.reduce((previous, option) => option && option.checked && !option.disabled\n ? {\n isValid: true,\n value: option.value,\n }\n : previous, defaultReturn)\n : defaultReturn;\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n if (isFileInput(ref)) {\n return ref.files;\n }\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map(({ value }) => value);\n }\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation,\n };\n};\n\nvar isRegex = (value) => value instanceof RegExp;\n\nvar getRuleValue = (rule) => isUndefined(rule)\n ? rule\n : isRegex(rule)\n ? rule.source\n : isObject(rule)\n ? isRegex(rule.value)\n ? rule.value.source\n : rule.value\n : rule;\n\nvar getValidationModes = (mode) => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n\nconst ASYNC_FUNCTION = 'AsyncFunction';\nvar hasPromiseValidation = (fieldReference) => !!fieldReference &&\n !!fieldReference.validate &&\n !!((isFunction(fieldReference.validate) &&\n fieldReference.validate.constructor.name === ASYNC_FUNCTION) ||\n (isObject(fieldReference.validate) &&\n Object.values(fieldReference.validate).find((validateFunction) => validateFunction.constructor.name === ASYNC_FUNCTION)));\n\nvar hasValidation = (options) => options.mount &&\n (options.required ||\n options.min ||\n options.max ||\n options.maxLength ||\n options.minLength ||\n options.pattern ||\n options.validate);\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent &&\n (_names.watchAll ||\n _names.watch.has(name) ||\n [..._names.watch].some((watchName) => name.startsWith(watchName) &&\n /^\\.\\w+/.test(name.slice(watchName.length))));\n\nconst iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n if (field) {\n const { _f, ...currentField } = field;\n if (_f) {\n if (_f.refs && _f.refs[0] && action(_f.refs[0], key) && !abortEarly) {\n return true;\n }\n else if (_f.ref && action(_f.ref, _f.name) && !abortEarly) {\n return true;\n }\n else {\n if (iterateFieldsByAction(currentField, action)) {\n break;\n }\n }\n }\n else if (isObject(currentField)) {\n if (iterateFieldsByAction(currentField, action)) {\n break;\n }\n }\n }\n }\n return;\n};\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n if (error || isKey(name)) {\n return {\n error,\n name,\n };\n }\n const names = name.split('.');\n while (names.length) {\n const fieldName = names.join('.');\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n if (field && !Array.isArray(field) && name !== fieldName) {\n return { name };\n }\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError,\n };\n }\n if (foundError && foundError.root && foundError.root.type) {\n return {\n name: `${fieldName}.root`,\n error: foundError.root,\n };\n }\n names.pop();\n }\n return {\n name,\n };\n}\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {\n updateFormState(formStateData);\n const { name, ...formState } = formStateData;\n return (isEmptyObject(formState) ||\n Object.keys(formState).length >= Object.keys(_proxyFormState).length ||\n Object.keys(formState).find((key) => _proxyFormState[key] ===\n (!isRoot || VALIDATION_MODE.all)));\n};\n\nvar shouldSubscribeByName = (name, signalName, exact) => !name ||\n !signalName ||\n name === signalName ||\n convertToArrayPayload(name).some((currentName) => currentName &&\n (exact\n ? currentName === signalName\n : currentName.startsWith(signalName) ||\n signalName.startsWith(currentName)));\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n }\n else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n }\n else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n }\n else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = convertToArrayPayload(get(errors, name));\n set(fieldArrayErrors, 'root', error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nvar isMessage = (value) => isString(value);\n\nfunction getValidateError(result, ref, type = 'validate') {\n if (isMessage(result) ||\n (Array.isArray(result) && result.every(isMessage)) ||\n (isBoolean(result) && !result)) {\n return {\n type,\n message: isMessage(result) ? result : '',\n ref,\n };\n }\n}\n\nvar getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData)\n ? validationData\n : {\n value: validationData,\n message: '',\n };\n\nvar validateField = async (field, disabledFieldNames, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, } = field._f;\n const inputValue = get(formValues, name);\n if (!mount || disabledFieldNames.has(name)) {\n return {};\n }\n const inputRef = refs ? refs[0] : ref;\n const setCustomValidity = (message) => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? '' : message || '');\n inputRef.reportValidity();\n }\n };\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox = isRadio || isCheckBox;\n const isEmpty = ((valueAsNumber || isFileInput(ref)) &&\n isUndefined(ref.value) &&\n isUndefined(inputValue)) ||\n (isHTMLElement(ref) && ref.value === '') ||\n inputValue === '' ||\n (Array.isArray(inputValue) && !inputValue.length);\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message),\n };\n };\n if (isFieldArray\n ? !Array.isArray(inputValue) || !inputValue.length\n : required &&\n ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) ||\n (isBoolean(inputValue) && !inputValue) ||\n (isCheckBox && !getCheckboxValue(refs).isValid) ||\n (isRadio && !getRadioValue(refs).isValid))) {\n const { value, message } = isMessage(required)\n ? { value: !!required, message: required }\n : getValueAndMessage(required);\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber ||\n (inputValue ? +inputValue : inputValue);\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n }\n else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time);\n const isTime = ref.type == 'time';\n const isWeek = ref.type == 'week';\n if (isString(maxOutput.value) && inputValue) {\n exceedMax = isTime\n ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value)\n : isWeek\n ? inputValue > maxOutput.value\n : valueDate > new Date(maxOutput.value);\n }\n if (isString(minOutput.value) && inputValue) {\n exceedMin = isTime\n ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value)\n : isWeek\n ? inputValue < minOutput.value\n : valueDate < new Date(minOutput.value);\n }\n }\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if ((maxLength || minLength) &&\n !isEmpty &&\n (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) &&\n inputValue.length > +maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) &&\n inputValue.length < +minLengthOutput.value;\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if (pattern && !isEmpty && isString(inputValue)) {\n const { value: patternValue, message } = getValueAndMessage(pattern);\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue, formValues);\n const validateError = getValidateError(result, inputRef);\n if (validateError) {\n error[name] = {\n ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n }\n else if (isObject(validate)) {\n let validationResult = {};\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key);\n if (validateError) {\n validationResult = {\n ...validateError,\n ...appendErrorsCurry(key, validateError.message),\n };\n setCustomValidity(validateError.message);\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult,\n };\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n setCustomValidity(true);\n return error;\n};\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true,\n};\nfunction createFormControl(props = {}) {\n let _options = {\n ...defaultOptions,\n ...props,\n };\n let _formState = {\n submitCount: 0,\n isDirty: false,\n isReady: false,\n isLoading: isFunction(_options.defaultValues),\n isValidating: false,\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n touchedFields: {},\n dirtyFields: {},\n validatingFields: {},\n errors: _options.errors || {},\n disabled: _options.disabled || false,\n };\n let _fields = {};\n let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)\n ? cloneObject(_options.defaultValues || _options.values) || {}\n : {};\n let _formValues = _options.shouldUnregister\n ? {}\n : cloneObject(_defaultValues);\n let _state = {\n action: false,\n mount: false,\n watch: false,\n };\n let _names = {\n mount: new Set(),\n disabled: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n };\n let delayErrorCallback;\n let timer = 0;\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n validatingFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n };\n let _proxySubscribeFormState = {\n ..._proxyFormState,\n };\n const _subjects = {\n array: createSubject(),\n state: createSubject(),\n };\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n const debounce = (callback) => (wait) => {\n clearTimeout(timer);\n timer = setTimeout(callback, wait);\n };\n const _setValid = async (shouldUpdateValid) => {\n if (!_options.disabled &&\n (_proxyFormState.isValid ||\n _proxySubscribeFormState.isValid ||\n shouldUpdateValid)) {\n const isValid = _options.resolver\n ? isEmptyObject((await _runSchema()).errors)\n : await executeBuiltInValidation(_fields, true);\n if (isValid !== _formState.isValid) {\n _subjects.state.next({\n isValid,\n });\n }\n }\n };\n const _updateIsValidating = (names, isValidating) => {\n if (!_options.disabled &&\n (_proxyFormState.isValidating ||\n _proxyFormState.validatingFields ||\n _proxySubscribeFormState.isValidating ||\n _proxySubscribeFormState.validatingFields)) {\n (names || Array.from(_names.mount)).forEach((name) => {\n if (name) {\n isValidating\n ? set(_formState.validatingFields, name, isValidating)\n : unset(_formState.validatingFields, name);\n }\n });\n _subjects.state.next({\n validatingFields: _formState.validatingFields,\n isValidating: !isEmptyObject(_formState.validatingFields),\n });\n }\n };\n const _setFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {\n if (args && method && !_options.disabled) {\n _state.action = true;\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n if (shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n if ((_proxyFormState.touchedFields ||\n _proxySubscribeFormState.touchedFields) &&\n shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n if (_proxyFormState.dirtyFields || _proxySubscribeFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n _subjects.state.next({\n name,\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid,\n });\n }\n else {\n set(_formValues, name, values);\n }\n };\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n _subjects.state.next({\n errors: _formState.errors,\n });\n };\n const _setErrors = (errors) => {\n _formState.errors = errors;\n _subjects.state.next({\n errors: _formState.errors,\n isValid: false,\n });\n };\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) ||\n (ref && ref.defaultChecked) ||\n shouldSkipSetValueAs\n ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f))\n : setFieldValue(name, defaultValue);\n _state.mount && _setValid();\n }\n };\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let shouldUpdateField = false;\n let isPreviousDirty = false;\n const output = {\n name,\n };\n if (!_options.disabled) {\n if (!isBlurEvent || shouldDirty) {\n if (_proxyFormState.isDirty || _proxySubscribeFormState.isDirty) {\n isPreviousDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n shouldUpdateField = isPreviousDirty !== output.isDirty;\n }\n const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue);\n isPreviousDirty = !!get(_formState.dirtyFields, name);\n isCurrentFieldPristine\n ? unset(_formState.dirtyFields, name)\n : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n shouldUpdateField =\n shouldUpdateField ||\n ((_proxyFormState.dirtyFields ||\n _proxySubscribeFormState.dirtyFields) &&\n isPreviousDirty !== !isCurrentFieldPristine);\n }\n if (isBlurEvent) {\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n if (!isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n shouldUpdateField =\n shouldUpdateField ||\n ((_proxyFormState.touchedFields ||\n _proxySubscribeFormState.touchedFields) &&\n isPreviousFieldTouched !== isBlurEvent);\n }\n }\n shouldUpdateField && shouldRender && _subjects.state.next(output);\n }\n return shouldUpdateField ? output : {};\n };\n const shouldRenderByError = (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = (_proxyFormState.isValid || _proxySubscribeFormState.isValid) &&\n isBoolean(isValid) &&\n _formState.isValid !== isValid;\n if (_options.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(_options.delayError);\n }\n else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) ||\n !isEmptyObject(fieldState) ||\n shouldUpdateValid) {\n const updatedFormState = {\n ...fieldState,\n ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}),\n errors: _formState.errors,\n name,\n };\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n _subjects.state.next(updatedFormState);\n }\n };\n const _runSchema = async (name) => {\n _updateIsValidating(name, true);\n const result = await _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));\n _updateIsValidating(name);\n return result;\n };\n const executeSchemaAndUpdateState = async (names) => {\n const { errors } = await _runSchema(names);\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n }\n else {\n _formState.errors = errors;\n }\n return errors;\n };\n const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = {\n valid: true,\n }) => {\n for (const name in fields) {\n const field = fields[name];\n if (field) {\n const { _f, ...fieldValue } = field;\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n const isPromiseFunction = field._f && hasPromiseValidation(field._f);\n if (isPromiseFunction && _proxyFormState.validatingFields) {\n _updateIsValidating([name], true);\n }\n const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);\n if (isPromiseFunction && _proxyFormState.validatingFields) {\n _updateIsValidating([name]);\n }\n if (fieldError[_f.name]) {\n context.valid = false;\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n !shouldOnlyCheckValid &&\n (get(fieldError, _f.name)\n ? isFieldArrayRoot\n ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)\n : set(_formState.errors, _f.name, fieldError[_f.name])\n : unset(_formState.errors, _f.name));\n }\n !isEmptyObject(fieldValue) &&\n (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n return context.valid;\n };\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field &&\n (field._f.refs\n ? field._f.refs.every((ref) => !live(ref))\n : !live(field._f.ref)) &&\n unregister(name);\n }\n _names.unMount = new Set();\n };\n const _getDirty = (name, data) => !_options.disabled &&\n (name && data && set(_formValues, name, data),\n !deepEqual(getValues(), _defaultValues));\n const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {\n ...(_state.mount\n ? _formValues\n : isUndefined(defaultValue)\n ? _defaultValues\n : isString(names)\n ? { [names]: defaultValue }\n : defaultValue),\n }, isGlobal, defaultValue);\n const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, _options.shouldUnregister ? get(_defaultValues, name, []) : []));\n const setFieldValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n let fieldValue = value;\n if (field) {\n const fieldReference = field._f;\n if (fieldReference) {\n !fieldReference.disabled &&\n set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue =\n isHTMLElement(fieldReference.ref) && isNullOrUndefined(value)\n ? ''\n : value;\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value)));\n }\n else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.forEach((checkboxRef) => {\n if (!checkboxRef.defaultChecked || !checkboxRef.disabled) {\n if (Array.isArray(fieldValue)) {\n checkboxRef.checked = !!fieldValue.find((data) => data === checkboxRef.value);\n }\n else {\n checkboxRef.checked =\n fieldValue === checkboxRef.value || !!fieldValue;\n }\n }\n });\n }\n else {\n fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue));\n }\n }\n else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = '';\n }\n else {\n fieldReference.ref.value = fieldValue;\n if (!fieldReference.ref.type) {\n _subjects.state.next({\n name,\n values: cloneObject(_formValues),\n });\n }\n }\n }\n }\n (options.shouldDirty || options.shouldTouch) &&\n updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n if (!value.hasOwnProperty(fieldKey)) {\n return;\n }\n const fieldValue = value[fieldKey];\n const fieldName = name + '.' + fieldKey;\n const field = get(_fields, fieldName);\n (_names.array.has(name) ||\n isObject(fieldValue) ||\n (field && !field._f)) &&\n !isDateObject(fieldValue)\n ? setValues(fieldName, fieldValue, options)\n : setFieldValue(fieldName, fieldValue, options);\n }\n };\n const setValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n const isFieldArray = _names.array.has(name);\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: cloneObject(_formValues),\n });\n if ((_proxyFormState.isDirty ||\n _proxyFormState.dirtyFields ||\n _proxySubscribeFormState.isDirty ||\n _proxySubscribeFormState.dirtyFields) &&\n options.shouldDirty) {\n _subjects.state.next({\n name,\n dirtyFields: getDirtyFields(_defaultValues, _formValues),\n isDirty: _getDirty(name, cloneValue),\n });\n }\n }\n else {\n field && !field._f && !isNullOrUndefined(cloneValue)\n ? setValues(name, cloneValue, options)\n : setFieldValue(name, cloneValue, options);\n }\n isWatched(name, _names) && _subjects.state.next({ ..._formState, name });\n _subjects.state.next({\n name: _state.mount ? name : undefined,\n values: cloneObject(_formValues),\n });\n };\n const onChange = async (event) => {\n _state.mount = true;\n const target = event.target;\n let name = target.name;\n let isFieldValueUpdated = true;\n const field = get(_fields, name);\n const _updateIsFieldValueUpdated = (fieldValue) => {\n isFieldValueUpdated =\n Number.isNaN(fieldValue) ||\n (isDateObject(fieldValue) && isNaN(fieldValue.getTime())) ||\n deepEqual(fieldValue, get(_formValues, name, fieldValue));\n };\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n if (field) {\n let error;\n let isValid;\n const fieldValue = target.type\n ? getFieldValue(field._f)\n : getEventValue(event);\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = (!hasValidation(field._f) &&\n !_options.resolver &&\n !get(_formState.errors, name) &&\n !field._f.deps) ||\n skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n if (isBlurEvent) {\n if (!target || !target.readOnly) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n }\n }\n else if (field._f.onChange) {\n field._f.onChange(event);\n }\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent &&\n _subjects.state.next({\n name,\n type: event.type,\n values: cloneObject(_formValues),\n });\n if (shouldSkipValidation) {\n if (_proxyFormState.isValid || _proxySubscribeFormState.isValid) {\n if (_options.mode === 'onBlur') {\n if (isBlurEvent) {\n _setValid();\n }\n }\n else if (!isBlurEvent) {\n _setValid();\n }\n }\n return (shouldRender &&\n _subjects.state.next({ name, ...(watched ? {} : fieldState) }));\n }\n !isBlurEvent && watched && _subjects.state.next({ ..._formState });\n if (_options.resolver) {\n const { errors } = await _runSchema([name]);\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n }\n }\n else {\n _updateIsValidating([name], true);\n error = (await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n _updateIsValidating([name]);\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n if (error) {\n isValid = false;\n }\n else if (_proxyFormState.isValid ||\n _proxySubscribeFormState.isValid) {\n isValid = await executeBuiltInValidation(_fields, true);\n }\n }\n }\n if (isFieldValueUpdated) {\n field._f.deps &&\n trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n }\n };\n const _focusInput = (ref, key) => {\n if (get(_formState.errors, key) && ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n };\n const trigger = async (name, options = {}) => {\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name\n ? !fieldNames.some((name) => get(errors, name))\n : isValid;\n }\n else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _setValid();\n }\n else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n _subjects.state.next({\n ...(!isString(name) ||\n ((_proxyFormState.isValid || _proxySubscribeFormState.isValid) &&\n isValid !== _formState.isValid)\n ? {}\n : { name }),\n ...(_options.resolver || !name ? { isValid } : {}),\n errors: _formState.errors,\n });\n options.shouldFocus &&\n !validationResult &&\n iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);\n return validationResult;\n };\n const getValues = (fieldNames) => {\n const values = {\n ...(_state.mount ? _formValues : _defaultValues),\n };\n return isUndefined(fieldNames)\n ? values\n : isString(fieldNames)\n ? get(values, fieldNames)\n : fieldNames.map((name) => get(values, name));\n };\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n error: get((formState || _formState).errors, name),\n isValidating: !!get(_formState.validatingFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n });\n const clearErrors = (name) => {\n name &&\n convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName));\n _subjects.state.next({\n errors: name ? _formState.errors : {},\n });\n };\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, { _f: {} })._f || {}).ref;\n const currentError = get(_formState.errors, name) || {};\n // Don't override existing error messages elsewhere in the object tree.\n const { ref: currentRef, message, type, ...restOfErrorTree } = currentError;\n set(_formState.errors, name, {\n ...restOfErrorTree,\n ...error,\n ref,\n });\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false,\n });\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n const watch = (name, defaultValue) => isFunction(name)\n ? _subjects.state.subscribe({\n next: (payload) => 'values' in payload &&\n name(_getWatch(undefined, defaultValue), payload),\n })\n : _getWatch(name, defaultValue, true);\n const _subscribe = (props) => _subjects.state.subscribe({\n next: (formState) => {\n if (shouldSubscribeByName(props.name, formState.name, props.exact) &&\n shouldRenderFormState(formState, props.formState || _proxyFormState, _setFormState, props.reRenderRoot)) {\n props.callback({\n values: { ..._formValues },\n ..._formState,\n ...formState,\n defaultValues: _defaultValues,\n });\n }\n },\n }).unsubscribe;\n const subscribe = (props) => {\n _state.mount = true;\n _proxySubscribeFormState = {\n ..._proxySubscribeFormState,\n ...props.formState,\n };\n return _subscribe({\n ...props,\n formState: _proxySubscribeFormState,\n });\n };\n const unregister = (name, options = {}) => {\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n _names.array.delete(fieldName);\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !options.keepIsValidating &&\n unset(_formState.validatingFields, fieldName);\n !_options.shouldUnregister &&\n !options.keepDefaultValue &&\n unset(_defaultValues, fieldName);\n }\n _subjects.state.next({\n values: cloneObject(_formValues),\n });\n _subjects.state.next({\n ..._formState,\n ...(!options.keepDirty ? {} : { isDirty: _getDirty() }),\n });\n !options.keepIsValid && _setValid();\n };\n const _setDisabledField = ({ disabled, name, }) => {\n if ((isBoolean(disabled) && _state.mount) ||\n !!disabled ||\n _names.disabled.has(name)) {\n disabled ? _names.disabled.add(name) : _names.disabled.delete(name);\n }\n };\n const register = (name, options = {}) => {\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled) || isBoolean(_options.disabled);\n set(_fields, name, {\n ...(field || {}),\n _f: {\n ...(field && field._f ? field._f : { ref: { name } }),\n name,\n mount: true,\n ...options,\n },\n });\n _names.mount.add(name);\n if (field) {\n _setDisabledField({\n disabled: isBoolean(options.disabled)\n ? options.disabled\n : _options.disabled,\n name,\n });\n }\n else {\n updateValidAndValue(name, true, options.value);\n }\n return {\n ...(disabledIsDefined\n ? { disabled: options.disabled || _options.disabled }\n : {}),\n ...(_options.progressive\n ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern),\n }\n : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: (ref) => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value)\n ? ref.querySelectorAll\n ? ref.querySelectorAll('input,select,textarea')[0] || ref\n : ref\n : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n if (radioOrCheckbox\n ? refs.find((option) => option === fieldRef)\n : fieldRef === field._f.ref) {\n return;\n }\n set(_fields, name, {\n _f: {\n ...field._f,\n ...(radioOrCheckbox\n ? {\n refs: [\n ...refs.filter(live),\n fieldRef,\n ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []),\n ],\n ref: { type: fieldRef.type, name },\n }\n : { ref: fieldRef }),\n },\n });\n updateValidAndValue(name, false, undefined, fieldRef);\n }\n else {\n field = get(_fields, name, {});\n if (field._f) {\n field._f.mount = false;\n }\n (_options.shouldUnregister || options.shouldUnregister) &&\n !(isNameInFieldArray(_names.array, name) && _state.action) &&\n _names.unMount.add(name);\n }\n },\n };\n };\n const _focusError = () => _options.shouldFocusError &&\n iterateFieldsByAction(_fields, _focusInput, _names.mount);\n const _disableForm = (disabled) => {\n if (isBoolean(disabled)) {\n _subjects.state.next({ disabled });\n iterateFieldsByAction(_fields, (ref, name) => {\n const currentField = get(_fields, name);\n if (currentField) {\n ref.disabled = currentField._f.disabled || disabled;\n if (Array.isArray(currentField._f.refs)) {\n currentField._f.refs.forEach((inputRef) => {\n inputRef.disabled = currentField._f.disabled || disabled;\n });\n }\n }\n }, 0, false);\n }\n };\n const handleSubmit = (onValid, onInvalid) => async (e) => {\n let onValidError = undefined;\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist &&\n e.persist();\n }\n let fieldValues = cloneObject(_formValues);\n _subjects.state.next({\n isSubmitting: true,\n });\n if (_options.resolver) {\n const { errors, values } = await _runSchema();\n _formState.errors = errors;\n fieldValues = cloneObject(values);\n }\n else {\n await executeBuiltInValidation(_fields);\n }\n if (_names.disabled.size) {\n for (const name of _names.disabled) {\n unset(fieldValues, name);\n }\n }\n unset(_formState.errors, 'root');\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n });\n try {\n await onValid(fieldValues, e);\n }\n catch (error) {\n onValidError = error;\n }\n }\n else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors }, e);\n }\n _focusError();\n setTimeout(_focusError);\n }\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors) && !onValidError,\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors,\n });\n if (onValidError) {\n throw onValidError;\n }\n };\n const resetField = (name, options = {}) => {\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, cloneObject(get(_defaultValues, name)));\n }\n else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, cloneObject(options.defaultValue));\n }\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue\n ? _getDirty(name, cloneObject(get(_defaultValues, name)))\n : _getDirty();\n }\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _setValid();\n }\n _subjects.state.next({ ..._formState });\n }\n };\n const _reset = (formValues, keepStateOptions = {}) => {\n const updatedValues = formValues ? cloneObject(formValues) : _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const isEmptyResetValues = isEmptyObject(formValues);\n const values = isEmptyResetValues ? _defaultValues : cloneUpdatedValues;\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues) {\n const fieldsToCheck = new Set([\n ..._names.mount,\n ...Object.keys(getDirtyFields(_defaultValues, _formValues)),\n ]);\n for (const fieldName of Array.from(fieldsToCheck)) {\n get(_formState.dirtyFields, fieldName)\n ? set(values, fieldName, get(_formValues, fieldName))\n : setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs)\n ? field._f.refs[0]\n : field._f.ref;\n if (isHTMLElement(fieldReference)) {\n const form = fieldReference.closest('form');\n if (form) {\n form.reset();\n break;\n }\n }\n }\n }\n }\n if (keepStateOptions.keepFieldsRef) {\n for (const fieldName of _names.mount) {\n setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n _fields = {};\n }\n }\n _formValues = _options.shouldUnregister\n ? keepStateOptions.keepDefaultValues\n ? cloneObject(_defaultValues)\n : {}\n : cloneObject(values);\n _subjects.array.next({\n values: { ...values },\n });\n _subjects.state.next({\n values: { ...values },\n });\n }\n _names = {\n mount: keepStateOptions.keepDirtyValues ? _names.mount : new Set(),\n unMount: new Set(),\n array: new Set(),\n disabled: new Set(),\n watch: new Set(),\n watchAll: false,\n focus: '',\n };\n _state.mount =\n !_proxyFormState.isValid ||\n !!keepStateOptions.keepIsValid ||\n !!keepStateOptions.keepDirtyValues;\n _state.watch = !!_options.shouldUnregister;\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount\n ? _formState.submitCount\n : 0,\n isDirty: isEmptyResetValues\n ? false\n : keepStateOptions.keepDirty\n ? _formState.isDirty\n : !!(keepStateOptions.keepDefaultValues &&\n !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted\n ? _formState.isSubmitted\n : false,\n dirtyFields: isEmptyResetValues\n ? {}\n : keepStateOptions.keepDirtyValues\n ? keepStateOptions.keepDefaultValues && _formValues\n ? getDirtyFields(_defaultValues, _formValues)\n : _formState.dirtyFields\n : keepStateOptions.keepDefaultValues && formValues\n ? getDirtyFields(_defaultValues, formValues)\n : keepStateOptions.keepDirty\n ? _formState.dirtyFields\n : {},\n touchedFields: keepStateOptions.keepTouched\n ? _formState.touchedFields\n : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitSuccessful: keepStateOptions.keepIsSubmitSuccessful\n ? _formState.isSubmitSuccessful\n : false,\n isSubmitting: false,\n defaultValues: _defaultValues,\n });\n };\n const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)\n ? formValues(_formValues)\n : formValues, keepStateOptions);\n const setFocus = (name, options = {}) => {\n const field = get(_fields, name);\n const fieldReference = field && field._f;\n if (fieldReference) {\n const fieldRef = fieldReference.refs\n ? fieldReference.refs[0]\n : fieldReference.ref;\n if (fieldRef.focus) {\n fieldRef.focus();\n options.shouldSelect &&\n isFunction(fieldRef.select) &&\n fieldRef.select();\n }\n }\n };\n const _setFormState = (updatedFormState) => {\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n };\n const _resetDefaultValues = () => isFunction(_options.defaultValues) &&\n _options.defaultValues().then((values) => {\n reset(values, _options.resetOptions);\n _subjects.state.next({\n isLoading: false,\n });\n });\n const methods = {\n control: {\n register,\n unregister,\n getFieldState,\n handleSubmit,\n setError,\n _subscribe,\n _runSchema,\n _focusError,\n _getWatch,\n _getDirty,\n _setValid,\n _setFieldArray,\n _setDisabledField,\n _setErrors,\n _getFieldArray,\n _reset,\n _resetDefaultValues,\n _removeUnmounted,\n _disableForm,\n _subjects,\n _proxyFormState,\n get _fields() {\n return _fields;\n },\n get _formValues() {\n return _formValues;\n },\n get _state() {\n return _state;\n },\n set _state(value) {\n _state = value;\n },\n get _defaultValues() {\n return _defaultValues;\n },\n get _names() {\n return _names;\n },\n set _names(value) {\n _names = value;\n },\n get _formState() {\n return _formState;\n },\n get _options() {\n return _options;\n },\n set _options(value) {\n _options = {\n ..._options,\n ...value,\n };\n },\n },\n subscribe,\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState,\n };\n return {\n ...methods,\n formControl: methods,\n };\n}\n\nvar generateId = () => {\n if (typeof crypto !== 'undefined' && crypto.randomUUID) {\n return crypto.randomUUID();\n }\n const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16 + d) % 16 | 0;\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n};\n\nvar getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus)\n ? options.focusName ||\n `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`\n : '';\n\nvar appendAt = (data, value) => [\n ...data,\n ...convertToArrayPayload(value),\n];\n\nvar fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined;\n\nfunction insert(data, index, value) {\n return [\n ...data.slice(0, index),\n ...convertToArrayPayload(value),\n ...data.slice(index),\n ];\n}\n\nvar moveArrayAt = (data, from, to) => {\n if (!Array.isArray(data)) {\n return [];\n }\n if (isUndefined(data[to])) {\n data[to] = undefined;\n }\n data.splice(to, 0, data.splice(from, 1)[0]);\n return data;\n};\n\nvar prependAt = (data, value) => [\n ...convertToArrayPayload(value),\n ...convertToArrayPayload(data),\n];\n\nfunction removeAtIndexes(data, indexes) {\n let i = 0;\n const temp = [...data];\n for (const index of indexes) {\n temp.splice(index - i, 1);\n i++;\n }\n return compact(temp).length ? temp : [];\n}\nvar removeArrayAt = (data, index) => isUndefined(index)\n ? []\n : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));\n\nvar swapArrayAt = (data, indexA, indexB) => {\n [data[indexA], data[indexB]] = [data[indexB], data[indexA]];\n};\n\nvar updateAt = (fieldValues, index, value) => {\n fieldValues[index] = value;\n return fieldValues;\n};\n\n/**\n * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A)\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn)\n *\n * @param props - useFieldArray props\n *\n * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, control, handleSubmit, reset, trigger, setError } = useForm({\n * defaultValues: {\n * test: []\n * }\n * });\n * const { fields, append } = useFieldArray({\n * control,\n * name: \"test\"\n * });\n *\n * return (\n * <form onSubmit={handleSubmit(data => console.log(data))}>\n * {fields.map((item, index) => (\n * <input key={item.id} {...register(`test.${index}.firstName`)} />\n * ))}\n * <button type=\"button\" onClick={() => append({ firstName: \"bill\" })}>\n * append\n * </button>\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFieldArray(props) {\n const methods = useFormContext();\n const { control = methods.control, name, keyName = 'id', shouldUnregister, rules, } = props;\n const [fields, setFields] = React.useState(control._getFieldArray(name));\n const ids = React.useRef(control._getFieldArray(name).map(generateId));\n const _fieldIds = React.useRef(fields);\n const _actioned = React.useRef(false);\n _fieldIds.current = fields;\n control._names.array.add(name);\n React.useMemo(() => rules &&\n control.register(name, rules), [control, rules, name]);\n useIsomorphicLayoutEffect(() => control._subjects.array.subscribe({\n next: ({ values, name: fieldArrayName, }) => {\n if (fieldArrayName === name || !fieldArrayName) {\n const fieldValues = get(values, name);\n if (Array.isArray(fieldValues)) {\n setFields(fieldValues);\n ids.current = fieldValues.map(generateId);\n }\n }\n },\n }).unsubscribe, [control, name]);\n const updateValues = React.useCallback((updatedFieldArrayValues) => {\n _actioned.current = true;\n control._setFieldArray(name, updatedFieldArrayValues);\n }, [control, name]);\n const append = (value, options) => {\n const appendValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = appendAt(control._getFieldArray(name), appendValue);\n control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);\n ids.current = appendAt(ids.current, appendValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, appendAt, {\n argA: fillEmptyArray(value),\n });\n };\n const prepend = (value, options) => {\n const prependValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = prependAt(control._getFieldArray(name), prependValue);\n control._names.focus = getFocusFieldName(name, 0, options);\n ids.current = prependAt(ids.current, prependValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, prependAt, {\n argA: fillEmptyArray(value),\n });\n };\n const remove = (index) => {\n const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);\n ids.current = removeArrayAt(ids.current, index);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n !Array.isArray(get(control._fields, name)) &&\n set(control._fields, name, undefined);\n control._setFieldArray(name, updatedFieldArrayValues, removeArrayAt, {\n argA: index,\n });\n };\n const insert$1 = (index, value, options) => {\n const insertValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);\n control._names.focus = getFocusFieldName(name, index, options);\n ids.current = insert(ids.current, index, insertValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, insert, {\n argA: index,\n argB: fillEmptyArray(value),\n });\n };\n const swap = (indexA, indexB) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n swapArrayAt(updatedFieldArrayValues, indexA, indexB);\n swapArrayAt(ids.current, indexA, indexB);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, swapArrayAt, {\n argA: indexA,\n argB: indexB,\n }, false);\n };\n const move = (from, to) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n moveArrayAt(updatedFieldArrayValues, from, to);\n moveArrayAt(ids.current, from, to);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, moveArrayAt, {\n argA: from,\n argB: to,\n }, false);\n };\n const update = (index, value) => {\n const updateValue = cloneObject(value);\n const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);\n ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);\n updateValues(updatedFieldArrayValues);\n setFields([...updatedFieldArrayValues]);\n control._setFieldArray(name, updatedFieldArrayValues, updateAt, {\n argA: index,\n argB: updateValue,\n }, true, false);\n };\n const replace = (value) => {\n const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));\n ids.current = updatedFieldArrayValues.map(generateId);\n updateValues([...updatedFieldArrayValues]);\n setFields([...updatedFieldArrayValues]);\n control._setFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);\n };\n React.useEffect(() => {\n control._state.action = false;\n isWatched(name, control._names) &&\n control._subjects.state.next({\n ...control._formState,\n });\n if (_actioned.current &&\n (!getValidationModes(control._options.mode).isOnSubmit ||\n control._formState.isSubmitted) &&\n !getValidationModes(control._options.reValidateMode).isOnSubmit) {\n if (control._options.resolver) {\n control._runSchema([name]).then((result) => {\n const error = get(result.errors, name);\n const existingError = get(control._formState.errors, name);\n if (existingError\n ? (!error && existingError.type) ||\n (error &&\n (existingError.type !== error.type ||\n existingError.message !== error.message))\n : error && error.type) {\n error\n ? set(control._formState.errors, name, error)\n : unset(control._formState.errors, name);\n control._subjects.state.next({\n errors: control._formState.errors,\n });\n }\n });\n }\n else {\n const field = get(control._fields, name);\n if (field &&\n field._f &&\n !(getValidationModes(control._options.reValidateMode).isOnSubmit &&\n getValidationModes(control._options.mode).isOnSubmit)) {\n validateField(field, control._names.disabled, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) &&\n control._subjects.state.next({\n errors: updateFieldArrayRootError(control._formState.errors, error, name),\n }));\n }\n }\n }\n control._subjects.state.next({\n name,\n values: cloneObject(control._formValues),\n });\n control._names.focus &&\n iterateFieldsByAction(control._fields, (ref, key) => {\n if (control._names.focus &&\n key.startsWith(control._names.focus) &&\n ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n });\n control._names.focus = '';\n control._setValid();\n _actioned.current = false;\n }, [fields, name, control]);\n React.useEffect(() => {\n !get(control._formValues, name) && control._setFieldArray(name);\n return () => {\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field && field._f) {\n field._f.mount = value;\n }\n };\n control._options.shouldUnregister || shouldUnregister\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, keyName, shouldUnregister]);\n return {\n swap: React.useCallback(swap, [updateValues, name, control]),\n move: React.useCallback(move, [updateValues, name, control]),\n prepend: React.useCallback(prepend, [updateValues, name, control]),\n append: React.useCallback(append, [updateValues, name, control]),\n remove: React.useCallback(remove, [updateValues, name, control]),\n insert: React.useCallback(insert$1, [updateValues, name, control]),\n update: React.useCallback(update, [updateValues, name, control]),\n replace: React.useCallback(replace, [updateValues, name, control]),\n fields: React.useMemo(() => fields.map((field, index) => ({\n ...field,\n [keyName]: ids.current[index] || generateId(),\n })), [fields, keyName]),\n };\n}\n\n/**\n * Custom hook to manage the entire form.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)\n *\n * @param props - form configuration and validation parameters.\n *\n * @returns methods - individual functions to manage the form state. {@link UseFormReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, watch, formState: { errors } } = useForm();\n * const onSubmit = data => console.log(data);\n *\n * console.log(watch(\"example\"));\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input defaultValue=\"test\" {...register(\"example\")} />\n * <input {...register(\"exampleRequired\", { required: true })} />\n * {errors.exampleRequired && <span>This field is required</span>}\n * <button>Submit</button>\n * </form>\n * );\n * }\n * ```\n */\nfunction useForm(props = {}) {\n const _formControl = React.useRef(undefined);\n const _values = React.useRef(undefined);\n const [formState, updateFormState] = React.useState({\n isDirty: false,\n isValidating: false,\n isLoading: isFunction(props.defaultValues),\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n submitCount: 0,\n dirtyFields: {},\n touchedFields: {},\n validatingFields: {},\n errors: props.errors || {},\n disabled: props.disabled || false,\n isReady: false,\n defaultValues: isFunction(props.defaultValues)\n ? undefined\n : props.defaultValues,\n });\n if (!_formControl.current) {\n if (props.formControl) {\n _formControl.current = {\n ...props.formControl,\n formState,\n };\n if (props.defaultValues && !isFunction(props.defaultValues)) {\n props.formControl.reset(props.defaultValues, props.resetOptions);\n }\n }\n else {\n const { formControl, ...rest } = createFormControl(props);\n _formControl.current = {\n ...rest,\n formState,\n };\n }\n }\n const control = _formControl.current.control;\n control._options = props;\n useIsomorphicLayoutEffect(() => {\n const sub = control._subscribe({\n formState: control._proxyFormState,\n callback: () => updateFormState({ ...control._formState }),\n reRenderRoot: true,\n });\n updateFormState((data) => ({\n ...data,\n isReady: true,\n }));\n control._formState.isReady = true;\n return sub;\n }, [control]);\n React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);\n React.useEffect(() => {\n if (props.mode) {\n control._options.mode = props.mode;\n }\n if (props.reValidateMode) {\n control._options.reValidateMode = props.reValidateMode;\n }\n }, [control, props.mode, props.reValidateMode]);\n React.useEffect(() => {\n if (props.errors) {\n control._setErrors(props.errors);\n control._focusError();\n }\n }, [control, props.errors]);\n React.useEffect(() => {\n props.shouldUnregister &&\n control._subjects.state.next({\n values: control._getWatch(),\n });\n }, [control, props.shouldUnregister]);\n React.useEffect(() => {\n if (control._proxyFormState.isDirty) {\n const isDirty = control._getDirty();\n if (isDirty !== formState.isDirty) {\n control._subjects.state.next({\n isDirty,\n });\n }\n }\n }, [control, formState.isDirty]);\n React.useEffect(() => {\n if (props.values && !deepEqual(props.values, _values.current)) {\n control._reset(props.values, {\n keepFieldsRef: true,\n ...control._options.resetOptions,\n });\n _values.current = props.values;\n updateFormState((state) => ({ ...state }));\n }\n else {\n control._resetDefaultValues();\n }\n }, [control, props.values]);\n React.useEffect(() => {\n if (!control._state.mount) {\n control._setValid();\n control._state.mount = true;\n }\n if (control._state.watch) {\n control._state.watch = false;\n control._subjects.state.next({ ...control._formState });\n }\n control._removeUnmounted();\n });\n _formControl.current.formState = getProxyFormState(formState, control);\n return _formControl.current;\n}\n\nexport { Controller, Form, FormProvider, appendErrors, createFormControl, get, set, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch };\n//# sourceMappingURL=index.esm.mjs.map\n"],"names":["React"],"mappings":";;;;;;;;;;AAEA,IAAI,eAAe,GAAG,CAAC,OAAO,KAAK,OAAO,CAAC,IAAI,KAAK,UAAU,CAAC;AAC/D;AACA,IAAI,YAAY,GAAG,CAAC,KAAK,KAAK,KAAK,YAAY,IAAI,CAAC;AACpD;AACA,IAAI,iBAAiB,GAAG,CAAC,KAAK,KAAK,KAAK,IAAI,IAAI,CAAC;AACjD;AACA,MAAM,YAAY,GAAG,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,CAAC;AAC1D,IAAI,QAAQ,GAAG,CAAC,KAAK,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC;AACnD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AACzB,IAAI,YAAY,CAAC,KAAK,CAAC;AACvB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AACzB;AACA,IAAI,aAAa,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM;AAC9D,MAAM,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC;AACnC,UAAU,KAAK,CAAC,MAAM,CAAC,OAA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AE,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AACxC,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,UAAU,GAAG,CAAC,KAAK,KAAK,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../node_modules/react-hook-form/dist/index.esm.mjs"],"sourcesContent":["import React from 'react';\n\nvar isCheckBoxInput = (element) => element.type === 'checkbox';\n\nvar isDateObject = (value) => value instanceof Date;\n\nvar isNullOrUndefined = (value) => value == null;\n\nconst isObjectType = (value) => typeof value === 'object';\nvar isObject = (value) => !isNullOrUndefined(value) &&\n !Array.isArray(value) &&\n isObjectType(value) &&\n !isDateObject(value);\n\nvar getEventValue = (event) => isObject(event) && event.target\n ? isCheckBoxInput(event.target)\n ? event.target.checked\n : event.target.value\n : event;\n\nvar getNodeParentName = (name) => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar isPlainObject = (tempObject) => {\n const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;\n return (isObject(prototypeCopy) && prototypeCopy.hasOwnProperty('isPrototypeOf'));\n};\n\nvar isWeb = typeof window !== 'undefined' &&\n typeof window.HTMLElement !== 'undefined' &&\n typeof document !== 'undefined';\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n const isFileListInstance = typeof FileList !== 'undefined' ? data instanceof FileList : false;\n if (data instanceof Date) {\n copy = new Date(data);\n }\n else if (!(isWeb && (data instanceof Blob || isFileListInstance)) &&\n (isArray || isObject(data))) {\n copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));\n if (!isArray && !isPlainObject(data)) {\n copy = data;\n }\n else {\n for (const key in data) {\n if (data.hasOwnProperty(key)) {\n copy[key] = cloneObject(data[key]);\n }\n }\n }\n }\n else {\n return data;\n }\n return copy;\n}\n\nvar isKey = (value) => /^\\w*$/.test(value);\n\nvar isUndefined = (val) => val === undefined;\n\nvar compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar stringToPath = (input) => compact(input.replace(/[\"|']|\\]/g, '').split(/\\.|\\[/));\n\nvar get = (object, path, defaultValue) => {\n if (!path || !isObject(object)) {\n return defaultValue;\n }\n const result = (isKey(path) ? [path] : stringToPath(path)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], object);\n return isUndefined(result) || result === object\n ? isUndefined(object[path])\n ? defaultValue\n : object[path]\n : result;\n};\n\nvar isBoolean = (value) => typeof value === 'boolean';\n\nvar set = (object, path, value) => {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue =\n isObject(objValue) || Array.isArray(objValue)\n ? objValue\n : !isNaN(+tempPath[index + 1])\n ? []\n : {};\n }\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return;\n }\n object[key] = newValue;\n object = object[key];\n }\n};\n\nconst EVENTS = {\n BLUR: 'blur',\n FOCUS_OUT: 'focusout',\n CHANGE: 'change',\n};\nconst VALIDATION_MODE = {\n onBlur: 'onBlur',\n onChange: 'onChange',\n onSubmit: 'onSubmit',\n onTouched: 'onTouched',\n all: 'all',\n};\nconst INPUT_VALIDATION_RULES = {\n max: 'max',\n min: 'min',\n maxLength: 'maxLength',\n minLength: 'minLength',\n pattern: 'pattern',\n required: 'required',\n validate: 'validate',\n};\n\nconst HookFormContext = React.createContext(null);\nHookFormContext.displayName = 'HookFormContext';\n/**\n * This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @returns return all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst useFormContext = () => React.useContext(HookFormContext);\n/**\n * A provider component that propagates the `useForm` methods to all children components via [React Context](https://reactjs.org/docs/context.html) API. To be used with {@link useFormContext}.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformcontext) • [Demo](https://codesandbox.io/s/react-hook-form-v7-form-context-ytudi)\n *\n * @param props - all useForm methods\n *\n * @example\n * ```tsx\n * function App() {\n * const methods = useForm();\n * const onSubmit = data => console.log(data);\n *\n * return (\n * <FormProvider {...methods} >\n * <form onSubmit={methods.handleSubmit(onSubmit)}>\n * <NestedInput />\n * <input type=\"submit\" />\n * </form>\n * </FormProvider>\n * );\n * }\n *\n * function NestedInput() {\n * const { register } = useFormContext(); // retrieve all hook methods\n * return <input {...register(\"test\")} />;\n * }\n * ```\n */\nconst FormProvider = (props) => {\n const { children, ...data } = props;\n return (React.createElement(HookFormContext.Provider, { value: data }, children));\n};\n\nvar getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {\n const result = {\n defaultValues: control._defaultValues,\n };\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {\n control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n },\n });\n }\n return result;\n};\n\nconst useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\n\n/**\n * This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useformstate) • [Demo](https://codesandbox.io/s/useformstate-75xly)\n *\n * @param props - include options on specify fields to subscribe. {@link UseFormStateReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, control } = useForm({\n * defaultValues: {\n * firstName: \"firstName\"\n * }});\n * const { dirtyFields } = useFormState({\n * control\n * });\n * const onSubmit = (data) => console.log(data);\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input {...register(\"firstName\")} placeholder=\"First Name\" />\n * {dirtyFields.firstName && <p>Field is dirty.</p>}\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFormState(props) {\n const methods = useFormContext();\n const { control = methods.control, disabled, name, exact } = props || {};\n const [formState, updateFormState] = React.useState(control._formState);\n const _localProxyFormState = React.useRef({\n isDirty: false,\n isLoading: false,\n dirtyFields: false,\n touchedFields: false,\n validatingFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n });\n useIsomorphicLayoutEffect(() => control._subscribe({\n name,\n formState: _localProxyFormState.current,\n exact,\n callback: (formState) => {\n !disabled &&\n updateFormState({\n ...control._formState,\n ...formState,\n });\n },\n }), [name, disabled, exact]);\n React.useEffect(() => {\n _localProxyFormState.current.isValid && control._setValid(true);\n }, [control]);\n return React.useMemo(() => getProxyFormState(formState, control, _localProxyFormState.current, false), [formState, control]);\n}\n\nvar isString = (value) => typeof value === 'string';\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names, defaultValue);\n }\n if (Array.isArray(names)) {\n return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName),\n get(formValues, fieldName)));\n }\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\nvar isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2, _internal_visited = new WeakSet()) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n if (_internal_visited.has(object1) || _internal_visited.has(object2)) {\n return true;\n }\n _internal_visited.add(object1);\n _internal_visited.add(object2);\n for (const key of keys1) {\n const val1 = object1[key];\n if (!keys2.includes(key)) {\n return false;\n }\n if (key !== 'ref') {\n const val2 = object2[key];\n if ((isDateObject(val1) && isDateObject(val2)) ||\n (isObject(val1) && isObject(val2)) ||\n (Array.isArray(val1) && Array.isArray(val2))\n ? !deepEqual(val1, val2, _internal_visited)\n : val1 !== val2) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * Custom hook to subscribe to field change and isolate re-rendering at the component level.\n *\n * @remarks\n *\n * [API](https://react-hook-form.com/docs/usewatch) • [Demo](https://codesandbox.io/s/react-hook-form-v7-ts-usewatch-h9i5e)\n *\n * @example\n * ```tsx\n * const { control } = useForm();\n * const values = useWatch({\n * name: \"fieldName\"\n * control,\n * })\n * ```\n */\nfunction useWatch(props) {\n const methods = useFormContext();\n const { control = methods.control, name, defaultValue, disabled, exact, compute, } = props || {};\n const _defaultValue = React.useRef(defaultValue);\n const _compute = React.useRef(compute);\n const _computeFormValues = React.useRef(undefined);\n _compute.current = compute;\n const defaultValueMemo = React.useMemo(() => control._getWatch(name, _defaultValue.current), [control, name]);\n const [value, updateValue] = React.useState(_compute.current ? _compute.current(defaultValueMemo) : defaultValueMemo);\n useIsomorphicLayoutEffect(() => control._subscribe({\n name,\n formState: {\n values: true,\n },\n exact,\n callback: (formState) => {\n if (!disabled) {\n const formValues = generateWatchOutput(name, control._names, formState.values || control._formValues, false, _defaultValue.current);\n if (_compute.current) {\n const computedFormValues = _compute.current(formValues);\n if (!deepEqual(computedFormValues, _computeFormValues.current)) {\n updateValue(computedFormValues);\n _computeFormValues.current = computedFormValues;\n }\n }\n else {\n updateValue(formValues);\n }\n }\n },\n }), [control, disabled, name, exact]);\n React.useEffect(() => control._removeUnmounted());\n return value;\n}\n\n/**\n * Custom hook to work with controlled component, this function provide you with both form and field level state. Re-render is isolated at the hook level.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller) • [Demo](https://codesandbox.io/s/usecontroller-0o8px)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns field properties, field and form state. {@link UseControllerReturn}\n *\n * @example\n * ```tsx\n * function Input(props) {\n * const { field, fieldState, formState } = useController(props);\n * return (\n * <div>\n * <input {...field} placeholder={props.name} />\n * <p>{fieldState.isTouched && \"Touched\"}</p>\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * </div>\n * );\n * }\n * ```\n */\nfunction useController(props) {\n const methods = useFormContext();\n const { name, disabled, control = methods.control, shouldUnregister, defaultValue, } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const defaultValueMemo = React.useMemo(() => get(control._formValues, name, get(control._defaultValues, name, defaultValue)), [control, name, defaultValue]);\n const value = useWatch({\n control,\n name,\n defaultValue: defaultValueMemo,\n exact: true,\n });\n const formState = useFormState({\n control,\n name,\n exact: true,\n });\n const _props = React.useRef(props);\n const _previousNameRef = React.useRef(undefined);\n const _registerProps = React.useRef(control.register(name, {\n ...props.rules,\n value,\n ...(isBoolean(props.disabled) ? { disabled: props.disabled } : {}),\n }));\n _props.current = props;\n const fieldState = React.useMemo(() => Object.defineProperties({}, {\n invalid: {\n enumerable: true,\n get: () => !!get(formState.errors, name),\n },\n isDirty: {\n enumerable: true,\n get: () => !!get(formState.dirtyFields, name),\n },\n isTouched: {\n enumerable: true,\n get: () => !!get(formState.touchedFields, name),\n },\n isValidating: {\n enumerable: true,\n get: () => !!get(formState.validatingFields, name),\n },\n error: {\n enumerable: true,\n get: () => get(formState.errors, name),\n },\n }), [formState, name]);\n const onChange = React.useCallback((event) => _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name: name,\n },\n type: EVENTS.CHANGE,\n }), [name]);\n const onBlur = React.useCallback(() => _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name: name,\n },\n type: EVENTS.BLUR,\n }), [name, control._formValues]);\n const ref = React.useCallback((elm) => {\n const field = get(control._fields, name);\n if (field && elm) {\n field._f.ref = {\n focus: () => elm.focus && elm.focus(),\n select: () => elm.select && elm.select(),\n setCustomValidity: (message) => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity(),\n };\n }\n }, [control._fields, name]);\n const field = React.useMemo(() => ({\n name,\n value,\n ...(isBoolean(disabled) || formState.disabled\n ? { disabled: formState.disabled || disabled }\n : {}),\n onChange,\n onBlur,\n ref,\n }), [name, disabled, formState.disabled, onChange, onBlur, ref, value]);\n React.useEffect(() => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n const previousName = _previousNameRef.current;\n if (previousName && previousName !== name && !isArrayField) {\n control.unregister(previousName);\n }\n control.register(name, {\n ..._props.current.rules,\n ...(isBoolean(_props.current.disabled)\n ? { disabled: _props.current.disabled }\n : {}),\n });\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field && field._f) {\n field._f.mount = value;\n }\n };\n updateMounted(name, true);\n if (_shouldUnregisterField) {\n const value = cloneObject(get(control._options.defaultValues, name, _props.current.defaultValue));\n set(control._defaultValues, name, value);\n if (isUndefined(get(control._formValues, name))) {\n set(control._formValues, name, value);\n }\n }\n !isArrayField && control.register(name);\n _previousNameRef.current = name;\n return () => {\n (isArrayField\n ? _shouldUnregisterField && !control._state.action\n : _shouldUnregisterField)\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n React.useEffect(() => {\n control._setDisabledField({\n disabled,\n name,\n });\n }, [disabled, name, control]);\n return React.useMemo(() => ({\n field,\n formState,\n fieldState,\n }), [field, formState, fieldState]);\n}\n\n/**\n * Component based on `useController` hook to work with controlled component.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usecontroller/controller) • [Demo](https://codesandbox.io/s/react-hook-form-v6-controller-ts-jwyzw) • [Video](https://www.youtube.com/watch?v=N2UNk_UCVyA)\n *\n * @param props - the path name to the form field value, and validation rules.\n *\n * @returns provide field handler functions, field and form state.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control } = useForm<FormValues>({\n * defaultValues: {\n * test: \"\"\n * }\n * });\n *\n * return (\n * <form>\n * <Controller\n * control={control}\n * name=\"test\"\n * render={({ field: { onChange, onBlur, value, ref }, formState, fieldState }) => (\n * <>\n * <input\n * onChange={onChange} // send value to hook form\n * onBlur={onBlur} // notify when input is touched\n * value={value} // return updated value\n * ref={ref} // set ref for focus management\n * />\n * <p>{formState.isSubmitted ? \"submitted\" : \"\"}</p>\n * <p>{fieldState.isTouched ? \"touched\" : \"\"}</p>\n * </>\n * )}\n * />\n * </form>\n * );\n * }\n * ```\n */\nconst Controller = (props) => props.render(useController(props));\n\nconst flatten = (obj) => {\n const output = {};\n for (const key of Object.keys(obj)) {\n if (isObjectType(obj[key]) && obj[key] !== null) {\n const nested = flatten(obj[key]);\n for (const nestedKey of Object.keys(nested)) {\n output[`${key}.${nestedKey}`] = nested[nestedKey];\n }\n }\n else {\n output[key] = obj[key];\n }\n }\n return output;\n};\n\nconst POST_REQUEST = 'post';\n/**\n * Form component to manage submission.\n *\n * @param props - to setup submission detail. {@link FormProps}\n *\n * @returns form component or headless render prop.\n *\n * @example\n * ```tsx\n * function App() {\n * const { control, formState: { errors } } = useForm();\n *\n * return (\n * <Form action=\"/api\" control={control}>\n * <input {...register(\"name\")} />\n * <p>{errors?.root?.server && 'Server error'}</p>\n * <button>Submit</button>\n * </Form>\n * );\n * }\n * ```\n */\nfunction Form(props) {\n const methods = useFormContext();\n const [mounted, setMounted] = React.useState(false);\n const { control = methods.control, onSubmit, children, action, method = POST_REQUEST, headers, encType, onError, render, onSuccess, validateStatus, ...rest } = props;\n const submit = async (event) => {\n let hasError = false;\n let type = '';\n await control.handleSubmit(async (data) => {\n const formData = new FormData();\n let formDataJson = '';\n try {\n formDataJson = JSON.stringify(data);\n }\n catch (_a) { }\n const flattenFormValues = flatten(control._formValues);\n for (const key in flattenFormValues) {\n formData.append(key, flattenFormValues[key]);\n }\n if (onSubmit) {\n await onSubmit({\n data,\n event,\n method,\n formData,\n formDataJson,\n });\n }\n if (action) {\n try {\n const shouldStringifySubmissionData = [\n headers && headers['Content-Type'],\n encType,\n ].some((value) => value && value.includes('json'));\n const response = await fetch(String(action), {\n method,\n headers: {\n ...headers,\n ...(encType && encType !== 'multipart/form-data'\n ? { 'Content-Type': encType }\n : {}),\n },\n body: shouldStringifySubmissionData ? formDataJson : formData,\n });\n if (response &&\n (validateStatus\n ? !validateStatus(response.status)\n : response.status < 200 || response.status >= 300)) {\n hasError = true;\n onError && onError({ response });\n type = String(response.status);\n }\n else {\n onSuccess && onSuccess({ response });\n }\n }\n catch (error) {\n hasError = true;\n onError && onError({ error });\n }\n }\n })(event);\n if (hasError && props.control) {\n props.control._subjects.state.next({\n isSubmitSuccessful: false,\n });\n props.control.setError('root.server', {\n type,\n });\n }\n };\n React.useEffect(() => {\n setMounted(true);\n }, []);\n return render ? (React.createElement(React.Fragment, null, render({\n submit,\n }))) : (React.createElement(\"form\", { noValidate: mounted, action: action, method: method, encType: encType, onSubmit: submit, ...rest }, children));\n}\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria\n ? {\n ...errors[name],\n types: {\n ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true,\n },\n }\n : {};\n\nvar convertToArrayPayload = (value) => (Array.isArray(value) ? value : [value]);\n\nvar createSubject = () => {\n let _observers = [];\n const next = (value) => {\n for (const observer of _observers) {\n observer.next && observer.next(value);\n }\n };\n const subscribe = (observer) => {\n _observers.push(observer);\n return {\n unsubscribe: () => {\n _observers = _observers.filter((o) => o !== observer);\n },\n };\n };\n const unsubscribe = () => {\n _observers = [];\n };\n return {\n get observers() {\n return _observers;\n },\n next,\n subscribe,\n unsubscribe,\n };\n};\n\nfunction extractFormValues(fieldsState, formValues) {\n const values = {};\n for (const key in fieldsState) {\n if (fieldsState.hasOwnProperty(key)) {\n const fieldState = fieldsState[key];\n const fieldValue = formValues[key];\n if (fieldState && isObject(fieldState) && fieldValue) {\n const nestedFieldsState = extractFormValues(fieldState, fieldValue);\n if (isObject(nestedFieldsState)) {\n values[key] = nestedFieldsState;\n }\n }\n else if (fieldsState[key]) {\n values[key] = fieldValue;\n }\n }\n }\n return values;\n}\n\nvar isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;\n\nvar isFileInput = (element) => element.type === 'file';\n\nvar isFunction = (value) => typeof value === 'function';\n\nvar isHTMLElement = (value) => {\n if (!isWeb) {\n return false;\n }\n const owner = value ? value.ownerDocument : 0;\n return (value instanceof\n (owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement));\n};\n\nvar isMultipleSelect = (element) => element.type === `select-multiple`;\n\nvar isRadioInput = (element) => element.type === 'radio';\n\nvar isRadioOrCheckbox = (ref) => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = (ref) => isHTMLElement(ref) && ref.isConnected;\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n return object;\n}\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (obj.hasOwnProperty(key) && !isUndefined(obj[key])) {\n return false;\n }\n }\n return true;\n}\nfunction unset(object, path) {\n const paths = Array.isArray(path)\n ? path\n : isKey(path)\n ? [path]\n : stringToPath(path);\n const childObject = paths.length === 1 ? object : baseGet(object, paths);\n const index = paths.length - 1;\n const key = paths[index];\n if (childObject) {\n delete childObject[key];\n }\n if (index !== 0 &&\n ((isObject(childObject) && isEmptyObject(childObject)) ||\n (Array.isArray(childObject) && isEmptyArray(childObject)))) {\n unset(object, paths.slice(0, -1));\n }\n return object;\n}\n\nvar objectHasFunction = (data) => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n return false;\n};\n\nfunction isTraversable(value) {\n return Array.isArray(value) || (isObject(value) && !objectHasFunction(value));\n}\nfunction markFieldsDirty(data, fields = {}) {\n for (const key in data) {\n if (isTraversable(data[key])) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n }\n else if (!isUndefined(data[key])) {\n fields[key] = true;\n }\n }\n return fields;\n}\nfunction getDirtyFields(data, formValues, dirtyFieldsFromValues) {\n if (!dirtyFieldsFromValues) {\n dirtyFieldsFromValues = markFieldsDirty(formValues);\n }\n for (const key in data) {\n if (isTraversable(data[key])) {\n if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = markFieldsDirty(data[key], Array.isArray(data[key]) ? [] : {});\n }\n else {\n getDirtyFields(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n }\n else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n return dirtyFieldsFromValues;\n}\n\nconst defaultResult = {\n value: false,\n isValid: false,\n};\nconst validResult = { value: true, isValid: true };\nvar getCheckboxValue = (options) => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options\n .filter((option) => option && option.checked && !option.disabled)\n .map((option) => option.value);\n return { value: values, isValid: !!values.length };\n }\n return options[0].checked && !options[0].disabled\n ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value)\n ? isUndefined(options[0].value) || options[0].value === ''\n ? validResult\n : { value: options[0].value, isValid: true }\n : validResult\n : defaultResult;\n }\n return defaultResult;\n};\n\nvar getFieldValueAs = (value, { valueAsNumber, valueAsDate, setValueAs }) => isUndefined(value)\n ? value\n : valueAsNumber\n ? value === ''\n ? NaN\n : value\n ? +value\n : value\n : valueAsDate && isString(value)\n ? new Date(value)\n : setValueAs\n ? setValueAs(value)\n : value;\n\nconst defaultReturn = {\n isValid: false,\n value: null,\n};\nvar getRadioValue = (options) => Array.isArray(options)\n ? options.reduce((previous, option) => option && option.checked && !option.disabled\n ? {\n isValid: true,\n value: option.value,\n }\n : previous, defaultReturn)\n : defaultReturn;\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n if (isFileInput(ref)) {\n return ref.files;\n }\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map(({ value }) => value);\n }\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation,\n };\n};\n\nvar isRegex = (value) => value instanceof RegExp;\n\nvar getRuleValue = (rule) => isUndefined(rule)\n ? rule\n : isRegex(rule)\n ? rule.source\n : isObject(rule)\n ? isRegex(rule.value)\n ? rule.value.source\n : rule.value\n : rule;\n\nvar getValidationModes = (mode) => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n\nconst ASYNC_FUNCTION = 'AsyncFunction';\nvar hasPromiseValidation = (fieldReference) => !!fieldReference &&\n !!fieldReference.validate &&\n !!((isFunction(fieldReference.validate) &&\n fieldReference.validate.constructor.name === ASYNC_FUNCTION) ||\n (isObject(fieldReference.validate) &&\n Object.values(fieldReference.validate).find((validateFunction) => validateFunction.constructor.name === ASYNC_FUNCTION)));\n\nvar hasValidation = (options) => options.mount &&\n (options.required ||\n options.min ||\n options.max ||\n options.maxLength ||\n options.minLength ||\n options.pattern ||\n options.validate);\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent &&\n (_names.watchAll ||\n _names.watch.has(name) ||\n [..._names.watch].some((watchName) => name.startsWith(watchName) &&\n /^\\.\\w+/.test(name.slice(watchName.length))));\n\nconst iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n if (field) {\n const { _f, ...currentField } = field;\n if (_f) {\n if (_f.refs && _f.refs[0] && action(_f.refs[0], key) && !abortEarly) {\n return true;\n }\n else if (_f.ref && action(_f.ref, _f.name) && !abortEarly) {\n return true;\n }\n else {\n if (iterateFieldsByAction(currentField, action)) {\n break;\n }\n }\n }\n else if (isObject(currentField)) {\n if (iterateFieldsByAction(currentField, action)) {\n break;\n }\n }\n }\n }\n return;\n};\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n if (error || isKey(name)) {\n return {\n error,\n name,\n };\n }\n const names = name.split('.');\n while (names.length) {\n const fieldName = names.join('.');\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n if (field && !Array.isArray(field) && name !== fieldName) {\n return { name };\n }\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError,\n };\n }\n if (foundError && foundError.root && foundError.root.type) {\n return {\n name: `${fieldName}.root`,\n error: foundError.root,\n };\n }\n names.pop();\n }\n return {\n name,\n };\n}\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {\n updateFormState(formStateData);\n const { name, ...formState } = formStateData;\n return (isEmptyObject(formState) ||\n Object.keys(formState).length >= Object.keys(_proxyFormState).length ||\n Object.keys(formState).find((key) => _proxyFormState[key] ===\n (!isRoot || VALIDATION_MODE.all)));\n};\n\nvar shouldSubscribeByName = (name, signalName, exact) => !name ||\n !signalName ||\n name === signalName ||\n convertToArrayPayload(name).some((currentName) => currentName &&\n (exact\n ? currentName === signalName\n : currentName.startsWith(signalName) ||\n signalName.startsWith(currentName)));\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n }\n else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n }\n else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n }\n else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = convertToArrayPayload(get(errors, name));\n set(fieldArrayErrors, 'root', error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nfunction getValidateError(result, ref, type = 'validate') {\n if (isString(result) ||\n (Array.isArray(result) && result.every(isString)) ||\n (isBoolean(result) && !result)) {\n return {\n type,\n message: isString(result) ? result : '',\n ref,\n };\n }\n}\n\nvar getValueAndMessage = (validationData) => isObject(validationData) && !isRegex(validationData)\n ? validationData\n : {\n value: validationData,\n message: '',\n };\n\nvar validateField = async (field, disabledFieldNames, formValues, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const { ref, refs, required, maxLength, minLength, min, max, pattern, validate, name, valueAsNumber, mount, } = field._f;\n const inputValue = get(formValues, name);\n if (!mount || disabledFieldNames.has(name)) {\n return {};\n }\n const inputRef = refs ? refs[0] : ref;\n const setCustomValidity = (message) => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? '' : message || '');\n inputRef.reportValidity();\n }\n };\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox = isRadio || isCheckBox;\n const isEmpty = ((valueAsNumber || isFileInput(ref)) &&\n isUndefined(ref.value) &&\n isUndefined(inputValue)) ||\n (isHTMLElement(ref) && ref.value === '') ||\n inputValue === '' ||\n (Array.isArray(inputValue) && !inputValue.length);\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message),\n };\n };\n if (isFieldArray\n ? !Array.isArray(inputValue) || !inputValue.length\n : required &&\n ((!isRadioOrCheckbox && (isEmpty || isNullOrUndefined(inputValue))) ||\n (isBoolean(inputValue) && !inputValue) ||\n (isCheckBox && !getCheckboxValue(refs).isValid) ||\n (isRadio && !getRadioValue(refs).isValid))) {\n const { value, message } = isString(required)\n ? { value: !!required, message: required }\n : getValueAndMessage(required);\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber ||\n (inputValue ? +inputValue : inputValue);\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n }\n else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n const convertTimeToDate = (time) => new Date(new Date().toDateString() + ' ' + time);\n const isTime = ref.type == 'time';\n const isWeek = ref.type == 'week';\n if (isString(maxOutput.value) && inputValue) {\n exceedMax = isTime\n ? convertTimeToDate(inputValue) > convertTimeToDate(maxOutput.value)\n : isWeek\n ? inputValue > maxOutput.value\n : valueDate > new Date(maxOutput.value);\n }\n if (isString(minOutput.value) && inputValue) {\n exceedMin = isTime\n ? convertTimeToDate(inputValue) < convertTimeToDate(minOutput.value)\n : isWeek\n ? inputValue < minOutput.value\n : valueDate < new Date(minOutput.value);\n }\n }\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if ((maxLength || minLength) &&\n !isEmpty &&\n (isString(inputValue) || (isFieldArray && Array.isArray(inputValue)))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) &&\n inputValue.length > +maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) &&\n inputValue.length < +minLengthOutput.value;\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n if (pattern && !isEmpty && isString(inputValue)) {\n const { value: patternValue, message } = getValueAndMessage(pattern);\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue, formValues);\n const validateError = getValidateError(result, inputRef);\n if (validateError) {\n error[name] = {\n ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message),\n };\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n }\n else if (isObject(validate)) {\n let validationResult = {};\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n const validateError = getValidateError(await validate[key](inputValue, formValues), inputRef, key);\n if (validateError) {\n validationResult = {\n ...validateError,\n ...appendErrorsCurry(key, validateError.message),\n };\n setCustomValidity(validateError.message);\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult,\n };\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n setCustomValidity(true);\n return error;\n};\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true,\n};\nfunction createFormControl(props = {}) {\n let _options = {\n ...defaultOptions,\n ...props,\n };\n let _formState = {\n submitCount: 0,\n isDirty: false,\n isReady: false,\n isLoading: isFunction(_options.defaultValues),\n isValidating: false,\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n touchedFields: {},\n dirtyFields: {},\n validatingFields: {},\n errors: _options.errors || {},\n disabled: _options.disabled || false,\n };\n let _fields = {};\n let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)\n ? cloneObject(_options.defaultValues || _options.values) || {}\n : {};\n let _formValues = _options.shouldUnregister\n ? {}\n : cloneObject(_defaultValues);\n let _state = {\n action: false,\n mount: false,\n watch: false,\n };\n let _names = {\n mount: new Set(),\n disabled: new Set(),\n unMount: new Set(),\n array: new Set(),\n watch: new Set(),\n };\n let delayErrorCallback;\n let timer = 0;\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n validatingFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false,\n };\n let _proxySubscribeFormState = {\n ..._proxyFormState,\n };\n const _subjects = {\n array: createSubject(),\n state: createSubject(),\n };\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n const debounce = (callback) => (wait) => {\n clearTimeout(timer);\n timer = setTimeout(callback, wait);\n };\n const _setValid = async (shouldUpdateValid) => {\n if (!_options.disabled &&\n (_proxyFormState.isValid ||\n _proxySubscribeFormState.isValid ||\n shouldUpdateValid)) {\n const isValid = _options.resolver\n ? isEmptyObject((await _runSchema()).errors)\n : await executeBuiltInValidation(_fields, true);\n if (isValid !== _formState.isValid) {\n _subjects.state.next({\n isValid,\n });\n }\n }\n };\n const _updateIsValidating = (names, isValidating) => {\n if (!_options.disabled &&\n (_proxyFormState.isValidating ||\n _proxyFormState.validatingFields ||\n _proxySubscribeFormState.isValidating ||\n _proxySubscribeFormState.validatingFields)) {\n (names || Array.from(_names.mount)).forEach((name) => {\n if (name) {\n isValidating\n ? set(_formState.validatingFields, name, isValidating)\n : unset(_formState.validatingFields, name);\n }\n });\n _subjects.state.next({\n validatingFields: _formState.validatingFields,\n isValidating: !isEmptyObject(_formState.validatingFields),\n });\n }\n };\n const _setFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {\n if (args && method && !_options.disabled) {\n _state.action = true;\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n if (shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n if ((_proxyFormState.touchedFields ||\n _proxySubscribeFormState.touchedFields) &&\n shouldUpdateFieldsAndState &&\n Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n if (_proxyFormState.dirtyFields || _proxySubscribeFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n _subjects.state.next({\n name,\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid,\n });\n }\n else {\n set(_formValues, name, values);\n }\n };\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n _subjects.state.next({\n errors: _formState.errors,\n });\n };\n const _setErrors = (errors) => {\n _formState.errors = errors;\n _subjects.state.next({\n errors: _formState.errors,\n isValid: false,\n });\n };\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) ||\n (ref && ref.defaultChecked) ||\n shouldSkipSetValueAs\n ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f))\n : setFieldValue(name, defaultValue);\n _state.mount && _setValid();\n }\n };\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let shouldUpdateField = false;\n let isPreviousDirty = false;\n const output = {\n name,\n };\n if (!_options.disabled) {\n if (!isBlurEvent || shouldDirty) {\n if (_proxyFormState.isDirty || _proxySubscribeFormState.isDirty) {\n isPreviousDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n shouldUpdateField = isPreviousDirty !== output.isDirty;\n }\n const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue);\n isPreviousDirty = !!get(_formState.dirtyFields, name);\n isCurrentFieldPristine\n ? unset(_formState.dirtyFields, name)\n : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n shouldUpdateField =\n shouldUpdateField ||\n ((_proxyFormState.dirtyFields ||\n _proxySubscribeFormState.dirtyFields) &&\n isPreviousDirty !== !isCurrentFieldPristine);\n }\n if (isBlurEvent) {\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n if (!isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n shouldUpdateField =\n shouldUpdateField ||\n ((_proxyFormState.touchedFields ||\n _proxySubscribeFormState.touchedFields) &&\n isPreviousFieldTouched !== isBlurEvent);\n }\n }\n shouldUpdateField && shouldRender && _subjects.state.next(output);\n }\n return shouldUpdateField ? output : {};\n };\n const shouldRenderByError = (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = (_proxyFormState.isValid || _proxySubscribeFormState.isValid) &&\n isBoolean(isValid) &&\n _formState.isValid !== isValid;\n if (_options.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(_options.delayError);\n }\n else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) ||\n !isEmptyObject(fieldState) ||\n shouldUpdateValid) {\n const updatedFormState = {\n ...fieldState,\n ...(shouldUpdateValid && isBoolean(isValid) ? { isValid } : {}),\n errors: _formState.errors,\n name,\n };\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n _subjects.state.next(updatedFormState);\n }\n };\n const _runSchema = async (name) => {\n _updateIsValidating(name, true);\n const result = await _options.resolver(_formValues, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation));\n _updateIsValidating(name);\n return result;\n };\n const executeSchemaAndUpdateState = async (names) => {\n const { errors } = await _runSchema(names);\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error\n ? set(_formState.errors, name, error)\n : unset(_formState.errors, name);\n }\n }\n else {\n _formState.errors = errors;\n }\n return errors;\n };\n const executeBuiltInValidation = async (fields, shouldOnlyCheckValid, context = {\n valid: true,\n }) => {\n for (const name in fields) {\n const field = fields[name];\n if (field) {\n const { _f, ...fieldValue } = field;\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n const isPromiseFunction = field._f && hasPromiseValidation(field._f);\n if (isPromiseFunction && _proxyFormState.validatingFields) {\n _updateIsValidating([_f.name], true);\n }\n const fieldError = await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation && !shouldOnlyCheckValid, isFieldArrayRoot);\n if (isPromiseFunction && _proxyFormState.validatingFields) {\n _updateIsValidating([_f.name]);\n }\n if (fieldError[_f.name]) {\n context.valid = false;\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n !shouldOnlyCheckValid &&\n (get(fieldError, _f.name)\n ? isFieldArrayRoot\n ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name)\n : set(_formState.errors, _f.name, fieldError[_f.name])\n : unset(_formState.errors, _f.name));\n }\n !isEmptyObject(fieldValue) &&\n (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n return context.valid;\n };\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field &&\n (field._f.refs\n ? field._f.refs.every((ref) => !live(ref))\n : !live(field._f.ref)) &&\n unregister(name);\n }\n _names.unMount = new Set();\n };\n const _getDirty = (name, data) => !_options.disabled &&\n (name && data && set(_formValues, name, data),\n !deepEqual(getValues(), _defaultValues));\n const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {\n ...(_state.mount\n ? _formValues\n : isUndefined(defaultValue)\n ? _defaultValues\n : isString(names)\n ? { [names]: defaultValue }\n : defaultValue),\n }, isGlobal, defaultValue);\n const _getFieldArray = (name) => compact(get(_state.mount ? _formValues : _defaultValues, name, _options.shouldUnregister ? get(_defaultValues, name, []) : []));\n const setFieldValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n let fieldValue = value;\n if (field) {\n const fieldReference = field._f;\n if (fieldReference) {\n !fieldReference.disabled &&\n set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue =\n isHTMLElement(fieldReference.ref) && isNullOrUndefined(value)\n ? ''\n : value;\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach((optionRef) => (optionRef.selected = fieldValue.includes(optionRef.value)));\n }\n else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.forEach((checkboxRef) => {\n if (!checkboxRef.defaultChecked || !checkboxRef.disabled) {\n if (Array.isArray(fieldValue)) {\n checkboxRef.checked = !!fieldValue.find((data) => data === checkboxRef.value);\n }\n else {\n checkboxRef.checked =\n fieldValue === checkboxRef.value || !!fieldValue;\n }\n }\n });\n }\n else {\n fieldReference.refs.forEach((radioRef) => (radioRef.checked = radioRef.value === fieldValue));\n }\n }\n else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = '';\n }\n else {\n fieldReference.ref.value = fieldValue;\n if (!fieldReference.ref.type) {\n _subjects.state.next({\n name,\n values: cloneObject(_formValues),\n });\n }\n }\n }\n }\n (options.shouldDirty || options.shouldTouch) &&\n updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n if (!value.hasOwnProperty(fieldKey)) {\n return;\n }\n const fieldValue = value[fieldKey];\n const fieldName = name + '.' + fieldKey;\n const field = get(_fields, fieldName);\n (_names.array.has(name) ||\n isObject(fieldValue) ||\n (field && !field._f)) &&\n !isDateObject(fieldValue)\n ? setValues(fieldName, fieldValue, options)\n : setFieldValue(fieldName, fieldValue, options);\n }\n };\n const setValue = (name, value, options = {}) => {\n const field = get(_fields, name);\n const isFieldArray = _names.array.has(name);\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: cloneObject(_formValues),\n });\n if ((_proxyFormState.isDirty ||\n _proxyFormState.dirtyFields ||\n _proxySubscribeFormState.isDirty ||\n _proxySubscribeFormState.dirtyFields) &&\n options.shouldDirty) {\n _subjects.state.next({\n name,\n dirtyFields: getDirtyFields(_defaultValues, _formValues),\n isDirty: _getDirty(name, cloneValue),\n });\n }\n }\n else {\n field && !field._f && !isNullOrUndefined(cloneValue)\n ? setValues(name, cloneValue, options)\n : setFieldValue(name, cloneValue, options);\n }\n isWatched(name, _names) && _subjects.state.next({ ..._formState, name });\n _subjects.state.next({\n name: _state.mount ? name : undefined,\n values: cloneObject(_formValues),\n });\n };\n const onChange = async (event) => {\n _state.mount = true;\n const target = event.target;\n let name = target.name;\n let isFieldValueUpdated = true;\n const field = get(_fields, name);\n const _updateIsFieldValueUpdated = (fieldValue) => {\n isFieldValueUpdated =\n Number.isNaN(fieldValue) ||\n (isDateObject(fieldValue) && isNaN(fieldValue.getTime())) ||\n deepEqual(fieldValue, get(_formValues, name, fieldValue));\n };\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n if (field) {\n let error;\n let isValid;\n const fieldValue = target.type\n ? getFieldValue(field._f)\n : getEventValue(event);\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = (!hasValidation(field._f) &&\n !_options.resolver &&\n !get(_formState.errors, name) &&\n !field._f.deps) ||\n skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n if (isBlurEvent) {\n if (!target || !target.readOnly) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n }\n }\n else if (field._f.onChange) {\n field._f.onChange(event);\n }\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent &&\n _subjects.state.next({\n name,\n type: event.type,\n values: cloneObject(_formValues),\n });\n if (shouldSkipValidation) {\n if (_proxyFormState.isValid || _proxySubscribeFormState.isValid) {\n if (_options.mode === 'onBlur') {\n if (isBlurEvent) {\n _setValid();\n }\n }\n else if (!isBlurEvent) {\n _setValid();\n }\n }\n return (shouldRender &&\n _subjects.state.next({ name, ...(watched ? {} : fieldState) }));\n }\n !isBlurEvent && watched && _subjects.state.next({ ..._formState });\n if (_options.resolver) {\n const { errors } = await _runSchema([name]);\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n }\n }\n else {\n _updateIsValidating([name], true);\n error = (await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n _updateIsValidating([name]);\n _updateIsFieldValueUpdated(fieldValue);\n if (isFieldValueUpdated) {\n if (error) {\n isValid = false;\n }\n else if (_proxyFormState.isValid ||\n _proxySubscribeFormState.isValid) {\n isValid = await executeBuiltInValidation(_fields, true);\n }\n }\n }\n if (isFieldValueUpdated) {\n field._f.deps &&\n (!Array.isArray(field._f.deps) || field._f.deps.length > 0) &&\n trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n }\n };\n const _focusInput = (ref, key) => {\n if (get(_formState.errors, key) && ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n };\n const trigger = async (name, options = {}) => {\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name\n ? !fieldNames.some((name) => get(errors, name))\n : isValid;\n }\n else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async (fieldName) => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? { [fieldName]: field } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _setValid();\n }\n else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n _subjects.state.next({\n ...(!isString(name) ||\n ((_proxyFormState.isValid || _proxySubscribeFormState.isValid) &&\n isValid !== _formState.isValid)\n ? {}\n : { name }),\n ...(_options.resolver || !name ? { isValid } : {}),\n errors: _formState.errors,\n });\n options.shouldFocus &&\n !validationResult &&\n iterateFieldsByAction(_fields, _focusInput, name ? fieldNames : _names.mount);\n return validationResult;\n };\n const getValues = (fieldNames, config) => {\n let values = {\n ...(_state.mount ? _formValues : _defaultValues),\n };\n if (config) {\n values = extractFormValues(config.dirtyFields ? _formState.dirtyFields : _formState.touchedFields, values);\n }\n return isUndefined(fieldNames)\n ? values\n : isString(fieldNames)\n ? get(values, fieldNames)\n : fieldNames.map((name) => get(values, name));\n };\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n error: get((formState || _formState).errors, name),\n isValidating: !!get(_formState.validatingFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n });\n const clearErrors = (name) => {\n name &&\n convertToArrayPayload(name).forEach((inputName) => unset(_formState.errors, inputName));\n _subjects.state.next({\n errors: name ? _formState.errors : {},\n });\n };\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, { _f: {} })._f || {}).ref;\n const currentError = get(_formState.errors, name) || {};\n // Don't override existing error messages elsewhere in the object tree.\n const { ref: currentRef, message, type, ...restOfErrorTree } = currentError;\n set(_formState.errors, name, {\n ...restOfErrorTree,\n ...error,\n ref,\n });\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false,\n });\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n const watch = (name, defaultValue) => isFunction(name)\n ? _subjects.state.subscribe({\n next: (payload) => 'values' in payload &&\n name(_getWatch(undefined, defaultValue), payload),\n })\n : _getWatch(name, defaultValue, true);\n const _subscribe = (props) => _subjects.state.subscribe({\n next: (formState) => {\n if (shouldSubscribeByName(props.name, formState.name, props.exact) &&\n shouldRenderFormState(formState, props.formState || _proxyFormState, _setFormState, props.reRenderRoot)) {\n props.callback({\n values: { ..._formValues },\n ..._formState,\n ...formState,\n defaultValues: _defaultValues,\n });\n }\n },\n }).unsubscribe;\n const subscribe = (props) => {\n _state.mount = true;\n _proxySubscribeFormState = {\n ..._proxySubscribeFormState,\n ...props.formState,\n };\n return _subscribe({\n ...props,\n formState: _proxySubscribeFormState,\n });\n };\n const unregister = (name, options = {}) => {\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n _names.array.delete(fieldName);\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !options.keepIsValidating &&\n unset(_formState.validatingFields, fieldName);\n !_options.shouldUnregister &&\n !options.keepDefaultValue &&\n unset(_defaultValues, fieldName);\n }\n _subjects.state.next({\n values: cloneObject(_formValues),\n });\n _subjects.state.next({\n ..._formState,\n ...(!options.keepDirty ? {} : { isDirty: _getDirty() }),\n });\n !options.keepIsValid && _setValid();\n };\n const _setDisabledField = ({ disabled, name, }) => {\n if ((isBoolean(disabled) && _state.mount) ||\n !!disabled ||\n _names.disabled.has(name)) {\n disabled ? _names.disabled.add(name) : _names.disabled.delete(name);\n }\n };\n const register = (name, options = {}) => {\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled) || isBoolean(_options.disabled);\n set(_fields, name, {\n ...(field || {}),\n _f: {\n ...(field && field._f ? field._f : { ref: { name } }),\n name,\n mount: true,\n ...options,\n },\n });\n _names.mount.add(name);\n if (field) {\n _setDisabledField({\n disabled: isBoolean(options.disabled)\n ? options.disabled\n : _options.disabled,\n name,\n });\n }\n else {\n updateValidAndValue(name, true, options.value);\n }\n return {\n ...(disabledIsDefined\n ? { disabled: options.disabled || _options.disabled }\n : {}),\n ...(_options.progressive\n ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern),\n }\n : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: (ref) => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value)\n ? ref.querySelectorAll\n ? ref.querySelectorAll('input,select,textarea')[0] || ref\n : ref\n : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n if (radioOrCheckbox\n ? refs.find((option) => option === fieldRef)\n : fieldRef === field._f.ref) {\n return;\n }\n set(_fields, name, {\n _f: {\n ...field._f,\n ...(radioOrCheckbox\n ? {\n refs: [\n ...refs.filter(live),\n fieldRef,\n ...(Array.isArray(get(_defaultValues, name)) ? [{}] : []),\n ],\n ref: { type: fieldRef.type, name },\n }\n : { ref: fieldRef }),\n },\n });\n updateValidAndValue(name, false, undefined, fieldRef);\n }\n else {\n field = get(_fields, name, {});\n if (field._f) {\n field._f.mount = false;\n }\n (_options.shouldUnregister || options.shouldUnregister) &&\n !(isNameInFieldArray(_names.array, name) && _state.action) &&\n _names.unMount.add(name);\n }\n },\n };\n };\n const _focusError = () => _options.shouldFocusError &&\n iterateFieldsByAction(_fields, _focusInput, _names.mount);\n const _disableForm = (disabled) => {\n if (isBoolean(disabled)) {\n _subjects.state.next({ disabled });\n iterateFieldsByAction(_fields, (ref, name) => {\n const currentField = get(_fields, name);\n if (currentField) {\n ref.disabled = currentField._f.disabled || disabled;\n if (Array.isArray(currentField._f.refs)) {\n currentField._f.refs.forEach((inputRef) => {\n inputRef.disabled = currentField._f.disabled || disabled;\n });\n }\n }\n }, 0, false);\n }\n };\n const handleSubmit = (onValid, onInvalid) => async (e) => {\n let onValidError = undefined;\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist &&\n e.persist();\n }\n let fieldValues = cloneObject(_formValues);\n _subjects.state.next({\n isSubmitting: true,\n });\n if (_options.resolver) {\n const { errors, values } = await _runSchema();\n _formState.errors = errors;\n fieldValues = cloneObject(values);\n }\n else {\n await executeBuiltInValidation(_fields);\n }\n if (_names.disabled.size) {\n for (const name of _names.disabled) {\n unset(fieldValues, name);\n }\n }\n unset(_formState.errors, 'root');\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n });\n try {\n await onValid(fieldValues, e);\n }\n catch (error) {\n onValidError = error;\n }\n }\n else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors }, e);\n }\n _focusError();\n setTimeout(_focusError);\n }\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors) && !onValidError,\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors,\n });\n if (onValidError) {\n throw onValidError;\n }\n };\n const resetField = (name, options = {}) => {\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, cloneObject(get(_defaultValues, name)));\n }\n else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, cloneObject(options.defaultValue));\n }\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue\n ? _getDirty(name, cloneObject(get(_defaultValues, name)))\n : _getDirty();\n }\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _setValid();\n }\n _subjects.state.next({ ..._formState });\n }\n };\n const _reset = (formValues, keepStateOptions = {}) => {\n const updatedValues = formValues ? cloneObject(formValues) : _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const isEmptyResetValues = isEmptyObject(formValues);\n const values = isEmptyResetValues ? _defaultValues : cloneUpdatedValues;\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues) {\n const fieldsToCheck = new Set([\n ..._names.mount,\n ...Object.keys(getDirtyFields(_defaultValues, _formValues)),\n ]);\n for (const fieldName of Array.from(fieldsToCheck)) {\n get(_formState.dirtyFields, fieldName)\n ? set(values, fieldName, get(_formValues, fieldName))\n : setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs)\n ? field._f.refs[0]\n : field._f.ref;\n if (isHTMLElement(fieldReference)) {\n const form = fieldReference.closest('form');\n if (form) {\n form.reset();\n break;\n }\n }\n }\n }\n }\n if (keepStateOptions.keepFieldsRef) {\n for (const fieldName of _names.mount) {\n setValue(fieldName, get(values, fieldName));\n }\n }\n else {\n _fields = {};\n }\n }\n _formValues = _options.shouldUnregister\n ? keepStateOptions.keepDefaultValues\n ? cloneObject(_defaultValues)\n : {}\n : cloneObject(values);\n _subjects.array.next({\n values: { ...values },\n });\n _subjects.state.next({\n values: { ...values },\n });\n }\n _names = {\n mount: keepStateOptions.keepDirtyValues ? _names.mount : new Set(),\n unMount: new Set(),\n array: new Set(),\n disabled: new Set(),\n watch: new Set(),\n watchAll: false,\n focus: '',\n };\n _state.mount =\n !_proxyFormState.isValid ||\n !!keepStateOptions.keepIsValid ||\n !!keepStateOptions.keepDirtyValues;\n _state.watch = !!_options.shouldUnregister;\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount\n ? _formState.submitCount\n : 0,\n isDirty: isEmptyResetValues\n ? false\n : keepStateOptions.keepDirty\n ? _formState.isDirty\n : !!(keepStateOptions.keepDefaultValues &&\n !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted\n ? _formState.isSubmitted\n : false,\n dirtyFields: isEmptyResetValues\n ? {}\n : keepStateOptions.keepDirtyValues\n ? keepStateOptions.keepDefaultValues && _formValues\n ? getDirtyFields(_defaultValues, _formValues)\n : _formState.dirtyFields\n : keepStateOptions.keepDefaultValues && formValues\n ? getDirtyFields(_defaultValues, formValues)\n : keepStateOptions.keepDirty\n ? _formState.dirtyFields\n : {},\n touchedFields: keepStateOptions.keepTouched\n ? _formState.touchedFields\n : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitSuccessful: keepStateOptions.keepIsSubmitSuccessful\n ? _formState.isSubmitSuccessful\n : false,\n isSubmitting: false,\n defaultValues: _defaultValues,\n });\n };\n const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)\n ? formValues(_formValues)\n : formValues, keepStateOptions);\n const setFocus = (name, options = {}) => {\n const field = get(_fields, name);\n const fieldReference = field && field._f;\n if (fieldReference) {\n const fieldRef = fieldReference.refs\n ? fieldReference.refs[0]\n : fieldReference.ref;\n if (fieldRef.focus) {\n fieldRef.focus();\n options.shouldSelect &&\n isFunction(fieldRef.select) &&\n fieldRef.select();\n }\n }\n };\n const _setFormState = (updatedFormState) => {\n _formState = {\n ..._formState,\n ...updatedFormState,\n };\n };\n const _resetDefaultValues = () => isFunction(_options.defaultValues) &&\n _options.defaultValues().then((values) => {\n reset(values, _options.resetOptions);\n _subjects.state.next({\n isLoading: false,\n });\n });\n const methods = {\n control: {\n register,\n unregister,\n getFieldState,\n handleSubmit,\n setError,\n _subscribe,\n _runSchema,\n _focusError,\n _getWatch,\n _getDirty,\n _setValid,\n _setFieldArray,\n _setDisabledField,\n _setErrors,\n _getFieldArray,\n _reset,\n _resetDefaultValues,\n _removeUnmounted,\n _disableForm,\n _subjects,\n _proxyFormState,\n get _fields() {\n return _fields;\n },\n get _formValues() {\n return _formValues;\n },\n get _state() {\n return _state;\n },\n set _state(value) {\n _state = value;\n },\n get _defaultValues() {\n return _defaultValues;\n },\n get _names() {\n return _names;\n },\n set _names(value) {\n _names = value;\n },\n get _formState() {\n return _formState;\n },\n get _options() {\n return _options;\n },\n set _options(value) {\n _options = {\n ..._options,\n ...value,\n };\n },\n },\n subscribe,\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState,\n };\n return {\n ...methods,\n formControl: methods,\n };\n}\n\nvar generateId = () => {\n if (typeof crypto !== 'undefined' && crypto.randomUUID) {\n return crypto.randomUUID();\n }\n const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16 + d) % 16 | 0;\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n};\n\nvar getFocusFieldName = (name, index, options = {}) => options.shouldFocus || isUndefined(options.shouldFocus)\n ? options.focusName ||\n `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.`\n : '';\n\nvar appendAt = (data, value) => [\n ...data,\n ...convertToArrayPayload(value),\n];\n\nvar fillEmptyArray = (value) => Array.isArray(value) ? value.map(() => undefined) : undefined;\n\nfunction insert(data, index, value) {\n return [\n ...data.slice(0, index),\n ...convertToArrayPayload(value),\n ...data.slice(index),\n ];\n}\n\nvar moveArrayAt = (data, from, to) => {\n if (!Array.isArray(data)) {\n return [];\n }\n if (isUndefined(data[to])) {\n data[to] = undefined;\n }\n data.splice(to, 0, data.splice(from, 1)[0]);\n return data;\n};\n\nvar prependAt = (data, value) => [\n ...convertToArrayPayload(value),\n ...convertToArrayPayload(data),\n];\n\nfunction removeAtIndexes(data, indexes) {\n let i = 0;\n const temp = [...data];\n for (const index of indexes) {\n temp.splice(index - i, 1);\n i++;\n }\n return compact(temp).length ? temp : [];\n}\nvar removeArrayAt = (data, index) => isUndefined(index)\n ? []\n : removeAtIndexes(data, convertToArrayPayload(index).sort((a, b) => a - b));\n\nvar swapArrayAt = (data, indexA, indexB) => {\n [data[indexA], data[indexB]] = [data[indexB], data[indexA]];\n};\n\nvar updateAt = (fieldValues, index, value) => {\n fieldValues[index] = value;\n return fieldValues;\n};\n\n/**\n * A custom hook that exposes convenient methods to perform operations with a list of dynamic inputs that need to be appended, updated, removed etc. • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn) • [Video](https://youtu.be/4MrbfGSFY2A)\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/usefieldarray) • [Demo](https://codesandbox.io/s/react-hook-form-usefieldarray-ssugn)\n *\n * @param props - useFieldArray props\n *\n * @returns methods - functions to manipulate with the Field Arrays (dynamic inputs) {@link UseFieldArrayReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, control, handleSubmit, reset, trigger, setError } = useForm({\n * defaultValues: {\n * test: []\n * }\n * });\n * const { fields, append } = useFieldArray({\n * control,\n * name: \"test\"\n * });\n *\n * return (\n * <form onSubmit={handleSubmit(data => console.log(data))}>\n * {fields.map((item, index) => (\n * <input key={item.id} {...register(`test.${index}.firstName`)} />\n * ))}\n * <button type=\"button\" onClick={() => append({ firstName: \"bill\" })}>\n * append\n * </button>\n * <input type=\"submit\" />\n * </form>\n * );\n * }\n * ```\n */\nfunction useFieldArray(props) {\n const methods = useFormContext();\n const { control = methods.control, name, keyName = 'id', shouldUnregister, rules, } = props;\n const [fields, setFields] = React.useState(control._getFieldArray(name));\n const ids = React.useRef(control._getFieldArray(name).map(generateId));\n const _actioned = React.useRef(false);\n control._names.array.add(name);\n React.useMemo(() => rules &&\n fields.length >= 0 &&\n control.register(name, rules), [control, name, fields.length, rules]);\n useIsomorphicLayoutEffect(() => control._subjects.array.subscribe({\n next: ({ values, name: fieldArrayName, }) => {\n if (fieldArrayName === name || !fieldArrayName) {\n const fieldValues = get(values, name);\n if (Array.isArray(fieldValues)) {\n setFields(fieldValues);\n ids.current = fieldValues.map(generateId);\n }\n }\n },\n }).unsubscribe, [control, name]);\n const updateValues = React.useCallback((updatedFieldArrayValues) => {\n _actioned.current = true;\n control._setFieldArray(name, updatedFieldArrayValues);\n }, [control, name]);\n const append = (value, options) => {\n const appendValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = appendAt(control._getFieldArray(name), appendValue);\n control._names.focus = getFocusFieldName(name, updatedFieldArrayValues.length - 1, options);\n ids.current = appendAt(ids.current, appendValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, appendAt, {\n argA: fillEmptyArray(value),\n });\n };\n const prepend = (value, options) => {\n const prependValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = prependAt(control._getFieldArray(name), prependValue);\n control._names.focus = getFocusFieldName(name, 0, options);\n ids.current = prependAt(ids.current, prependValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, prependAt, {\n argA: fillEmptyArray(value),\n });\n };\n const remove = (index) => {\n const updatedFieldArrayValues = removeArrayAt(control._getFieldArray(name), index);\n ids.current = removeArrayAt(ids.current, index);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n !Array.isArray(get(control._fields, name)) &&\n set(control._fields, name, undefined);\n control._setFieldArray(name, updatedFieldArrayValues, removeArrayAt, {\n argA: index,\n });\n };\n const insert$1 = (index, value, options) => {\n const insertValue = convertToArrayPayload(cloneObject(value));\n const updatedFieldArrayValues = insert(control._getFieldArray(name), index, insertValue);\n control._names.focus = getFocusFieldName(name, index, options);\n ids.current = insert(ids.current, index, insertValue.map(generateId));\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, insert, {\n argA: index,\n argB: fillEmptyArray(value),\n });\n };\n const swap = (indexA, indexB) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n swapArrayAt(updatedFieldArrayValues, indexA, indexB);\n swapArrayAt(ids.current, indexA, indexB);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, swapArrayAt, {\n argA: indexA,\n argB: indexB,\n }, false);\n };\n const move = (from, to) => {\n const updatedFieldArrayValues = control._getFieldArray(name);\n moveArrayAt(updatedFieldArrayValues, from, to);\n moveArrayAt(ids.current, from, to);\n updateValues(updatedFieldArrayValues);\n setFields(updatedFieldArrayValues);\n control._setFieldArray(name, updatedFieldArrayValues, moveArrayAt, {\n argA: from,\n argB: to,\n }, false);\n };\n const update = (index, value) => {\n const updateValue = cloneObject(value);\n const updatedFieldArrayValues = updateAt(control._getFieldArray(name), index, updateValue);\n ids.current = [...updatedFieldArrayValues].map((item, i) => !item || i === index ? generateId() : ids.current[i]);\n updateValues(updatedFieldArrayValues);\n setFields([...updatedFieldArrayValues]);\n control._setFieldArray(name, updatedFieldArrayValues, updateAt, {\n argA: index,\n argB: updateValue,\n }, true, false);\n };\n const replace = (value) => {\n const updatedFieldArrayValues = convertToArrayPayload(cloneObject(value));\n ids.current = updatedFieldArrayValues.map(generateId);\n updateValues([...updatedFieldArrayValues]);\n setFields([...updatedFieldArrayValues]);\n control._setFieldArray(name, [...updatedFieldArrayValues], (data) => data, {}, true, false);\n };\n React.useEffect(() => {\n control._state.action = false;\n isWatched(name, control._names) &&\n control._subjects.state.next({\n ...control._formState,\n });\n if (_actioned.current &&\n (!getValidationModes(control._options.mode).isOnSubmit ||\n control._formState.isSubmitted) &&\n !getValidationModes(control._options.reValidateMode).isOnSubmit) {\n if (control._options.resolver) {\n control._runSchema([name]).then((result) => {\n const error = get(result.errors, name);\n const existingError = get(control._formState.errors, name);\n if (existingError\n ? (!error && existingError.type) ||\n (error &&\n (existingError.type !== error.type ||\n existingError.message !== error.message))\n : error && error.type) {\n error\n ? set(control._formState.errors, name, error)\n : unset(control._formState.errors, name);\n control._subjects.state.next({\n errors: control._formState.errors,\n });\n }\n });\n }\n else {\n const field = get(control._fields, name);\n if (field &&\n field._f &&\n !(getValidationModes(control._options.reValidateMode).isOnSubmit &&\n getValidationModes(control._options.mode).isOnSubmit)) {\n validateField(field, control._names.disabled, control._formValues, control._options.criteriaMode === VALIDATION_MODE.all, control._options.shouldUseNativeValidation, true).then((error) => !isEmptyObject(error) &&\n control._subjects.state.next({\n errors: updateFieldArrayRootError(control._formState.errors, error, name),\n }));\n }\n }\n }\n control._subjects.state.next({\n name,\n values: cloneObject(control._formValues),\n });\n control._names.focus &&\n iterateFieldsByAction(control._fields, (ref, key) => {\n if (control._names.focus &&\n key.startsWith(control._names.focus) &&\n ref.focus) {\n ref.focus();\n return 1;\n }\n return;\n });\n control._names.focus = '';\n control._setValid();\n _actioned.current = false;\n }, [fields, name, control]);\n React.useEffect(() => {\n !get(control._formValues, name) && control._setFieldArray(name);\n return () => {\n const updateMounted = (name, value) => {\n const field = get(control._fields, name);\n if (field && field._f) {\n field._f.mount = value;\n }\n };\n control._options.shouldUnregister || shouldUnregister\n ? control.unregister(name)\n : updateMounted(name, false);\n };\n }, [name, control, keyName, shouldUnregister]);\n return {\n swap: React.useCallback(swap, [updateValues, name, control]),\n move: React.useCallback(move, [updateValues, name, control]),\n prepend: React.useCallback(prepend, [updateValues, name, control]),\n append: React.useCallback(append, [updateValues, name, control]),\n remove: React.useCallback(remove, [updateValues, name, control]),\n insert: React.useCallback(insert$1, [updateValues, name, control]),\n update: React.useCallback(update, [updateValues, name, control]),\n replace: React.useCallback(replace, [updateValues, name, control]),\n fields: React.useMemo(() => fields.map((field, index) => ({\n ...field,\n [keyName]: ids.current[index] || generateId(),\n })), [fields, keyName]),\n };\n}\n\n/**\n * Custom hook to manage the entire form.\n *\n * @remarks\n * [API](https://react-hook-form.com/docs/useform) • [Demo](https://codesandbox.io/s/react-hook-form-get-started-ts-5ksmm) • [Video](https://www.youtube.com/watch?v=RkXv4AXXC_4)\n *\n * @param props - form configuration and validation parameters.\n *\n * @returns methods - individual functions to manage the form state. {@link UseFormReturn}\n *\n * @example\n * ```tsx\n * function App() {\n * const { register, handleSubmit, watch, formState: { errors } } = useForm();\n * const onSubmit = data => console.log(data);\n *\n * console.log(watch(\"example\"));\n *\n * return (\n * <form onSubmit={handleSubmit(onSubmit)}>\n * <input defaultValue=\"test\" {...register(\"example\")} />\n * <input {...register(\"exampleRequired\", { required: true })} />\n * {errors.exampleRequired && <span>This field is required</span>}\n * <button>Submit</button>\n * </form>\n * );\n * }\n * ```\n */\nfunction useForm(props = {}) {\n const _formControl = React.useRef(undefined);\n const _values = React.useRef(undefined);\n const [formState, updateFormState] = React.useState({\n isDirty: false,\n isValidating: false,\n isLoading: isFunction(props.defaultValues),\n isSubmitted: false,\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n submitCount: 0,\n dirtyFields: {},\n touchedFields: {},\n validatingFields: {},\n errors: props.errors || {},\n disabled: props.disabled || false,\n isReady: false,\n defaultValues: isFunction(props.defaultValues)\n ? undefined\n : props.defaultValues,\n });\n if (!_formControl.current) {\n if (props.formControl) {\n _formControl.current = {\n ...props.formControl,\n formState,\n };\n if (props.defaultValues && !isFunction(props.defaultValues)) {\n props.formControl.reset(props.defaultValues, props.resetOptions);\n }\n }\n else {\n const { formControl, ...rest } = createFormControl(props);\n _formControl.current = {\n ...rest,\n formState,\n };\n }\n }\n const control = _formControl.current.control;\n control._options = props;\n useIsomorphicLayoutEffect(() => {\n const sub = control._subscribe({\n formState: control._proxyFormState,\n callback: () => updateFormState({ ...control._formState }),\n reRenderRoot: true,\n });\n updateFormState((data) => ({\n ...data,\n isReady: true,\n }));\n control._formState.isReady = true;\n return sub;\n }, [control]);\n React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);\n React.useEffect(() => {\n if (props.mode) {\n control._options.mode = props.mode;\n }\n if (props.reValidateMode) {\n control._options.reValidateMode = props.reValidateMode;\n }\n }, [control, props.mode, props.reValidateMode]);\n React.useEffect(() => {\n if (props.errors) {\n control._setErrors(props.errors);\n control._focusError();\n }\n }, [control, props.errors]);\n React.useEffect(() => {\n props.shouldUnregister &&\n control._subjects.state.next({\n values: control._getWatch(),\n });\n }, [control, props.shouldUnregister]);\n React.useEffect(() => {\n if (control._proxyFormState.isDirty) {\n const isDirty = control._getDirty();\n if (isDirty !== formState.isDirty) {\n control._subjects.state.next({\n isDirty,\n });\n }\n }\n }, [control, formState.isDirty]);\n React.useEffect(() => {\n if (props.values && !deepEqual(props.values, _values.current)) {\n control._reset(props.values, {\n keepFieldsRef: true,\n ...control._options.resetOptions,\n });\n _values.current = props.values;\n updateFormState((state) => ({ ...state }));\n }\n else {\n control._resetDefaultValues();\n }\n }, [control, props.values]);\n React.useEffect(() => {\n if (!control._state.mount) {\n control._setValid();\n control._state.mount = true;\n }\n if (control._state.watch) {\n control._state.watch = false;\n control._subjects.state.next({ ...control._formState });\n }\n control._removeUnmounted();\n });\n _formControl.current.formState = getProxyFormState(formState, control);\n return _formControl.current;\n}\n\n/**\n * Watch component that subscribes to form field changes and re-renders when watched fields update.\n *\n * @param control - The form control object from useForm\n * @param names - Array of field names to watch for changes\n * @param render - The function that receives watched values and returns ReactNode\n * @returns The result of calling render function with watched values\n *\n * @example\n * The `Watch` component only re-render when the values of `foo`, `bar`, and `baz.qux` change.\n * The types of `foo`, `bar`, and `baz.qux` are precisely inferred.\n *\n * ```tsx\n * const { control } = useForm();\n *\n * <Watch\n * control={control}\n * names={['foo', 'bar', 'baz.qux']}\n * render={([foo, bar, baz_qux]) => <div>{foo}{bar}{baz_qux}</div>}\n * />\n * ```\n */\nconst Watch = ({ control, names, render, }) => render(useWatch({ control, name: names }));\n\nexport { Controller, Form, FormProvider, Watch, appendErrors, createFormControl, get, set, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch };\n//# sourceMappingURL=index.esm.mjs.map\n"],"names":[],"mappings":";;;;AAEA,IAAI,eAAe,GAAG,CAAC,OAAO,KAAK,OAAO,CAAC,IAAI,KAAK,UAAU;;AAE9D,IAAI,YAAY,GAAG,CAAC,KAAK,KAAK,KAAK,YAAY,IAAI;;AAEnD,IAAI,iBAAiB,GAAG,CAAC,KAAK,KAAK,KAAK,IAAI,IAAI;;AAEhD,MAAM,YAAY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