{"version":3,"file":"js/vendors-_yarn___virtual___datepicker-react-hooks-virtual-4a8a3bb069_0_cache_datepicker-react--20d764.js?_t=389e0c2fe7954d3b9e22","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AAsBA;;;;;;;;;;;ACtwFA;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AClLA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;AClDA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://@mlssoccer/netcore/./.yarn/__virtual__/@datepicker-react-hooks-virtual-4a8a3bb069/0/cache/@datepicker-react-hooks-npm-2.8.4-3ecd8518d7-1f4301bce7.zip/node_modules/@datepicker-react/hooks/lib/index.esm.js","webpack://@mlssoccer/netcore/./.yarn/__virtual__/react-useportal-virtual-8246aafb92/0/cache/react-useportal-npm-1.0.17-662dd106b2-c6c7a20c89.zip/node_modules/react-useportal/dist/usePortal.js","webpack://@mlssoccer/netcore/./.yarn/__virtual__/use-ssr-virtual-174870ae7e/0/cache/use-ssr-npm-1.0.24-fee10d012c-527c41649e.zip/node_modules/use-ssr/dist/useSSR.js","webpack://@mlssoccer/netcore/./.yarn/cache/date-fns-npm-2.29.2-da48c27e93-0ac440a105.zip/node_modules/date-fns/esm/eachMonthOfInterval/index.js","webpack://@mlssoccer/netcore/./.yarn/cache/date-fns-npm-2.29.2-da48c27e93-0ac440a105.zip/node_modules/date-fns/esm/startOfToday/index.js"],"sourcesContent":["import {useMemo as t, useState as e, useEffect as n, useCallback as r} from 'react'\nvar a = {\n lessThanXSeconds: {one: 'less than a second', other: 'less than {{count}} seconds'},\n xSeconds: {one: '1 second', other: '{{count}} seconds'},\n halfAMinute: 'half a minute',\n lessThanXMinutes: {one: 'less than a minute', other: 'less than {{count}} minutes'},\n xMinutes: {one: '1 minute', other: '{{count}} minutes'},\n aboutXHours: {one: 'about 1 hour', other: 'about {{count}} hours'},\n xHours: {one: '1 hour', other: '{{count}} hours'},\n xDays: {one: '1 day', other: '{{count}} days'},\n aboutXWeeks: {one: 'about 1 week', other: 'about {{count}} weeks'},\n xWeeks: {one: '1 week', other: '{{count}} weeks'},\n aboutXMonths: {one: 'about 1 month', other: 'about {{count}} months'},\n xMonths: {one: '1 month', other: '{{count}} months'},\n aboutXYears: {one: 'about 1 year', other: 'about {{count}} years'},\n xYears: {one: '1 year', other: '{{count}} years'},\n overXYears: {one: 'over 1 year', other: 'over {{count}} years'},\n almostXYears: {one: 'almost 1 year', other: 'almost {{count}} years'},\n}\nfunction i(t) {\n return function (e) {\n var n = e || {},\n r = n.width ? String(n.width) : t.defaultWidth\n return t.formats[r] || t.formats[t.defaultWidth]\n }\n}\nvar o = {\n date: i({\n formats: {\n full: 'EEEE, MMMM do, y',\n long: 'MMMM do, y',\n medium: 'MMM d, y',\n short: 'MM/dd/yyyy',\n },\n defaultWidth: 'full',\n }),\n time: i({\n formats: {full: 'h:mm:ss a zzzz', long: 'h:mm:ss a z', medium: 'h:mm:ss a', short: 'h:mm a'},\n defaultWidth: 'full',\n }),\n dateTime: i({\n formats: {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}',\n },\n defaultWidth: 'full',\n }),\n },\n u = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: 'P',\n }\nfunction s(t) {\n return function (e, n) {\n var r,\n a = n || {}\n if ('formatting' === (a.context ? String(a.context) : 'standalone') && t.formattingValues) {\n var i = t.defaultFormattingWidth || t.defaultWidth,\n o = a.width ? String(a.width) : i\n r = t.formattingValues[o] || t.formattingValues[i]\n } else {\n var u = t.defaultWidth,\n s = a.width ? String(a.width) : t.defaultWidth\n r = t.values[s] || t.values[u]\n }\n return r[t.argumentCallback ? t.argumentCallback(e) : e]\n }\n}\nfunction c(t) {\n return function (e, n) {\n var r = String(e),\n a = n || {},\n i = a.width,\n o = (i && t.matchPatterns[i]) || t.matchPatterns[t.defaultMatchWidth],\n u = r.match(o)\n if (!u) return null\n var s,\n c = u[0],\n d = (i && t.parsePatterns[i]) || t.parsePatterns[t.defaultParseWidth]\n return (\n (s =\n '[object Array]' === Object.prototype.toString.call(d)\n ? (function (t, e) {\n for (var n = 0; n < t.length; n++) if (e(t[n])) return n\n })(d, function (t) {\n return t.test(c)\n })\n : (function (t, e) {\n for (var n in t) if (t.hasOwnProperty(n) && e(t[n])) return n\n })(d, function (t) {\n return t.test(c)\n })),\n (s = t.valueCallback ? t.valueCallback(s) : s),\n {value: (s = a.valueCallback ? a.valueCallback(s) : s), rest: r.slice(c.length)}\n )\n }\n}\nvar d,\n l = {\n code: 'en-US',\n formatDistance: function (t, e, n) {\n var r\n return (\n (n = n || {}),\n (r =\n 'string' == typeof a[t] ? a[t] : 1 === e ? a[t].one : a[t].other.replace('{{count}}', e)),\n n.addSuffix ? (n.comparison > 0 ? 'in ' + r : r + ' ago') : r\n )\n },\n formatLong: o,\n formatRelative: function (t, e, n, r) {\n return u[t]\n },\n localize: {\n ordinalNumber: function (t, e) {\n var n = Number(t),\n r = n % 100\n if (r > 20 || r < 10)\n switch (r % 10) {\n case 1:\n return n + 'st'\n case 2:\n return n + 'nd'\n case 3:\n return n + 'rd'\n }\n return n + 'th'\n },\n era: s({\n values: {\n narrow: ['B', 'A'],\n abbreviated: ['BC', 'AD'],\n wide: ['Before Christ', 'Anno Domini'],\n },\n defaultWidth: 'wide',\n }),\n quarter: s({\n values: {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\n wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'],\n },\n defaultWidth: 'wide',\n argumentCallback: function (t) {\n return Number(t) - 1\n },\n }),\n month: s({\n values: {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec',\n ],\n wide: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n },\n defaultWidth: 'wide',\n }),\n day: s({\n values: {\n narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n },\n defaultWidth: 'wide',\n }),\n dayPeriod: s({\n values: {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night',\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night',\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night',\n },\n },\n defaultWidth: 'wide',\n formattingValues: {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night',\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night',\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night',\n },\n },\n defaultFormattingWidth: 'wide',\n }),\n },\n match: {\n ordinalNumber:\n ((d = {\n matchPattern: /^(\\d+)(th|st|nd|rd)?/i,\n parsePattern: /\\d+/i,\n valueCallback: function (t) {\n return parseInt(t, 10)\n },\n }),\n function (t, e) {\n var n = String(t),\n r = e || {},\n a = n.match(d.matchPattern)\n if (!a) return null\n var i = a[0],\n o = n.match(d.parsePattern)\n if (!o) return null\n var u = d.valueCallback ? d.valueCallback(o[0]) : o[0]\n return {value: (u = r.valueCallback ? r.valueCallback(u) : u), rest: n.slice(i.length)}\n }),\n era: c({\n matchPatterns: {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i,\n },\n defaultMatchWidth: 'wide',\n parsePatterns: {any: [/^b/i, /^(a|c)/i]},\n defaultParseWidth: 'any',\n }),\n quarter: c({\n matchPatterns: {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i,\n },\n defaultMatchWidth: 'wide',\n parsePatterns: {any: [/1/i, /2/i, /3/i, /4/i]},\n defaultParseWidth: 'any',\n valueCallback: function (t) {\n return t + 1\n },\n }),\n month: c({\n matchPatterns: {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n },\n defaultMatchWidth: 'wide',\n parsePatterns: {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n any: [\n /^ja/i,\n /^f/i,\n /^mar/i,\n /^ap/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^au/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n },\n defaultParseWidth: 'any',\n }),\n day: c({\n matchPatterns: {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n },\n defaultMatchWidth: 'wide',\n parsePatterns: {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n },\n defaultParseWidth: 'any',\n }),\n dayPeriod: c({\n matchPatterns: {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n },\n defaultMatchWidth: 'any',\n parsePatterns: {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i,\n },\n },\n defaultParseWidth: 'any',\n }),\n },\n options: {weekStartsOn: 0, firstWeekContainsDate: 1},\n }\nfunction f(t) {\n if (null === t || !0 === t || !1 === t) return NaN\n var e = Number(t)\n return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e)\n}\nfunction h(t, e) {\n if (e.length < t)\n throw new TypeError(\n t + ' argument' + (t > 1 ? 's' : '') + ' required, but only ' + e.length + ' present',\n )\n}\nfunction m(t) {\n h(1, arguments)\n var e = Object.prototype.toString.call(t)\n return t instanceof Date || ('object' == typeof t && '[object Date]' === e)\n ? new Date(t.getTime())\n : 'number' == typeof t || '[object Number]' === e\n ? new Date(t)\n : (('string' != typeof t && '[object String]' !== e) ||\n 'undefined' == typeof console ||\n (console.warn(\n \"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule\",\n ),\n console.warn(new Error().stack)),\n new Date(NaN))\n}\nfunction w(t, e) {\n h(2, arguments)\n var n = m(t).getTime(),\n r = f(e)\n return new Date(n + r)\n}\nfunction g(t, e) {\n h(2, arguments)\n var n = f(e)\n return w(t, -n)\n}\nfunction v(t, e) {\n if (null == t)\n throw new TypeError('assign requires that input parameter not be null or undefined')\n for (var n in (e = e || {})) e.hasOwnProperty(n) && (t[n] = e[n])\n return t\n}\nfunction y(t, e) {\n switch (t) {\n case 'P':\n return e.date({width: 'short'})\n case 'PP':\n return e.date({width: 'medium'})\n case 'PPP':\n return e.date({width: 'long'})\n case 'PPPP':\n default:\n return e.date({width: 'full'})\n }\n}\nfunction b(t, e) {\n switch (t) {\n case 'p':\n return e.time({width: 'short'})\n case 'pp':\n return e.time({width: 'medium'})\n case 'ppp':\n return e.time({width: 'long'})\n case 'pppp':\n default:\n return e.time({width: 'full'})\n }\n}\nvar D = {\n p: b,\n P: function (t, e) {\n var n,\n r = t.match(/(P+)(p+)?/),\n a = r[1],\n i = r[2]\n if (!i) return y(t, e)\n switch (a) {\n case 'P':\n n = e.dateTime({width: 'short'})\n break\n case 'PP':\n n = e.dateTime({width: 'medium'})\n break\n case 'PPP':\n n = e.dateTime({width: 'long'})\n break\n case 'PPPP':\n default:\n n = e.dateTime({width: 'full'})\n }\n return n.replace('{{date}}', y(a, e)).replace('{{time}}', b(i, e))\n },\n}\nfunction T(t) {\n return t.getTime() % 6e4\n}\nfunction p(t) {\n var e = new Date(t.getTime()),\n n = Math.ceil(e.getTimezoneOffset())\n return e.setSeconds(0, 0), 6e4 * n + (n > 0 ? (6e4 + T(e)) % 6e4 : T(e))\n}\nvar k = ['D', 'DD'],\n x = ['YY', 'YYYY']\nfunction C(t) {\n return -1 !== k.indexOf(t)\n}\nfunction M(t) {\n return -1 !== x.indexOf(t)\n}\nfunction U(t) {\n if ('YYYY' === t)\n throw new RangeError(\n 'Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr',\n )\n if ('YY' === t)\n throw new RangeError('Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr')\n if ('D' === t)\n throw new RangeError(\n 'Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr',\n )\n if ('DD' === t)\n throw new RangeError(\n 'Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr',\n )\n}\nfunction S(t, e) {\n h(1, arguments)\n var n = e || {},\n r = n.locale,\n a = r && r.options && r.options.weekStartsOn,\n i = null == a ? 0 : f(a),\n o = null == n.weekStartsOn ? i : f(n.weekStartsOn)\n if (!(o >= 0 && o <= 6)) throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')\n var u = m(t),\n s = u.getUTCDay(),\n c = (s < o ? 7 : 0) + s - o\n return u.setUTCDate(u.getUTCDate() - c), u.setUTCHours(0, 0, 0, 0), u\n}\nfunction P(t, e) {\n h(1, arguments)\n var n = m(t, e),\n r = n.getUTCFullYear(),\n a = e || {},\n i = a.locale,\n o = i && i.options && i.options.firstWeekContainsDate,\n u = null == o ? 1 : f(o),\n s = null == a.firstWeekContainsDate ? u : f(a.firstWeekContainsDate)\n if (!(s >= 1 && s <= 7))\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively')\n var c = new Date(0)\n c.setUTCFullYear(r + 1, 0, s), c.setUTCHours(0, 0, 0, 0)\n var d = S(c, e),\n l = new Date(0)\n l.setUTCFullYear(r, 0, s), l.setUTCHours(0, 0, 0, 0)\n var w = S(l, e)\n return n.getTime() >= d.getTime() ? r + 1 : n.getTime() >= w.getTime() ? r : r - 1\n}\nfunction E(t, e, n) {\n h(2, arguments)\n var r = n || {},\n a = r.locale,\n i = a && a.options && a.options.weekStartsOn,\n o = null == i ? 0 : f(i),\n u = null == r.weekStartsOn ? o : f(r.weekStartsOn)\n if (!(u >= 0 && u <= 6)) throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')\n var s = m(t),\n c = f(e),\n d = s.getUTCDay(),\n l = c % 7,\n w = (l + 7) % 7,\n g = (w < u ? 7 : 0) + c - d\n return s.setUTCDate(s.getUTCDate() + g), s\n}\nfunction Y(t) {\n h(1, arguments)\n var e = 1,\n n = m(t),\n r = n.getUTCDay(),\n a = (r < e ? 7 : 0) + r - e\n return n.setUTCDate(n.getUTCDate() - a), n.setUTCHours(0, 0, 0, 0), n\n}\nfunction N(t) {\n h(1, arguments)\n var e = m(t),\n n = e.getUTCFullYear(),\n r = new Date(0)\n r.setUTCFullYear(n + 1, 0, 4), r.setUTCHours(0, 0, 0, 0)\n var a = Y(r),\n i = new Date(0)\n i.setUTCFullYear(n, 0, 4), i.setUTCHours(0, 0, 0, 0)\n var o = Y(i)\n return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= o.getTime() ? n : n - 1\n}\nfunction q(t) {\n h(1, arguments)\n var e = N(t),\n n = new Date(0)\n n.setUTCFullYear(e, 0, 4), n.setUTCHours(0, 0, 0, 0)\n var r = Y(n)\n return r\n}\nfunction B(t) {\n h(1, arguments)\n var e = m(t),\n n = Y(e).getTime() - q(e).getTime()\n return Math.round(n / 6048e5) + 1\n}\nfunction O(t, e) {\n h(1, arguments)\n var n = e || {},\n r = n.locale,\n a = r && r.options && r.options.firstWeekContainsDate,\n i = null == a ? 1 : f(a),\n o = null == n.firstWeekContainsDate ? i : f(n.firstWeekContainsDate),\n u = P(t, e),\n s = new Date(0)\n s.setUTCFullYear(u, 0, o), s.setUTCHours(0, 0, 0, 0)\n var c = S(s, e)\n return c\n}\nfunction H(t, e) {\n h(1, arguments)\n var n = m(t),\n r = S(n, e).getTime() - O(n, e).getTime()\n return Math.round(r / 6048e5) + 1\n}\nvar L = /^(1[0-2]|0?\\d)/,\n W = /^(3[0-1]|[0-2]?\\d)/,\n F = /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/,\n Q = /^(5[0-3]|[0-4]?\\d)/,\n R = /^(2[0-3]|[0-1]?\\d)/,\n I = /^(2[0-4]|[0-1]?\\d)/,\n X = /^(1[0-1]|0?\\d)/,\n G = /^(1[0-2]|0?\\d)/,\n A = /^[0-5]?\\d/,\n z = /^[0-5]?\\d/,\n j = /^\\d/,\n K = /^\\d{1,2}/,\n J = /^\\d{1,3}/,\n Z = /^\\d{1,4}/,\n _ = /^-?\\d+/,\n $ = /^-?\\d/,\n V = /^-?\\d{1,2}/,\n tt = /^-?\\d{1,3}/,\n et = /^-?\\d{1,4}/,\n nt = /^([+-])(\\d{2})(\\d{2})?|Z/,\n rt = /^([+-])(\\d{2})(\\d{2})|Z/,\n at = /^([+-])(\\d{2})(\\d{2})((\\d{2}))?|Z/,\n it = /^([+-])(\\d{2}):(\\d{2})|Z/,\n ot = /^([+-])(\\d{2}):(\\d{2})(:(\\d{2}))?|Z/\nfunction ut(t, e, n) {\n var r = e.match(t)\n if (!r) return null\n var a = parseInt(r[0], 10)\n return {value: n ? n(a) : a, rest: e.slice(r[0].length)}\n}\nfunction st(t, e) {\n var n = e.match(t)\n return n\n ? 'Z' === n[0]\n ? {value: 0, rest: e.slice(1)}\n : {\n value:\n ('+' === n[1] ? 1 : -1) *\n (36e5 * (n[2] ? parseInt(n[2], 10) : 0) +\n 6e4 * (n[3] ? parseInt(n[3], 10) : 0) +\n 1e3 * (n[5] ? parseInt(n[5], 10) : 0)),\n rest: e.slice(n[0].length),\n }\n : null\n}\nfunction ct(t, e) {\n return ut(_, t, e)\n}\nfunction dt(t, e, n) {\n switch (t) {\n case 1:\n return ut(j, e, n)\n case 2:\n return ut(K, e, n)\n case 3:\n return ut(J, e, n)\n case 4:\n return ut(Z, e, n)\n default:\n return ut(new RegExp('^\\\\d{1,' + t + '}'), e, n)\n }\n}\nfunction lt(t, e, n) {\n switch (t) {\n case 1:\n return ut($, e, n)\n case 2:\n return ut(V, e, n)\n case 3:\n return ut(tt, e, n)\n case 4:\n return ut(et, e, n)\n default:\n return ut(new RegExp('^-?\\\\d{1,' + t + '}'), e, n)\n }\n}\nfunction ft(t) {\n switch (t) {\n case 'morning':\n return 4\n case 'evening':\n return 17\n case 'pm':\n case 'noon':\n case 'afternoon':\n return 12\n case 'am':\n case 'midnight':\n case 'night':\n default:\n return 0\n }\n}\nfunction ht(t, e) {\n var n,\n r = e > 0,\n a = r ? e : 1 - e\n if (a <= 50) n = t || 100\n else {\n var i = a + 50\n n = t + 100 * Math.floor(i / 100) - (t >= i % 100 ? 100 : 0)\n }\n return r ? n : 1 - n\n}\nvar mt = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n wt = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]\nfunction gt(t) {\n return t % 400 == 0 || (t % 4 == 0 && t % 100 != 0)\n}\nvar vt = {\n G: {\n priority: 140,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'G':\n case 'GG':\n case 'GGG':\n return n.era(t, {width: 'abbreviated'}) || n.era(t, {width: 'narrow'})\n case 'GGGGG':\n return n.era(t, {width: 'narrow'})\n case 'GGGG':\n default:\n return (\n n.era(t, {width: 'wide'}) ||\n n.era(t, {width: 'abbreviated'}) ||\n n.era(t, {width: 'narrow'})\n )\n }\n },\n set: function (t, e, n, r) {\n return (e.era = n), t.setUTCFullYear(n, 0, 1), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['R', 'u', 't', 'T'],\n },\n y: {\n priority: 130,\n parse: function (t, e, n, r) {\n var a = function (t) {\n return {year: t, isTwoDigitYear: 'yy' === e}\n }\n switch (e) {\n case 'y':\n return dt(4, t, a)\n case 'yo':\n return n.ordinalNumber(t, {unit: 'year', valueCallback: a})\n default:\n return dt(e.length, t, a)\n }\n },\n validate: function (t, e, n) {\n return e.isTwoDigitYear || e.year > 0\n },\n set: function (t, e, n, r) {\n var a = t.getUTCFullYear()\n if (n.isTwoDigitYear) {\n var i = ht(n.year, a)\n return t.setUTCFullYear(i, 0, 1), t.setUTCHours(0, 0, 0, 0), t\n }\n var o = 'era' in e && 1 !== e.era ? 1 - n.year : n.year\n return t.setUTCFullYear(o, 0, 1), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T'],\n },\n Y: {\n priority: 130,\n parse: function (t, e, n, r) {\n var a = function (t) {\n return {year: t, isTwoDigitYear: 'YY' === e}\n }\n switch (e) {\n case 'Y':\n return dt(4, t, a)\n case 'Yo':\n return n.ordinalNumber(t, {unit: 'year', valueCallback: a})\n default:\n return dt(e.length, t, a)\n }\n },\n validate: function (t, e, n) {\n return e.isTwoDigitYear || e.year > 0\n },\n set: function (t, e, n, r) {\n var a = P(t, r)\n if (n.isTwoDigitYear) {\n var i = ht(n.year, a)\n return t.setUTCFullYear(i, 0, r.firstWeekContainsDate), t.setUTCHours(0, 0, 0, 0), S(t, r)\n }\n var o = 'era' in e && 1 !== e.era ? 1 - n.year : n.year\n return t.setUTCFullYear(o, 0, r.firstWeekContainsDate), t.setUTCHours(0, 0, 0, 0), S(t, r)\n },\n incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'],\n },\n R: {\n priority: 130,\n parse: function (t, e, n, r) {\n return lt('R' === e ? 4 : e.length, t)\n },\n set: function (t, e, n, r) {\n var a = new Date(0)\n return a.setUTCFullYear(n, 0, 4), a.setUTCHours(0, 0, 0, 0), Y(a)\n },\n incompatibleTokens: [\n 'G',\n 'y',\n 'Y',\n 'u',\n 'Q',\n 'q',\n 'M',\n 'L',\n 'w',\n 'd',\n 'D',\n 'e',\n 'c',\n 't',\n 'T',\n ],\n },\n u: {\n priority: 130,\n parse: function (t, e, n, r) {\n return lt('u' === e ? 4 : e.length, t)\n },\n set: function (t, e, n, r) {\n return t.setUTCFullYear(n, 0, 1), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T'],\n },\n Q: {\n priority: 120,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'Q':\n case 'QQ':\n return dt(e.length, t)\n case 'Qo':\n return n.ordinalNumber(t, {unit: 'quarter'})\n case 'QQQ':\n return (\n n.quarter(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.quarter(t, {width: 'narrow', context: 'formatting'})\n )\n case 'QQQQQ':\n return n.quarter(t, {width: 'narrow', context: 'formatting'})\n case 'QQQQ':\n default:\n return (\n n.quarter(t, {width: 'wide', context: 'formatting'}) ||\n n.quarter(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.quarter(t, {width: 'narrow', context: 'formatting'})\n )\n }\n },\n validate: function (t, e, n) {\n return e >= 1 && e <= 4\n },\n set: function (t, e, n, r) {\n return t.setUTCMonth(3 * (n - 1), 1), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'],\n },\n q: {\n priority: 120,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'q':\n case 'qq':\n return dt(e.length, t)\n case 'qo':\n return n.ordinalNumber(t, {unit: 'quarter'})\n case 'qqq':\n return (\n n.quarter(t, {width: 'abbreviated', context: 'standalone'}) ||\n n.quarter(t, {width: 'narrow', context: 'standalone'})\n )\n case 'qqqqq':\n return n.quarter(t, {width: 'narrow', context: 'standalone'})\n case 'qqqq':\n default:\n return (\n n.quarter(t, {width: 'wide', context: 'standalone'}) ||\n n.quarter(t, {width: 'abbreviated', context: 'standalone'}) ||\n n.quarter(t, {width: 'narrow', context: 'standalone'})\n )\n }\n },\n validate: function (t, e, n) {\n return e >= 1 && e <= 4\n },\n set: function (t, e, n, r) {\n return t.setUTCMonth(3 * (n - 1), 1), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T'],\n },\n M: {\n priority: 110,\n parse: function (t, e, n, r) {\n var a = function (t) {\n return t - 1\n }\n switch (e) {\n case 'M':\n return ut(L, t, a)\n case 'MM':\n return dt(2, t, a)\n case 'Mo':\n return n.ordinalNumber(t, {unit: 'month', valueCallback: a})\n case 'MMM':\n return (\n n.month(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.month(t, {width: 'narrow', context: 'formatting'})\n )\n case 'MMMMM':\n return n.month(t, {width: 'narrow', context: 'formatting'})\n case 'MMMM':\n default:\n return (\n n.month(t, {width: 'wide', context: 'formatting'}) ||\n n.month(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.month(t, {width: 'narrow', context: 'formatting'})\n )\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 11\n },\n set: function (t, e, n, r) {\n return t.setUTCMonth(n, 1), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'],\n },\n L: {\n priority: 110,\n parse: function (t, e, n, r) {\n var a = function (t) {\n return t - 1\n }\n switch (e) {\n case 'L':\n return ut(L, t, a)\n case 'LL':\n return dt(2, t, a)\n case 'Lo':\n return n.ordinalNumber(t, {unit: 'month', valueCallback: a})\n case 'LLL':\n return (\n n.month(t, {width: 'abbreviated', context: 'standalone'}) ||\n n.month(t, {width: 'narrow', context: 'standalone'})\n )\n case 'LLLLL':\n return n.month(t, {width: 'narrow', context: 'standalone'})\n case 'LLLL':\n default:\n return (\n n.month(t, {width: 'wide', context: 'standalone'}) ||\n n.month(t, {width: 'abbreviated', context: 'standalone'}) ||\n n.month(t, {width: 'narrow', context: 'standalone'})\n )\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 11\n },\n set: function (t, e, n, r) {\n return t.setUTCMonth(n, 1), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'],\n },\n w: {\n priority: 100,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'w':\n return ut(Q, t)\n case 'wo':\n return n.ordinalNumber(t, {unit: 'week'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return e >= 1 && e <= 53\n },\n set: function (t, e, n, r) {\n return S(\n (function (t, e, n) {\n h(2, arguments)\n var r = m(t),\n a = f(e),\n i = H(r, n) - a\n return r.setUTCDate(r.getUTCDate() - 7 * i), r\n })(t, n, r),\n r,\n )\n },\n incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T'],\n },\n I: {\n priority: 100,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'I':\n return ut(Q, t)\n case 'Io':\n return n.ordinalNumber(t, {unit: 'week'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return e >= 1 && e <= 53\n },\n set: function (t, e, n, r) {\n return Y(\n (function (t, e) {\n h(2, arguments)\n var n = m(t),\n r = f(e),\n a = B(n) - r\n return n.setUTCDate(n.getUTCDate() - 7 * a), n\n })(t, n, r),\n r,\n )\n },\n incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T'],\n },\n d: {\n priority: 90,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'd':\n return ut(W, t)\n case 'do':\n return n.ordinalNumber(t, {unit: 'date'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n var r = gt(t.getUTCFullYear()),\n a = t.getUTCMonth()\n return r ? e >= 1 && e <= wt[a] : e >= 1 && e <= mt[a]\n },\n set: function (t, e, n, r) {\n return t.setUTCDate(n), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T'],\n },\n D: {\n priority: 90,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'D':\n case 'DD':\n return ut(F, t)\n case 'Do':\n return n.ordinalNumber(t, {unit: 'date'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return gt(t.getUTCFullYear()) ? e >= 1 && e <= 366 : e >= 1 && e <= 365\n },\n set: function (t, e, n, r) {\n return t.setUTCMonth(0, n), t.setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: [\n 'Y',\n 'R',\n 'q',\n 'Q',\n 'M',\n 'L',\n 'w',\n 'I',\n 'd',\n 'E',\n 'i',\n 'e',\n 'c',\n 't',\n 'T',\n ],\n },\n E: {\n priority: 90,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'E':\n case 'EE':\n case 'EEE':\n return (\n n.day(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.day(t, {width: 'short', context: 'formatting'}) ||\n n.day(t, {width: 'narrow', context: 'formatting'})\n )\n case 'EEEEE':\n return n.day(t, {width: 'narrow', context: 'formatting'})\n case 'EEEEEE':\n return (\n n.day(t, {width: 'short', context: 'formatting'}) ||\n n.day(t, {width: 'narrow', context: 'formatting'})\n )\n case 'EEEE':\n default:\n return (\n n.day(t, {width: 'wide', context: 'formatting'}) ||\n n.day(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.day(t, {width: 'short', context: 'formatting'}) ||\n n.day(t, {width: 'narrow', context: 'formatting'})\n )\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 6\n },\n set: function (t, e, n, r) {\n return (t = E(t, n, r)).setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T'],\n },\n e: {\n priority: 90,\n parse: function (t, e, n, r) {\n var a = function (t) {\n var e = 7 * Math.floor((t - 1) / 7)\n return ((t + r.weekStartsOn + 6) % 7) + e\n }\n switch (e) {\n case 'e':\n case 'ee':\n return dt(e.length, t, a)\n case 'eo':\n return n.ordinalNumber(t, {unit: 'day', valueCallback: a})\n case 'eee':\n return (\n n.day(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.day(t, {width: 'short', context: 'formatting'}) ||\n n.day(t, {width: 'narrow', context: 'formatting'})\n )\n case 'eeeee':\n return n.day(t, {width: 'narrow', context: 'formatting'})\n case 'eeeeee':\n return (\n n.day(t, {width: 'short', context: 'formatting'}) ||\n n.day(t, {width: 'narrow', context: 'formatting'})\n )\n case 'eeee':\n default:\n return (\n n.day(t, {width: 'wide', context: 'formatting'}) ||\n n.day(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.day(t, {width: 'short', context: 'formatting'}) ||\n n.day(t, {width: 'narrow', context: 'formatting'})\n )\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 6\n },\n set: function (t, e, n, r) {\n return (t = E(t, n, r)).setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: [\n 'y',\n 'R',\n 'u',\n 'q',\n 'Q',\n 'M',\n 'L',\n 'I',\n 'd',\n 'D',\n 'E',\n 'i',\n 'c',\n 't',\n 'T',\n ],\n },\n c: {\n priority: 90,\n parse: function (t, e, n, r) {\n var a = function (t) {\n var e = 7 * Math.floor((t - 1) / 7)\n return ((t + r.weekStartsOn + 6) % 7) + e\n }\n switch (e) {\n case 'c':\n case 'cc':\n return dt(e.length, t, a)\n case 'co':\n return n.ordinalNumber(t, {unit: 'day', valueCallback: a})\n case 'ccc':\n return (\n n.day(t, {width: 'abbreviated', context: 'standalone'}) ||\n n.day(t, {width: 'short', context: 'standalone'}) ||\n n.day(t, {width: 'narrow', context: 'standalone'})\n )\n case 'ccccc':\n return n.day(t, {width: 'narrow', context: 'standalone'})\n case 'cccccc':\n return (\n n.day(t, {width: 'short', context: 'standalone'}) ||\n n.day(t, {width: 'narrow', context: 'standalone'})\n )\n case 'cccc':\n default:\n return (\n n.day(t, {width: 'wide', context: 'standalone'}) ||\n n.day(t, {width: 'abbreviated', context: 'standalone'}) ||\n n.day(t, {width: 'short', context: 'standalone'}) ||\n n.day(t, {width: 'narrow', context: 'standalone'})\n )\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 6\n },\n set: function (t, e, n, r) {\n return (t = E(t, n, r)).setUTCHours(0, 0, 0, 0), t\n },\n incompatibleTokens: [\n 'y',\n 'R',\n 'u',\n 'q',\n 'Q',\n 'M',\n 'L',\n 'I',\n 'd',\n 'D',\n 'E',\n 'i',\n 'e',\n 't',\n 'T',\n ],\n },\n i: {\n priority: 90,\n parse: function (t, e, n, r) {\n var a = function (t) {\n return 0 === t ? 7 : t\n }\n switch (e) {\n case 'i':\n case 'ii':\n return dt(e.length, t)\n case 'io':\n return n.ordinalNumber(t, {unit: 'day'})\n case 'iii':\n return (\n n.day(t, {width: 'abbreviated', context: 'formatting', valueCallback: a}) ||\n n.day(t, {width: 'short', context: 'formatting', valueCallback: a}) ||\n n.day(t, {width: 'narrow', context: 'formatting', valueCallback: a})\n )\n case 'iiiii':\n return n.day(t, {width: 'narrow', context: 'formatting', valueCallback: a})\n case 'iiiiii':\n return (\n n.day(t, {width: 'short', context: 'formatting', valueCallback: a}) ||\n n.day(t, {width: 'narrow', context: 'formatting', valueCallback: a})\n )\n case 'iiii':\n default:\n return (\n n.day(t, {width: 'wide', context: 'formatting', valueCallback: a}) ||\n n.day(t, {width: 'abbreviated', context: 'formatting', valueCallback: a}) ||\n n.day(t, {width: 'short', context: 'formatting', valueCallback: a}) ||\n n.day(t, {width: 'narrow', context: 'formatting', valueCallback: a})\n )\n }\n },\n validate: function (t, e, n) {\n return e >= 1 && e <= 7\n },\n set: function (t, e, n, r) {\n return (\n (t = (function (t, e) {\n h(2, arguments)\n var n = f(e)\n n % 7 == 0 && (n -= 7)\n var r = 1,\n a = m(t),\n i = a.getUTCDay(),\n o = n % 7,\n u = (o + 7) % 7,\n s = (u < r ? 7 : 0) + n - i\n return a.setUTCDate(a.getUTCDate() + s), a\n })(t, n, r)).setUTCHours(0, 0, 0, 0),\n t\n )\n },\n incompatibleTokens: [\n 'y',\n 'Y',\n 'u',\n 'q',\n 'Q',\n 'M',\n 'L',\n 'w',\n 'd',\n 'D',\n 'E',\n 'e',\n 'c',\n 't',\n 'T',\n ],\n },\n a: {\n priority: 80,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'a':\n case 'aa':\n case 'aaa':\n return (\n n.dayPeriod(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n )\n case 'aaaaa':\n return n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n case 'aaaa':\n default:\n return (\n n.dayPeriod(t, {width: 'wide', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n )\n }\n },\n set: function (t, e, n, r) {\n return t.setUTCHours(ft(n), 0, 0, 0), t\n },\n incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T'],\n },\n b: {\n priority: 80,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'b':\n case 'bb':\n case 'bbb':\n return (\n n.dayPeriod(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n )\n case 'bbbbb':\n return n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n case 'bbbb':\n default:\n return (\n n.dayPeriod(t, {width: 'wide', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n )\n }\n },\n set: function (t, e, n, r) {\n return t.setUTCHours(ft(n), 0, 0, 0), t\n },\n incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T'],\n },\n B: {\n priority: 80,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'B':\n case 'BB':\n case 'BBB':\n return (\n n.dayPeriod(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n )\n case 'BBBBB':\n return n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n case 'BBBB':\n default:\n return (\n n.dayPeriod(t, {width: 'wide', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'abbreviated', context: 'formatting'}) ||\n n.dayPeriod(t, {width: 'narrow', context: 'formatting'})\n )\n }\n },\n set: function (t, e, n, r) {\n return t.setUTCHours(ft(n), 0, 0, 0), t\n },\n incompatibleTokens: ['a', 'b', 't', 'T'],\n },\n h: {\n priority: 70,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'h':\n return ut(G, t)\n case 'ho':\n return n.ordinalNumber(t, {unit: 'hour'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return e >= 1 && e <= 12\n },\n set: function (t, e, n, r) {\n var a = t.getUTCHours() >= 12\n return (\n a && n < 12\n ? t.setUTCHours(n + 12, 0, 0, 0)\n : a || 12 !== n\n ? t.setUTCHours(n, 0, 0, 0)\n : t.setUTCHours(0, 0, 0, 0),\n t\n )\n },\n incompatibleTokens: ['H', 'K', 'k', 't', 'T'],\n },\n H: {\n priority: 70,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'H':\n return ut(R, t)\n case 'Ho':\n return n.ordinalNumber(t, {unit: 'hour'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 23\n },\n set: function (t, e, n, r) {\n return t.setUTCHours(n, 0, 0, 0), t\n },\n incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T'],\n },\n K: {\n priority: 70,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'K':\n return ut(X, t)\n case 'Ko':\n return n.ordinalNumber(t, {unit: 'hour'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 11\n },\n set: function (t, e, n, r) {\n return (\n t.getUTCHours() >= 12 && n < 12\n ? t.setUTCHours(n + 12, 0, 0, 0)\n : t.setUTCHours(n, 0, 0, 0),\n t\n )\n },\n incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T'],\n },\n k: {\n priority: 70,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'k':\n return ut(I, t)\n case 'ko':\n return n.ordinalNumber(t, {unit: 'hour'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return e >= 1 && e <= 24\n },\n set: function (t, e, n, r) {\n var a = n <= 24 ? n % 24 : n\n return t.setUTCHours(a, 0, 0, 0), t\n },\n incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T'],\n },\n m: {\n priority: 60,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'm':\n return ut(A, t)\n case 'mo':\n return n.ordinalNumber(t, {unit: 'minute'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 59\n },\n set: function (t, e, n, r) {\n return t.setUTCMinutes(n, 0, 0), t\n },\n incompatibleTokens: ['t', 'T'],\n },\n s: {\n priority: 50,\n parse: function (t, e, n, r) {\n switch (e) {\n case 's':\n return ut(z, t)\n case 'so':\n return n.ordinalNumber(t, {unit: 'second'})\n default:\n return dt(e.length, t)\n }\n },\n validate: function (t, e, n) {\n return e >= 0 && e <= 59\n },\n set: function (t, e, n, r) {\n return t.setUTCSeconds(n, 0), t\n },\n incompatibleTokens: ['t', 'T'],\n },\n S: {\n priority: 30,\n parse: function (t, e, n, r) {\n return dt(e.length, t, function (t) {\n return Math.floor(t * Math.pow(10, 3 - e.length))\n })\n },\n set: function (t, e, n, r) {\n return t.setUTCMilliseconds(n), t\n },\n incompatibleTokens: ['t', 'T'],\n },\n X: {\n priority: 10,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'X':\n return st(nt, t)\n case 'XX':\n return st(rt, t)\n case 'XXXX':\n return st(at, t)\n case 'XXXXX':\n return st(ot, t)\n case 'XXX':\n default:\n return st(it, t)\n }\n },\n set: function (t, e, n, r) {\n return e.timestampIsSet ? t : new Date(t.getTime() - n)\n },\n incompatibleTokens: ['t', 'T', 'x'],\n },\n x: {\n priority: 10,\n parse: function (t, e, n, r) {\n switch (e) {\n case 'x':\n return st(nt, t)\n case 'xx':\n return st(rt, t)\n case 'xxxx':\n return st(at, t)\n case 'xxxxx':\n return st(ot, t)\n case 'xxx':\n default:\n return st(it, t)\n }\n },\n set: function (t, e, n, r) {\n return e.timestampIsSet ? t : new Date(t.getTime() - n)\n },\n incompatibleTokens: ['t', 'T', 'X'],\n },\n t: {\n priority: 40,\n parse: function (t, e, n, r) {\n return ct(t)\n },\n set: function (t, e, n, r) {\n return [new Date(1e3 * n), {timestampIsSet: !0}]\n },\n incompatibleTokens: '*',\n },\n T: {\n priority: 20,\n parse: function (t, e, n, r) {\n return ct(t)\n },\n set: function (t, e, n, r) {\n return [new Date(n), {timestampIsSet: !0}]\n },\n incompatibleTokens: '*',\n },\n },\n yt = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g,\n bt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,\n Dt = /^'([^]*?)'?$/,\n Tt = /''/g,\n pt = /\\S/,\n kt = /[a-zA-Z]/\nfunction xt(t, e, n, r) {\n h(3, arguments)\n var a = String(t),\n i = String(e),\n o = r || {},\n u = o.locale || l\n if (!u.match) throw new RangeError('locale must contain match property')\n var s = u.options && u.options.firstWeekContainsDate,\n c = null == s ? 1 : f(s),\n d = null == o.firstWeekContainsDate ? c : f(o.firstWeekContainsDate)\n if (!(d >= 1 && d <= 7))\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively')\n var w = u.options && u.options.weekStartsOn,\n y = null == w ? 0 : f(w),\n b = null == o.weekStartsOn ? y : f(o.weekStartsOn)\n if (!(b >= 0 && b <= 6)) throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')\n if ('' === i) return '' === a ? m(n) : new Date(NaN)\n var T,\n k = {firstWeekContainsDate: d, weekStartsOn: b, locale: u},\n x = [{priority: 10, set: Ct, index: 0}],\n S = i\n .match(bt)\n .map(function (t) {\n var e = t[0]\n return 'p' === e || 'P' === e ? (0, D[e])(t, u.formatLong, k) : t\n })\n .join('')\n .match(yt),\n P = []\n for (T = 0; T < S.length; T++) {\n var E = S[T]\n !o.useAdditionalWeekYearTokens && M(E) && U(E), !o.useAdditionalDayOfYearTokens && C(E) && U(E)\n var Y = E[0],\n N = vt[Y]\n if (N) {\n var q = N.incompatibleTokens\n if (Array.isArray(q)) {\n for (var B = void 0, O = 0; O < P.length; O++) {\n var H = P[O].token\n if (-1 !== q.indexOf(H) || H === Y) {\n B = P[O]\n break\n }\n }\n if (B)\n throw new RangeError(\n \"The format string mustn't contain `\"\n .concat(B.fullToken, '` and `')\n .concat(E, '` at the same time'),\n )\n } else if ('*' === N.incompatibleTokens && P.length)\n throw new RangeError(\n \"The format string mustn't contain `\".concat(E, '` and any other token at the same time'),\n )\n P.push({token: Y, fullToken: E})\n var L = N.parse(a, E, u.match, k)\n if (!L) return new Date(NaN)\n x.push({\n priority: N.priority,\n set: N.set,\n validate: N.validate,\n value: L.value,\n index: x.length,\n }),\n (a = L.rest)\n } else {\n if (Y.match(kt))\n throw new RangeError(\n 'Format string contains an unescaped latin alphabet character `' + Y + '`',\n )\n if ((\"''\" === E ? (E = \"'\") : \"'\" === Y && (E = Mt(E)), 0 !== a.indexOf(E)))\n return new Date(NaN)\n a = a.slice(E.length)\n }\n }\n if (a.length > 0 && pt.test(a)) return new Date(NaN)\n var W = x\n .map(function (t) {\n return t.priority\n })\n .sort(function (t, e) {\n return e - t\n })\n .filter(function (t, e, n) {\n return n.indexOf(t) === e\n })\n .map(function (t) {\n return x\n .filter(function (e) {\n return e.priority === t\n })\n .reverse()\n })\n .map(function (t) {\n return t[0]\n }),\n F = m(n)\n if (isNaN(F)) return new Date(NaN)\n var Q = g(F, p(F)),\n R = {}\n for (T = 0; T < W.length; T++) {\n var I = W[T]\n if (I.validate && !I.validate(Q, I.value, k)) return new Date(NaN)\n var X = I.set(Q, R, I.value, k)\n X[0] ? ((Q = X[0]), v(R, X[1])) : (Q = X)\n }\n return Q\n}\nfunction Ct(t, e) {\n if (e.timestampIsSet) return t\n var n = new Date(0)\n return (\n n.setFullYear(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()),\n n.setHours(t.getUTCHours(), t.getUTCMinutes(), t.getUTCSeconds(), t.getUTCMilliseconds()),\n n\n )\n}\nfunction Mt(t) {\n return t.match(Dt)[1].replace(Tt, \"'\")\n}\nfunction Ut(t) {\n h(1, arguments)\n var e = m(t)\n return !isNaN(e)\n}\nfunction St(t, e) {\n for (var n = t < 0 ? '-' : '', r = Math.abs(t).toString(); r.length < e; ) r = '0' + r\n return n + r\n}\nvar Pt = function (t, e) {\n var n = t.getUTCFullYear(),\n r = n > 0 ? n : 1 - n\n return St('yy' === e ? r % 100 : r, e.length)\n },\n Et = function (t, e) {\n var n = t.getUTCMonth()\n return 'M' === e ? String(n + 1) : St(n + 1, 2)\n },\n Yt = function (t, e) {\n return St(t.getUTCDate(), e.length)\n },\n Nt = function (t, e) {\n return St(t.getUTCHours() % 12 || 12, e.length)\n },\n qt = function (t, e) {\n return St(t.getUTCHours(), e.length)\n },\n Bt = function (t, e) {\n return St(t.getUTCMinutes(), e.length)\n },\n Ot = function (t, e) {\n return St(t.getUTCSeconds(), e.length)\n },\n Ht = function (t, e) {\n var n = e.length,\n r = t.getUTCMilliseconds()\n return St(Math.floor(r * Math.pow(10, n - 3)), e.length)\n }\nvar Lt = 'midnight',\n Wt = 'noon',\n Ft = 'morning',\n Qt = 'afternoon',\n Rt = 'evening',\n It = 'night',\n Xt = {\n G: function (t, e, n) {\n var r = t.getUTCFullYear() > 0 ? 1 : 0\n switch (e) {\n case 'G':\n case 'GG':\n case 'GGG':\n return n.era(r, {width: 'abbreviated'})\n case 'GGGGG':\n return n.era(r, {width: 'narrow'})\n case 'GGGG':\n default:\n return n.era(r, {width: 'wide'})\n }\n },\n y: function (t, e, n) {\n if ('yo' === e) {\n var r = t.getUTCFullYear(),\n a = r > 0 ? r : 1 - r\n return n.ordinalNumber(a, {unit: 'year'})\n }\n return Pt(t, e)\n },\n Y: function (t, e, n, r) {\n var a = P(t, r),\n i = a > 0 ? a : 1 - a\n return 'YY' === e\n ? St(i % 100, 2)\n : 'Yo' === e\n ? n.ordinalNumber(i, {unit: 'year'})\n : St(i, e.length)\n },\n R: function (t, e) {\n return St(N(t), e.length)\n },\n u: function (t, e) {\n return St(t.getUTCFullYear(), e.length)\n },\n Q: function (t, e, n) {\n var r = Math.ceil((t.getUTCMonth() + 1) / 3)\n switch (e) {\n case 'Q':\n return String(r)\n case 'QQ':\n return St(r, 2)\n case 'Qo':\n return n.ordinalNumber(r, {unit: 'quarter'})\n case 'QQQ':\n return n.quarter(r, {width: 'abbreviated', context: 'formatting'})\n case 'QQQQQ':\n return n.quarter(r, {width: 'narrow', context: 'formatting'})\n case 'QQQQ':\n default:\n return n.quarter(r, {width: 'wide', context: 'formatting'})\n }\n },\n q: function (t, e, n) {\n var r = Math.ceil((t.getUTCMonth() + 1) / 3)\n switch (e) {\n case 'q':\n return String(r)\n case 'qq':\n return St(r, 2)\n case 'qo':\n return n.ordinalNumber(r, {unit: 'quarter'})\n case 'qqq':\n return n.quarter(r, {width: 'abbreviated', context: 'standalone'})\n case 'qqqqq':\n return n.quarter(r, {width: 'narrow', context: 'standalone'})\n case 'qqqq':\n default:\n return n.quarter(r, {width: 'wide', context: 'standalone'})\n }\n },\n M: function (t, e, n) {\n var r = t.getUTCMonth()\n switch (e) {\n case 'M':\n case 'MM':\n return Et(t, e)\n case 'Mo':\n return n.ordinalNumber(r + 1, {unit: 'month'})\n case 'MMM':\n return n.month(r, {width: 'abbreviated', context: 'formatting'})\n case 'MMMMM':\n return n.month(r, {width: 'narrow', context: 'formatting'})\n case 'MMMM':\n default:\n return n.month(r, {width: 'wide', context: 'formatting'})\n }\n },\n L: function (t, e, n) {\n var r = t.getUTCMonth()\n switch (e) {\n case 'L':\n return String(r + 1)\n case 'LL':\n return St(r + 1, 2)\n case 'Lo':\n return n.ordinalNumber(r + 1, {unit: 'month'})\n case 'LLL':\n return n.month(r, {width: 'abbreviated', context: 'standalone'})\n case 'LLLLL':\n return n.month(r, {width: 'narrow', context: 'standalone'})\n case 'LLLL':\n default:\n return n.month(r, {width: 'wide', context: 'standalone'})\n }\n },\n w: function (t, e, n, r) {\n var a = H(t, r)\n return 'wo' === e ? n.ordinalNumber(a, {unit: 'week'}) : St(a, e.length)\n },\n I: function (t, e, n) {\n var r = B(t)\n return 'Io' === e ? n.ordinalNumber(r, {unit: 'week'}) : St(r, e.length)\n },\n d: function (t, e, n) {\n return 'do' === e ? n.ordinalNumber(t.getUTCDate(), {unit: 'date'}) : Yt(t, e)\n },\n D: function (t, e, n) {\n var r = (function (t) {\n h(1, arguments)\n var e = m(t),\n n = e.getTime()\n e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0)\n var r = e.getTime(),\n a = n - r\n return Math.floor(a / 864e5) + 1\n })(t)\n return 'Do' === e ? n.ordinalNumber(r, {unit: 'dayOfYear'}) : St(r, e.length)\n },\n E: function (t, e, n) {\n var r = t.getUTCDay()\n switch (e) {\n case 'E':\n case 'EE':\n case 'EEE':\n return n.day(r, {width: 'abbreviated', context: 'formatting'})\n case 'EEEEE':\n return n.day(r, {width: 'narrow', context: 'formatting'})\n case 'EEEEEE':\n return n.day(r, {width: 'short', context: 'formatting'})\n case 'EEEE':\n default:\n return n.day(r, {width: 'wide', context: 'formatting'})\n }\n },\n e: function (t, e, n, r) {\n var a = t.getUTCDay(),\n i = (a - r.weekStartsOn + 8) % 7 || 7\n switch (e) {\n case 'e':\n return String(i)\n case 'ee':\n return St(i, 2)\n case 'eo':\n return n.ordinalNumber(i, {unit: 'day'})\n case 'eee':\n return n.day(a, {width: 'abbreviated', context: 'formatting'})\n case 'eeeee':\n return n.day(a, {width: 'narrow', context: 'formatting'})\n case 'eeeeee':\n return n.day(a, {width: 'short', context: 'formatting'})\n case 'eeee':\n default:\n return n.day(a, {width: 'wide', context: 'formatting'})\n }\n },\n c: function (t, e, n, r) {\n var a = t.getUTCDay(),\n i = (a - r.weekStartsOn + 8) % 7 || 7\n switch (e) {\n case 'c':\n return String(i)\n case 'cc':\n return St(i, e.length)\n case 'co':\n return n.ordinalNumber(i, {unit: 'day'})\n case 'ccc':\n return n.day(a, {width: 'abbreviated', context: 'standalone'})\n case 'ccccc':\n return n.day(a, {width: 'narrow', context: 'standalone'})\n case 'cccccc':\n return n.day(a, {width: 'short', context: 'standalone'})\n case 'cccc':\n default:\n return n.day(a, {width: 'wide', context: 'standalone'})\n }\n },\n i: function (t, e, n) {\n var r = t.getUTCDay(),\n a = 0 === r ? 7 : r\n switch (e) {\n case 'i':\n return String(a)\n case 'ii':\n return St(a, e.length)\n case 'io':\n return n.ordinalNumber(a, {unit: 'day'})\n case 'iii':\n return n.day(r, {width: 'abbreviated', context: 'formatting'})\n case 'iiiii':\n return n.day(r, {width: 'narrow', context: 'formatting'})\n case 'iiiiii':\n return n.day(r, {width: 'short', context: 'formatting'})\n case 'iiii':\n default:\n return n.day(r, {width: 'wide', context: 'formatting'})\n }\n },\n a: function (t, e, n) {\n var r = t.getUTCHours() / 12 >= 1 ? 'pm' : 'am'\n switch (e) {\n case 'a':\n case 'aa':\n case 'aaa':\n return n.dayPeriod(r, {width: 'abbreviated', context: 'formatting'})\n case 'aaaaa':\n return n.dayPeriod(r, {width: 'narrow', context: 'formatting'})\n case 'aaaa':\n default:\n return n.dayPeriod(r, {width: 'wide', context: 'formatting'})\n }\n },\n b: function (t, e, n) {\n var r,\n a = t.getUTCHours()\n switch (((r = 12 === a ? Wt : 0 === a ? Lt : a / 12 >= 1 ? 'pm' : 'am'), e)) {\n case 'b':\n case 'bb':\n case 'bbb':\n return n.dayPeriod(r, {width: 'abbreviated', context: 'formatting'})\n case 'bbbbb':\n return n.dayPeriod(r, {width: 'narrow', context: 'formatting'})\n case 'bbbb':\n default:\n return n.dayPeriod(r, {width: 'wide', context: 'formatting'})\n }\n },\n B: function (t, e, n) {\n var r,\n a = t.getUTCHours()\n switch (((r = a >= 17 ? Rt : a >= 12 ? Qt : a >= 4 ? Ft : It), e)) {\n case 'B':\n case 'BB':\n case 'BBB':\n return n.dayPeriod(r, {width: 'abbreviated', context: 'formatting'})\n case 'BBBBB':\n return n.dayPeriod(r, {width: 'narrow', context: 'formatting'})\n case 'BBBB':\n default:\n return n.dayPeriod(r, {width: 'wide', context: 'formatting'})\n }\n },\n h: function (t, e, n) {\n if ('ho' === e) {\n var r = t.getUTCHours() % 12\n return 0 === r && (r = 12), n.ordinalNumber(r, {unit: 'hour'})\n }\n return Nt(t, e)\n },\n H: function (t, e, n) {\n return 'Ho' === e ? n.ordinalNumber(t.getUTCHours(), {unit: 'hour'}) : qt(t, e)\n },\n K: function (t, e, n) {\n var r = t.getUTCHours() % 12\n return 'Ko' === e ? n.ordinalNumber(r, {unit: 'hour'}) : St(r, e.length)\n },\n k: function (t, e, n) {\n var r = t.getUTCHours()\n return 0 === r && (r = 24), 'ko' === e ? n.ordinalNumber(r, {unit: 'hour'}) : St(r, e.length)\n },\n m: function (t, e, n) {\n return 'mo' === e ? n.ordinalNumber(t.getUTCMinutes(), {unit: 'minute'}) : Bt(t, e)\n },\n s: function (t, e, n) {\n return 'so' === e ? n.ordinalNumber(t.getUTCSeconds(), {unit: 'second'}) : Ot(t, e)\n },\n S: function (t, e) {\n return Ht(t, e)\n },\n X: function (t, e, n, r) {\n var a = (r._originalDate || t).getTimezoneOffset()\n if (0 === a) return 'Z'\n switch (e) {\n case 'X':\n return At(a)\n case 'XXXX':\n case 'XX':\n return zt(a)\n case 'XXXXX':\n case 'XXX':\n default:\n return zt(a, ':')\n }\n },\n x: function (t, e, n, r) {\n var a = (r._originalDate || t).getTimezoneOffset()\n switch (e) {\n case 'x':\n return At(a)\n case 'xxxx':\n case 'xx':\n return zt(a)\n case 'xxxxx':\n case 'xxx':\n default:\n return zt(a, ':')\n }\n },\n O: function (t, e, n, r) {\n var a = (r._originalDate || t).getTimezoneOffset()\n switch (e) {\n case 'O':\n case 'OO':\n case 'OOO':\n return 'GMT' + Gt(a, ':')\n case 'OOOO':\n default:\n return 'GMT' + zt(a, ':')\n }\n },\n z: function (t, e, n, r) {\n var a = (r._originalDate || t).getTimezoneOffset()\n switch (e) {\n case 'z':\n case 'zz':\n case 'zzz':\n return 'GMT' + Gt(a, ':')\n case 'zzzz':\n default:\n return 'GMT' + zt(a, ':')\n }\n },\n t: function (t, e, n, r) {\n var a = r._originalDate || t\n return St(Math.floor(a.getTime() / 1e3), e.length)\n },\n T: function (t, e, n, r) {\n return St((r._originalDate || t).getTime(), e.length)\n },\n }\nfunction Gt(t, e) {\n var n = t > 0 ? '-' : '+',\n r = Math.abs(t),\n a = Math.floor(r / 60),\n i = r % 60\n if (0 === i) return n + String(a)\n var o = e || ''\n return n + String(a) + o + St(i, 2)\n}\nfunction At(t, e) {\n return t % 60 == 0 ? (t > 0 ? '-' : '+') + St(Math.abs(t) / 60, 2) : zt(t, e)\n}\nfunction zt(t, e) {\n var n = e || '',\n r = t > 0 ? '-' : '+',\n a = Math.abs(t)\n return r + St(Math.floor(a / 60), 2) + n + St(a % 60, 2)\n}\nvar jt = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g,\n Kt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,\n Jt = /^'([^]*?)'?$/,\n Zt = /''/g,\n _t = /[a-zA-Z]/\nfunction $t(t, e, n) {\n h(2, arguments)\n var r = String(e),\n a = n || {},\n i = a.locale || l,\n o = i.options && i.options.firstWeekContainsDate,\n u = null == o ? 1 : f(o),\n s = null == a.firstWeekContainsDate ? u : f(a.firstWeekContainsDate)\n if (!(s >= 1 && s <= 7))\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively')\n var c = i.options && i.options.weekStartsOn,\n d = null == c ? 0 : f(c),\n w = null == a.weekStartsOn ? d : f(a.weekStartsOn)\n if (!(w >= 0 && w <= 6)) throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')\n if (!i.localize) throw new RangeError('locale must contain localize property')\n if (!i.formatLong) throw new RangeError('locale must contain formatLong property')\n var v = m(t)\n if (!Ut(v)) throw new RangeError('Invalid time value')\n var y = p(v),\n b = g(v, y),\n T = {firstWeekContainsDate: s, weekStartsOn: w, locale: i, _originalDate: v},\n k = r\n .match(Kt)\n .map(function (t) {\n var e = t[0]\n return 'p' === e || 'P' === e ? (0, D[e])(t, i.formatLong, T) : t\n })\n .join('')\n .match(jt)\n .map(function (t) {\n if (\"''\" === t) return \"'\"\n var e = t[0]\n if (\"'\" === e) return Vt(t)\n var n = Xt[e]\n if (n)\n return (\n !a.useAdditionalWeekYearTokens && M(t) && U(t),\n !a.useAdditionalDayOfYearTokens && C(t) && U(t),\n n(b, t, i.localize, T)\n )\n if (e.match(_t))\n throw new RangeError(\n 'Format string contains an unescaped latin alphabet character `' + e + '`',\n )\n return t\n })\n .join('')\n return k\n}\nfunction Vt(t) {\n return t.match(Jt)[1].replace(Zt, \"'\")\n}\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */ function te(\n t,\n e,\n) {\n h(2, arguments)\n var n = m(t),\n r = f(e)\n return isNaN(r) ? new Date(NaN) : r ? (n.setDate(n.getDate() + r), n) : n\n}\nfunction ee(t, e) {\n h(1, arguments)\n var n = t || {},\n r = m(n.start),\n a = m(n.end),\n i = a.getTime()\n if (!(r.getTime() <= i)) throw new RangeError('Invalid interval')\n var o = [],\n u = r\n u.setHours(0, 0, 0, 0)\n var s = e && 'step' in e ? Number(e.step) : 1\n if (s < 1 || isNaN(s)) throw new RangeError('`options.step` must be a number greater than 1')\n for (; u.getTime() <= i; ) o.push(m(u)), u.setDate(u.getDate() + s), u.setHours(0, 0, 0, 0)\n return o\n}\nfunction ne(t, e) {\n h(1, arguments)\n var n = e || {},\n r = n.locale,\n a = r && r.options && r.options.weekStartsOn,\n i = null == a ? 0 : f(a),\n o = null == n.weekStartsOn ? i : f(n.weekStartsOn)\n if (!(o >= 0 && o <= 6)) throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')\n var u = m(t),\n s = u.getDay(),\n c = 6 + (s < o ? -7 : 0) - (s - o)\n return u.setDate(u.getDate() + c), u.setHours(23, 59, 59, 999), u\n}\nfunction re(t) {\n h(1, arguments)\n var e = m(t)\n return e.setDate(1), e.setHours(0, 0, 0, 0), e\n}\nfunction ae(t, e) {\n h(1, arguments)\n var n = e || {},\n r = n.locale,\n a = r && r.options && r.options.weekStartsOn,\n i = null == a ? 0 : f(a),\n o = null == n.weekStartsOn ? i : f(n.weekStartsOn)\n if (!(o >= 0 && o <= 6)) throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')\n var u = m(t),\n s = u.getDay(),\n c = (s < o ? 7 : 0) + s - o\n return u.setDate(u.getDate() - c), u.setHours(0, 0, 0, 0), u\n}\nfunction ie(t) {\n var e = void 0 === t ? {} : t,\n n = e.firstDayOfWeek,\n r = void 0 === n ? 1 : n,\n a = e.weekdayLabelFormat,\n i =\n void 0 === a\n ? function (t) {\n return $t(t, 'iiiiii')\n }\n : a,\n o = new Date()\n return ee({start: te(ae(o), r), end: te(ne(o), r)}).reduce(function (t, e) {\n return t.push(i(e)), t\n }, [])\n}\nfunction oe(t) {\n var e = t.year,\n n = t.month,\n r = t.firstDayOfWeek,\n a = void 0 === r ? 1 : r,\n i = t.dayLabelFormat,\n o =\n void 0 === i\n ? function (t) {\n return $t(t, 'dd')\n }\n : i,\n u = new Date(e, n),\n s = re(u),\n c = (function (t) {\n h(1, arguments)\n var e = m(t),\n n = e.getDay()\n return n\n })(s),\n d = (function (t) {\n h(1, arguments)\n var e = m(t),\n n = e.getMonth()\n return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e\n })(u)\n return (function () {\n for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length\n var r = Array(t),\n a = 0\n for (e = 0; e < n; e++)\n for (var i = arguments[e], o = 0, u = i.length; o < u; o++, a++) r[a] = i[o]\n return r\n })(\n Array.from(Array(c >= a ? c - a : 6 - a + c + 1).keys()).fill(0),\n ee({start: s, end: d}).map(function (t) {\n return {date: t, dayLabel: o(t)}\n }),\n )\n}\nvar ue = function (t) {\n return $t(t, 'dd')\n },\n se = function (t) {\n return $t(t, 'eeeeee')\n },\n ce = function (t) {\n return $t(t, 'MMMM yyyy')\n }\nfunction de(e) {\n var n = e.year,\n r = e.month,\n a = e.firstDayOfWeek,\n i = void 0 === a ? 1 : a,\n o = e.dayLabelFormat,\n u = void 0 === o ? ue : o,\n s = e.weekdayLabelFormat,\n c = void 0 === s ? se : s,\n d = e.monthLabelFormat,\n l = void 0 === d ? ce : d\n return {\n days: t(\n function () {\n return oe({year: n, month: r, firstDayOfWeek: i, dayLabelFormat: u})\n },\n [n, r, i, u],\n ),\n weekdayLabels: t(\n function () {\n return ie({firstDayOfWeek: i, weekdayLabelFormat: c})\n },\n [i, c],\n ),\n monthLabel: l(new Date(n, r)),\n }\n}\nfunction le(t, e) {\n h(2, arguments)\n var n = m(t),\n r = m(e)\n return n.getTime() < r.getTime()\n}\nfunction fe(t, e) {\n h(2, arguments)\n var n = m(t),\n r = m(e)\n return n.getTime() > r.getTime()\n}\nfunction he(t, e) {\n h(2, arguments)\n var n = e || {},\n r = m(t).getTime(),\n a = m(n.start).getTime(),\n i = m(n.end).getTime()\n if (!(a <= i)) throw new RangeError('Invalid interval')\n return r >= a && r <= i\n}\nfunction me(t) {\n h(1, arguments)\n var e = m(t)\n return e.setHours(0, 0, 0, 0), e\n}\nfunction we(t, e) {\n h(2, arguments)\n var n = me(t),\n r = me(e)\n return n.getTime() === r.getTime()\n}\nfunction ge(t, e) {\n h(2, arguments)\n var n = m(t),\n r = f(e)\n if (isNaN(r)) return new Date(NaN)\n if (!r) return n\n var a = n.getDate(),\n i = new Date(n.getTime())\n i.setMonth(n.getMonth() + r + 1, 0)\n var o = i.getDate()\n return a >= o ? i : (n.setFullYear(i.getFullYear(), i.getMonth(), a), n)\n}\nvar ve = function (t, e) {\n return (\n void 0 === t && (t = []),\n t.some(function (t) {\n return we(e, t)\n })\n )\n}\nfunction ye(t, e, n) {\n return !(!e || !n) && he(t, {start: e, end: n})\n}\nfunction be(t, e, n) {\n return !!((e && we(t, e)) || (n && we(t, n)))\n}\nfunction De(t, e) {\n return !(!e || !we(t, e))\n}\nfunction Te(t, e) {\n return !(!e || !we(t, e))\n}\nfunction pe(t) {\n var e = t.date,\n n = t.minBookingDate,\n r = t.maxBookingDate,\n a = t.isDateBlockedFn,\n i = t.startDate,\n o = t.endDate,\n u = t.minBookingDays,\n s = void 0 === u ? 1 : u,\n c = t.unavailableDates,\n d = void 0 === c ? [] : c,\n l = n ? new Date(n.getFullYear(), n.getMonth(), n.getDate(), 0, 0, 0) : n,\n f = r ? new Date(r.getFullYear(), r.getMonth(), r.getDate(), 0, 0, 0) : r\n return !!(\n ve(d, e) ||\n (l && le(e, l)) ||\n (f && fe(e, f)) ||\n (i && !o && s > 1 && he(e, {start: i, end: te(i, s - 2)})) ||\n (a && a(e))\n )\n}\nfunction ke(t) {\n var e = re(t)\n return {\n year: (function (t) {\n h(1, arguments)\n var e = m(t),\n n = e.getFullYear()\n return n\n })(e),\n month: (function (t) {\n h(1, arguments)\n var e = m(t),\n n = e.getMonth()\n return n\n })(e),\n date: e,\n }\n}\nfunction xe() {\n return ke(me(Date.now()))\n}\nfunction Ce(t, e) {\n var n = e ? ke(e) : xe(),\n r = n.date,\n a = [n]\n return (\n t > 1 &&\n (a = Array.from(Array(t - 1).keys()).reduce(function (t) {\n return (r = ge(t[t.length - 1].date, 1)), t.concat([ke(r)])\n }, a)),\n a\n )\n}\nfunction Me(t, e, n, r) {\n var a = t[r ? (n > 0 ? 0 : t.length - r) : n > 0 ? t.length - 1 : 0].date\n return Array.from(Array(e).keys()).reduce(function (t) {\n return (\n (a = 0 === t.length ? ge(a, n) : ge(a, n >= 0 ? 1 : -1)),\n n > 0 ? t.concat([ke(a)]) : [ke(a)].concat(t)\n )\n }, [])\n}\nfunction Ue(t, e, n) {\n return t && 'string' == typeof e ? $t(t, e) : t && 'function' == typeof e ? e(t) : n\n}\nfunction Se(t) {\n var e = t.startDate,\n n = t.endDate,\n r = t.isDateBlocked,\n a = t.minBookingDays,\n i = t.exactMinBookingDays,\n o = t.minBookingDate,\n u = t.maxBookingDate,\n s = !o || !le(e, te(o, -1)),\n c = !u || !fe(te(e, a - 1), u)\n return (\n !(!e || 1 !== a || n || r(e)) ||\n ((e && a > 1 && !n && !i) || (e && a > 0 && i && s && c) || (e && a > 0 && i && !o && !u)\n ? !ee({start: e, end: te(e, a - 1)}).some(function (t) {\n return r(t)\n })\n : !(!e || !n || i) &&\n !le(n, te(e, a - 1)) &&\n !ee({start: e, end: n}).some(function (t) {\n return r(t)\n }))\n )\n}\nvar Pe = 'startDate',\n Ee = 'endDate'\nfunction Ye(t) {\n var a = t.startDate,\n i = t.endDate,\n o = t.focusedInput,\n u = t.minBookingDate,\n s = t.maxBookingDate,\n c = t.onDatesChange,\n d = t.initialVisibleMonth,\n l = t.exactMinBookingDays,\n f = void 0 !== l && l,\n h = t.minBookingDays,\n m = void 0 === h ? 1 : h,\n w = t.numberOfMonths,\n g = void 0 === w ? 2 : w,\n v = t.firstDayOfWeek,\n y = void 0 === v ? 1 : v,\n b = t.isDateBlocked,\n D =\n void 0 === b\n ? function () {\n return !1\n }\n : b,\n T = t.unavailableDates,\n p = void 0 === T ? [] : T,\n k = t.changeActiveMonthOnSelect,\n x = void 0 === k || k,\n C = e(function () {\n return Ce(g, a || d || null)\n }),\n M = C[0],\n U = C[1],\n S = e(null),\n P = S[0],\n E = S[1],\n Y = e(a),\n N = Y[0],\n q = Y[1]\n n(function () {\n return (\n 'undefined' != typeof window &&\n window.addEventListener &&\n window.addEventListener('keydown', L),\n function () {\n window.removeEventListener && window.removeEventListener('keydown', L)\n }\n )\n })\n var B = function (t) {\n return ve(p, t) || D(t)\n },\n O = function (t) {\n q(t), (!N || (N && !we(t, N))) && U(Ce(g, t))\n },\n H = function (t) {\n return pe({\n date: t,\n minBookingDate: u,\n maxBookingDate: s,\n startDate: a,\n endDate: i,\n minBookingDays: m,\n isDateBlockedFn: B,\n })\n }\n function L(t) {\n if (\n ('ArrowRight' === t.key ||\n 'ArrowLeft' === t.key ||\n 'ArrowDown' === t.key ||\n 'ArrowUp' === t.key) &&\n !N\n ) {\n var e = M[0]\n O(e.date), U(Ce(g, e.date))\n }\n }\n var W = r(\n function () {\n U(Me(M, g, -1)), q(null)\n },\n [M, g],\n ),\n F = r(\n function () {\n U(Me(M, g, -1, 1)), q(null)\n },\n [M, g],\n ),\n Q = r(\n function () {\n U(Me(M, g, 1)), q(null)\n },\n [M, g],\n ),\n R = r(\n function () {\n U(Me(M, g, 1, 1)), q(null)\n },\n [M, g],\n ),\n I = r(\n function (t) {\n U(Ce(g, t)), q(null)\n },\n [g],\n ),\n X = r(\n function (t) {\n void 0 === t && (t = 1), U(Me(M, g, -(12 * t - g + 1))), q(null)\n },\n [M, g],\n ),\n G = r(\n function (t) {\n void 0 === t && (t = 1), U(Me(M, g, 12 * t - g + 1)), q(null)\n },\n [M, g],\n )\n return {\n firstDayOfWeek: y,\n activeMonths: M,\n isDateSelected: function (t) {\n return ye(t, a, i)\n },\n isDateHovered: function (t) {\n return (function (t) {\n var e = t.date,\n n = t.startDate,\n r = t.endDate,\n a = t.isDateBlocked,\n i = t.hoveredDate,\n o = t.minBookingDays,\n u = t.exactMinBookingDays\n return i && o > 1 && u && he(e, {start: i, end: te(i, o - 1)})\n ? !ee({start: i, end: te(i, o - 1)}).some(function (t) {\n return a(t)\n })\n : n && !r && i && he(e, {start: n, end: te(n, o - 1)}) && we(n, i) && o > 1\n ? !ee({start: n, end: te(n, o - 1)}).some(function (t) {\n return a(t)\n })\n : !(!n || r || !i || le(i, n) || !he(e, {start: n, end: i})) &&\n !ee({start: n, end: i}).some(function (t) {\n return a(t)\n })\n })({\n date: t,\n hoveredDate: P,\n startDate: a,\n endDate: i,\n minBookingDays: m,\n exactMinBookingDays: f,\n isDateBlocked: B,\n })\n },\n isFirstOrLastSelectedDate: function (t) {\n return be(t, a, i)\n },\n isStartDate: function (t) {\n return De(t, a)\n },\n isEndDate: function (t) {\n return Te(t, i)\n },\n isDateBlocked: H,\n numberOfMonths: g,\n isDateFocused: function (t) {\n return !!N && we(t, N)\n },\n focusedDate: N,\n hoveredDate: P,\n onResetDates: function () {\n c({startDate: null, endDate: null, focusedInput: 'startDate'})\n },\n onDateHover: function (t) {\n if (t) {\n if (t) {\n var e = !H(t) || (a && we(t, a)),\n n = !u || !le(t, te(u, -1)),\n r = !s || !fe(t, s),\n o = te(t, m - 1),\n c = !u || !le(o, u),\n d = !s || !fe(o, s),\n l = f && m > 1 && n && r && c && d,\n h = a && !i && !f && n && r,\n w = !(m > 1 && a) || he(t, {start: a, end: te(a, m - 2)}),\n g = a && we(t, a) && w\n e && (l || h || g) ? E(t) : null !== P && E(null)\n }\n } else E(null)\n },\n onDateSelect: function (t) {\n ;('endDate' === o || 'startDate' === o) &&\n m > 0 &&\n f &&\n Se({\n minBookingDays: m,\n exactMinBookingDays: f,\n minBookingDate: u,\n maxBookingDate: s,\n isDateBlocked: B,\n startDate: t,\n endDate: null,\n })\n ? c({startDate: t, endDate: te(t, m - 1), focusedInput: null})\n : (('endDate' === o && a && le(t, a)) || ('startDate' === o && i && fe(t, i))) &&\n !f &&\n Se({minBookingDays: m, isDateBlocked: B, startDate: t, endDate: null})\n ? c({endDate: null, startDate: t, focusedInput: 'endDate'})\n : 'startDate' === o &&\n !f &&\n Se({minBookingDays: m, isDateBlocked: B, endDate: i, startDate: t})\n ? c({endDate: i, startDate: t, focusedInput: 'endDate'})\n : 'startDate' === o &&\n !f &&\n Se({minBookingDays: m, isDateBlocked: B, endDate: null, startDate: t})\n ? c({endDate: null, startDate: t, focusedInput: 'endDate'})\n : 'endDate' === o &&\n a &&\n !le(t, a) &&\n !f &&\n Se({minBookingDays: m, isDateBlocked: B, startDate: a, endDate: t}) &&\n c({startDate: a, endDate: t, focusedInput: null}),\n 'endDate' !== o && (!N || (N && !we(t, N))) && x && U(Ce(g, t))\n },\n onDateFocus: O,\n goToPreviousMonths: W,\n goToPreviousMonthsByOneMonth: F,\n goToNextMonths: Q,\n goToNextMonthsByOneMonth: R,\n goToDate: I,\n goToPreviousYear: X,\n goToNextYear: G,\n }\n}\nfunction Ne(t) {\n var e = t.date,\n n = t.focusedDate,\n a = t.isDateSelected,\n i = t.isDateFocused,\n o = t.isFirstOrLastSelectedDate,\n u = t.isDateHovered,\n s = t.isDateBlocked,\n c = t.onDateSelect,\n d = t.onDateFocus,\n l = t.onDateHover,\n f = r(\n function () {\n return c(e)\n },\n [e, c],\n ),\n h = r(\n function () {\n return l(e)\n },\n [e, l],\n ),\n m = s(e) && !u(e)\n return {\n tabIndex: null === n || i(e) ? 0 : -1,\n isSelected: a(e),\n isSelectedStartOrEnd: o(e),\n isWithinHoverRange: u(e),\n disabledDate: m,\n onKeyDown: function (t) {\n 'ArrowRight' === t.key\n ? d(te(e, 1))\n : 'ArrowLeft' === t.key\n ? d(te(e, -1))\n : 'ArrowUp' === t.key\n ? d(te(e, -7))\n : 'ArrowDown' === t.key && d(te(e, 7))\n },\n onClick: m ? function () {} : f,\n onMouseEnter: h,\n }\n}\nexport {\n Ee as END_DATE,\n Pe as START_DATE,\n ue as dayLabelFormat,\n xe as getCurrentYearMonthAndDate,\n ke as getDateMonthAndYear,\n oe as getDays,\n Ce as getInitialMonths,\n Ue as getInputValue,\n ie as getWeekdayLabels,\n pe as isDateBlocked,\n ye as isDateSelected,\n Te as isEndDate,\n be as isFirstOrLastSelectedDate,\n De as isStartDate,\n ce as monthLabelFormat,\n xt as parseDate,\n Ye as useDatepicker,\n Ne as useDay,\n de as useMonth,\n se as weekdayLabelFormat,\n}\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar react_1 = require(\"react\");\nvar react_dom_1 = require(\"react-dom\");\nvar use_ssr_1 = __importDefault(require(\"use-ssr\"));\nexports.errorMessage1 = 'You must either add a `ref` to the element you are interacting with or pass an `event` to openPortal(e) or togglePortal(e).';\nfunction usePortal(_a) {\n if (_a === void 0) { _a = {}; }\n var _b = _a.closeOnOutsideClick, closeOnOutsideClick = _b === void 0 ? true : _b, _c = _a.closeOnEsc, closeOnEsc = _c === void 0 ? true : _c, bindTo = _a.bindTo, // attach the portal to this node in the DOM\n _d = _a.isOpen, // attach the portal to this node in the DOM\n defaultIsOpen = _d === void 0 ? false : _d, onOpen = _a.onOpen, onClose = _a.onClose, onPortalClick = _a.onPortalClick, eventHandlers = __rest(_a, [\"closeOnOutsideClick\", \"closeOnEsc\", \"bindTo\", \"isOpen\", \"onOpen\", \"onClose\", \"onPortalClick\"]);\n var _e = use_ssr_1.default(), isServer = _e.isServer, isBrowser = _e.isBrowser;\n var _f = react_1.useState(defaultIsOpen), isOpen = _f[0], makeOpen = _f[1];\n // we use this ref because `isOpen` is stale for handleOutsideMouseClick\n var open = react_1.useRef(isOpen);\n var setOpen = react_1.useCallback(function (v) {\n // workaround to not have stale `isOpen` in the handleOutsideMouseClick\n open.current = v;\n makeOpen(v);\n }, []);\n var targetEl = react_1.useRef(); // this is the element you are clicking/hovering/whatever, to trigger opening the portal\n var portal = react_1.useRef(isBrowser ? document.createElement('div') : null);\n react_1.useEffect(function () {\n if (isBrowser && !portal.current)\n portal.current = document.createElement('div');\n }, [isBrowser, portal]);\n var elToMountTo = react_1.useMemo(function () {\n if (isServer)\n return;\n return (bindTo && react_dom_1.findDOMNode(bindTo)) || document.body;\n }, [isServer, bindTo]);\n var createCustomEvent = function (e) {\n if (!e)\n return { portal: portal, targetEl: targetEl, event: e };\n var event = e || {};\n if (event.persist)\n event.persist();\n event.portal = portal;\n event.targetEl = targetEl;\n event.event = e;\n var currentTarget = e.currentTarget;\n if (!targetEl.current && currentTarget && currentTarget !== document)\n targetEl.current = event.currentTarget;\n return event;\n };\n // this should handle all eventHandlers like onClick, onMouseOver, etc. passed into the config\n var customEventHandlers = Object\n .entries(eventHandlers)\n .reduce(function (acc, _a) {\n var handlerName = _a[0], eventHandler = _a[1];\n acc[handlerName] = function (event) {\n if (isServer)\n return;\n eventHandler(createCustomEvent(event));\n };\n return acc;\n }, {});\n var openPortal = react_1.useCallback(function (e) {\n if (isServer)\n return;\n var customEvent = createCustomEvent(e);\n // for some reason, when we don't have the event argument, there\n // is a weird race condition. Would like to see if we can remove\n // setTimeout, but for now this works\n if (targetEl.current == null) {\n setTimeout(function () { return setOpen(true); }, 0);\n throw Error(exports.errorMessage1);\n }\n if (onOpen)\n onOpen(customEvent);\n setOpen(true);\n }, [isServer, portal, setOpen, targetEl, onOpen]);\n var closePortal = react_1.useCallback(function (e) {\n if (isServer)\n return;\n var customEvent = createCustomEvent(e);\n if (onClose && open.current)\n onClose(customEvent);\n if (open.current)\n setOpen(false);\n }, [isServer, onClose, setOpen]);\n var togglePortal = react_1.useCallback(function (e) {\n return open.current ? closePortal(e) : openPortal(e);\n }, [closePortal, openPortal]);\n var handleKeydown = react_1.useCallback(function (e) {\n return (e.key === 'Escape' && closeOnEsc) ? closePortal(e) : undefined;\n }, [closeOnEsc, closePortal]);\n var handleOutsideMouseClick = react_1.useCallback(function (e) {\n var containsTarget = function (target) { return target.current.contains(e.target); };\n if (containsTarget(portal) || e.button !== 0 || !open.current || containsTarget(targetEl))\n return;\n if (closeOnOutsideClick)\n closePortal(e);\n }, [isServer, closePortal, closeOnOutsideClick, portal]);\n var handleMouseDown = react_1.useCallback(function (e) {\n if (isServer || !(portal.current instanceof HTMLElement))\n return;\n var customEvent = createCustomEvent(e);\n if (portal.current.contains(customEvent.target) && onPortalClick)\n onPortalClick(customEvent);\n handleOutsideMouseClick(e);\n }, [handleOutsideMouseClick]);\n // used to remove the event listeners on unmount\n var eventListeners = react_1.useRef({});\n react_1.useEffect(function () {\n if (isServer)\n return;\n if (!(elToMountTo instanceof HTMLElement) || !(portal.current instanceof HTMLElement))\n return;\n // TODO: eventually will need to figure out a better solution for this.\n // Surely we can find a way to map onScroll/onWheel -> scroll/wheel better,\n // but for all other event handlers. For now this works.\n var eventHandlerMap = {\n onScroll: 'scroll',\n onWheel: 'wheel',\n };\n var node = portal.current;\n elToMountTo.appendChild(portal.current);\n // handles all special case handlers. Currently only onScroll and onWheel\n Object.entries(eventHandlerMap).forEach(function (_a) {\n var handlerName = _a[0] /* onScroll */, eventListenerName = _a[1] /* scroll */;\n if (!eventHandlers[handlerName])\n return;\n eventListeners.current[handlerName] = function (e) { return eventHandlers[handlerName](createCustomEvent(e)); };\n document.addEventListener(eventListenerName, eventListeners.current[handlerName]);\n });\n document.addEventListener('keydown', handleKeydown);\n document.addEventListener('mousedown', handleMouseDown);\n return function () {\n // handles all special case handlers. Currently only onScroll and onWheel\n Object.entries(eventHandlerMap).forEach(function (_a) {\n var handlerName = _a[0], eventListenerName = _a[1];\n if (!eventHandlers[handlerName])\n return;\n document.removeEventListener(eventListenerName, eventListeners.current[handlerName]);\n delete eventListeners.current[handlerName];\n });\n document.removeEventListener('keydown', handleKeydown);\n document.removeEventListener('mousedown', handleMouseDown);\n elToMountTo.removeChild(node);\n };\n }, [isServer, handleOutsideMouseClick, handleKeydown, elToMountTo, portal]);\n var Portal = react_1.useCallback(function (_a) {\n var children = _a.children;\n if (portal.current != null)\n return react_dom_1.createPortal(children, portal.current);\n return null;\n }, [portal]);\n return Object.assign([openPortal, closePortal, open.current, Portal, togglePortal, targetEl, portal], __assign(__assign({ isOpen: open.current, openPortal: openPortal, ref: targetEl, closePortal: closePortal,\n togglePortal: togglePortal,\n Portal: Portal, portalRef: portal }, customEventHandlers), { bind: __assign({ ref: targetEl }, customEventHandlers) }));\n}\nexports.default = usePortal;\n//# sourceMappingURL=usePortal.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Device;\n(function (Device) {\n Device[\"Browser\"] = \"browser\";\n Device[\"Server\"] = \"server\";\n Device[\"Native\"] = \"native\";\n})(Device = exports.Device || (exports.Device = {}));\nvar Browser = Device.Browser, Server = Device.Server, Native = Device.Native;\nvar canUseDOM = !!(typeof window !== 'undefined' &&\n window.document &&\n window.document.createElement);\nvar canUseNative = typeof navigator != 'undefined' && navigator.product == 'ReactNative';\nvar device = canUseNative ? Native : canUseDOM ? Browser : Server;\nvar SSRObject = {\n isBrowser: device === Browser,\n isServer: device === Server,\n isNative: device === Native,\n device: device,\n canUseWorkers: typeof Worker !== 'undefined',\n canUseEventListeners: device === Browser && !!window.addEventListener,\n canUseViewport: device === Browser && !!window.screen,\n};\n// TODO: instead of this, do a polyfill for `Object.assign` https://www.npmjs.com/package/es6-object-assign\nvar assign = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return args.reduce(function (acc, obj) { return (__assign(__assign({}, acc), obj)); }, {});\n};\nvar values = function (obj) { return Object.keys(obj).map(function (key) { return obj[key]; }); };\nvar toArrayObject = function () { return assign((values(SSRObject), SSRObject)); };\nvar useSSRObject = toArrayObject();\nexports.weAreServer = function () {\n SSRObject.isServer = true;\n useSSRObject = toArrayObject();\n};\nexports.useSSR = function () { return useSSRObject; };\nexports.default = exports.useSSR;\n","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name eachMonthOfInterval\n * @category Interval Helpers\n * @summary Return the array of months within the specified time interval.\n *\n * @description\n * Return the array of months within the specified time interval.\n *\n * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval}\n * @returns {Date[]} the array with starts of months from the month of the interval start to the month of the interval end\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} The start of an interval cannot be after its end\n * @throws {RangeError} Date in interval cannot be `Invalid Date`\n *\n * @example\n * // Each month between 6 February 2014 and 10 August 2014:\n * const result = eachMonthOfInterval({\n * start: new Date(2014, 1, 6),\n * end: new Date(2014, 7, 10)\n * })\n * //=> [\n * // Sat Feb 01 2014 00:00:00,\n * // Sat Mar 01 2014 00:00:00,\n * // Tue Apr 01 2014 00:00:00,\n * // Thu May 01 2014 00:00:00,\n * // Sun Jun 01 2014 00:00:00,\n * // Tue Jul 01 2014 00:00:00,\n * // Fri Aug 01 2014 00:00:00\n * // ]\n */\n\nexport default function eachMonthOfInterval(dirtyInterval) {\n requiredArgs(1, arguments);\n var interval = dirtyInterval || {};\n var startDate = toDate(interval.start);\n var endDate = toDate(interval.end);\n var endTime = endDate.getTime();\n var dates = []; // Throw an exception if start date is after end date or if any date is `Invalid Date`\n\n if (!(startDate.getTime() <= endTime)) {\n throw new RangeError('Invalid interval');\n }\n\n var currentDate = startDate;\n currentDate.setHours(0, 0, 0, 0);\n currentDate.setDate(1);\n\n while (currentDate.getTime() <= endTime) {\n dates.push(toDate(currentDate));\n currentDate.setMonth(currentDate.getMonth() + 1);\n }\n\n return dates;\n}","import startOfDay from \"../startOfDay/index.js\";\n/**\n * @name startOfToday\n * @category Day Helpers\n * @summary Return the start of today.\n * @pure false\n *\n * @description\n * Return the start of today.\n *\n * > ⚠️ Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * @returns {Date} the start of today\n *\n * @example\n * // If today is 6 October 2014:\n * const result = startOfToday()\n * //=> Mon Oct 6 2014 00:00:00\n */\n\nexport default function startOfToday() {\n return startOfDay(Date.now());\n}"],"names":[],"sourceRoot":""}