diff --git a/develop/assets/index-dfe9f595.css b/develop/assets/index-1f7f66ab.css similarity index 78% rename from develop/assets/index-dfe9f595.css rename to develop/assets/index-1f7f66ab.css index a41ebc67..dce0da75 100644 --- a/develop/assets/index-dfe9f595.css +++ b/develop/assets/index-1f7f66ab.css @@ -1,6 +1,6 @@ -@charset "UTF-8";.main-header.main-header{color:#fff;background-color:var(--brand-color)!important}.main-header.main-header .navbar-brand{color:inherit!important}.main-header__brand-logo{width:26px;margin-right:5px}.main-header__toggle-icon{width:20px;transition:transform .3s}.main-header__toggle-icon--opened{transform:rotate(180deg)}.servers-list__list-group.servers-list__list-group{width:100%}.servers-list__list-group:not(.servers-list__list-group--embedded){max-width:400px;box-shadow:0 .125rem .25rem #00000013}.servers-list__server-item.servers-list__server-item{text-align:left;position:relative;padding:.75rem 2.5rem .75rem 1rem}.servers-list__server-item:not(:hover){color:#4696e5}.servers-list__server-item:hover{background-color:var(--secondary-color)}.servers-list__server-item-icon{position:absolute;top:50%;transform:translateY(-50%);right:1rem}.servers-list__list-group--embedded.servers-list__list-group--embedded{border-radius:0;border-top:1px solid var(--border-color)}@media (min-width: 768px){.servers-list__list-group--embedded.servers-list__list-group--embedded{max-height:220px;overflow-x:auto;scrollbar-color:rgba(0,0,0,.2) #f5f5f5;scrollbar-width:thin}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar{width:6px;background-color:#f5f5f5}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar-thumb{background-color:#0003;border-radius:.5rem}}.servers-list__list-group--embedded.servers-list__list-group--embedded .servers-list__server-item{border:none;border-bottom:1px solid var(--border-color)}.home{position:relative;padding-top:15px;width:100%}@media (min-width: 768px){.home{padding-top:0;height:calc(100vh - 56px - 3.1rem)}}.home__logo-wrapper{padding:1.5rem!important;height:100%!important;min-height:300px}.home__logo{position:absolute;top:50%;transform:translateY(-50%);width:calc(300.024px - 3rem)}.home__main-card{margin:0 auto;max-width:720px}@media (min-width: 768px){.home__main-card{position:absolute;top:50%;transform:translateY(-50%)}}.home__title-wrapper{padding:1.5rem!important;border-bottom:1px solid var(--border-color)}.home__title{text-align:center;font-size:1.75rem;margin:0}@media (min-width: 768px){.home__title{font-size:2.2rem}}@media (min-width: 768px){.home__servers-container{border-left:1px solid var(--border-color)}}.no-menu-wrapper{padding:15px 0 0}@media (min-width: 768px){.no-menu-wrapper{padding:30px 20px 20px}}.menu-layout__swipeable,.menu-layout__swipeable-inner{height:100%}.menu-layout__burger-icon{display:none;transition:color .3s;position:fixed;top:18px;z-index:1035;font-size:1.5rem;cursor:pointer;color:#ffffff80}@media (max-width: 767px){.menu-layout__burger-icon{display:inline-block}}.menu-layout__burger-icon--active{color:#fff}.menu-layout__container.menu-layout__container{padding:20px 0 0;min-height:100%}@media (min-width: 768px){.menu-layout__container.menu-layout__container{padding:30px 0 0 260px}}.aside-menu{width:260px;background-color:var(--primary-color);box-shadow:#0000000d 0 8px 15px;position:fixed!important;padding-top:13px;padding-bottom:10px;top:56px;bottom:0;left:0;display:block;z-index:1010;overflow-x:hidden;overflow-y:auto}@media (min-width: 768px){.aside-menu{padding:30px 15px 15px}}@media (max-width: 767px){.aside-menu{transition:left .3s;top:53px;box-shadow:-10px 0 50px 11px #0000008c}}@media (max-width: 767px){.aside-menu--hidden{left:-295px}}.aside-menu__nav{height:100%}.aside-menu__item{padding:10px 20px;margin:0 -15px;text-decoration:none!important;cursor:pointer}@media (max-width: 767px){.aside-menu__item{margin:0}}.aside-menu__item:hover{background-color:var(--secondary-color)}.aside-menu__item--selected,.aside-menu__item--selected:hover{color:#fff;background-color:var(--brand-color)}.aside-menu__item--divider{border-bottom:1px solid #eeeeee;margin:20px 0}.aside-menu__item--danger{color:#dc3545}.aside-menu__item--push{margin-top:auto}.aside-menu__item--danger:hover{color:#fff;background-color:#dc3545}.aside-menu__item-text{margin-left:8px}.shlink-versions-container--with-sidebar{margin-left:0}@media (min-width: 768px){.shlink-versions-container--with-sidebar{margin-left:260px}}.search-field{position:relative}.search-field:focus-within{z-index:1}.search-field__input.search-field__input{padding-left:40px;padding-right:40px}.search-field__input--no-border.search-field__input--no-border{border:none;border-radius:0}.search-field__icon{position:absolute;top:50%;transform:translateY(-50%);left:15px;color:#6c757d}.search-field__close{position:absolute;top:50%;transform:translateY(-50%);right:10px;cursor:pointer}.dropdown-btn__toggle.dropdown-btn__toggle,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{text-align:left;color:var(--input-text-color);background-color:var(--primary-color);border-color:var(--input-border-color)}.card .dropdown-btn__toggle.dropdown-btn__toggle,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.card .dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{background-color:var(--input-color)}.dropdown-btn__toggle.dropdown-btn__toggle.disabled,.dropdown-btn__toggle.dropdown-btn__toggle:disabled{background-color:var(--input-disabled-color)}.dropdown-btn__toggle.dropdown-btn__toggle:after{position:absolute;top:50%;transform:translateY(-50%);right:.75rem}.date-input-container{position:relative}.date-input-container__input{padding-right:35px!important}.date-input-container__input:not(:disabled){background-color:var(--primary-color)!important}.card .date-input-container__input:not(:disabled),.dropdown .date-input-container__input:not(:disabled){background-color:var(--input-color)!important}.date-input-container__icon{position:absolute;top:50%;transform:translateY(-50%);right:.75rem;cursor:pointer}.react-datepicker__close-icon.react-datepicker__close-icon{position:absolute;top:50%;transform:translateY(-50%);right:0}.react-datepicker__close-icon.react-datepicker__close-icon:after{right:.75rem;line-height:11px;background-color:#333;font-size:14px}.react-datepicker__input-container,.react-datepicker-wrapper{display:block!important}.react-datepicker__day--keyboard-selected{background-color:#4696e5}.react-datepicker__day--keyboard-selected:hover{background-color:#1d77d0}.react-datepicker__time.react-datepicker__time,.react-datepicker.react-datepicker{background-color:var(--primary-color)!important;color:var(--text-color);border-color:var(--border-color)}.react-datepicker__header.react-datepicker__header{background-color:var(--secondary-color);border-color:var(--border-color)}.react-datepicker__current-month.react-datepicker__current-month,.react-datepicker-time__header.react-datepicker-time__header,.react-datepicker-year-header.react-datepicker-year-header,.react-datepicker__day-name.react-datepicker__day-name,.react-datepicker__day.react-datepicker__day:not(:hover):not(.react-datepicker__day--selected),.react-datepicker__time-name.react-datepicker__time-name{color:inherit}.react-datepicker__day--disabled.react-datepicker__day--disabled{cursor:default;color:var(--border-color)!important}.react-datepicker__day--keyboard-selected.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected.react-datepicker__year-text--keyboard-selected{background-color:var(--brand-color)!important;color:#fff!important}.react-datepicker__time-list-item.react-datepicker__time-list-item:hover{color:#232323}.react-datepicker__time-container.react-datepicker__time-container{border-color:var(--border-color)}.react-datepicker__time-list.react-datepicker__time-list{scrollbar-color:rgba(0,0,0,.5) var(--secondary-color);scrollbar-width:thin}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar{width:10px;background-color:var(--secondary-color)}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:.5rem}.react-datepicker-popper.react-datepicker-popper{z-index:2}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:after{border-top-color:var(--primary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:before{border-top-color:var(--border-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:after{border-bottom-color:var(--secondary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:before{border-bottom-color:var(--border-color)}.ordering-dropdown__menu--link.ordering-dropdown__menu--link{min-width:11rem}.ordering-dropdown__sort-icon{margin:3.5px 0 0;float:right}.short-urls-filtering-bar__tags-icon{vertical-align:bottom;font-size:1.6rem}.copy-to-clipboard-icon{cursor:pointer;font-size:1.2rem}.short-urls-visits-count__max-visits-control{cursor:help}.short-url-visits-count__amount{transition:transform .3s ease;display:inline-block}.short-url-visits-count__amount--big{transform:scale(1.5)}.short-url-visits-count__tooltip-list-item:not(:last-child){margin-bottom:.5rem}.tag{color:#fff}.tag--light-bg{color:#222!important}.tag:not(:last-child){margin-right:3px}.tag__close-selected-tag.tag__close-selected-tag{font-size:inherit;color:inherit;opacity:1;cursor:pointer;margin-left:5px}.tag__close-selected-tag.tag__close-selected-tag:hover{color:inherit!important;opacity:1!important}.short-urls-row__cell.short-urls-row__cell{vertical-align:middle!important}.short-urls-row__cell--break{word-break:break-all}@media (min-width: 992px){.short-urls-row__cell--indivisible{white-space:nowrap}}@media (max-width: 991px){.short-urls-row__short-url-wrapper{word-break:break-all}}@media (min-width: 992px){.short-urls-row__short-url-wrapper{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;display:inline-block;max-width:18rem}}.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(10px);box-shadow:0 3px 15px #00000040}@media (max-width: 991px){.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(calc(-100% - 20px))}}.dropdown-btn-menu__dropdown-toggle:after{display:none!important}.create-short-url-result__copy-btn{margin-left:10px;vertical-align:inherit}.short-urls-table.short-urls-table{margin-bottom:-1px}.short-urls-table__header-cell--with-action{cursor:pointer}.use-existing-if-found-info-icon__modal-quote{margin-bottom:0;padding:10px 15px;font-size:17.5px;border-left:5px solid #eeeeee;background-color:#f9f9f9}.short-url-form p:last-child{margin-bottom:0}.short-url-form .card{height:100%}.qr-code-modal__img{max-width:100%;box-shadow:0 0 .25rem #0003}.import-servers-btn__csv-select{position:absolute;left:-9999px;top:-9999px}.server-error__container{text-align:center;display:flex;align-items:center;justify-content:center}.server-error__delete-btn{color:#dc3545;cursor:pointer}.server-error__delete-btn:hover{text-decoration:underline}.highlight-card.highlight-card{text-align:center;border-top:3px solid var(--brand-color);color:inherit;text-decoration:none}.highlight-card__link-icon{position:absolute;right:5px;bottom:5px;opacity:.1;transform:rotate(-45deg)}.highlight-card__title{text-transform:uppercase;color:#6c757d}@media (min-width: 768px){.map-modal__modal.map-modal__modal{width:calc(100% - 40px);max-width:calc(100% - 40px);height:calc(100% - 40px);margin:20px}}@media (max-width: 767px){.map-modal__modal.map-modal__modal{width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100% - 20px);margin:10px}}.map-modal__modal-content.map-modal__modal-content{height:100%}.map-modal__modal-title.map-modal__modal-title{position:absolute;width:100%;z-index:1001;padding:.5rem 1rem 1rem;margin:0;color:#fff;background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,0))}.map-modal__modal-body.map-modal__modal-body{padding:0;display:flex;overflow:hidden}.map-modal__modal.map-modal__modal .leaflet-container.leaflet-container{flex:1 1 auto;border-radius:.3rem}.map-modal__modal.map-modal__modal .leaflet-top.leaflet-top .leaflet-control.leaflet-control{margin-top:60px}.short-url-visits-header__created-at{cursor:default}.nav-pills__nav{position:sticky!important;top:55px;z-index:2}.nav-pills__nav-link.nav-pills__nav-link{border-radius:0!important;padding-bottom:calc(.5rem - 3px)!important;border-bottom:3px solid transparent!important;color:#5d6778;font-weight:700;cursor:pointer;text-decoration:none}@media (min-width: 576px) and (max-width: 991px){.nav-pills__nav-link.nav-pills__nav-link{font-size:89%}}.nav-pills__nav-link:hover{color:#4696e5!important}.nav-pills__nav-link.active{border-color:#4696e5!important;background-color:var(--primary-color)!important;color:#4696e5!important}.line-chart-card__body canvas{height:300px!important}@media (min-width: 768px){.line-chart-card__body canvas{height:400px!important}}.simple-paginator{user-select:none}.visits-table{margin:1.5rem 0 0;position:relative;background-color:var(--primary-color);overflow-y:hidden}.visits-table__header-cell{cursor:pointer;margin-bottom:55px;z-index:1;position:relative}.visits-table__header-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:-1px;background:var(--table-border-color);z-index:-2}.visits-table__header-cell:first-child:before{left:-1px}.visits-table__header-cell:after{content:"";position:absolute;top:0;left:1px;bottom:0;right:0;background:var(--primary-color);z-index:-1}.visits-table__header-cell:first-child:after{left:0}@media (min-width: 768px){.visits-table__header-cell.visits-table__sticky{top:96px}}.visits-table__header-icon{float:right;margin-top:3px}.visits-table__footer-cell.visits-table__footer-cell{bottom:0;margin-top:34px;padding:.5rem;z-index:1;position:relative}.visits-table__footer-cell.visits-table__footer-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:-1px;background:var(--table-border-color);z-index:-2}.visits-table__footer-cell.visits-table__footer-cell:first-child:before{left:-1px}.visits-table__footer-cell.visits-table__footer-cell:after{content:"";position:absolute;top:0;left:1px;bottom:0;right:0;background:var(--primary-color);z-index:-1}.visits-table__footer-cell.visits-table__footer-cell:first-child:after{left:0}.visits-table__sticky.visits-table__sticky{position:sticky}.open-map-modal-btn__btn.open-map-modal-btn__btn{padding:0;margin-right:1rem}.doughnut-chart-legend{list-style-type:none;padding:0;margin:0}@media (max-width: 767px){.doughnut-chart-legend{margin-top:1rem}}.doughnut-chart-legend__item:not(:first-child){margin-top:.3rem}.doughnut-chart-legend__item-color{width:20px;min-width:20px;height:20px;margin-right:5px;border-radius:10px}.doughnut-chart-legend__item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chart-card__footer--sticky{position:sticky;bottom:0}.tag-bullet{border-radius:50%;width:20px;height:20px;display:inline-block;vertical-align:-4px;margin-right:7px}.edit-tag-modal__color-picker-toggle{cursor:pointer}.edit-tag-modal__color-icon{color:#fff}.edit-tag-modal__popover.edit-tag-modal__popover{border-radius:.6rem}.tags-table__header-cell.tags-table__header-cell{z-index:1;position:relative;top:56px;position:sticky;cursor:pointer}.tags-table__header-cell.tags-table__header-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:0;background:var(--table-border-color);z-index:-2}.tags-table__header-cell.tags-table__header-cell:first-child:before{left:0}.tags-table__header-cell.tags-table__header-cell:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:var(--primary-color);z-index:-1}.tags-table__header-cell.tags-table__header-cell:first-child:after{left:0}.user-interface__theme-icon{float:right;margin-top:.25rem}.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:hover,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:active{color:#6c757d!important}.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:hover,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:active{color:var(--input-text-color)!important}.domains-dropdown__back-btn.domains-dropdown__back-btn,.domains-dropdown__back-btn.domains-dropdown__back-btn:hover{border-color:var(--border-color)}.app-update-banner.app-update-banner{position:absolute;left:50%;transform:translate(-50%);position:fixed;top:31px;padding:0 4rem 0 0;z-index:1040;margin:0;color:var(--text-color);text-align:center;width:700px;max-width:calc(100% - 30px);box-shadow:0 0 1rem var(--brand-color)}.app-container{height:100%}.app{padding-top:56px;height:100%}.shlink-wrapper{min-height:100%;padding-bottom:3.1rem;margin-bottom:-3.1rem}.shlink-footer{height:2.3rem;margin-top:.8rem;padding:0}@media (min-width: 768px){.shlink-footer{padding:0 15px}}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0;width:100%}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 2px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-72px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:white;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__month--selected,.react-datepicker__month--in-selecting-range,.react-datepicker__month--in-range,.react-datepicker__quarter--selected,.react-datepicker__quarter--in-selecting-range,.react-datepicker__quarter--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__month--selected:hover,.react-datepicker__month--in-selecting-range:hover,.react-datepicker__month--in-range:hover,.react-datepicker__quarter--selected:hover,.react-datepicker__quarter--in-selecting-range:hover,.react-datepicker__quarter--in-range:hover{background-color:#1d5d90}.react-datepicker__month--disabled,.react-datepicker__quarter--disabled{color:#ccc;pointer-events:none}.react-datepicker__month--disabled:hover,.react-datepicker__quarter--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#2579ba;color:#fff}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__month-text.react-datepicker__month--selected:hover,.react-datepicker__month-text.react-datepicker__month--in-range:hover,.react-datepicker__month-text.react-datepicker__quarter--selected:hover,.react-datepicker__month-text.react-datepicker__quarter--in-range:hover,.react-datepicker__quarter-text.react-datepicker__month--selected:hover,.react-datepicker__quarter-text.react-datepicker__month--in-range:hover,.react-datepicker__quarter-text.react-datepicker__quarter--selected:hover,.react-datepicker__quarter-text.react-datepicker__quarter--in-range:hover{background-color:#216ba5}.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover{background-color:#f0f0f0}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"\d7"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}/*! +@charset "UTF-8";.app-update-banner.app-update-banner{position:absolute;left:50%;transform:translate(-50%);position:fixed;top:31px;padding:0 4rem 0 0;z-index:1040;margin:0;color:var(--text-color);text-align:center;width:700px;max-width:calc(100% - 30px);box-shadow:0 0 1rem var(--brand-color)}.app-container{height:100%}.app{padding-top:56px;height:100%}.shlink-wrapper{min-height:100%;padding-bottom:3.1rem;margin-bottom:-3.1rem}.shlink-footer{height:2.3rem;margin-top:.8rem;padding:0}@media (min-width: 768px){.shlink-footer{padding:0 15px}}.aside-menu{width:260px;background-color:var(--primary-color);box-shadow:#0000000d 0 8px 15px;position:fixed!important;padding-top:13px;padding-bottom:10px;top:56px;bottom:0;left:0;display:block;z-index:1010;overflow-x:hidden;overflow-y:auto}@media (min-width: 768px){.aside-menu{padding:30px 15px 15px}}@media (max-width: 767px){.aside-menu{transition:left .3s;top:53px;box-shadow:-10px 0 50px 11px #0000008c}}@media (max-width: 767px){.aside-menu--hidden{left:-295px}}.aside-menu__nav{height:100%}.aside-menu__item{padding:10px 20px;margin:0 -15px;text-decoration:none!important;cursor:pointer}@media (max-width: 767px){.aside-menu__item{margin:0}}.aside-menu__item:hover{background-color:var(--secondary-color)}.aside-menu__item--selected,.aside-menu__item--selected:hover{color:#fff;background-color:var(--brand-color)}.aside-menu__item--divider{border-bottom:1px solid #eeeeee;margin:20px 0}.aside-menu__item--danger{color:#dc3545}.aside-menu__item--push{margin-top:auto}.aside-menu__item--danger:hover{color:#fff;background-color:#dc3545}.aside-menu__item-text{margin-left:8px}.servers-list__list-group.servers-list__list-group{width:100%}.servers-list__list-group:not(.servers-list__list-group--embedded){max-width:400px;box-shadow:0 .125rem .25rem #00000013}.servers-list__server-item.servers-list__server-item{text-align:left;position:relative;padding:.75rem 2.5rem .75rem 1rem}.servers-list__server-item:not(:hover){color:#4696e5}.servers-list__server-item:hover{background-color:var(--secondary-color)}.servers-list__server-item-icon{position:absolute;top:50%;transform:translateY(-50%);right:1rem}.servers-list__list-group--embedded.servers-list__list-group--embedded{border-radius:0;border-top:1px solid var(--border-color)}@media (min-width: 768px){.servers-list__list-group--embedded.servers-list__list-group--embedded{max-height:220px;overflow-x:auto;scrollbar-color:rgba(0,0,0,.2) #f5f5f5;scrollbar-width:thin}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar{width:6px;background-color:#f5f5f5}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar-thumb{background-color:#0003;border-radius:.5rem}}.servers-list__list-group--embedded.servers-list__list-group--embedded .servers-list__server-item{border:none;border-bottom:1px solid var(--border-color)}.home{position:relative;padding-top:15px;width:100%}@media (min-width: 768px){.home{padding-top:0;height:calc(100vh - 56px - 3.1rem)}}.home__logo-wrapper{padding:1.5rem!important;height:100%!important;min-height:300px}.home__logo{position:absolute;top:50%;transform:translateY(-50%);width:calc(300.024px - 3rem)}.home__main-card{margin:0 auto;max-width:720px}@media (min-width: 768px){.home__main-card{position:absolute;top:50%;transform:translateY(-50%)}}.home__title-wrapper{padding:1.5rem!important;border-bottom:1px solid var(--border-color)}.home__title{text-align:center;font-size:1.75rem;margin:0}@media (min-width: 768px){.home__title{font-size:2.2rem}}@media (min-width: 768px){.home__servers-container{border-left:1px solid var(--border-color)}}.main-header.main-header{color:#fff;background-color:var(--brand-color)!important}.main-header.main-header .navbar-brand{color:inherit!important}.main-header__brand-logo{width:26px;margin-right:5px}.main-header__toggle-icon{width:20px;transition:transform .3s}.main-header__toggle-icon--opened{transform:rotate(180deg)}.no-menu-wrapper{padding:15px 0 0}@media (min-width: 768px){.no-menu-wrapper{padding:30px 20px 20px}}.menu-layout__swipeable,.menu-layout__swipeable-inner{height:100%}.menu-layout__burger-icon{display:none;transition:color .3s;position:fixed;top:18px;z-index:1035;font-size:1.5rem;cursor:pointer;color:#ffffff80}@media (max-width: 767px){.menu-layout__burger-icon{display:inline-block}}.menu-layout__burger-icon--active{color:#fff}.menu-layout__container.menu-layout__container{padding:20px 0 0;min-height:100%}@media (min-width: 768px){.menu-layout__container.menu-layout__container{padding:30px 0 0 260px}}.shlink-versions-container--with-sidebar{margin-left:0}@media (min-width: 768px){.shlink-versions-container--with-sidebar{margin-left:260px}}.dropdown-btn__toggle.dropdown-btn__toggle,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{text-align:left;color:var(--input-text-color);background-color:var(--primary-color);border-color:var(--input-border-color)}.card .dropdown-btn__toggle.dropdown-btn__toggle,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.card .dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{background-color:var(--input-color)}.dropdown-btn__toggle.dropdown-btn__toggle.disabled,.dropdown-btn__toggle.dropdown-btn__toggle:disabled{background-color:var(--input-disabled-color)}.dropdown-btn__toggle.dropdown-btn__toggle:after{position:absolute;top:50%;transform:translateY(-50%);right:.75rem}.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:hover,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:active{color:#6c757d!important}.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:hover,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:active{color:var(--input-text-color)!important}.domains-dropdown__back-btn.domains-dropdown__back-btn,.domains-dropdown__back-btn.domains-dropdown__back-btn:hover{border-color:var(--border-color)}.search-field{position:relative}.search-field:focus-within{z-index:1}.search-field__input.search-field__input{padding-left:40px;padding-right:40px}.search-field__input--no-border.search-field__input--no-border{border:none;border-radius:0}.search-field__icon{position:absolute;top:50%;transform:translateY(-50%);left:15px;color:#6c757d}.search-field__close{position:absolute;top:50%;transform:translateY(-50%);right:10px;cursor:pointer}.dropdown-btn-menu__dropdown-toggle:after{display:none!important}.import-servers-btn__csv-select{position:absolute;left:-9999px;top:-9999px}.server-error__container{text-align:center;display:flex;align-items:center;justify-content:center}.server-error__delete-btn{color:#dc3545;cursor:pointer}.server-error__delete-btn:hover{text-decoration:underline}.highlight-card.highlight-card{text-align:center;border-top:3px solid var(--brand-color);color:inherit;text-decoration:none}.highlight-card__link-icon{position:absolute;right:5px;bottom:5px;opacity:.1;transform:rotate(-45deg)}.highlight-card__title{text-transform:uppercase;color:#6c757d}.nav-pills__nav{position:sticky!important;top:55px;z-index:2}.nav-pills__nav-link.nav-pills__nav-link{border-radius:0!important;padding-bottom:calc(.5rem - 3px)!important;border-bottom:3px solid transparent!important;color:#5d6778;font-weight:700;cursor:pointer;text-decoration:none}@media (min-width: 576px) and (max-width: 991px){.nav-pills__nav-link.nav-pills__nav-link{font-size:89%}}.nav-pills__nav-link:hover{color:#4696e5!important}.nav-pills__nav-link.active{border-color:#4696e5!important;background-color:var(--primary-color)!important;color:#4696e5!important}.ordering-dropdown__menu--link.ordering-dropdown__menu--link{min-width:11rem}.ordering-dropdown__sort-icon{margin:3.5px 0 0;float:right}.user-interface__theme-icon{float:right;margin-top:.25rem}.create-short-url-result__copy-btn{margin-left:10px;vertical-align:inherit}.copy-to-clipboard-icon{cursor:pointer;font-size:1.2rem}.qr-code-modal__img{max-width:100%;box-shadow:0 0 .25rem #0003}.short-urls-visits-count__max-visits-control{cursor:help}.short-url-visits-count__amount{transition:transform .3s ease;display:inline-block}.short-url-visits-count__amount--big{transform:scale(1.5)}.short-url-visits-count__tooltip-list-item:not(:last-child){margin-bottom:.5rem}.tag{color:#fff}.tag--light-bg{color:#222!important}.tag:not(:last-child){margin-right:3px}.tag__close-selected-tag.tag__close-selected-tag{font-size:inherit;color:inherit;opacity:1;cursor:pointer;margin-left:5px}.tag__close-selected-tag.tag__close-selected-tag:hover{color:inherit!important;opacity:1!important}.short-urls-row__cell.short-urls-row__cell{vertical-align:middle!important}.short-urls-row__cell--break{word-break:break-all}@media (min-width: 992px){.short-urls-row__cell--indivisible{white-space:nowrap}}@media (max-width: 991px){.short-urls-row__short-url-wrapper{word-break:break-all}}@media (min-width: 992px){.short-urls-row__short-url-wrapper{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;display:inline-block;max-width:18rem}}.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(10px);box-shadow:0 3px 15px #00000040}@media (max-width: 991px){.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(calc(-100% - 20px))}}.react-datepicker__close-icon.react-datepicker__close-icon{position:absolute;top:50%;transform:translateY(-50%);right:0}.react-datepicker__close-icon.react-datepicker__close-icon:after{right:.75rem;line-height:11px;background-color:#333;font-size:14px}.react-datepicker__input-container,.react-datepicker-wrapper{display:block!important}.react-datepicker__day--keyboard-selected{background-color:#4696e5}.react-datepicker__day--keyboard-selected:hover{background-color:#1d77d0}.react-datepicker__time.react-datepicker__time,.react-datepicker.react-datepicker{background-color:var(--primary-color)!important;color:var(--text-color);border-color:var(--border-color)}.react-datepicker__header.react-datepicker__header{background-color:var(--secondary-color);border-color:var(--border-color)}.react-datepicker__current-month.react-datepicker__current-month,.react-datepicker-time__header.react-datepicker-time__header,.react-datepicker-year-header.react-datepicker-year-header,.react-datepicker__day-name.react-datepicker__day-name,.react-datepicker__day.react-datepicker__day:not(:hover):not(.react-datepicker__day--selected),.react-datepicker__time-name.react-datepicker__time-name{color:inherit}.react-datepicker__day--disabled.react-datepicker__day--disabled{cursor:default;color:var(--border-color)!important}.react-datepicker__day--keyboard-selected.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected.react-datepicker__year-text--keyboard-selected{background-color:var(--brand-color)!important;color:#fff!important}.react-datepicker__time-list-item.react-datepicker__time-list-item:hover{color:#232323}.react-datepicker__time-container.react-datepicker__time-container{border-color:var(--border-color)}.react-datepicker__time-list.react-datepicker__time-list{scrollbar-color:rgba(0,0,0,.5) var(--secondary-color);scrollbar-width:thin}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar{width:10px;background-color:var(--secondary-color)}.react-datepicker__time-list.react-datepicker__time-list::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:.5rem}.react-datepicker-popper.react-datepicker-popper{z-index:2}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:after{border-top-color:var(--primary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle:before{border-top-color:var(--border-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:after{border-bottom-color:var(--secondary-color)}.react-datepicker-popper.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle:before{border-bottom-color:var(--border-color)}.icon-input-container{position:relative}.icon-input-container__input{padding-right:35px!important}.icon-input-container__input:not(:disabled){background-color:var(--primary-color)!important}.card .icon-input-container__input:not(:disabled),.dropdown .icon-input-container__input:not(:disabled){background-color:var(--input-color)!important}.icon-input-container__icon{position:absolute;top:50%;transform:translateY(-50%);right:.75rem;cursor:pointer}.use-existing-if-found-info-icon__modal-quote{margin-bottom:0;padding:10px 15px;font-size:17.5px;border-left:5px solid #eeeeee;background-color:#f9f9f9}.short-url-form p:last-child{margin-bottom:0}.short-url-form .card{height:100%}.short-urls-filtering-bar__tags-icon{vertical-align:bottom;font-size:1.6rem}.short-urls-table.short-urls-table{margin-bottom:-1px}.short-urls-table__header-cell--with-action,.edit-tag-modal__color-picker-toggle{cursor:pointer}.edit-tag-modal__color-icon{color:#fff}.edit-tag-modal__popover.edit-tag-modal__popover{border-radius:.6rem}.tag-bullet{border-radius:50%;width:20px;height:20px;display:inline-block;vertical-align:-4px;margin-right:7px}.simple-paginator{user-select:none}.tags-table__header-cell.tags-table__header-cell{z-index:1;position:relative;top:56px;position:sticky;cursor:pointer}.tags-table__header-cell.tags-table__header-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:0;background:var(--table-border-color);z-index:-2}.tags-table__header-cell.tags-table__header-cell:first-child:before{left:0}.tags-table__header-cell.tags-table__header-cell:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background:var(--primary-color);z-index:-1}.tags-table__header-cell.tags-table__header-cell:first-child:after{left:0}.chart-card__footer--sticky{position:sticky;bottom:0}.doughnut-chart-legend{list-style-type:none;padding:0;margin:0}@media (max-width: 767px){.doughnut-chart-legend{margin-top:1rem}}.doughnut-chart-legend__item:not(:first-child){margin-top:.3rem}.doughnut-chart-legend__item-color{width:20px;min-width:20px;height:20px;margin-right:5px;border-radius:10px}.doughnut-chart-legend__item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.line-chart-card__body canvas{height:300px!important}@media (min-width: 768px){.line-chart-card__body canvas{height:400px!important}}@media (min-width: 768px){.map-modal__modal.map-modal__modal{width:calc(100% - 40px);max-width:calc(100% - 40px);height:calc(100% - 40px);margin:20px}}@media (max-width: 767px){.map-modal__modal.map-modal__modal{width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100% - 20px);margin:10px}}.map-modal__modal-content.map-modal__modal-content{height:100%}.map-modal__modal-title.map-modal__modal-title{position:absolute;width:100%;z-index:1001;padding:.5rem 1rem 1rem;margin:0;color:#fff;background:linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,0))}.map-modal__modal-body.map-modal__modal-body{padding:0;display:flex;overflow:hidden}.map-modal__modal.map-modal__modal .leaflet-container.leaflet-container{flex:1 1 auto;border-radius:.3rem}.map-modal__modal.map-modal__modal .leaflet-top.leaflet-top .leaflet-control.leaflet-control{margin-top:60px}.open-map-modal-btn__btn.open-map-modal-btn__btn{padding:0;margin-right:1rem}.visits-table{margin:1.5rem 0 0;position:relative;background-color:var(--primary-color);overflow-y:hidden}.visits-table__header-cell{cursor:pointer;margin-bottom:55px;z-index:1;position:relative}.visits-table__header-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:-1px;background:var(--table-border-color);z-index:-2}.visits-table__header-cell:first-child:before{left:-1px}.visits-table__header-cell:after{content:"";position:absolute;top:0;left:1px;bottom:0;right:0;background:var(--primary-color);z-index:-1}.visits-table__header-cell:first-child:after{left:0}@media (min-width: 768px){.visits-table__header-cell.visits-table__sticky{top:96px}}.visits-table__header-icon{float:right;margin-top:3px}.visits-table__footer-cell.visits-table__footer-cell{bottom:0;margin-top:34px;padding:.5rem;z-index:1;position:relative}.visits-table__footer-cell.visits-table__footer-cell:before{content:"";position:absolute;top:-1px;left:0;bottom:-1px;right:-1px;background:var(--table-border-color);z-index:-2}.visits-table__footer-cell.visits-table__footer-cell:first-child:before{left:-1px}.visits-table__footer-cell.visits-table__footer-cell:after{content:"";position:absolute;top:0;left:1px;bottom:0;right:0;background:var(--primary-color);z-index:-1}.visits-table__footer-cell.visits-table__footer-cell:first-child:after{left:0}.visits-table__sticky.visits-table__sticky{position:sticky}.short-url-visits-header__created-at{cursor:default}/*! * Bootstrap v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors * Copyright 2011-2022 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */:root{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #4696e5;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 70, 150, 229;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-2xl: 2rem;--bs-border-radius-pill: 50rem;--bs-link-color: #4696e5;--bs-link-hover-color: #3878b7;--bs-code-color: #d63384;--bs-highlight-bg: #fff3cd}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1,.h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width: 1200px){h1,.h1{font-size:2.5rem}}h2,.h2{font-size:calc(1.325rem + .9vw)}@media (min-width: 1200px){h2,.h2{font-size:2rem}}h3,.h3{font-size:calc(1.3rem + .6vw)}@media (min-width: 1200px){h3,.h3{font-size:1.75rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:1.25rem}h6,.h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color: var(--bs-body-color);--bs-table-bg: transparent;--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-body-color);--bs-table-striped-bg: rgba(0, 0, 0, .05);--bs-table-active-color: var(--bs-body-color);--bs-table-active-bg: rgba(0, 0, 0, .1);--bs-table-hover-color: var(--bs-body-color);--bs-table-hover-bg: rgba(0, 0, 0, .075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(even){--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg: var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg: var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color: #000;--bs-table-bg: #daeafa;--bs-table-border-color: #c4d3e1;--bs-table-striped-bg: #cfdeee;--bs-table-striped-color: #000;--bs-table-active-bg: #c4d3e1;--bs-table-active-color: #000;--bs-table-hover-bg: #cad8e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #e2e3e5;--bs-table-border-color: #cbccce;--bs-table-striped-bg: #d7d8da;--bs-table-striped-color: #000;--bs-table-active-bg: #cbccce;--bs-table-active-color: #000;--bs-table-hover-bg: #d1d2d4;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d1e7dd;--bs-table-border-color: #bcd0c7;--bs-table-striped-bg: #c7dbd2;--bs-table-striped-color: #000;--bs-table-active-bg: #bcd0c7;--bs-table-active-color: #000;--bs-table-hover-bg: #c1d6cc;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #badce3;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #fff3cd;--bs-table-border-color: #e6dbb9;--bs-table-striped-bg: #f2e7c3;--bs-table-striped-color: #000;--bs-table-active-bg: #e6dbb9;--bs-table-active-color: #000;--bs-table-hover-bg: #ece1be;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f8d7da;--bs-table-border-color: #dfc2c4;--bs-table-striped-bg: #eccccf;--bs-table-striped-color: #000;--bs-table-active-bg: #dfc2c4;--bs-table-active-color: #000;--bs-table-hover-bg: #e5c7ca;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #dfe0e1;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #373b3e;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);appearance:none;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-check-input:checked{background-color:#4696e5;border-color:#4696e5}.form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4696e5;border-color:#4696e5;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a3cbf2'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#c8e0f7}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#c8e0f7}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#198754e6;border-radius:.375rem}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:#198754}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:#198754}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:#198754}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem #19875440}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#dc3545e6;border-radius:.375rem}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:#dc3545}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:#dc3545}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:#dc3545}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: .75rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: #212529;--bs-btn-bg: transparent;--bs-btn-border-width: 1px;--bs-btn-border-color: transparent;--bs-btn-border-radius: .375rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .65;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #000;--bs-btn-bg: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #62a6e9;--bs-btn-hover-border-color: #59a1e8;--bs-btn-focus-shadow-rgb: 60, 128, 195;--bs-btn-active-color: #000;--bs-btn-active-bg: #6babea;--bs-btn-active-border-color: #59a1e8;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #4696e5;--bs-btn-disabled-border-color: #4696e5}.btn-secondary{--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #5c636a;--bs-btn-hover-border-color: #565e64;--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: #565e64;--bs-btn-active-border-color: #51585e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #157347;--bs-btn-hover-border-color: #146c43;--bs-btn-focus-shadow-rgb: 60, 153, 110;--bs-btn-active-color: #fff;--bs-btn-active-bg: #146c43;--bs-btn-active-border-color: #13653f;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #198754;--bs-btn-disabled-border-color: #198754}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffca2c;--bs-btn-hover-border-color: #ffc720;--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffcd39;--bs-btn-active-border-color: #ffc720;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #bb2d3b;--bs-btn-hover-border-color: #b02a37;--bs-btn-focus-shadow-rgb: 225, 83, 97;--bs-btn-active-color: #fff;--bs-btn-active-bg: #b02a37;--bs-btn-active-border-color: #a52834;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #dc3545;--bs-btn-disabled-border-color: #dc3545}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #4696e5;--bs-btn-hover-border-color: #4696e5;--bs-btn-focus-shadow-rgb: 70, 150, 229;--bs-btn-active-color: #000;--bs-btn-active-bg: #4696e5;--bs-btn-active-border-color: #4696e5;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #4696e5;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #4696e5;--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none}.btn-outline-success{--bs-btn-color: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #198754;--bs-btn-hover-border-color: #198754;--bs-btn-focus-shadow-rgb: 25, 135, 84;--bs-btn-active-color: #fff;--bs-btn-active-bg: #198754;--bs-btn-active-border-color: #198754;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #198754;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #198754;--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffc107;--bs-btn-hover-border-color: #ffc107;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffc107;--bs-btn-active-border-color: #ffc107;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #ffc107;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #ffc107;--bs-gradient: none}.btn-outline-danger{--bs-btn-color: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #dc3545;--bs-btn-hover-border-color: #dc3545;--bs-btn-focus-shadow-rgb: 220, 53, 69;--bs-btn-active-color: #fff;--bs-btn-active-bg: #dc3545;--bs-btn-active-border-color: #dc3545;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #dc3545;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #dc3545;--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: none;--bs-btn-focus-shadow-rgb: 60, 128, 195;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: .5rem}.btn-sm,.btn-group-sm>.btn{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: .25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: #212529;--bs-dropdown-bg: #fff;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: .375rem;--bs-dropdown-border-width: 1px;--bs-dropdown-inner-border-radius:calc(.375rem - 1px);--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-dropdown-link-color: #212529;--bs-dropdown-link-hover-color: #1e2125;--bs-dropdown-link-hover-bg: #e9ecef;--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:-1px}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: #6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link:hover,.nav-link:focus{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width: 1px;--bs-nav-tabs-border-color: #dee2e6;--bs-nav-tabs-border-radius: .375rem;--bs-nav-tabs-link-hover-border-color: #e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color: #495057;--bs-nav-tabs-link-active-bg: #fff;--bs-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:none;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius: .375rem;--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #4696e5}.nav-pills .nav-link{background:none;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x: 0;--bs-navbar-padding-y: .5rem;--bs-navbar-color: rgba(0, 0, 0, .55);--bs-navbar-hover-color: rgba(0, 0, 0, .7);--bs-navbar-disabled-color: rgba(0, 0, 0, .3);--bs-navbar-active-color: rgba(0, 0, 0, .9);--bs-navbar-brand-padding-y: .3125rem;--bs-navbar-brand-margin-end: 1rem;--bs-navbar-brand-font-size: 1.25rem;--bs-navbar-brand-color: rgba(0, 0, 0, .9);--bs-navbar-brand-hover-color: rgba(0, 0, 0, .9);--bs-navbar-nav-link-padding-x: .5rem;--bs-navbar-toggler-padding-y: .25rem;--bs-navbar-toggler-padding-x: .75rem;--bs-navbar-toggler-font-size: 1.25rem;--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color: rgba(0, 0, 0, .1);--bs-navbar-toggler-border-radius: .375rem;--bs-navbar-toggler-focus-width: .25rem;--bs-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x: 0;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-navbar-color);--bs-nav-link-hover-color: var(--bs-navbar-hover-color);--bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .show>.nav-link,.navbar-nav .nav-link.active{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color: rgba(255, 255, 255, .55);--bs-navbar-hover-color: rgba(255, 255, 255, .75);--bs-navbar-disabled-color: rgba(255, 255, 255, .25);--bs-navbar-active-color: #fff;--bs-navbar-brand-color: #fff;--bs-navbar-brand-hover-color: #fff;--bs-navbar-toggler-border-color: rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y: 1rem;--bs-card-spacer-x: 1rem;--bs-card-title-spacer-y: .5rem;--bs-card-border-width: 1px;--bs-card-border-color: var(--bs-border-color-translucent);--bs-card-border-radius: .375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(.375rem - 1px);--bs-card-cap-padding-y: .5rem;--bs-card-cap-padding-x: 1rem;--bs-card-cap-bg: rgba(0, 0, 0, .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg: #fff;--bs-card-img-overlay-padding: 1rem;--bs-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--bs-accordion-color: #212529;--bs-accordion-bg: #fff;--bs-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--bs-accordion-border-color: var(--bs-border-color);--bs-accordion-border-width: 1px;--bs-accordion-border-radius: .375rem;--bs-accordion-inner-border-radius:calc(.375rem - 1px);--bs-accordion-btn-padding-x: 1.25rem;--bs-accordion-btn-padding-y: 1rem;--bs-accordion-btn-color: #212529;--bs-accordion-btn-bg: var(--bs-accordion-bg);--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width: 1.25rem;--bs-accordion-btn-icon-transform: rotate(-180deg);--bs-accordion-btn-icon-transition: transform .2s ease-in-out;--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233f87ce'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color: #a3cbf2;--bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-accordion-body-padding-x: 1.25rem;--bs-accordion-body-padding-y: 1rem;--bs-accordion-active-color: #3f87ce;--bs-accordion-active-bg: #edf5fc}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x: 0;--bs-breadcrumb-padding-y: 0;--bs-breadcrumb-margin-bottom: 1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color: #6c757d;--bs-breadcrumb-item-padding-x: .5rem;--bs-breadcrumb-item-active-color: #6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x: .75rem;--bs-pagination-padding-y: .375rem;--bs-pagination-font-size: 1rem;--bs-pagination-color: var(--bs-link-color);--bs-pagination-bg: #fff;--bs-pagination-border-width: 1px;--bs-pagination-border-color: #dee2e6;--bs-pagination-border-radius: .375rem;--bs-pagination-hover-color: var(--bs-link-hover-color);--bs-pagination-hover-bg: #e9ecef;--bs-pagination-hover-border-color: #dee2e6;--bs-pagination-focus-color: var(--bs-link-hover-color);--bs-pagination-focus-bg: #e9ecef;--bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-pagination-active-color: #fff;--bs-pagination-active-bg: #4696e5;--bs-pagination-active-border-color: #4696e5;--bs-pagination-disabled-color: #6c757d;--bs-pagination-disabled-bg: #fff;--bs-pagination-disabled-border-color: #dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x: 1.5rem;--bs-pagination-padding-y: .75rem;--bs-pagination-font-size: 1.25rem;--bs-pagination-border-radius: .5rem}.pagination-sm{--bs-pagination-padding-x: .5rem;--bs-pagination-padding-y: .25rem;--bs-pagination-font-size: .875rem;--bs-pagination-border-radius: .25rem}.badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: .375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: 1px solid var(--bs-alert-border-color);--bs-alert-border-radius: .375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: #2a5a89;--bs-alert-bg: #daeafa;--bs-alert-border-color: #c8e0f7}.alert-primary .alert-link{color:#22486e}.alert-secondary{--bs-alert-color: #41464b;--bs-alert-bg: #e2e3e5;--bs-alert-border-color: #d3d6d8}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color: #0f5132;--bs-alert-bg: #d1e7dd;--bs-alert-border-color: #badbcc}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color: #055160;--bs-alert-bg: #cff4fc;--bs-alert-border-color: #b6effb}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color: #664d03;--bs-alert-bg: #fff3cd;--bs-alert-border-color: #ffecb5}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color: #842029;--bs-alert-bg: #f8d7da;--bs-alert-border-color: #f5c2c7}.alert-danger .alert-link{color:#6a1a21}.alert-light{--bs-alert-color: #636464;--bs-alert-bg: #fefefe;--bs-alert-border-color: #fdfdfe}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color: #141619;--bs-alert-bg: #d3d3d4;--bs-alert-border-color: #bcbebf}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #4696e5;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color: #212529;--bs-list-group-bg: #fff;--bs-list-group-border-color: rgba(0, 0, 0, .125);--bs-list-group-border-width: 1px;--bs-list-group-border-radius: .375rem;--bs-list-group-item-padding-x: 1rem;--bs-list-group-item-padding-y: .5rem;--bs-list-group-action-color: #495057;--bs-list-group-action-hover-color: #495057;--bs-list-group-action-hover-bg: #f8f9fa;--bs-list-group-action-active-color: #212529;--bs-list-group-action-active-bg: #e9ecef;--bs-list-group-disabled-color: #6c757d;--bs-list-group-disabled-bg: #fff;--bs-list-group-active-color: #fff;--bs-list-group-active-bg: #4696e5;--bs-list-group-active-border-color: #4696e5;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#2a5a89;background-color:#daeafa}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#2a5a89;background-color:#c4d3e1}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#2a5a89;border-color:#2a5a89}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#41464b;background-color:#cbccce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#664d03;background-color:#e6dbb9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#842029;background-color:#dfc2c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#636464;background-color:#e5e5e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em;color:#000;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem #4696e540;opacity:1}.btn-close:disabled,.btn-close.disabled{pointer-events:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(255, 255, 255, .85);--bs-toast-border-width: 1px;--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: .375rem;--bs-toast-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-toast-header-color: #6c757d;--bs-toast-header-bg: rgba(255, 255, 255, .85);--bs-toast-header-border-color: rgba(0, 0, 0, .05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: #fff;--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: 1px;--bs-modal-border-radius: .5rem;--bs-modal-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-modal-inner-border-radius:calc(.5rem - 1px);--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: 1px;--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: 1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: #fff;--bs-tooltip-bg: #000;--bs-tooltip-border-radius: .375rem;--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:0}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:0}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: #fff;--bs-popover-border-width: 1px;--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: .5rem;--bs-popover-inner-border-radius:calc(.5rem - 1px);--bs-popover-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: ;--bs-popover-header-bg: #f0f0f0;--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: #212529;--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg: #fff;--bs-offcanvas-border-width: 1px;--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075)}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 575.98px){.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}}@media (max-width: 575.98px){.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 767.98px){.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}}@media (max-width: 767.98px){.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 991.98px){.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}}@media (max-width: 991.98px){.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 1199.98px){.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}}@media (max-width: 1199.98px){.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}}@media (max-width: 1399.98px){.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#000!important;background-color:RGBA(70,150,229,var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity, 1))!important}.link-primary{color:#4696e5!important}.link-primary:hover,.link-primary:focus{color:#6babea!important}.link-secondary{color:#6c757d!important}.link-secondary:hover,.link-secondary:focus{color:#565e64!important}.link-success{color:#198754!important}.link-success:hover,.link-success:focus{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:hover,.link-info:focus{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:hover,.link-warning:focus{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:hover,.link-danger:focus{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:hover,.link-light:focus{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:hover,.link-dark:focus{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width: 1px}.border-2{--bs-border-width: 2px}.border-3{--bs-border-width: 3px}.border-4{--bs-border-width: 4px}.border-5{--bs-border-width: 5px}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:#6c757d!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{user-select:all!important}.user-select-auto{user-select:auto!important}.user-select-none{user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}.react-tags{position:relative;padding:5px 0 0 6px;border-radius:.3rem;background-color:var(--primary-color);border:1px solid var(--input-border-color);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-size:1em;line-height:1.2;cursor:text}.input-group>.react-tags{flex:1 1 auto;width:1%;min-width:0}.card .react-tags{background-color:var(--input-color)}.react-tags.is-focused{box-shadow:0 0 0 .2rem #4696e540}.react-tags__tag{font-size:100%}.react-tags__selected{display:inline;vertical-align:2px}.react-tags__selected-tag{display:inline-block;box-sizing:border-box;margin:0 6px 6px 0;padding:6px 8px;border:1px solid var(--input-border-color);border-radius:.25rem;background:#f1f1f1;font-size:inherit;line-height:inherit}.react-tags__selected-tag:after{content:"\2715";color:#aaa;margin-left:8px}.react-tags__selected-tag:hover,.react-tags__selected-tag:focus{border-color:var(--input-border-color)}.react-tags__search{display:inline-block;padding:6px 2px;margin-bottom:5px;max-width:100%}@media screen and (min-width: 576px){.react-tags__search{position:relative}}.react-tags__search-input{font-size:1.25rem;line-height:inherit;color:var(--input-text-color);background-color:inherit;max-width:100%;margin:0 0 0 7px;padding:0;border:0;outline:none}.react-tags__search-input::placeholder{color:#6c757d}.react-tags__search-input::-ms-clear{display:none}.react-tags__suggestions{position:absolute;top:100%;left:0;width:100%;z-index:10}@media screen and (min-width: 576px){.react-tags__suggestions{width:240px}}.react-tags__suggestions ul{margin:4px -1px;padding:0;list-style:none;background:var(--primary-color);border:1px solid var(--border-color);border-radius:.25rem;box-shadow:0 2px 6px #0003}.react-tags__suggestions li{padding:8px 10px}.react-tags__suggestions li:not(:last-child){border-bottom:1px solid var(--border-color)}.react-tags__suggestions li mark,.react-tags__suggestions li .mark{text-decoration:underline;background:none;font-weight:600}.react-tags__suggestions li:hover{cursor:pointer;background-color:var(--active-color)}.react-tags__suggestions li.is-active{background-color:var(--active-color)}.react-tags__suggestions li.is-disabled{opacity:.5;cursor:auto}html:not([data-theme=dark]){--color-scheme: initial;--primary-color: #ffffff;--primary-color-alfa: rgba(255, 255, 255, .5);--secondary-color: #f5f6fe;--text-color: #232323;--border-color: rgba(0, 0, 0, .125);--active-color: #eeeeee;--brand-color: #4696e5;--input-color: #ffffff;--input-disabled-color: #f5f6fe;--input-border-color: rgba(0, 0, 0, .19);--input-text-color: #495057;--table-border-color: #dee2e6;--table-highlight-color: rgba(0, 0, 0, .075);--btn-close-filter: initial}html[data-theme=dark]{--color-scheme: dark;--primary-color: #161b22;--primary-color-alfa: rgba(22, 27, 34, .8);--secondary-color: #0f131a;--text-color: rgb(201, 209, 217);--border-color: rgba(255, 255, 255, .15);--active-color: #0f131a;--brand-color: #0b2d4e;--input-color: #12161c;--input-disabled-color: #1a2028;--input-border-color: rgba(255, 255, 255, .15);--input-text-color: rgb(201, 209, 217);--table-border-color: #393d43;--table-highlight-color: rgba(255, 255, 255, .15);--btn-close-filter: invert(1)}@media (max-width: 991px){.responsive-table__header{display:none}}@media (max-width: 991px){.responsive-table.table>:not(:first-child){border:none}}@media (max-width: 991px){.responsive-table__row{display:block;border-bottom:1px solid var(--border-color);border-top:2px solid var(--border-color);position:relative}.responsive-table__row:not(:last-child){margin-bottom:10px}}.responsive-table__cell.responsive-table__cell{vertical-align:middle!important}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell{display:block;width:100%;position:relative;padding:.5rem;font-size:.9rem}.responsive-table__cell.responsive-table__cell[data-th]:before{content:attr(data-th) ": ";font-weight:700}.responsive-table__cell.responsive-table__cell:last-child{position:absolute;top:3.5px;right:.5rem;width:auto;padding:0;border:none}}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell .btn-sm,.responsive-table__cell.responsive-table__cell .btn-group-sm>.btn{padding:.1rem .4rem;margin-top:.16rem}}.sticky-card-paginator{position:sticky;bottom:0;background-color:var(--primary-color-alfa);padding:.75rem 0;border-top:1px solid var(--border-color)}*{outline:none!important}:root{scroll-behavior:auto;color-scheme:var(--color-scheme)}html,body,#root{height:100%;background:var(--secondary-color);color:var(--text-color)}a,.btn-link{text-decoration:none}a:not(.nav-link):not(.navbar-brand):not(.page-link):not(.highlight-card):not(.btn):not(.dropdown-item):hover,.btn-link:hover{text-decoration:underline}.bg-main{background-color:#4696e5!important}.bg-warning{color:#232323}.card-body,.card-header,.list-group-item{background-color:transparent}.card-footer{background-color:var(--primary-color-alfa)}.card{box-shadow:0 .125rem .25rem #00000013;background-color:var(--primary-color);border-color:var(--border-color)}.list-group,.modal-content,.page-link,.page-item.disabled .page-link,.dropdown-menu{background-color:var(--primary-color)}.modal-header,.modal-footer,.card-header,.card-footer,.table thead th,.table th,.table td,.page-link,.page-link:hover,.page-item.disabled .page-link,.dropdown-divider,.dropdown-menu,.list-group-item,.modal-content,hr{border-color:var(--border-color)}.table-bordered,.table-bordered thead th,.table-bordered thead td{border-color:var(--table-border-color)}.page-link:hover,.page-link:focus{background-color:var(--secondary-color)}.page-item.active .page-link{background-color:var(--brand-color);border-color:var(--brand-color)}.pagination .page-link{cursor:pointer}@media (min-width: 1200px){.container-xl{max-width:1320px}}@media (max-width: 767px){.container-xl{padding-right:0;padding-left:0}}.btn-block{display:block;width:100%}.btn-primary,.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-outline-primary:hover,.btn-outline-primary:active,.btn-outline-primary.active{color:#fff}.dropdown-item,.dropdown-item-text{color:var(--text-color)}.dropdown-item:not(:disabled){cursor:pointer}.dropdown-item:focus:not(:disabled),.dropdown-item:hover:not(:disabled),.dropdown-item.active:not(:disabled),.dropdown-item:active:not(:disabled){background-color:var(--active-color)!important;color:var(--text-color)!important}.dropdown-item--danger.dropdown-item--danger{color:#dc3545}.dropdown-item--danger.dropdown-item--danger:hover,.dropdown-item--danger.dropdown-item--danger:active,.dropdown-item--danger.dropdown-item--danger.active{color:#dc3545!important}.badge-main{color:#fff;background-color:var(--brand-color)}.close,.close:hover,.table,.table-hover>tbody>tr:hover>*,.table-hover>tbody>tr>*{color:var(--text-color)}.btn-close{filter:var(--btn-close-filter)}.table-hover tbody tr:hover{background-color:var(--secondary-color)}.form-control,.form-control:focus{background-color:var(--primary-color);border-color:var(--input-border-color);color:var(--input-text-color)}.form-control.disabled,.form-control:disabled{background-color:var(--input-disabled-color);cursor:not-allowed}.card .form-control:not(:disabled),.card .form-control:not(:disabled):hover{background-color:var(--input-color)}.table-active,.table-active>th,.table-active>td{background-color:var(--table-highlight-color)!important}@media (max-width: 767px){.navbar-brand{margin:0 auto!important}}.indivisible{white-space:nowrap}.pointer{cursor:pointer}.text-ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.progress-bar{background-color:#4696e5}@media (max-width: 575px){.btn-xs-block{width:100%;display:block}}@media (max-width: 991px){.btn-md-block{width:100%;display:block}} + */:root{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #4696e5;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 70, 150, 229;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-2xl: 2rem;--bs-border-radius-pill: 50rem;--bs-link-color: #4696e5;--bs-link-hover-color: #3878b7;--bs-code-color: #d63384;--bs-highlight-bg: #fff3cd}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1,.h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width: 1200px){h1,.h1{font-size:2.5rem}}h2,.h2{font-size:calc(1.325rem + .9vw)}@media (min-width: 1200px){h2,.h2{font-size:2rem}}h3,.h3{font-size:calc(1.3rem + .6vw)}@media (min-width: 1200px){h3,.h3{font-size:1.75rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:1.25rem}h6,.h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color: var(--bs-body-color);--bs-table-bg: transparent;--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-body-color);--bs-table-striped-bg: rgba(0, 0, 0, .05);--bs-table-active-color: var(--bs-body-color);--bs-table-active-bg: rgba(0, 0, 0, .1);--bs-table-hover-color: var(--bs-body-color);--bs-table-hover-bg: rgba(0, 0, 0, .075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(even){--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg: var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg: var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color: #000;--bs-table-bg: #daeafa;--bs-table-border-color: #c4d3e1;--bs-table-striped-bg: #cfdeee;--bs-table-striped-color: #000;--bs-table-active-bg: #c4d3e1;--bs-table-active-color: #000;--bs-table-hover-bg: #cad8e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #e2e3e5;--bs-table-border-color: #cbccce;--bs-table-striped-bg: #d7d8da;--bs-table-striped-color: #000;--bs-table-active-bg: #cbccce;--bs-table-active-color: #000;--bs-table-hover-bg: #d1d2d4;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d1e7dd;--bs-table-border-color: #bcd0c7;--bs-table-striped-bg: #c7dbd2;--bs-table-striped-color: #000;--bs-table-active-bg: #bcd0c7;--bs-table-active-color: #000;--bs-table-hover-bg: #c1d6cc;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #badce3;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #fff3cd;--bs-table-border-color: #e6dbb9;--bs-table-striped-bg: #f2e7c3;--bs-table-striped-color: #000;--bs-table-active-bg: #e6dbb9;--bs-table-active-color: #000;--bs-table-hover-bg: #ece1be;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f8d7da;--bs-table-border-color: #dfc2c4;--bs-table-striped-bg: #eccccf;--bs-table-striped-color: #000;--bs-table-active-bg: #dfc2c4;--bs-table-active-color: #000;--bs-table-hover-bg: #e5c7ca;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #dfe0e1;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #373b3e;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);appearance:none;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-check-input:checked{background-color:#4696e5;border-color:#4696e5}.form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4696e5;border-color:#4696e5;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a3cbf2'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#c8e0f7}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#c8e0f7}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#198754e6;border-radius:.375rem}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:#198754}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:#198754}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:#198754}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem #19875440}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#dc3545e6;border-radius:.375rem}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:#dc3545}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:#dc3545}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:#dc3545}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: .75rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: #212529;--bs-btn-bg: transparent;--bs-btn-border-width: 1px;--bs-btn-border-color: transparent;--bs-btn-border-radius: .375rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .65;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #000;--bs-btn-bg: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #62a6e9;--bs-btn-hover-border-color: #59a1e8;--bs-btn-focus-shadow-rgb: 60, 128, 195;--bs-btn-active-color: #000;--bs-btn-active-bg: #6babea;--bs-btn-active-border-color: #59a1e8;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #4696e5;--bs-btn-disabled-border-color: #4696e5}.btn-secondary{--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #5c636a;--bs-btn-hover-border-color: #565e64;--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: #565e64;--bs-btn-active-border-color: #51585e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #157347;--bs-btn-hover-border-color: #146c43;--bs-btn-focus-shadow-rgb: 60, 153, 110;--bs-btn-active-color: #fff;--bs-btn-active-bg: #146c43;--bs-btn-active-border-color: #13653f;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #198754;--bs-btn-disabled-border-color: #198754}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffca2c;--bs-btn-hover-border-color: #ffc720;--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffcd39;--bs-btn-active-border-color: #ffc720;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #bb2d3b;--bs-btn-hover-border-color: #b02a37;--bs-btn-focus-shadow-rgb: 225, 83, 97;--bs-btn-active-color: #fff;--bs-btn-active-bg: #b02a37;--bs-btn-active-border-color: #a52834;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #dc3545;--bs-btn-disabled-border-color: #dc3545}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #4696e5;--bs-btn-hover-border-color: #4696e5;--bs-btn-focus-shadow-rgb: 70, 150, 229;--bs-btn-active-color: #000;--bs-btn-active-bg: #4696e5;--bs-btn-active-border-color: #4696e5;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #4696e5;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #4696e5;--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none}.btn-outline-success{--bs-btn-color: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #198754;--bs-btn-hover-border-color: #198754;--bs-btn-focus-shadow-rgb: 25, 135, 84;--bs-btn-active-color: #fff;--bs-btn-active-bg: #198754;--bs-btn-active-border-color: #198754;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #198754;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #198754;--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffc107;--bs-btn-hover-border-color: #ffc107;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffc107;--bs-btn-active-border-color: #ffc107;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #ffc107;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #ffc107;--bs-gradient: none}.btn-outline-danger{--bs-btn-color: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #dc3545;--bs-btn-hover-border-color: #dc3545;--bs-btn-focus-shadow-rgb: 220, 53, 69;--bs-btn-active-color: #fff;--bs-btn-active-bg: #dc3545;--bs-btn-active-border-color: #dc3545;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #dc3545;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #dc3545;--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: none;--bs-btn-focus-shadow-rgb: 60, 128, 195;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: .5rem}.btn-sm,.btn-group-sm>.btn{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: .25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: #212529;--bs-dropdown-bg: #fff;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: .375rem;--bs-dropdown-border-width: 1px;--bs-dropdown-inner-border-radius:calc(.375rem - 1px);--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-dropdown-link-color: #212529;--bs-dropdown-link-hover-color: #1e2125;--bs-dropdown-link-hover-bg: #e9ecef;--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:-1px}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: #6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link:hover,.nav-link:focus{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width: 1px;--bs-nav-tabs-border-color: #dee2e6;--bs-nav-tabs-border-radius: .375rem;--bs-nav-tabs-link-hover-border-color: #e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color: #495057;--bs-nav-tabs-link-active-bg: #fff;--bs-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:none;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius: .375rem;--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #4696e5}.nav-pills .nav-link{background:none;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x: 0;--bs-navbar-padding-y: .5rem;--bs-navbar-color: rgba(0, 0, 0, .55);--bs-navbar-hover-color: rgba(0, 0, 0, .7);--bs-navbar-disabled-color: rgba(0, 0, 0, .3);--bs-navbar-active-color: rgba(0, 0, 0, .9);--bs-navbar-brand-padding-y: .3125rem;--bs-navbar-brand-margin-end: 1rem;--bs-navbar-brand-font-size: 1.25rem;--bs-navbar-brand-color: rgba(0, 0, 0, .9);--bs-navbar-brand-hover-color: rgba(0, 0, 0, .9);--bs-navbar-nav-link-padding-x: .5rem;--bs-navbar-toggler-padding-y: .25rem;--bs-navbar-toggler-padding-x: .75rem;--bs-navbar-toggler-font-size: 1.25rem;--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color: rgba(0, 0, 0, .1);--bs-navbar-toggler-border-radius: .375rem;--bs-navbar-toggler-focus-width: .25rem;--bs-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x: 0;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-navbar-color);--bs-nav-link-hover-color: var(--bs-navbar-hover-color);--bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .show>.nav-link,.navbar-nav .nav-link.active{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color: rgba(255, 255, 255, .55);--bs-navbar-hover-color: rgba(255, 255, 255, .75);--bs-navbar-disabled-color: rgba(255, 255, 255, .25);--bs-navbar-active-color: #fff;--bs-navbar-brand-color: #fff;--bs-navbar-brand-hover-color: #fff;--bs-navbar-toggler-border-color: rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y: 1rem;--bs-card-spacer-x: 1rem;--bs-card-title-spacer-y: .5rem;--bs-card-border-width: 1px;--bs-card-border-color: var(--bs-border-color-translucent);--bs-card-border-radius: .375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(.375rem - 1px);--bs-card-cap-padding-y: .5rem;--bs-card-cap-padding-x: 1rem;--bs-card-cap-bg: rgba(0, 0, 0, .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg: #fff;--bs-card-img-overlay-padding: 1rem;--bs-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--bs-accordion-color: #212529;--bs-accordion-bg: #fff;--bs-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--bs-accordion-border-color: var(--bs-border-color);--bs-accordion-border-width: 1px;--bs-accordion-border-radius: .375rem;--bs-accordion-inner-border-radius:calc(.375rem - 1px);--bs-accordion-btn-padding-x: 1.25rem;--bs-accordion-btn-padding-y: 1rem;--bs-accordion-btn-color: #212529;--bs-accordion-btn-bg: var(--bs-accordion-bg);--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width: 1.25rem;--bs-accordion-btn-icon-transform: rotate(-180deg);--bs-accordion-btn-icon-transition: transform .2s ease-in-out;--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233f87ce'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color: #a3cbf2;--bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-accordion-body-padding-x: 1.25rem;--bs-accordion-body-padding-y: 1rem;--bs-accordion-active-color: #3f87ce;--bs-accordion-active-bg: #edf5fc}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x: 0;--bs-breadcrumb-padding-y: 0;--bs-breadcrumb-margin-bottom: 1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color: #6c757d;--bs-breadcrumb-item-padding-x: .5rem;--bs-breadcrumb-item-active-color: #6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x: .75rem;--bs-pagination-padding-y: .375rem;--bs-pagination-font-size: 1rem;--bs-pagination-color: var(--bs-link-color);--bs-pagination-bg: #fff;--bs-pagination-border-width: 1px;--bs-pagination-border-color: #dee2e6;--bs-pagination-border-radius: .375rem;--bs-pagination-hover-color: var(--bs-link-hover-color);--bs-pagination-hover-bg: #e9ecef;--bs-pagination-hover-border-color: #dee2e6;--bs-pagination-focus-color: var(--bs-link-hover-color);--bs-pagination-focus-bg: #e9ecef;--bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-pagination-active-color: #fff;--bs-pagination-active-bg: #4696e5;--bs-pagination-active-border-color: #4696e5;--bs-pagination-disabled-color: #6c757d;--bs-pagination-disabled-bg: #fff;--bs-pagination-disabled-border-color: #dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x: 1.5rem;--bs-pagination-padding-y: .75rem;--bs-pagination-font-size: 1.25rem;--bs-pagination-border-radius: .5rem}.pagination-sm{--bs-pagination-padding-x: .5rem;--bs-pagination-padding-y: .25rem;--bs-pagination-font-size: .875rem;--bs-pagination-border-radius: .25rem}.badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: .375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: 1px solid var(--bs-alert-border-color);--bs-alert-border-radius: .375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: #2a5a89;--bs-alert-bg: #daeafa;--bs-alert-border-color: #c8e0f7}.alert-primary .alert-link{color:#22486e}.alert-secondary{--bs-alert-color: #41464b;--bs-alert-bg: #e2e3e5;--bs-alert-border-color: #d3d6d8}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color: #0f5132;--bs-alert-bg: #d1e7dd;--bs-alert-border-color: #badbcc}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color: #055160;--bs-alert-bg: #cff4fc;--bs-alert-border-color: #b6effb}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color: #664d03;--bs-alert-bg: #fff3cd;--bs-alert-border-color: #ffecb5}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color: #842029;--bs-alert-bg: #f8d7da;--bs-alert-border-color: #f5c2c7}.alert-danger .alert-link{color:#6a1a21}.alert-light{--bs-alert-color: #636464;--bs-alert-bg: #fefefe;--bs-alert-border-color: #fdfdfe}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color: #141619;--bs-alert-bg: #d3d3d4;--bs-alert-border-color: #bcbebf}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #4696e5;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color: #212529;--bs-list-group-bg: #fff;--bs-list-group-border-color: rgba(0, 0, 0, .125);--bs-list-group-border-width: 1px;--bs-list-group-border-radius: .375rem;--bs-list-group-item-padding-x: 1rem;--bs-list-group-item-padding-y: .5rem;--bs-list-group-action-color: #495057;--bs-list-group-action-hover-color: #495057;--bs-list-group-action-hover-bg: #f8f9fa;--bs-list-group-action-active-color: #212529;--bs-list-group-action-active-bg: #e9ecef;--bs-list-group-disabled-color: #6c757d;--bs-list-group-disabled-bg: #fff;--bs-list-group-active-color: #fff;--bs-list-group-active-bg: #4696e5;--bs-list-group-active-border-color: #4696e5;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#2a5a89;background-color:#daeafa}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#2a5a89;background-color:#c4d3e1}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#2a5a89;border-color:#2a5a89}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#41464b;background-color:#cbccce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#664d03;background-color:#e6dbb9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#842029;background-color:#dfc2c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#636464;background-color:#e5e5e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em;color:#000;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem #4696e540;opacity:1}.btn-close:disabled,.btn-close.disabled{pointer-events:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(255, 255, 255, .85);--bs-toast-border-width: 1px;--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: .375rem;--bs-toast-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-toast-header-color: #6c757d;--bs-toast-header-bg: rgba(255, 255, 255, .85);--bs-toast-header-border-color: rgba(0, 0, 0, .05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: #fff;--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: 1px;--bs-modal-border-radius: .5rem;--bs-modal-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-modal-inner-border-radius:calc(.5rem - 1px);--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: 1px;--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: 1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: #fff;--bs-tooltip-bg: #000;--bs-tooltip-border-radius: .375rem;--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:0}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:0}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: #fff;--bs-popover-border-width: 1px;--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: .5rem;--bs-popover-inner-border-radius:calc(.5rem - 1px);--bs-popover-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: ;--bs-popover-header-bg: #f0f0f0;--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: #212529;--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg: #fff;--bs-offcanvas-border-width: 1px;--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075)}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 575.98px){.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}}@media (max-width: 575.98px){.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 767.98px){.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}}@media (max-width: 767.98px){.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 991.98px){.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}}@media (max-width: 991.98px){.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 1199.98px){.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}}@media (max-width: 1199.98px){.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width: 1399.98px){.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}}@media (max-width: 1399.98px){.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#000!important;background-color:RGBA(70,150,229,var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity, 1))!important}.link-primary{color:#4696e5!important}.link-primary:hover,.link-primary:focus{color:#6babea!important}.link-secondary{color:#6c757d!important}.link-secondary:hover,.link-secondary:focus{color:#565e64!important}.link-success{color:#198754!important}.link-success:hover,.link-success:focus{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:hover,.link-info:focus{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:hover,.link-warning:focus{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:hover,.link-danger:focus{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:hover,.link-light:focus{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:hover,.link-dark:focus{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width: 1px}.border-2{--bs-border-width: 2px}.border-3{--bs-border-width: 3px}.border-4{--bs-border-width: 4px}.border-5{--bs-border-width: 5px}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:#6c757d!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{user-select:all!important}.user-select-auto{user-select:auto!important}.user-select-none{user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}.react-tags{position:relative;padding:5px 0 0 6px;border-radius:.5rem;background-color:var(--primary-color);border:1px solid var(--input-border-color);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-size:1em;line-height:1.2;cursor:text}.input-group>.react-tags{flex:1 1 auto;width:1%;min-width:0}.card .react-tags{background-color:var(--input-color)}.react-tags.is-focused{box-shadow:0 0 0 .2rem #4696e540}.react-tags__tag{font-size:100%}.react-tags__selected{display:inline;vertical-align:2px}.react-tags__selected-tag{display:inline-block;box-sizing:border-box;margin:0 6px 6px 0;padding:6px 8px;border:1px solid var(--input-border-color);border-radius:.25rem;background:#f1f1f1;font-size:inherit;line-height:inherit}.react-tags__selected-tag:after{content:"\2715";color:#aaa;margin-left:8px}.react-tags__selected-tag:hover,.react-tags__selected-tag:focus{border-color:var(--input-border-color)}.react-tags__search{display:inline-block;padding:6px 2px;margin-bottom:5px;max-width:100%}@media screen and (min-width: 576px){.react-tags__search{position:relative}}.react-tags__search-input{font-size:1.25rem;line-height:inherit;color:var(--input-text-color);background-color:inherit;max-width:100%;margin:0 0 0 7px;padding:0;border:0;outline:none}.react-tags__search-input::placeholder{color:#6c757d}.react-tags__search-input::-ms-clear{display:none}.react-tags__suggestions{position:absolute;top:100%;left:0;width:100%;z-index:10}@media screen and (min-width: 576px){.react-tags__suggestions{width:240px}}.react-tags__suggestions ul{margin:4px -1px;padding:0;list-style:none;background:var(--primary-color);border:1px solid var(--border-color);border-radius:.25rem;box-shadow:0 2px 6px #0003}.react-tags__suggestions li{padding:8px 10px}.react-tags__suggestions li:not(:last-child){border-bottom:1px solid var(--border-color)}.react-tags__suggestions li mark,.react-tags__suggestions li .mark{text-decoration:underline;background:none;font-weight:600}.react-tags__suggestions li:hover{cursor:pointer;background-color:var(--active-color)}.react-tags__suggestions li.is-active{background-color:var(--active-color)}.react-tags__suggestions li.is-disabled{opacity:.5;cursor:auto}html:not([data-theme=dark]){--color-scheme: initial;--primary-color: #ffffff;--primary-color-alfa: rgba(255, 255, 255, .5);--secondary-color: #f5f6fe;--text-color: #232323;--border-color: rgba(0, 0, 0, .125);--active-color: #eeeeee;--brand-color: #4696e5;--input-color: #ffffff;--input-disabled-color: #f5f6fe;--input-border-color: rgba(0, 0, 0, .19);--input-text-color: #495057;--table-border-color: #dee2e6;--table-highlight-color: rgba(0, 0, 0, .075);--btn-close-filter: initial}html[data-theme=dark]{--color-scheme: dark;--primary-color: #161b22;--primary-color-alfa: rgba(22, 27, 34, .8);--secondary-color: #0f131a;--text-color: rgb(201, 209, 217);--border-color: rgba(255, 255, 255, .15);--active-color: #0f131a;--brand-color: #0b2d4e;--input-color: #12161c;--input-disabled-color: #1a2028;--input-border-color: rgba(255, 255, 255, .15);--input-text-color: rgb(201, 209, 217);--table-border-color: #393d43;--table-highlight-color: rgba(255, 255, 255, .15);--btn-close-filter: invert(1)}@media (max-width: 991px){.responsive-table__header{display:none}}@media (max-width: 991px){.responsive-table.table>:not(:first-child){border:none}}@media (max-width: 991px){.responsive-table__row{display:block;border-bottom:1px solid var(--border-color);border-top:2px solid var(--border-color);position:relative}.responsive-table__row:not(:last-child){margin-bottom:10px}}.responsive-table__cell.responsive-table__cell{vertical-align:middle!important}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell{display:block;width:100%;position:relative;padding:.5rem;font-size:.9rem}.responsive-table__cell.responsive-table__cell[data-th]:before{content:attr(data-th) ": ";font-weight:700}.responsive-table__cell.responsive-table__cell:last-child{position:absolute;top:3.5px;right:.5rem;width:auto;padding:0;border:none}}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell .btn-sm,.responsive-table__cell.responsive-table__cell .btn-group-sm>.btn{padding:.1rem .4rem;margin-top:.16rem}}.sticky-card-paginator{position:sticky;bottom:0;background-color:var(--primary-color-alfa);padding:.75rem 0;border-top:1px solid var(--border-color)}*{outline:none!important}:root{scroll-behavior:auto;color-scheme:var(--color-scheme)}html,body,#root{height:100%;background:var(--secondary-color);color:var(--text-color)}a,.btn-link{text-decoration:none}a:not(.nav-link):not(.navbar-brand):not(.page-link):not(.highlight-card):not(.btn):not(.dropdown-item):hover,.btn-link:hover{text-decoration:underline}.bg-main{background-color:#4696e5!important}.bg-warning{color:#232323}.card-body,.card-header,.list-group-item{background-color:transparent}.card-footer{background-color:var(--primary-color-alfa)}.card{box-shadow:0 .125rem .25rem #00000013;background-color:var(--primary-color);border-color:var(--border-color)}.list-group,.modal-content,.page-link,.page-item.disabled .page-link,.dropdown-menu{background-color:var(--primary-color)}.modal-header,.modal-footer,.card-header,.card-footer,.table thead th,.table th,.table td,.page-link,.page-link:hover,.page-item.disabled .page-link,.dropdown-divider,.dropdown-menu,.list-group-item,.modal-content,hr{border-color:var(--border-color)}.table-bordered,.table-bordered thead th,.table-bordered thead td{border-color:var(--table-border-color)}.page-link:hover,.page-link:focus{background-color:var(--secondary-color)}.page-item.active .page-link{background-color:var(--brand-color);border-color:var(--brand-color)}.pagination .page-link{cursor:pointer}@media (min-width: 1200px){.container-xl{max-width:1320px}}@media (max-width: 767px){.container-xl{padding-right:0;padding-left:0}}.btn-block{display:block;width:100%}.btn-primary,.btn-primary:hover,.btn-primary:active,.btn-primary.active,.btn-outline-primary:hover,.btn-outline-primary:active,.btn-outline-primary.active{color:#fff}.dropdown-item,.dropdown-item-text{color:var(--text-color)}.dropdown-item:not(:disabled){cursor:pointer}.dropdown-item:focus:not(:disabled),.dropdown-item:hover:not(:disabled),.dropdown-item.active:not(:disabled),.dropdown-item:active:not(:disabled){background-color:var(--active-color)!important;color:var(--text-color)!important}.dropdown-item--danger.dropdown-item--danger{color:#dc3545}.dropdown-item--danger.dropdown-item--danger:hover,.dropdown-item--danger.dropdown-item--danger:active,.dropdown-item--danger.dropdown-item--danger.active{color:#dc3545!important}.badge-main{color:#fff;background-color:var(--brand-color)}.close,.close:hover,.table,.table-hover>tbody>tr:hover>*,.table-hover>tbody>tr>*{color:var(--text-color)}.btn-close{filter:var(--btn-close-filter)}.table-hover tbody tr:hover{background-color:var(--secondary-color)}.form-control,.form-control:focus{background-color:var(--primary-color);border-color:var(--input-border-color);color:var(--input-text-color)}.form-control.disabled,.form-control:disabled{background-color:var(--input-disabled-color);cursor:not-allowed}.card .form-control:not(:disabled),.card .form-control:not(:disabled):hover{background-color:var(--input-color)}.table-active,.table-active>th,.table-active>td{background-color:var(--table-highlight-color)!important}@media (max-width: 767px){.navbar-brand{margin:0 auto!important}}.indivisible{white-space:nowrap}.pointer{cursor:pointer}.text-ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.progress-bar{background-color:#4696e5}@media (max-width: 575px){.btn-xs-block{width:100%;display:block}}@media (max-width: 991px){.btn-md-block{width:100%;display:block}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0;width:100%}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 2px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-72px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:white;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day-names{margin-bottom:-8px}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__month--selected,.react-datepicker__month--in-selecting-range,.react-datepicker__month--in-range,.react-datepicker__quarter--selected,.react-datepicker__quarter--in-selecting-range,.react-datepicker__quarter--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__month--selected:hover,.react-datepicker__month--in-selecting-range:hover,.react-datepicker__month--in-range:hover,.react-datepicker__quarter--selected:hover,.react-datepicker__quarter--in-selecting-range:hover,.react-datepicker__quarter--in-range:hover{background-color:#1d5d90}.react-datepicker__month--disabled,.react-datepicker__quarter--disabled{color:#ccc;pointer-events:none}.react-datepicker__month--disabled:hover,.react-datepicker__quarter--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#2579ba;color:#fff}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__month-text.react-datepicker__month--selected:hover,.react-datepicker__month-text.react-datepicker__month--in-range:hover,.react-datepicker__month-text.react-datepicker__quarter--selected:hover,.react-datepicker__month-text.react-datepicker__quarter--in-range:hover,.react-datepicker__quarter-text.react-datepicker__month--selected:hover,.react-datepicker__quarter-text.react-datepicker__month--in-range:hover,.react-datepicker__quarter-text.react-datepicker__quarter--selected:hover,.react-datepicker__quarter-text.react-datepicker__quarter--in-range:hover{background-color:#216ba5}.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover{background-color:#f0f0f0}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"\d7"}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem} diff --git a/develop/assets/index-7da960a8.js b/develop/assets/index-7da960a8.js new file mode 100644 index 00000000..3d75e5e2 --- /dev/null +++ b/develop/assets/index-7da960a8.js @@ -0,0 +1,1012 @@ +var h7=Object.defineProperty;var p7=(e,t,n)=>t in e?h7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Se=(e,t,n)=>(p7(e,typeof t!="symbol"?t+"":t,n),n);function m7(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Vl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function AL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ff={},v7={get exports(){return Ff},set exports(e){Ff=e}},cy={},H={},y7={get exports(){return H},set exports(e){H=e}},st={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dd=Symbol.for("react.element"),_7=Symbol.for("react.portal"),b7=Symbol.for("react.fragment"),w7=Symbol.for("react.strict_mode"),x7=Symbol.for("react.profiler"),S7=Symbol.for("react.provider"),C7=Symbol.for("react.context"),E7=Symbol.for("react.forward_ref"),T7=Symbol.for("react.suspense"),O7=Symbol.for("react.memo"),P7=Symbol.for("react.lazy"),fO=Symbol.iterator;function k7(e){return e===null||typeof e!="object"?null:(e=fO&&e[fO]||e["@@iterator"],typeof e=="function"?e:null)}var IL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},FL=Object.assign,$L={};function qc(e,t,n){this.props=e,this.context=t,this.refs=$L,this.updater=n||IL}qc.prototype.isReactComponent={};qc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jL(){}jL.prototype=qc.prototype;function kx(e,t,n){this.props=e,this.context=t,this.refs=$L,this.updater=n||IL}var Mx=kx.prototype=new jL;Mx.constructor=kx;FL(Mx,qc.prototype);Mx.isPureReactComponent=!0;var dO=Array.isArray,BL=Object.prototype.hasOwnProperty,Rx={current:null},zL={key:!0,ref:!0,__self:!0,__source:!0};function UL(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)BL.call(t,r)&&!zL.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1Math.max(Math.min(e,n),t);function Vu(e){return ls(Ad(e*2.55),0,255)}function bs(e){return ls(Ad(e*255),0,255)}function mo(e){return ls(Ad(e/2.55)/100,0,1)}function pO(e){return ls(Ad(e*100),0,100)}const Wr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Q1=[..."0123456789ABCDEF"],B7=e=>Q1[e&15],z7=e=>Q1[(e&240)>>4]+Q1[e&15],zh=e=>(e&240)>>4===(e&15),U7=e=>zh(e.r)&&zh(e.g)&&zh(e.b)&&zh(e.a);function V7(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Wr[e[1]]*17,g:255&Wr[e[2]]*17,b:255&Wr[e[3]]*17,a:t===5?Wr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Wr[e[1]]<<4|Wr[e[2]],g:Wr[e[3]]<<4|Wr[e[4]],b:Wr[e[5]]<<4|Wr[e[6]],a:t===9?Wr[e[7]]<<4|Wr[e[8]]:255})),n}const H7=(e,t)=>e<255?t(e):"";function W7(e){var t=U7(e)?B7:z7;return e?"#"+t(e.r)+t(e.g)+t(e.b)+H7(e.a,t):void 0}const Y7=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function HL(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function q7(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function G7(e,t,n){const r=HL(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Z7(e,t,n,r,i){return e===i?(t-n)/r+(t.5?f/(2-o-s):f/(o+s),l=Z7(n,r,i,f,o),l=l*60+.5),[l|0,c||0,a]}function Dx(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(bs)}function Ax(e,t,n){return Dx(HL,e,t,n)}function K7(e,t,n){return Dx(G7,e,t,n)}function X7(e,t,n){return Dx(q7,e,t,n)}function WL(e){return(e%360+360)%360}function Q7(e){const t=Y7.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Vu(+t[5]):bs(+t[5]));const i=WL(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=K7(i,o,s):t[1]==="hsv"?r=X7(i,o,s):r=Ax(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function J7(e,t){var n=Lx(e);n[0]=WL(n[0]+t),n=Ax(n),e.r=n[0],e.g=n[1],e.b=n[2]}function ej(e){if(!e)return;const t=Lx(e),n=t[0],r=pO(t[1]),i=pO(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${mo(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const mO={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},gO={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function tj(){const e={},t=Object.keys(gO),n=Object.keys(mO);let r,i,o,s,a;for(r=0;r>16&255,o>>8&255,o&255]}return e}let Uh;function nj(e){Uh||(Uh=tj(),Uh.transparent=[0,0,0,0]);const t=Uh[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const rj=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function ij(e){const t=rj.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?Vu(s):ls(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Vu(r):ls(r,0,255)),i=255&(t[4]?Vu(i):ls(i,0,255)),o=255&(t[6]?Vu(o):ls(o,0,255)),{r,g:i,b:o,a:n}}}function oj(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${mo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const c0=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ol=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function sj(e,t,n){const r=Ol(mo(e.r)),i=Ol(mo(e.g)),o=Ol(mo(e.b));return{r:bs(c0(r+n*(Ol(mo(t.r))-r))),g:bs(c0(i+n*(Ol(mo(t.g))-i))),b:bs(c0(o+n*(Ol(mo(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Vh(e,t,n){if(e){let r=Lx(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Ax(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function YL(e,t){return e&&Object.assign(t||{},e)}function vO(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=bs(e[3]))):(t=YL(e,{r:0,g:0,b:0,a:1}),t.a=bs(t.a)),t}function aj(e){return e.charAt(0)==="r"?ij(e):Q7(e)}class $f{constructor(t){if(t instanceof $f)return t;const n=typeof t;let r;n==="object"?r=vO(t):n==="string"&&(r=V7(t)||nj(t)||aj(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=YL(this._rgb);return t&&(t.a=mo(t.a)),t}set rgb(t){this._rgb=vO(t)}rgbString(){return this._valid?oj(this._rgb):void 0}hexString(){return this._valid?W7(this._rgb):void 0}hslString(){return this._valid?ej(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=sj(this._rgb,t._rgb,n)),this}clone(){return new $f(this.rgb)}alpha(t){return this._rgb.a=bs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Ad(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Vh(this._rgb,2,t),this}darken(t){return Vh(this._rgb,2,-t),this}saturate(t){return Vh(this._rgb,1,t),this}desaturate(t){return Vh(this._rgb,1,-t),this}rotate(t){return J7(this._rgb,t),this}}/*! + * Chart.js v4.1.1 + * https://www.chartjs.org + * (c) 2022 Chart.js Contributors + * Released under the MIT License + */function uo(){}const lj=(()=>{let e=0;return()=>e++})();function ft(e){return e===null||typeof e>"u"}function Rt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ot(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Kt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Pr(e,t){return Kt(e)?e:t}function Qe(e,t){return typeof e>"u"?t:e}const cj=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,qL=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Tt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function _t(e,t,n,r){let i,o,s;if(Rt(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function dj(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function hj(e){const t=dj(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function As(e,t){return(yO[t]||(yO[t]=hj(t)))(e)}function Ix(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ei=e=>typeof e<"u",Is=e=>typeof e=="function",_O=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function pj(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Bt=Math.PI,Nt=2*Bt,mj=Nt+Bt,cg=Number.POSITIVE_INFINITY,gj=Bt/180,Xt=Bt/2,pa=Bt/4,bO=Bt*2/3,cs=Math.log10,Zi=Math.sign;function af(e,t,n){return Math.abs(e-t)i-o).pop(),t}function xc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function yj(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function ZL(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function $x(e,t,n){n=n||(s=>e[s]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const wo=(e,t,n,r)=>$x(e,n,r?i=>{const o=e[i][t];return oe[i][t]$x(e,n,r=>e[r][t]>=n);function xj(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+Ix(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function SO(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(XL.forEach(o=>{delete e[o]}),delete e._chartjs)}function QL(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function eD(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,JL.call(window,()=>{r=!1,e.apply(t,n)}))}}function Cj(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const jx=e=>e==="start"?"left":e==="end"?"right":"center",Qn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Ej=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function tD(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:f,minDefined:h,maxDefined:p}=s.getUserBounds();h&&(i=On(Math.min(wo(a,s.axis,c).lo,n?r:wo(t,l,s.getPixelForValue(c)).lo),0,r-1)),p?o=On(Math.max(wo(a,s.axis,f,!0).hi+1,n?0:wo(t,l,s.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function nD(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Hh=e=>e===0||e===1,CO=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Nt/n)),EO=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Nt/n)+1,lf={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Xt)+1,easeOutSine:e=>Math.sin(e*Xt),easeInOutSine:e=>-.5*(Math.cos(Bt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Hh(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Hh(e)?e:CO(e,.075,.3),easeOutElastic:e=>Hh(e)?e:EO(e,.075,.3),easeInOutElastic(e){return Hh(e)?e:e<.5?.5*CO(e*2,.1125,.45):.5+.5*EO(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-lf.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?lf.easeInBounce(e*2)*.5:lf.easeOutBounce(e*2-1)*.5+.5};function rD(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function TO(e){return rD(e)?e:new $f(e)}function u0(e){return rD(e)?e:new $f(e).saturate(.5).darken(.1).hexString()}const Tj=["x","y","borderWidth","radius","tension"],Oj=["color","borderColor","backgroundColor"];function Pj(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Oj},numbers:{type:"number",properties:Tj}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function kj(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const OO=new Map;function Mj(e,t){t=t||{};const n=e+JSON.stringify(t);let r=OO.get(n);return r||(r=new Intl.NumberFormat(e,t),OO.set(n,r)),r}function Id(e,t,n){return Mj(t,n).format(e)}const iD={values(e){return Rt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=Rj(e,n)}const s=cs(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Id(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(cs(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?iD.numeric.call(this,e,t,n):""}};function Rj(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var uy={formatters:iD};function Nj(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:uy.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ya=Object.create(null),eb=Object.create(null);function cf(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>u0(i.backgroundColor),this.hoverBorderColor=(r,i)=>u0(i.borderColor),this.hoverColor=(r,i)=>u0(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return f0(this,t,n)}get(t){return cf(this,t)}describe(t,n){return f0(eb,t,n)}override(t,n){return f0(Ya,t,n)}route(t,n,r,i){const o=cf(this,t),s=cf(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return ot(l)?Object.assign({},c,l):Qe(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var on=new Lj({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Pj,kj,Nj]);function Dj(e){return!e||ft(e.size)||ft(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ug(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Aj(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let l,c,f,h,p;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function zf(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,$j(e,o),l=0;l+e||0;function Bx(e,t){const n={},r=ot(t),i=r?Object.keys(t):t,o=ot(e)?r?s=>Qe(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=Hj(o(s));return n}function sD(e){return Bx(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Fa(e){return Bx(e,["topLeft","topRight","bottomLeft","bottomRight"])}function nr(e){const t=sD(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function yn(e,t){e=e||{},t=t||on.font;let n=Qe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Qe(e.style,t.style);r&&!(""+r).match(Uj)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Qe(e.family,t.family),lineHeight:Vj(Qe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Qe(e.weight,t.weight),string:""};return i.string=Dj(i),i}function Hu(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;on&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function Gs(e,t){return Object.assign(Object.create(e),t)}function zx(e,t=[""],n=e,r,i=()=>e[0]){ei(r)||(r=uD("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>zx([s,...e],t,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return lD(s,a,()=>Jj(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return MO(s).includes(a)},ownKeys(s){return MO(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function Sc(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:aD(e,r),setContext:o=>Sc(e,o,n,r),override:o=>Sc(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return lD(o,s,()=>qj(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function aD(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Is(n)?n:()=>n,isIndexable:Is(r)?r:()=>r}}const Yj=(e,t)=>e?e+Ix(t):t,Ux=(e,t)=>ot(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function lD(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function qj(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return Is(a)&&s.isScriptable(t)&&(a=Gj(t,a,e,n)),Rt(a)&&a.length&&(a=Zj(t,a,e,s.isIndexable)),Ux(t,a)&&(a=Sc(a,i,o&&o[t],s)),a}function Gj(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(o,s||r),a.delete(e),Ux(e,t)&&(t=Vx(i._scopes,i,e,t)),t}function Zj(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(ei(o.index)&&r(e))t=t[o.index%t.length];else if(ot(t[0])){const l=t,c=i._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=Vx(c,i,e,f);t.push(Sc(h,o,s&&s[e],a))}}return t}function cD(e,t,n){return Is(e)?e(t,n):e}const Kj=(e,t)=>e===!0?t:typeof e=="string"?As(t,e):void 0;function Xj(e,t,n,r,i){for(const o of t){const s=Kj(n,o);if(s){e.add(s);const a=cD(s._fallback,n,i);if(ei(a)&&a!==n&&a!==r)return a}else if(s===!1&&ei(r)&&n!==r)return null}return!1}function Vx(e,t,n,r){const i=t._rootScopes,o=cD(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=kO(a,s,n,o||n,r);return l===null||ei(o)&&o!==n&&(l=kO(a,s,o,l,r),l===null)?!1:zx(Array.from(a),[""],i,o,()=>Qj(t,n,r))}function kO(e,t,n,r,i){for(;n;)n=Xj(e,t,n,r,i);return n}function Qj(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Rt(i)&&ot(n)?n:i||{}}function Jj(e,t,n,r){let i;for(const o of t)if(i=uD(Yj(o,e),n),ei(i))return Ux(e,i)?Vx(n,r,e,i):i}function uD(e,t){for(const n of t){if(!n)continue;const r=n[e];if(ei(r))return r}}function MO(e){let t=e._keys;return t||(t=e._keys=eB(e._scopes)),t}function eB(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function fD(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new Array(r);let a,l,c,f;for(a=0,l=r;ate==="x"?"y":"x";function nB(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=J1(o,i),l=J1(s,o);let c=a/(a+l),f=l/(a+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=r*c,p=r*f;return{previous:{x:o.x-h*(s.x-i.x),y:o.y-h*(s.y-i.y)},next:{x:o.x+p*(s.x-i.x),y:o.y+p*(s.y-i.y)}}}function rB(e,t,n){const r=e.length;let i,o,s,a,l,c=Cc(e,0);for(let f=0;f!c.skip)),t.cubicInterpolationMode==="monotone")oB(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,s=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function lB(e,t){return hy(e).getPropertyValue(t)}const cB=["top","right","bottom","left"];function $a(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=cB[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const uB=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function fB(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(uB(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function xa(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=hy(n),o=i.boxSizing==="border-box",s=$a(i,"padding"),a=$a(i,"border","width"),{x:l,y:c,box:f}=fB(e,n),h=s.left+(f&&a.left),p=s.top+(f&&a.top);let{width:m,height:g}=t;return o&&(m-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-h)/m*n.width/r),y:Math.round((c-p)/g*n.height/r)}}function dB(e,t,n){let r,i;if(t===void 0||n===void 0){const o=Hx(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=hy(o),l=$a(a,"border","width"),c=$a(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=fg(a.maxWidth,o,"clientWidth"),i=fg(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||cg,maxHeight:i||cg}}const Yh=e=>Math.round(e*10)/10;function hB(e,t,n,r){const i=hy(e),o=$a(i,"margin"),s=fg(i.maxWidth,e,"clientWidth")||cg,a=fg(i.maxHeight,e,"clientHeight")||cg,l=dB(e,t,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=$a(i,"border","width"),m=$a(i,"padding");c-=m.width+p.width,f-=m.height+p.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?c/r:f-o.height),c=Yh(Math.min(c,s,l.maxWidth)),f=Yh(Math.min(f,a,l.maxHeight)),c&&!f&&(f=Yh(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&f>l.height&&(f=l.height,c=Yh(Math.floor(f*r))),{width:c,height:f}}function RO(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const pB=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function NO(e,t){const n=lB(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Sa(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function mB(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function gB(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=Sa(e,i,n),a=Sa(i,o,n),l=Sa(o,t,n),c=Sa(s,a,n),f=Sa(a,l,n);return Sa(c,f,n)}const vB=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},yB=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function sc(e,t,n){return e?vB(t,n):yB()}function pD(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function mD(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function gD(e){return e==="angle"?{between:Bf,compare:_j,normalize:Mr}:{between:bo,compare:(t,n)=>t-n,normalize:t=>t}}function LO({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function _B(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=gD(r),l=t.length;let{start:c,end:f,loop:h}=e,p,m;if(h){for(c+=l,f+=l,p=0,m=l;pl(i,x,y)&&a(i,x)!==0,P=()=>a(o,y)===0||l(o,x,y),k=()=>v||T(),N=()=>!v||P();for(let D=f,z=f;D<=h;++D)b=t[D%s],!b.skip&&(y=c(b[r]),y!==x&&(v=l(y,i,o),w===null&&k()&&(w=a(y,i)===0?D:z),w!==null&&N()&&(g.push(LO({start:w,end:D,loop:p,count:s,style:m})),w=null),z=D,x=y));return w!==null&&g.push(LO({start:w,end:h,loop:p,count:s,style:m})),g}function yD(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function wB(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function xB(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=bB(n,i,o,r);if(r===!0)return DO(e,[{start:s,end:a,loop:o}],n,t);const l=aa({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=JL.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var fo=new EB;const IO="transparent",TB={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=TO(e||IO),i=r.valid&&TO(t||IO);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class OB{constructor(t,n,r,i){const o=n[r];i=Hu([t.to,i,o,t.from]);const s=Hu([t.from,o,i]);this._active=!0,this._fn=t.fn||TB[t.type||typeof s],this._easing=lf[t.easing]||lf.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Hu([t.to,n,i,t.from]),this._from=Hu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!ot(o))return;const s={};for(const a of n)s[a]=o[a];(Rt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=kB(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&PB(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const f=n[c];let h=o[c];const p=r.get(c);if(h)if(p&&h.active()){h.update(p,f,a);continue}else h.cancel();if(!p||!p.duration){t[c]=f;continue}o[c]=h=new OB(p,t,c,f),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return fo.add(this._chart,r),!0}}function PB(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function zO(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,f=LB(o,s,r),h=t.length;let p;for(let m=0;mn[r].axis===t).shift()}function IB(e,t){return Gs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function FB(e,t,n){return Gs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Su(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const h0=e=>e==="reset"||e==="none",UO=(e,t)=>t?e:Object.assign({},e),$B=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:bD(n,!0),values:null};class xi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=jO(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Su(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,m,g)=>h==="x"?p:h==="r"?g:m,o=n.xAxisID=Qe(r.xAxisID,d0(t,"x")),s=n.yAxisID=Qe(r.yAxisID,d0(t,"y")),a=n.rAxisID=Qe(r.rAxisID,d0(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),f=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&SO(this._data,this),t._stacked&&Su(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ot(n))this._data=NB(n);else if(r!==n){if(r){SO(r,this);const i=this._cachedMeta;Su(i),i._parsed=[]}n&&Object.isExtensible(n)&&Sj(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=jO(n.vScale,n),n.stack!==r.stack&&(i=!0,Su(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&zO(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],f,h,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{Rt(i[t])?p=this.parseArrayData(r,i,t,n):ot(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]v||h=0;--p)if(!g()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(p,m,g,h);return v.$shared&&(v.$shared=l,o[s]=Object.freeze(UO(v,l))),v}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,n),p=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(p,this.getContext(t,r,n))}const c=new _D(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||h0(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){h0(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!h0(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;ai-o))}return e._cache.$bar}function BB(e){const t=e.iScale,n=jB(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(ei(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function wD(e,t,n,r){return Rt(e)?VB(e,t,n,r):t[n.axis]=n.parse(e,r),t}function VO(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let c,f,h,p;for(c=n,f=n+r;c=n?1:-1)}function WB(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.basel.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),f=c&&c[l.vScale.axis];if(ft(f)||isNaN(f))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),c=s._custom;return{label:r[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),f=s.axis,h=a.axis;for(let p=n;pBf(x,a,l,!0)?1:Math.max(T,T*n,P,P*n),g=(x,T,P)=>Bf(x,a,l,!0)?-1:Math.min(T,T*n,P,P*n),v=m(0,c,h),w=m(Xt,f,p),y=g(Bt,c,h),b=g(Bt+Xt,f,p);r=(v-y)/2,i=(w-b)/2,o=-(v+y)/2,s=-(w+b)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class us extends xi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(ot(r[t])){const{key:l="value"}=this._parsing;o=c=>+As(r[c],l)}let s,a;for(s=t,a=t+n;s0&&!isNaN(t)?Nt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Id(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"}),Se(us,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class ff extends xi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=tD(n,i,s);this._drawStart=a,this._drawCount=l,nD(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,i),p=s.axis,m=a.axis,{spanGaps:g,segment:v}=this.options,w=xc(g)?g:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||i==="none",b=n+r,x=t.length;let T=n>0&&this.getParsed(n-1);for(let P=0;P=b){N.skip=!0;continue}const D=this.getParsed(P),z=ft(D[m]),A=N[p]=s.getPixelForValue(D[p],P),Y=N[m]=o||z?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,D,l):D[m],P);N.skip=isNaN(A)||isNaN(Y)||z,N.stop=P>0&&Math.abs(D[p]-T[p])>w,v&&(N.parsed=D,N.raw=c.data[P]),h&&(N.options=f||this.resolveDataElementOptions(P,k.active?"active":i)),y||this.updateElement(k,P,N,i),T=D}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Se(ff,"id","line"),Se(ff,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Se(ff,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class df extends xi{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Id(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return fD.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,f=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*Bt;let m=p,g;const v=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?_i(this.resolveDataElementOptions(t,n).angle||r):0}}Se(df,"id","polarArea"),Se(df,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Se(df,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class nb extends us{}Se(nb,"id","pie"),Se(nb,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class qp extends xi{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return fD.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let T=n;T0&&Math.abs(k[m]-x[m])>y,w&&(N.parsed=k,N.raw=c.data[T]),p&&(N.options=h||this.resolveDataElementOptions(T,P.active?"active":i)),b||this.updateElement(P,T,N,i),x=k}this.updateSharedOptions(h,i,f)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}Se(Gp,"id","scatter"),Se(Gp,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Se(Gp,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var KB=Object.freeze({__proto__:null,BarController:uf,BubbleController:Yp,DoughnutController:us,LineController:ff,PolarAreaController:df,PieController:nb,RadarController:qp,ScatterController:Gp});function ga(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Wx{static override(t){Object.assign(Wx.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return ga()}parse(){return ga()}format(){return ga()}add(){return ga()}diff(){return ga()}startOf(){return ga()}endOf(){return ga()}}var XB={_date:Wx};function QB(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const l=a._reversePixels?wj:wo;if(r){if(i._sharedOptions){const c=o[0],f=typeof c.getRange=="function"&&c.getRange(t);if(f){const h=l(o,t,n-f),p=l(o,t,n+f);return{lo:h.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Fd(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a{l[s](t[n],i)&&(o.push({element:l,datasetIndex:c,index:f}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var n9={evaluateInteractionItems:Fd,modes:{index(e,t,n,r){const i=xa(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?m0(e,i,o,r,s):g0(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=a[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(e,t,n,r){const i=xa(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?m0(e,i,o,r,s):g0(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let f=0;fn.pos===t)}function qO(e,t){return e.filter(n=>xD.indexOf(n.pos)===-1&&n.box.axis===t)}function Eu(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function r9(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Eu(Cu(t,"left"),!0),i=Eu(Cu(t,"right")),o=Eu(Cu(t,"top"),!0),s=Eu(Cu(t,"bottom")),a=qO(t,"x"),l=qO(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:Cu(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function GO(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function SD(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function a9(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!ot(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,e[i]+=n.size}o.getPadding&&SD(s,o.getPadding());const a=Math.max(0,t.outerWidth-GO(s,e,"left","right")),l=Math.max(0,t.outerHeight-GO(s,e,"top","bottom")),c=a!==e.w,f=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function l9(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function c9(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function Wu(e,t,n,r){const i=[];let o,s,a,l,c,f;for(o=0,s=e.length,c=0;o{typeof v.beforeLayout=="function"&&v.beforeLayout()});const f=l.reduce((v,w)=>w.box.options&&w.box.options.display===!1?v:v+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},i);SD(p,nr(r));const m=Object.assign({maxPadding:p,w:o,h:s,x:i.left,y:i.top},i),g=o9(l.concat(c),h);Wu(a.fullSize,m,h,g),Wu(l,m,h,g),Wu(c,m,h,g)&&Wu(l,m,h,g),l9(m),ZO(a.leftAndTop,m,h,g),m.x+=m.w,m.y+=m.h,ZO(a.rightAndBottom,m,h,g),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},_t(a.chartArea,v=>{const w=v.box;Object.assign(w,e.chartArea),w.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class CD{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class u9 extends CD{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Zp="$chartjs",f9={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},KO=e=>e===null||e==="";function d9(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Zp]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",KO(i)){const o=NO(e,"width");o!==void 0&&(e.width=o)}if(KO(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=NO(e,"height");o!==void 0&&(e.height=o)}return e}const ED=pB?{passive:!0}:!1;function h9(e,t,n){e.addEventListener(t,n,ED)}function p9(e,t,n){e.canvas.removeEventListener(t,n,ED)}function m9(e,t){const n=f9[e.type]||e.type,{x:r,y:i}=xa(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function dg(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function g9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||dg(a.addedNodes,r),s=s&&!dg(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function v9(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||dg(a.removedNodes,r),s=s&&!dg(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Vf=new Map;let XO=0;function TD(){const e=window.devicePixelRatio;e!==XO&&(XO=e,Vf.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function y9(e,t){Vf.size||window.addEventListener("resize",TD),Vf.set(e,t)}function _9(e){Vf.delete(e),Vf.size||window.removeEventListener("resize",TD)}function b9(e,t,n){const r=e.canvas,i=r&&Hx(r);if(!i)return;const o=eD((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return s.observe(i),y9(e,o),s}function v0(e,t,n){n&&n.disconnect(),t==="resize"&&_9(e)}function w9(e,t,n){const r=e.canvas,i=eD(o=>{e.ctx!==null&&n(m9(o,e))},e);return h9(r,t,i),i}class x9 extends CD{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(d9(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Zp])return!1;const r=n[Zp].initial;["height","width"].forEach(o=>{const s=r[o];ft(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Zp],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:g9,detach:v9,resize:b9}[n]||w9;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:v0,detach:v0,resize:v0}[n]||p9)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return hB(t,n,r,i)}isAttached(t){const n=Hx(t);return!!(n&&n.isConnected)}}function S9(e){return!hD()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?u9:x9}var Vp;let Fo=(Vp=class{constructor(){Se(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return xc(this.x)&&xc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},Se(Vp,"defaults",{}),Se(Vp,"defaultRoutes"),Vp);function C9(e,t){const n=e.options.ticks,r=E9(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?O9(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return P9(t,c,o,s/i),c;const f=T9(o,t,i);if(s>0){let h,p;const m=s>1?Math.round((l-a)/(s-1)):null;for(Gh(t,c,f,ft(m)?0:a-m,a),h=0,p=s-1;hi)return l}return Math.max(i,1)}function O9(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,QO=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function JO(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;os+a)))return l}function N9(e,t){_t(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:Pr(n,Pr(r,n)),max:Pr(r,Pr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Tt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Wj(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,m=On(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),l=this.maxHeight-Tu(t.grid)-n.padding-eP(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),s=Fx(Math.min(Math.asin(On((f.highest.height+6)/a,-1,1)),Math.asin(On(l/c,-1,1))-Math.asin(On(p/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Tt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Tt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=eP(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Tu(o)+l):(t.height=this.maxHeight,t.width=Tu(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),m=r.padding*2,g=_i(this.labelRotation),v=Math.cos(g),w=Math.sin(g);if(a){const y=r.mirror?0:w*h.width+v*p.height;t.height=Math.min(this.maxHeight,t.height+y+m)}else{const y=r.mirror?0:v*h.width+w*p.height;t.width=Math.min(this.maxWidth,t.width+y+m)}this._calculatePadding(c,f,w,v)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,m=0;l?c?(p=i*t.width,m=r*n.height):(p=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,m=n.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+s)*this.width/(this.width-h),0)}else{let f=n.height/2,h=t.height/2;o==="start"?(f=0,h=t.height):o==="end"&&(f=n.height,h=0),this.paddingTop=f+s,this.paddingBottom=h+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Tt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:o[N]||0,height:s[N]||0});return{first:k(0),last:k(n-1),widest:k(T),highest:k(P),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return bj(this._alignToPixels?ma(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=Tu(o),m=[],g=a.setContext(this.getContext()),v=g.display?g.width:0,w=v/2,y=function(oe){return ma(r,oe,v)};let b,x,T,P,k,N,D,z,A,Y,q,ee;if(s==="top")b=y(this.bottom),N=this.bottom-p,z=b-w,Y=y(t.top)+w,ee=t.bottom;else if(s==="bottom")b=y(this.top),Y=t.top,ee=y(t.bottom)-w,N=b+w,z=this.top+p;else if(s==="left")b=y(this.right),k=this.right-p,D=b-w,A=y(t.left)+w,q=t.right;else if(s==="right")b=y(this.left),A=t.left,q=y(t.right)-w,k=b+w,D=this.left+p;else if(n==="x"){if(s==="center")b=y((t.top+t.bottom)/2+.5);else if(ot(s)){const oe=Object.keys(s)[0],se=s[oe];b=y(this.chart.scales[oe].getPixelForValue(se))}Y=t.top,ee=t.bottom,N=b+w,z=N+p}else if(n==="y"){if(s==="center")b=y((t.left+t.right)/2);else if(ot(s)){const oe=Object.keys(s)[0],se=s[oe];b=y(this.chart.scales[oe].getPixelForValue(se))}k=b-w,D=k-p,A=t.left,q=t.right}const K=Qe(i.ticks.maxTicksLimit,h),te=Math.max(1,Math.ceil(h/K));for(x=0;xo.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");on.route(o,i,l,a)})}function j9(e){return"id"in e&&"defaults"in e}class B9{constructor(){this.controllers=new Zh(xi,"datasets",!0),this.elements=new Zh(Fo,"elements"),this.plugins=new Zh(Object,"plugins"),this.scales=new Zh(ul,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):_t(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=Ix(t);Tt(r["before"+i],[],r),n[t](r),Tt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function U9(e){const t={},n=[],r=Object.keys(zi.plugins.items);for(let o=0;o1&&hg(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Z9(e,t){const n=Ya[e.type]||{scales:{}},r=t.scales||{},i=rb(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!ot(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=hg(s,a),c=q9(l,i),f=n.scales||{};o[s]=sf(Object.create(null),[{axis:l},a,f[l],f[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||rb(a,t),f=(Ya[a]||{}).scales||{};Object.keys(f).forEach(h=>{const p=Y9(h,l),m=s[p+"AxisID"]||p;o[m]=o[m]||Object.create(null),sf(o[m],[{axis:p},r[m],f[h]])})}),Object.keys(o).forEach(s=>{const a=o[s];sf(a,[on.scales[a.type],on.scale])}),o}function OD(e){const t=e.options||(e.options={});t.plugins=Qe(t.plugins,{}),t.scales=Z9(e,t)}function PD(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function K9(e){return e=e||{},e.data=PD(e.data),OD(e),e}const tP=new Map,kD=new Set;function Kh(e,t){let n=tP.get(e);return n||(n=t(),tP.set(e,n),kD.add(n)),n}const Ou=(e,t,n)=>{const r=As(t,n);r!==void 0&&e.add(r)};class X9{constructor(t){this._config=K9(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=PD(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),OD(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Kh(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Kh(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Kh(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Kh(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(f=>{t&&(l.add(t),f.forEach(h=>Ou(l,t,h))),f.forEach(h=>Ou(l,i,h)),f.forEach(h=>Ou(l,Ya[o]||{},h)),f.forEach(h=>Ou(l,on,h)),f.forEach(h=>Ou(l,eb,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),kD.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ya[n]||{},on.datasets[n]||{},{type:n},on,eb]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=nP(this._resolverCache,t,i);let l=s;if(J9(s,n)){o.$shared=!1,r=Is(r)?r():r;const c=this.createResolver(t,r,a);l=Sc(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=nP(this._resolverCache,t,r);return ot(n)?Sc(o,n,void 0,i):o}}function nP(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:zx(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const Q9=e=>ot(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Is(e[n]),!1);function J9(e,t){const{isScriptable:n,isIndexable:r}=aD(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(Is(a)||Q9(a))||s&&Rt(a))return!0}return!1}var ez="4.1.1";const tz=["top","bottom","left","right","chartArea"];function rP(e,t){return e==="top"||e==="bottom"||tz.indexOf(e)===-1&&t==="x"}function iP(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function oP(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Tt(n&&n.onComplete,[e],t)}function nz(e){const t=e.chart,n=t.options.animation;Tt(n&&n.onProgress,[e],t)}function MD(e){return hD()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Kp={},sP=e=>{const t=MD(e);return Object.values(Kp).filter(n=>n.canvas===t).pop()};function rz(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function iz(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function oz(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var Qo;let py=(Qo=class{static register(...t){zi.add(...t),aP()}static unregister(...t){zi.remove(...t),aP()}constructor(t,n){const r=this.config=new X9(n),i=MD(t),o=sP(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||S9(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,f=l&&l.width;if(this.id=lj(),this.ctx=a,this.canvas=l,this.width=f,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new z9,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Cj(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],Kp[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}fo.listen(this,"complete",oP),fo.listen(this,"progress",nz),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return ft(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return zi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():RO(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return PO(this.canvas,this.ctx),this}stop(){return fo.stop(this),this}resize(t,n){fo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,RO(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Tt(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};_t(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=hg(s,a),c=l==="r",f=l==="x";return{options:a,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),_t(o,s=>{const a=s.options,l=a.id,c=hg(l,a),f=Qe(a.type,s.dtype);(a.position===void 0||rP(a.position,c)!==rP(s.dposition))&&(a.position=s.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===f)h=r[l];else{const p=zi.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),_t(i,(s,a)=>{s||delete r[a]}),_t(r,s=>{tr.configure(this,s,s.options),tr.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,f=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(iP("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_t(this.scales,t=>{tr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!_O(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;rz(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;tr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],_t(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=oz(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&fy(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&dy(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return zf(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=n9.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Gs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);ei(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),fo.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};_t(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){_t(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},_t(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!ag(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=pj(t),c=iz(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Tt(o.onHover,[t,a,this],this),l&&Tt(o.onClick,[t,a,this],this));const f=!ag(a,i);return(f||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,f}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},Se(Qo,"defaults",on),Se(Qo,"instances",Kp),Se(Qo,"overrides",Ya),Se(Qo,"registry",zi),Se(Qo,"version",ez),Se(Qo,"getChart",sP),Qo);function aP(){return _t(py.instances,e=>e._plugins.invalidate())}function sz(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,s,a,r-c,n+c),l>i?(c=i/l,e.arc(o,s,l,n+c,r-c,!0)):e.arc(o,s,i,n+Xt,r-Xt),e.closePath(),e.clip()}function az(e){return Bx(e,["outerStart","outerEnd","innerStart","innerEnd"])}function lz(e,t,n,r){const i=az(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return On(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:On(i.innerStart,0,s),innerEnd:On(i.innerEnd,0,s)}}function Pl(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function pg(e,t,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:f}=t,h=Math.max(t.outerRadius+r+n-c,0),p=f>0?f+r+n+c:0;let m=0;const g=i-l;if(r){const te=f>0?f-r:0,oe=h>0?h-r:0,se=(te+oe)/2,Z=se!==0?g*se/(se+r):g;m=(g-Z)/2}const v=Math.max(.001,g*h-n/Bt)/h,w=(g-v)/2,y=l+w+m,b=i-w-m,{outerStart:x,outerEnd:T,innerStart:P,innerEnd:k}=lz(t,p,h,b-y),N=h-x,D=h-T,z=y+x/N,A=b-T/D,Y=p+P,q=p+k,ee=y+P/Y,K=b-k/q;if(e.beginPath(),o){const te=(z+A)/2;if(e.arc(s,a,h,z,te),e.arc(s,a,h,te,A),T>0){const $=Pl(D,A,s,a);e.arc($.x,$.y,T,A,b+Xt)}const oe=Pl(q,b,s,a);if(e.lineTo(oe.x,oe.y),k>0){const $=Pl(q,K,s,a);e.arc($.x,$.y,k,b+Xt,K+Math.PI)}const se=(b-k/p+(y+P/p))/2;if(e.arc(s,a,p,b-k/p,se,!0),e.arc(s,a,p,se,y+P/p,!0),P>0){const $=Pl(Y,ee,s,a);e.arc($.x,$.y,P,ee+Math.PI,y-Xt)}const Z=Pl(N,y,s,a);if(e.lineTo(Z.x,Z.y),x>0){const $=Pl(N,z,s,a);e.arc($.x,$.y,x,y-Xt,z)}}else{e.moveTo(s,a);const te=Math.cos(z)*h+s,oe=Math.sin(z)*h+a;e.lineTo(te,oe);const se=Math.cos(A)*h+s,Z=Math.sin(A)*h+a;e.lineTo(se,Z)}e.closePath()}function cz(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){pg(e,t,n,r,l,i);for(let c=0;c=Nt||Bf(o,a,l),v=bo(s,c+p,f+p);return g&&v}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,f=(i+o)/2,h=(s+a+c+l)/2;return{x:n+Math.cos(f)*h,y:r+Math.sin(f)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Nt?Math.floor(r/Nt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(Bt,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,cz(t,this,c,o,s),uz(t,this,c,o,s),t.restore()}}Se(Xp,"id","arc"),Se(Xp,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Se(Xp,"defaultRoutes",{backgroundColor:"backgroundColor"});function RD(e,t,n=t){e.lineCap=Qe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Qe(n.borderDash,t.borderDash)),e.lineDashOffset=Qe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Qe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Qe(n.borderWidth,t.borderWidth),e.strokeStyle=Qe(n.borderColor,t.borderColor)}function fz(e,t,n){e.lineTo(n.x,n.y)}function dz(e){return e.stepped?Ij:e.tension||e.cubicInterpolationMode==="monotone"?Fj:fz}function ND(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),c=Math.min(o,a),f=ia&&o>a;return{count:r,start:l,loop:t.loop,ilen:c(s+(c?a-T:T))%o,x=()=>{v!==w&&(e.lineTo(f,w),e.lineTo(f,v),e.lineTo(f,y))};for(l&&(m=i[b(0)],e.moveTo(m.x,m.y)),p=0;p<=a;++p){if(m=i[b(p)],m.skip)continue;const T=m.x,P=m.y,k=T|0;k===g?(Pw&&(w=P),f=(h*f+T)/++h):(x(),e.lineTo(T,P),g=k,h=0,v=w=P),y=P}x()}function ib(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?pz:hz}function mz(e){return e.stepped?mB:e.tension||e.cubicInterpolationMode==="monotone"?gB:Sa}function gz(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),RD(e,t.options),e.stroke(i)}function vz(e,t,n,r){const{segments:i,options:o}=t,s=ib(t);for(const a of i)RD(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const yz=typeof Path2D=="function";function _z(e,t,n,r){yz&&!t.options.segment?gz(e,t,n,r):vz(e,t,n,r)}class fs extends Fo{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;aB(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=xB(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,s=yD(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=mz(r);let c,f;for(c=0,f=s.length;ct!=="borderDash"&&t!=="fill"});function lP(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function DD(e){return ob[e%ob.length]}function AD(e){return cP[e%cP.length]}function Tz(e,t){return e.borderColor=DD(t),e.backgroundColor=AD(t),++t}function Oz(e,t){return e.backgroundColor=e.data.map(()=>DD(t++)),t}function Pz(e,t){return e.backgroundColor=e.data.map(()=>AD(t++)),t}function kz(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof us?t=Oz(n,t):i instanceof df?t=Pz(n,t):i&&(t=Tz(n,t))}}function uP(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var Mz={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{options:{elements:r},data:{datasets:i}}=e.config;if(!n.forceOverride&&(uP(i)||r&&uP(r)))return;const o=kz(e);i.forEach(o)}};function Rz(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let f=t,h,p,m,g,v;for(s[l++]=e[f],h=0;hm&&(m=g,p=e[b],v=b);s[l++]=p,f=v}return s[l++]=e[c],s}function Nz(e,t,n,r){let i=0,o=0,s,a,l,c,f,h,p,m,g,v;const w=[],y=t+n-1,b=e[t].x,T=e[y].x-b;for(s=t;sv&&(v=c,p=s),i=(o*i+a.x)/++o;else{const k=s-1;if(!ft(h)&&!ft(p)){const N=Math.min(h,p),D=Math.max(h,p);N!==m&&N!==k&&w.push({...e[N],x:i}),D!==m&&D!==k&&w.push({...e[D],x:i})}s>0&&k!==m&&w.push(e[k]),w.push(a),f=P,o=0,g=v=c,h=p=m=s}}return w}function ID(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function fP(e){e.data.datasets.forEach(t=>{ID(t)})}function Lz(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=On(wo(t,o.axis,s).lo,0,n-1)),c?i=On(wo(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var Dz={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){fP(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=e.getDatasetMeta(o),c=s||i.data;if(Hu([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const f=e.scales[l.xAxisID];if(f.type!=="linear"&&f.type!=="time"||e.options.parsing)return;let{start:h,count:p}=Lz(l,c);const m=n.threshold||4*r;if(p<=m){ID(i);return}ft(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let g;switch(n.algorithm){case"lttb":g=Rz(c,h,p,r,n);break;case"min-max":g=Nz(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=g})},destroy(e){fP(e)}};function Az(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:c}=a;c=Yx(l,c,i);const f=sb(n,i[l],i[c],a.loop);if(!t.segments){s.push({source:a,target:f,start:i[l],end:i[c]});continue}const h=yD(t,f);for(const p of h){const m=sb(n,o[p.start],o[p.end],p.loop),g=vD(a,i,m);for(const v of g)s.push({source:v,target:p,start:{[n]:dP(f,m,"start",Math.max)},end:{[n]:dP(f,m,"end",Math.min)}})}}return s}function sb(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Mr(i),o=Mr(o)),{property:e,start:i,end:o}}function Iz(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=Yx(s,a,i);const l=i[s],c=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function Yx(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function dP(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function FD(e,t){let n=[],r=!1;return Rt(e)?(r=!0,n=e):n=Iz(e,t),n.length?new fs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function hP(e){return e&&e.fill!==!1}function Fz(e,t,n){let i=e[t].fill;const o=[t];let s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Kt(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function $z(e,t,n){const r=Uz(e);if(ot(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Kt(i)&&Math.floor(i)===i?jz(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function jz(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function Bz(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ot(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function zz(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ot(e)?r=e.value:r=t.getBaseValue(),r}function Uz(e){const t=e.options,n=t.fill;let r=Qe(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Vz(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=Hz(t,n);a.push(FD({x:null,y:t.bottom},r));for(let l=0;l=0;--s){const a=i[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),r&&a.fill&&b0(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;hP(o)&&b0(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!hP(r)||n.drawTime!=="beforeDatasetDraw"||b0(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const vP=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},tU=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class yP extends Fo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Tt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=yn(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=vP(r,o);let c,f;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(s,o,a,l)+10):(f=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+a;let h=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((g,v)=>{const w=r+n/2+o.measureText(g.text).width;(v===0||c[c.length-1]+w+2*a>s)&&(h+=f,c[c.length-(v>0?0:1)]=0,m+=f,p++),l[v]={left:0,top:m,row:p,width:w,height:i},c[c.length-1]+=w+a}),h}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=s-t;let h=a,p=0,m=0,g=0,v=0;return this.legendItems.forEach((w,y)=>{const{itemWidth:b,itemHeight:x}=nU(r,n,o,w,i);y>0&&m+x+2*a>f&&(h+=p+a,c.push({width:p,height:m}),g+=p+a,v++,p=m=0),l[y]={left:g,top:m,col:v,width:b,height:x},p=Math.max(p,b),m+=x+a}),h+=p,c.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=sc(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Qn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Qn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Qn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Qn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;fy(t,this),this._draw(),dy(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=on.color,l=sc(t.rtl,this.left,this.width),c=yn(s.font),{padding:f}=s,h=c.size,p=h/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:v,itemHeight:w}=vP(s,h),y=function(k,N,D){if(isNaN(g)||g<=0||isNaN(v)||v<0)return;i.save();const z=Qe(D.lineWidth,1);if(i.fillStyle=Qe(D.fillStyle,a),i.lineCap=Qe(D.lineCap,"butt"),i.lineDashOffset=Qe(D.lineDashOffset,0),i.lineJoin=Qe(D.lineJoin,"miter"),i.lineWidth=z,i.strokeStyle=Qe(D.strokeStyle,a),i.setLineDash(Qe(D.lineDash,[])),s.usePointStyle){const A={radius:v*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:z},Y=l.xPlus(k,g/2),q=N+p;oD(i,A,Y,q,s.pointStyleWidth&&g)}else{const A=N+Math.max((h-v)/2,0),Y=l.leftForLtr(k,g),q=Fa(D.borderRadius);i.beginPath(),Object.values(q).some(ee=>ee!==0)?Uf(i,{x:Y,y:A,w:g,h:v,radius:q}):i.rect(Y,A,g,v),i.fill(),z!==0&&i.stroke()}i.restore()},b=function(k,N,D){qa(i,D.text,k,N+w/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},x=this.isHorizontal(),T=this._computeTitleHeight();x?m={x:Qn(o,this.left+f,this.right-r[0]),y:this.top+f+T,line:0}:m={x:this.left+f,y:Qn(o,this.top+T+f,this.bottom-n[0].height),line:0},pD(this.ctx,t.textDirection);const P=w+f;this.legendItems.forEach((k,N)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const D=i.measureText(k.text).width,z=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),A=g+p+D;let Y=m.x,q=m.y;l.setWidth(this.width),x?N>0&&Y+A+f>this.right&&(q=m.y+=P,m.line++,Y=m.x=Qn(o,this.left+f,this.right-r[m.line])):N>0&&q+P>this.bottom&&(Y=m.x=Y+n[m.line].width+f,m.line++,q=m.y=Qn(o,this.top+T+f,this.bottom-n[m.line].height));const ee=l.x(Y);if(y(ee,q,k),Y=Ej(z,Y+g+p,x?Y+A:this.right,t.rtl),b(l.x(Y),q,k),x)m.x+=A+f;else if(typeof k.text!="string"){const K=c.lineHeight;m.y+=jD(k,K)}else m.y+=P}),mD(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=yn(n.font),i=nr(n.padding);if(!n.display)return;const o=sc(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+c,h=Qn(t.align,h,this.right-p);else{const g=this.columnSizes.reduce((v,w)=>Math.max(v,w.height),0);f=c+Qn(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const m=Qn(a,h,h+p);s.textAlign=o.textAlign(jx(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,qa(s,n.text,m,f,r)}_computeTitleHeight(){const t=this.options.title,n=yn(t.font),r=nr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(bo(t,this.left,this.right)&&bo(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function iU(e,t,n){let r=e;return typeof t.text!="string"&&(r=jD(t,n)),r}function jD(e,t){const n=e.text?e.text.length+.5:0;return t*n}function oU(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var sU={id:"legend",_element:yP,start(e,t,n){const r=e.legend=new yP({ctx:e.ctx,options:n,chart:e});tr.configure(e,r,n),tr.addBox(e,r)},stop(e){tr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;tr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),f=nr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class qx extends Fo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Rt(r.text)?r.text.length:1;this._padding=nr(r.padding);const o=i*yn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,f,h;return this.isHorizontal()?(f=Qn(a,r,o),h=n+t,c=o-r):(s.position==="left"?(f=r+t,h=Qn(a,i,n),l=Bt*-.5):(f=o-t,h=Qn(a,n,i),l=Bt*.5),c=i-n),{titleX:f,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=yn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);qa(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:jx(n.align),textBaseline:"middle",translation:[s,a]})}}function aU(e,t){const n=new qx({ctx:e.ctx,options:t,chart:e});tr.configure(e,n,t),tr.addBox(e,n),e.titleBlock=n}var lU={id:"title",_element:qx,start(e,t,n){aU(e,n)},stop(e){const t=e.titleBlock;tr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;tr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Xh=new WeakMap;var cU={id:"subtitle",start(e,t,n){const r=new qx({ctx:e.ctx,options:n,chart:e});tr.configure(e,r,n),tr.addBox(e,r),Xh.set(e,r)},stop(e){tr.removeBox(e,Xh.get(e)),Xh.delete(e)},beforeUpdate(e,t,n){const r=Xh.get(e);tr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Yu={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t-1?e.split(` +`):e}function uU(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function _P(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=yn(t.bodyFont),c=yn(t.titleFont),f=yn(t.footerFont),h=o.length,p=i.length,m=r.length,g=nr(t.padding);let v=g.height,w=0,y=r.reduce((T,P)=>T+P.before.length+P.lines.length+P.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,h&&(v+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),y){const T=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;v+=m*T+(y-m)*l.lineHeight+(y-1)*t.bodySpacing}p&&(v+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let b=0;const x=function(T){w=Math.max(w,n.measureText(T).width+b)};return n.save(),n.font=c.string,_t(e.title,x),n.font=l.string,_t(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?s+2+t.boxPadding:0,_t(r,T=>{_t(T.before,x),_t(T.lines,x),_t(T.after,x)}),b=0,n.font=f.string,_t(e.footer,x),n.restore(),w+=g.width,{width:w,height:v}}function fU(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function dU(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function hU(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),dU(c,e,t,n)&&(c="center"),c}function bP(e,t,n){const r=n.yAlign||t.yAlign||fU(e,n);return{xAlign:n.xAlign||t.xAlign||hU(e,t,n,r),yAlign:r}}function pU(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function mU(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function wP(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=Fa(s);let g=pU(t,a);const v=mU(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(f,p)+i:a==="right"&&(g+=Math.max(h,m)+i),{x:On(g,0,r.width-t.width),y:On(v,0,r.height-t.height)}}function Qh(e,t,n){const r=nr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function xP(e){return Bi([],ho(e))}function gU(e,t,n){return Gs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function SP(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const BD={beforeTitle:uo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?BD[t].call(n,r):i}var K1;let CP=(K1=class extends Fo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new _D(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=gU(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=pr(r,"beforeTitle",this,t),o=pr(r,"title",this,t),s=pr(r,"afterTitle",this,t);let a=[];return a=Bi(a,ho(i)),a=Bi(a,ho(o)),a=Bi(a,ho(s)),a}getBeforeBody(t,n){return xP(pr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return _t(t,o=>{const s={before:[],lines:[],after:[]},a=SP(r,o);Bi(s.before,ho(pr(a,"beforeLabel",this,o))),Bi(s.lines,pr(a,"label",this,o)),Bi(s.after,ho(pr(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return xP(pr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=pr(r,"beforeFooter",this,t),o=pr(r,"footer",this,t),s=pr(r,"afterFooter",this,t);let a=[];return a=Bi(a,ho(i)),a=Bi(a,ho(o)),a=Bi(a,ho(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;lt.filter(f,h,p,r))),t.itemSort&&(a=a.sort((f,h)=>t.itemSort(f,h,r))),_t(a,f=>{const h=SP(t.callbacks,f);i.push(pr(h,"labelColor",this,f)),o.push(pr(h,"labelPointStyle",this,f)),s.push(pr(h,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=Yu[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=_P(this,r),c=Object.assign({},a,l),f=bP(this.chart,r,c),h=wP(r,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=Fa(a),{x:p,y:m}=t,{width:g,height:v}=n;let w,y,b,x,T,P;return o==="center"?(T=m+v/2,i==="left"?(w=p,y=w-s,x=T+s,P=T-s):(w=p+g,y=w+s,x=T-s,P=T+s),b=w):(i==="left"?y=p+Math.max(l,f)+s:i==="right"?y=p+g-Math.max(c,h)-s:y=this.caretX,o==="top"?(x=m,T=x-s,w=y-s,b=y+s):(x=m+v,T=x+s,w=y+s,b=y-s),P=x),{x1:w,x2:y,x3:b,y1:x,y2:T,y3:P}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=sc(r.rtl,this.x,this.width);for(t.x=Qh(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=yn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;lx!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Uf(t,{x:w,y:v,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Uf(t,{x:y,y:v+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(w,v,c,l),t.strokeRect(w,v,c,l),t.fillStyle=s.backgroundColor,t.fillRect(y,v+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:f}=r,h=yn(r.bodyFont);let p=h.lineHeight,m=0;const g=sc(r.rtl,this.x,this.width),v=function(D){n.fillText(D,g.x(t.x+m),t.y+p/2),t.y+=p+o},w=g.textAlign(s);let y,b,x,T,P,k,N;for(n.textAlign=s,n.textBaseline="middle",n.font=h.string,t.x=Qh(this,w,r),n.fillStyle=r.bodyColor,_t(this.beforeBody,v),m=a&&w!=="right"?s==="center"?c/2+f:c+2+f:0,T=0,k=i.length;T0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=Yu[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=_P(this,t),l=Object.assign({},s,this._size),c=bP(n,t,l),f=wP(t,l,c,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=nr(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),pD(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),mD(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!ag(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!ag(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=Yu[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}},Se(K1,"positioners",Yu),K1);var vU={id:"tooltip",_element:CP,positioners:Yu,afterInit(e,t,n){n&&(e.tooltip=new CP({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:BD},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},yU=Object.freeze({__proto__:null,Colors:Mz,Decimation:Dz,Filler:eU,Legend:sU,SubTitle:cU,Title:lU,Tooltip:vU});const _U=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function bU(e,t,n,r){const i=e.indexOf(t);if(i===-1)return _U(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const wU=(e,t)=>e===null?null:On(Math.round(e),0,t);function EP(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Se(ab,"id","category"),Se(ab,"defaults",{ticks:{callback:EP}});function xU(e,t){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,m=o||1,g=f-1,{min:v,max:w}=t,y=!ft(s),b=!ft(a),x=!ft(c),T=(w-v)/(h+1);let P=wO((w-v)/g/m)*m,k,N,D,z;if(P<1e-14&&!y&&!b)return[{value:v},{value:w}];z=Math.ceil(w/P)-Math.floor(v/P),z>g&&(P=wO(z*P/g/m)*m),ft(l)||(k=Math.pow(10,l),P=Math.ceil(P*k)/k),i==="ticks"?(N=Math.floor(v/P)*P,D=Math.ceil(w/P)*P):(N=v,D=w),y&&b&&o&&yj((a-s)/o,P/1e3)?(z=Math.round(Math.min((a-s)/P,f)),P=(a-s)/z,N=s,D=a):x?(N=y?s:N,D=b?a:D,z=c-1,P=(D-N)/z):(z=(D-N)/P,af(z,Math.round(z),P/1e3)?z=Math.round(z):z=Math.ceil(z));const A=Math.max(xO(P),xO(N));k=Math.pow(10,ft(l)?A:l),N=Math.round(N*k)/k,D=Math.round(D*k)/k;let Y=0;for(y&&(p&&N!==s?(n.push({value:s}),Ni=n?i:l,a=l=>o=r?o:l;if(t){const l=Zi(i),c=Zi(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=xU(i,o);return t.bounds==="ticks"&&ZL(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Id(t,this.chart.options.locale,this.options.ticks.format)}}class lb extends mg{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Kt(t)?t:0,this.max=Kt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=_i(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Se(lb,"id","linear"),Se(lb,"defaults",{ticks:{callback:uy.formatters.numeric}});const Hf=e=>Math.floor(cs(e)),va=(e,t)=>Math.pow(10,Hf(e)+t);function OP(e){return e/Math.pow(10,Hf(e))===1}function PP(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function SU(e,t){const n=t-e;let r=Hf(n);for(;PP(e,t,r)>10;)r++;for(;PP(e,t,r)<10;)r--;return Math.min(r,Hf(e))}function CU(e,{min:t,max:n}){t=Pr(e.min,t);const r=[],i=Hf(t);let o=SU(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*s)/s,f=Math.floor((t-l)/a/10)*a*10;let h=Math.floor((c-f)/Math.pow(10,o)),p=Pr(e.min,Math.round((l+f+h*Math.pow(10,o))*s)/s);for(;p=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,s=o>=0?1:s),p=Math.round((l+f+h*Math.pow(10,o))*s)/s;const m=Pr(e.max,p);return r.push({value:m,major:OP(m),significand:h}),r}class cb extends ul{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=mg.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Kt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Kt(t)?Math.max(0,t):null,this.max=Kt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Kt(this._userMin)&&(this.min=t===va(this.min,0)?va(this.min,-1):va(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=t?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(va(r,-1)),s(va(i,1)))),r<=0&&o(va(i,-1)),i<=0&&s(va(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=CU(n,this);return t.bounds==="ticks"&&ZL(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Id(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=cs(t),this._valueRange=cs(this.max)-cs(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(cs(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Se(cb,"id","logarithmic"),Se(cb,"defaults",{ticks:{callback:uy.formatters.logarithmic,major:{enabled:!0}}});function ub(e){const t=e.ticks;if(t.display&&e.display){const n=nr(t.backdropPadding);return Qe(t.font&&t.font.size,on.font.size)+n.height}return 0}function EU(e,t,n){return n=Rt(n)?n:[n],{w:Aj(e,t.string,n),h:n.length*t.lineHeight}}function kP(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function TU(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?Bt/o:0;for(let l=0;lt.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function PU(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=ub(o)/2,a=e.drawingArea,l=o.pointLabels.centerPointLabels?Bt/i:0;for(let c=0;c270||n<90)&&(e-=t),e}function NU(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),s=yn(o.font),{x:a,y:l,textAlign:c,left:f,top:h,right:p,bottom:m}=e._pointLabelItems[i],{backdropColor:g}=o;if(!ft(g)){const v=Fa(o.borderRadius),w=nr(o.backdropPadding);n.fillStyle=g;const y=f-w.left,b=h-w.top,x=p-f+w.width,T=m-h+w.height;Object.values(v).some(P=>P!==0)?(n.beginPath(),Uf(n,{x:y,y:b,w:x,h:T,radius:v}),n.fill()):n.fillRect(y,b,x,T)}qa(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function zD(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Nt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s{const i=Tt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?TU(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Nt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Mr(t*n+_i(r))}getDistanceFromCenterForValue(t){if(ft(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ft(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(h!==0){l=this.getDistanceFromCenterForValue(f.value);const p=this.getContext(h),m=i.setContext(p),g=o.setContext(p);LU(this,m,l,s,g)}}),r.display){for(t.save(),a=s-1;a>=0;a--){const f=r.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:p}=f;!p||!h||(t.lineWidth=p,t.strokeStyle=h,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),f=yn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=f.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=nr(c.backdropPadding);t.fillRect(-s/2-h.left,-o-f.size/2-h.top,s+h.width,f.size+h.height)}qa(t,a.label,0,-o,f,{color:c.color})}),t.restore()}drawTitle(){}}Se(qu,"id","radialLinear"),Se(qu,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:uy.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Se(qu,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Se(qu,"descriptors",{angleLines:{_fallback:"grid"}});const my={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},vr=Object.keys(my);function AU(e,t){return e-t}function MP(e,t){if(ft(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Kt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(xc(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function RP(e,t,n,r){const i=vr.length;for(let o=vr.indexOf(e);o=vr.indexOf(n);o--){const s=vr[o];if(my[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return vr[n?vr.indexOf(n):0]}function FU(e){for(let t=vr.indexOf(e)+1,n=vr.length;t=t?n[r]:n[i];e[o]=!0}}function $U(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function LP(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=On(n,0,s),r=On(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||RP(o.minUnit,n,r,this._getLabelCapacity(n)),a=Qe(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=xc(l)||l===!0,f={};let h=n,p,m;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,m=0;pv-w).map(v=>+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Tt(s,[t,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&a[l],h=c&&a[c],p=r[n],m=c&&h&&p&&p.major;return this._adapter.format(t,i||(m?h:f))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=wo(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=wo(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class fb extends Wf{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Jh(n,this.min),this._tableRange=Jh(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,f;for(s=0,a=t.length;s=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s>>1,re=Z[B];if(0>>1;Bi(ne,I))aei(me,ne)?(Z[B]=me,Z[ae]=I,B=ae):(Z[B]=ne,Z[G]=I,B=G);else if(aei(me,I))Z[B]=me,Z[ae]=I,B=ae;else break e}}return $}function i(Z,$){var I=Z.sortIndex-$.sortIndex;return I!==0?I:Z.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],f=1,h=null,p=3,m=!1,g=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(Z){for(var $=n(c);$!==null;){if($.callback===null)r(c);else if($.startTime<=Z)r(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(c)}}function T(Z){if(v=!1,x(Z),!g)if(n(l)!==null)g=!0,oe(P);else{var $=n(c);$!==null&&se(T,$.startTime-Z)}}function P(Z,$){g=!1,v&&(v=!1,y(D),D=-1),m=!0;var I=p;try{for(x($),h=n(l);h!==null&&(!(h.expirationTime>$)||Z&&!Y());){var B=h.callback;if(typeof B=="function"){h.callback=null,p=h.priorityLevel;var re=B(h.expirationTime<=$);$=e.unstable_now(),typeof re=="function"?h.callback=re:h===n(l)&&r(l),x($)}else r(l);h=n(l)}if(h!==null)var W=!0;else{var G=n(c);G!==null&&se(T,G.startTime-$),W=!1}return W}finally{h=null,p=I,m=!1}}var k=!1,N=null,D=-1,z=5,A=-1;function Y(){return!(e.unstable_now()-AZ||125B?(Z.sortIndex=I,t(c,Z),n(l)===null&&Z===n(c)&&(v?(y(D),D=-1):v=!0,se(T,I-B))):(Z.sortIndex=re,t(l,Z),g||m||(g=!0,oe(P))),Z},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(Z){var $=p;return function(){var I=p;p=$;try{return Z.apply(this,arguments)}finally{p=I}}}})(UD);(function(e){e.exports=UD})(UU);/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var VD=H,Ir=db;function Te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hb=Object.prototype.hasOwnProperty,VU=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,DP={},AP={};function HU(e){return hb.call(AP,e)?!0:hb.call(DP,e)?!1:VU.test(e)?AP[e]=!0:(DP[e]=!0,!1)}function WU(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function YU(e,t,n,r){if(t===null||typeof t>"u"||WU(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hr(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new hr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gx=/[\-:]([a-z])/g;function Zx(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gx,Zx);Yn[t]=new hr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gx,Zx);Yn[t]=new hr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gx,Zx);Yn[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kx(e,t,n,r){var i=Yn.hasOwnProperty(t)?Yn[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` +`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{x0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gu(e):""}function qU(e){switch(e.tag){case 5:return Gu(e.type);case 16:return Gu("Lazy");case 13:return Gu("Suspense");case 19:return Gu("SuspenseList");case 0:case 2:case 15:return e=S0(e.type,!1),e;case 11:return e=S0(e.type.render,!1),e;case 1:return e=S0(e.type,!0),e;default:return""}}function vb(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wl:return"Fragment";case Hl:return"Portal";case pb:return"Profiler";case Xx:return"StrictMode";case mb:return"Suspense";case gb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case YD:return(e.displayName||"Context")+".Consumer";case WD:return(e._context.displayName||"Context")+".Provider";case Qx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jx:return t=e.displayName||null,t!==null?t:vb(e.type)||"Memo";case es:t=e._payload,e=e._init;try{return vb(e(t))}catch{}}return null}function GU(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vb(t);case 8:return t===Xx?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function GD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ZU(e){var t=GD(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tp(e){e._valueTracker||(e._valueTracker=ZU(e))}function ZD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=GD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yb(e,t){var n=t.checked;return Yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function FP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function KD(e,t){t=t.checked,t!=null&&Kx(e,"checked",t,!1)}function _b(e,t){KD(e,t);var n=Fs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bb(e,t.type,n):t.hasOwnProperty("defaultValue")&&bb(e,t.type,Fs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $P(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bb(e,t,n){(t!=="number"||gg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zu=Array.isArray;function ac(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=np.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},KU=["Webkit","ms","Moz","O"];Object.keys(hf).forEach(function(e){KU.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hf[t]=hf[e]})});function eA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hf.hasOwnProperty(e)&&hf[e]?(""+t).trim():t+"px"}function tA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=eA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var XU=Yt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Sb(e,t){if(t){if(XU[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Cb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Eb=null;function eS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tb=null,lc=null,cc=null;function zP(e){if(e=Bd(e)){if(typeof Tb!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=by(t),Tb(e.stateNode,e.type,t))}}function nA(e){lc?cc?cc.push(e):cc=[e]:lc=e}function rA(){if(lc){var e=lc,t=cc;if(cc=lc=null,zP(e),t)for(e=0;e>>=0,e===0?32:31-(lV(e)/cV|0)|0}var rp=64,ip=4194304;function Ku(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Ku(a):(o&=s,o!==0&&(r=Ku(o)))}else s=n&~i,s!==0?r=Ku(s):o!==0&&(r=Ku(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function $d(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Si(t),e[t]=n}function hV(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=mf),KP=String.fromCharCode(32),XP=!1;function SA(e,t){switch(e){case"keyup":return zV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function CA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function VV(e,t){switch(e){case"compositionend":return CA(t);case"keypress":return t.which!==32?null:(XP=!0,KP);case"textInput":return e=t.data,e===KP&&XP?null:e;default:return null}}function HV(e,t){if(Yl)return e==="compositionend"||!lS&&SA(e,t)?(e=wA(),tm=oS=hs=null,Yl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tk(n)}}function PA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?PA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kA(){for(var e=window,t=gg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gg(e.document)}return t}function cS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JV(e){var t=kA(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&PA(n.ownerDocument.documentElement,n)){if(r!==null&&cS(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=nk(n,o);var s=nk(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ql=null,Nb=null,vf=null,Lb=!1;function rk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lb||ql==null||ql!==gg(r)||(r=ql,"selectionStart"in r&&cS(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),vf&&Jf(vf,r)||(vf=r,r=Sg(Nb,"onSelect"),0Kl||(e.current=jb[Kl],jb[Kl]=null,Kl--)}function Ot(e,t){Kl++,jb[Kl]=e.current,e.current=t}var $s={},rr=Ks($s),br=Ks(!1),Za=$s;function Tc(e,t){var n=e.type.contextTypes;if(!n)return $s;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wr(e){return e=e.childContextTypes,e!=null}function Eg(){Lt(br),Lt(rr)}function uk(e,t,n){if(rr.current!==$s)throw Error(Te(168));Ot(rr,t),Ot(br,n)}function $A(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Te(108,GU(e)||"Unknown",i));return Yt({},n,r)}function Tg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$s,Za=rr.current,Ot(rr,e),Ot(br,br.current),!0}function fk(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=$A(e,t,Za),r.__reactInternalMemoizedMergedChildContext=e,Lt(br),Lt(rr),Ot(rr,e)):Lt(br),Ot(br,n)}var go=null,wy=!1,F0=!1;function jA(e){go===null?go=[e]:go.push(e)}function fH(e){wy=!0,jA(e)}function Xs(){if(!F0&&go!==null){F0=!0;var e=0,t=wt;try{var n=go;for(wt=1;e>=s,i-=s,xo=1<<32-Si(t)+i|n<D?(z=N,N=null):z=N.sibling;var A=p(y,N,x[D],T);if(A===null){N===null&&(N=z);break}e&&N&&A.alternate===null&&t(y,N),b=o(A,b,D),k===null?P=A:k.sibling=A,k=A,N=z}if(D===x.length)return n(y,N),$t&&Ca(y,D),P;if(N===null){for(;DD?(z=N,N=null):z=N.sibling;var Y=p(y,N,A.value,T);if(Y===null){N===null&&(N=z);break}e&&N&&Y.alternate===null&&t(y,N),b=o(Y,b,D),k===null?P=Y:k.sibling=Y,k=Y,N=z}if(A.done)return n(y,N),$t&&Ca(y,D),P;if(N===null){for(;!A.done;D++,A=x.next())A=h(y,A.value,T),A!==null&&(b=o(A,b,D),k===null?P=A:k.sibling=A,k=A);return $t&&Ca(y,D),P}for(N=r(y,N);!A.done;D++,A=x.next())A=m(N,y,D,A.value,T),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?D:A.key),b=o(A,b,D),k===null?P=A:k.sibling=A,k=A);return e&&N.forEach(function(q){return t(y,q)}),$t&&Ca(y,D),P}function w(y,b,x,T){if(typeof x=="object"&&x!==null&&x.type===Wl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ep:e:{for(var P=x.key,k=b;k!==null;){if(k.key===P){if(P=x.type,P===Wl){if(k.tag===7){n(y,k.sibling),b=i(k,x.props.children),b.return=y,y=b;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===es&&yk(P)===k.type){n(y,k.sibling),b=i(k,x.props),b.ref=Lu(y,k,x),b.return=y,y=b;break e}n(y,k);break}else t(y,k);k=k.sibling}x.type===Wl?(b=Ba(x.props.children,y.mode,T,x.key),b.return=y,y=b):(T=cm(x.type,x.key,x.props,null,y.mode,T),T.ref=Lu(y,b,x),T.return=y,y=T)}return s(y);case Hl:e:{for(k=x.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(y,b.sibling),b=i(b,x.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=W0(x,y.mode,T),b.return=y,y=b}return s(y);case es:return k=x._init,w(y,b,k(x._payload),T)}if(Zu(x))return g(y,b,x,T);if(Pu(x))return v(y,b,x,T);fp(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(y,b.sibling),b=i(b,x),b.return=y,y=b):(n(y,b),b=H0(x,y.mode,T),b.return=y,y=b),s(y)):n(y,b)}return w}var Pc=qA(!0),GA=qA(!1),zd={},Xi=Ks(zd),rd=Ks(zd),id=Ks(zd);function Da(e){if(e===zd)throw Error(Te(174));return e}function yS(e,t){switch(Ot(id,t),Ot(rd,e),Ot(Xi,zd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xb(t,e)}Lt(Xi),Ot(Xi,t)}function kc(){Lt(Xi),Lt(rd),Lt(id)}function ZA(e){Da(id.current);var t=Da(Xi.current),n=xb(t,e.type);t!==n&&(Ot(rd,e),Ot(Xi,n))}function _S(e){rd.current===e&&(Lt(Xi),Lt(rd))}var Vt=Ks(0);function Ng(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $0=[];function bS(){for(var e=0;e<$0.length;e++)$0[e]._workInProgressVersionPrimary=null;$0.length=0}var im=$o.ReactCurrentDispatcher,j0=$o.ReactCurrentBatchConfig,Xa=0,Wt=null,vn=null,Tn=null,Lg=!1,yf=!1,od=0,hH=0;function Zn(){throw Error(Te(321))}function wS(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=j0.transition;j0.transition={};try{e(!1),t()}finally{wt=n,j0.transition=r}}function f4(){return ni().memoizedState}function mH(e,t,n){var r=Os(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},d4(e))h4(t,n);else if(n=VA(e,t,n,r),n!==null){var i=fr();Ci(n,e,r,i),p4(n,t,r)}}function gH(e,t,n){var r=Os(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(d4(e))h4(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Pi(a,s)){var l=t.interleaved;l===null?(i.next=i,gS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=VA(e,t,i,r),n!==null&&(i=fr(),Ci(n,e,r,i),p4(n,t,r))}}function d4(e){var t=e.alternate;return e===Wt||t!==null&&t===Wt}function h4(e,t){yf=Lg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function p4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nS(e,n)}}var Dg={readContext:ti,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useInsertionEffect:Zn,useLayoutEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useMutableSource:Zn,useSyncExternalStore:Zn,useId:Zn,unstable_isNewReconciler:!1},vH={readContext:ti,useCallback:function(e,t){return Ui().memoizedState=[e,t===void 0?null:t],e},useContext:ti,useEffect:bk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,om(4194308,4,s4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return om(4194308,4,e,t)},useInsertionEffect:function(e,t){return om(4,2,e,t)},useMemo:function(e,t){var n=Ui();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ui();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mH.bind(null,Wt,e),[r.memoizedState,e]},useRef:function(e){var t=Ui();return e={current:e},t.memoizedState=e},useState:_k,useDebugValue:ES,useDeferredValue:function(e){return Ui().memoizedState=e},useTransition:function(){var e=_k(!1),t=e[0];return e=pH.bind(null,e[1]),Ui().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Wt,i=Ui();if($t){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),Pn===null)throw Error(Te(349));Xa&30||QA(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,bk(e4.bind(null,r,o,e),[e]),r.flags|=2048,ad(9,JA.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ui(),t=Pn.identifierPrefix;if($t){var n=So,r=xo;n=(r&~(1<<32-Si(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=od++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Hi]=t,e[nd]=r,S4(e,t,!1,!1),t.stateNode=e;e:{switch(s=Cb(n,r),n){case"dialog":Pt("cancel",e),Pt("close",e),i=r;break;case"iframe":case"object":case"embed":Pt("load",e),i=r;break;case"video":case"audio":for(i=0;iRc&&(t.flags|=128,r=!0,Du(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ng(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Du(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!$t)return Kn(t),null}else 2*rn()-o.renderingStartTime>Rc&&n!==1073741824&&(t.flags|=128,r=!0,Du(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=rn(),t.sibling=null,n=Vt.current,Ot(Vt,r?n&1|2:n&1),t):(Kn(t),null);case 22:case 23:return RS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kr&1073741824&&(Kn(t),t.subtreeFlags&6&&(t.flags|=8192)):Kn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function EH(e,t){switch(fS(t),t.tag){case 1:return wr(t.type)&&Eg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kc(),Lt(br),Lt(rr),bS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _S(t),null;case 13:if(Lt(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Oc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lt(Vt),null;case 4:return kc(),null;case 10:return mS(t.type._context),null;case 22:case 23:return RS(),null;case 24:return null;default:return null}}var hp=!1,Jn=!1,TH=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function ec(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function Xb(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var kk=!1;function OH(e,t){if(Db=wg,e=kA(),cS(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++c===i&&(a=s),p===o&&++f===r&&(l=s),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ab={focusedElem:e,selectionRange:n},wg=!1,Ue=t;Ue!==null;)if(t=Ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ue=e;else for(;Ue!==null;){t=Ue;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,w=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:hi(t.type,v),w);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(T){Gt(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,Ue=e;break}Ue=t.return}return g=kk,kk=!1,g}function _f(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Xb(t,n,o)}i=i.next}while(i!==r)}}function Cy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qb(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function T4(e){var t=e.alternate;t!==null&&(e.alternate=null,T4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Hi],delete t[nd],delete t[$b],delete t[cH],delete t[uH])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function O4(e){return e.tag===5||e.tag===3||e.tag===4}function Mk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||O4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cg));else if(r!==4&&(e=e.child,e!==null))for(Jb(e,t,n),e=e.sibling;e!==null;)Jb(e,t,n),e=e.sibling}function ew(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ew(e,t,n),e=e.sibling;e!==null;)ew(e,t,n),e=e.sibling}var Un=null,pi=!1;function Zo(e,t,n){for(n=n.child;n!==null;)P4(e,t,n),n=n.sibling}function P4(e,t,n){if(Ki&&typeof Ki.onCommitFiberUnmount=="function")try{Ki.onCommitFiberUnmount(gy,n)}catch{}switch(n.tag){case 5:Jn||ec(n,t);case 6:var r=Un,i=pi;Un=null,Zo(e,t,n),Un=r,pi=i,Un!==null&&(pi?(e=Un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Un.removeChild(n.stateNode));break;case 18:Un!==null&&(pi?(e=Un,n=n.stateNode,e.nodeType===8?I0(e.parentNode,n):e.nodeType===1&&I0(e,n),Xf(e)):I0(Un,n.stateNode));break;case 4:r=Un,i=pi,Un=n.stateNode.containerInfo,pi=!0,Zo(e,t,n),Un=r,pi=i;break;case 0:case 11:case 14:case 15:if(!Jn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Xb(n,t,s),i=i.next}while(i!==r)}Zo(e,t,n);break;case 1:if(!Jn&&(ec(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Gt(n,t,a)}Zo(e,t,n);break;case 21:Zo(e,t,n);break;case 22:n.mode&1?(Jn=(r=Jn)||n.memoizedState!==null,Zo(e,t,n),Jn=r):Zo(e,t,n);break;default:Zo(e,t,n)}}function Rk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new TH),t.forEach(function(r){var i=IH.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function di(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kH(r/1960))-r,10e?16:e,ps===null)var r=!1;else{if(e=ps,ps=null,Fg=0,dt&6)throw Error(Te(331));var i=dt;for(dt|=4,Ue=e.current;Ue!==null;){var o=Ue,s=o.child;if(Ue.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lrn()-kS?ja(e,0):PS|=n),xr(e,t)}function I4(e,t){t===0&&(e.mode&1?(t=ip,ip<<=1,!(ip&130023424)&&(ip=4194304)):t=1);var n=fr();e=Po(e,t),e!==null&&($d(e,t,n),xr(e,n))}function AH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),I4(e,n)}function IH(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),I4(e,n)}var F4;F4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||br.current)yr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yr=!1,SH(e,t,n);yr=!!(e.flags&131072)}else yr=!1,$t&&t.flags&1048576&&BA(t,Pg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sm(e,t),e=t.pendingProps;var i=Tc(t,rr.current);fc(t,n),i=xS(null,t,r,e,i,n);var o=SS();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wr(r)?(o=!0,Tg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,vS(t),i.updater=xy,t.stateNode=i,i._reactInternals=t,Hb(t,r,e,n),t=qb(null,t,r,!0,o,n)):(t.tag=0,$t&&o&&uS(t),cr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sm(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=$H(r),e=hi(r,e),i){case 0:t=Yb(null,t,r,e,n);break e;case 1:t=Tk(null,t,r,e,n);break e;case 11:t=Ck(null,t,r,e,n);break e;case 14:t=Ek(null,t,r,hi(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),Yb(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),Tk(e,t,r,i,n);case 3:e:{if(b4(t),e===null)throw Error(Te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,HA(e,t),Rg(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Mc(Error(Te(423)),t),t=Ok(e,t,r,n,i);break e}else if(r!==i){i=Mc(Error(Te(424)),t),t=Ok(e,t,r,n,i);break e}else for(Rr=Cs(t.stateNode.containerInfo.firstChild),Lr=t,$t=!0,gi=null,n=GA(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oc(),r===i){t=ko(e,t,n);break e}cr(e,t,r,n)}t=t.child}return t;case 5:return ZA(t),e===null&&zb(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ib(r,i)?s=null:o!==null&&Ib(r,o)&&(t.flags|=32),_4(e,t),cr(e,t,s,n),t.child;case 6:return e===null&&zb(t),null;case 13:return w4(e,t,n);case 4:return yS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pc(t,null,r,n):cr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),Ck(e,t,r,i,n);case 7:return cr(e,t,t.pendingProps,n),t.child;case 8:return cr(e,t,t.pendingProps.children,n),t.child;case 12:return cr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ot(kg,r._currentValue),r._currentValue=s,o!==null)if(Pi(o.value,s)){if(o.children===i.children&&!br.current){t=ko(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Co(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ub(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Te(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ub(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}cr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,fc(t,n),i=ti(i),r=r(i),t.flags|=1,cr(e,t,r,n),t.child;case 14:return r=t.type,i=hi(r,t.pendingProps),i=hi(r.type,i),Ek(e,t,r,i,n);case 15:return v4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),sm(e,t),t.tag=1,wr(r)?(e=!0,Tg(t)):e=!1,fc(t,n),YA(t,r,i),Hb(t,r,i,n),qb(null,t,r,!0,e,n);case 19:return x4(e,t,n);case 22:return y4(e,t,n)}throw Error(Te(156,t.tag))};function $4(e,t){return uA(e,t)}function FH(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zr(e,t,n,r){return new FH(e,t,n,r)}function LS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $H(e){if(typeof e=="function")return LS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qx)return 11;if(e===Jx)return 14}return 2}function Ps(e,t){var n=e.alternate;return n===null?(n=Zr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function cm(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")LS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wl:return Ba(n.children,i,o,t);case Xx:s=8,i|=8;break;case pb:return e=Zr(12,n,t,i|2),e.elementType=pb,e.lanes=o,e;case mb:return e=Zr(13,n,t,i),e.elementType=mb,e.lanes=o,e;case gb:return e=Zr(19,n,t,i),e.elementType=gb,e.lanes=o,e;case qD:return Ty(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case WD:s=10;break e;case YD:s=9;break e;case Qx:s=11;break e;case Jx:s=14;break e;case es:s=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Zr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ba(e,t,n,r){return e=Zr(7,e,r,t),e.lanes=n,e}function Ty(e,t,n,r){return e=Zr(22,e,r,t),e.elementType=qD,e.lanes=n,e.stateNode={isHidden:!1},e}function H0(e,t,n){return e=Zr(6,e,null,t),e.lanes=n,e}function W0(e,t,n){return t=Zr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jH(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=E0(0),this.expirationTimes=E0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=E0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function DS(e,t,n,r,i,o,s,a,l){return e=new jH(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Zr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vS(o),e}function BH(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=$r})(zU);const za=AL(Ga);var U4,jk=Ga;U4=jk.createRoot,jk.hydrateRoot;var Bg={},WH={get exports(){return Bg},set exports(e){Bg=e}},V4={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Nc=H;function YH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qH=typeof Object.is=="function"?Object.is:YH,GH=Nc.useState,ZH=Nc.useEffect,KH=Nc.useLayoutEffect,XH=Nc.useDebugValue;function QH(e,t){var n=t(),r=GH({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return KH(function(){i.value=n,i.getSnapshot=t,Y0(i)&&o({inst:i})},[e,n,t]),ZH(function(){return Y0(i)&&o({inst:i}),e(function(){Y0(i)&&o({inst:i})})},[e]),XH(n),n}function Y0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qH(e,n)}catch{return!0}}function JH(e,t){return t()}var eW=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?JH:QH;V4.useSyncExternalStore=Nc.useSyncExternalStore!==void 0?Nc.useSyncExternalStore:eW;(function(e){e.exports=V4})(WH);var Bk={},tW={get exports(){return Bk},set exports(e){Bk=e}},H4={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ry=H,nW=Bg;function rW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iW=typeof Object.is=="function"?Object.is:rW,oW=nW.useSyncExternalStore,sW=Ry.useRef,aW=Ry.useEffect,lW=Ry.useMemo,cW=Ry.useDebugValue;H4.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=sW(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=lW(function(){function l(m){if(!c){if(c=!0,f=m,m=r(m),i!==void 0&&s.hasValue){var g=s.value;if(i(g,m))return h=g}return h=m}if(g=h,iW(f,m))return g;var v=r(m);return i!==void 0&&i(g,v)?g:(f=m,h=v)}var c=!1,f,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var a=oW(e,o[0],o[1]);return aW(function(){s.hasValue=!0,s.value=a},[a]),cW(a),a};(function(e){e.exports=H4})(tW);function uW(e){e()}let W4=uW;const fW=e=>W4=e,dW=()=>W4,Y4=H.createContext(null),hW=()=>{throw new Error("uSES not initialized!")};function hc(){return hc=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var ow={},pW={get exports(){return ow},set exports(e){ow=e}},xt={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var kn=typeof Symbol=="function"&&Symbol.for,jS=kn?Symbol.for("react.element"):60103,BS=kn?Symbol.for("react.portal"):60106,Ny=kn?Symbol.for("react.fragment"):60107,Ly=kn?Symbol.for("react.strict_mode"):60108,Dy=kn?Symbol.for("react.profiler"):60114,Ay=kn?Symbol.for("react.provider"):60109,Iy=kn?Symbol.for("react.context"):60110,zS=kn?Symbol.for("react.async_mode"):60111,Fy=kn?Symbol.for("react.concurrent_mode"):60111,$y=kn?Symbol.for("react.forward_ref"):60112,jy=kn?Symbol.for("react.suspense"):60113,mW=kn?Symbol.for("react.suspense_list"):60120,By=kn?Symbol.for("react.memo"):60115,zy=kn?Symbol.for("react.lazy"):60116,gW=kn?Symbol.for("react.block"):60121,vW=kn?Symbol.for("react.fundamental"):60117,yW=kn?Symbol.for("react.responder"):60118,_W=kn?Symbol.for("react.scope"):60119;function Br(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jS:switch(e=e.type,e){case zS:case Fy:case Ny:case Dy:case Ly:case jy:return e;default:switch(e=e&&e.$$typeof,e){case Iy:case $y:case zy:case By:case Ay:return e;default:return t}}case BS:return t}}}function q4(e){return Br(e)===Fy}xt.AsyncMode=zS;xt.ConcurrentMode=Fy;xt.ContextConsumer=Iy;xt.ContextProvider=Ay;xt.Element=jS;xt.ForwardRef=$y;xt.Fragment=Ny;xt.Lazy=zy;xt.Memo=By;xt.Portal=BS;xt.Profiler=Dy;xt.StrictMode=Ly;xt.Suspense=jy;xt.isAsyncMode=function(e){return q4(e)||Br(e)===zS};xt.isConcurrentMode=q4;xt.isContextConsumer=function(e){return Br(e)===Iy};xt.isContextProvider=function(e){return Br(e)===Ay};xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jS};xt.isForwardRef=function(e){return Br(e)===$y};xt.isFragment=function(e){return Br(e)===Ny};xt.isLazy=function(e){return Br(e)===zy};xt.isMemo=function(e){return Br(e)===By};xt.isPortal=function(e){return Br(e)===BS};xt.isProfiler=function(e){return Br(e)===Dy};xt.isStrictMode=function(e){return Br(e)===Ly};xt.isSuspense=function(e){return Br(e)===jy};xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ny||e===Fy||e===Dy||e===Ly||e===jy||e===mW||typeof e=="object"&&e!==null&&(e.$$typeof===zy||e.$$typeof===By||e.$$typeof===Ay||e.$$typeof===Iy||e.$$typeof===$y||e.$$typeof===vW||e.$$typeof===yW||e.$$typeof===_W||e.$$typeof===gW)};xt.typeOf=Br;(function(e){e.exports=xt})(pW);var US=ow,bW={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wW={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xW={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},G4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},VS={};VS[US.ForwardRef]=xW;VS[US.Memo]=G4;function zk(e){return US.isMemo(e)?G4:VS[e.$$typeof]||bW}var SW=Object.defineProperty,CW=Object.getOwnPropertyNames,Uk=Object.getOwnPropertySymbols,EW=Object.getOwnPropertyDescriptor,TW=Object.getPrototypeOf,Vk=Object.prototype;function Z4(e,t,n){if(typeof t!="string"){if(Vk){var r=TW(t);r&&r!==Vk&&Z4(e,r,n)}var i=CW(t);Uk&&(i=i.concat(Uk(t)));for(var o=zk(e),s=zk(t),a=0;at(i(...o)))}return n}function aw(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Wk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function K4(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=Wk(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Wk(c),c=o(a,l)),c},o}}function YS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function AW(e){return e&&typeof e=="object"?aw(t=>DW(e,t)):e?typeof e=="function"?K4(e):YS(e,"mapDispatchToProps"):aw(t=>({dispatch:t}))}function IW(e){return e?typeof e=="function"?K4(e):YS(e,"mapStateToProps"):aw(()=>({}))}function FW(e,t,n){return hc({},n,e,t)}function $W(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,c,f){const h=e(l,c,f);return o?i(h,s)||(s=h):(o=!0,s=h),s}}}function jW(e){return e?typeof e=="function"?$W(e):YS(e,"mergeProps"):()=>FW}function BW(){const e=dW();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Yk={notify(){},get:()=>[]};function X4(e,t){let n,r=Yk;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function s(){f.onStateChange&&f.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=BW())}function c(){n&&(n(),n=void 0,r.clear(),r=Yk)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const zW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zg=zW?H.useLayoutEffect:H.useEffect;function qk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function q0(e,t){if(qk(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i{Q4=e},HW=[null,null];function WW(e,t,n){zg(()=>e(...t),n)}function YW(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function qW(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,p=null;const m=()=>{if(h||!a.current)return;const v=t.getState();let w,y;try{w=r(v,i.current)}catch(b){y=b,p=b}y||(p=null),w===o.current?s.current||c():(o.current=w,l.current=w,s.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function GW(e,t){return e===t}function ZW(e,t,n,{pure:r,areStatesEqual:i=GW,areOwnPropsEqual:o=q0,areStatePropsEqual:s=q0,areMergedPropsEqual:a=q0,forwardRef:l=!1,context:c=Y4}={}){const f=c,h=IW(e),p=AW(t),m=jW(n),g=!!e;return w=>{const y=w.displayName||w.name||"Component",b=`Connect(${y})`,x={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:y,WrappedComponent:w,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function T(N){const[D,z,A]=H.useMemo(()=>{const{reactReduxForwardedRef:X}=N,le=$S(N,UW);return[N.context,X,le]},[N]),Y=H.useMemo(()=>D&&D.Consumer&&sw.isContextConsumer(V.createElement(D.Consumer,null))?D:f,[D,f]),q=H.useContext(Y),ee=!!N.store&&!!N.store.getState&&!!N.store.dispatch,K=!!q&&!!q.store,te=ee?N.store:q.store,oe=K?q.getServerState:te.getState,se=H.useMemo(()=>LW(te.dispatch,x),[te]),[Z,$]=H.useMemo(()=>{if(!g)return HW;const X=X4(te,ee?void 0:q.subscription),le=X.notifyNestedSubs.bind(X);return[X,le]},[te,ee,q]),I=H.useMemo(()=>ee?q:hc({},q,{subscription:Z}),[ee,q,Z]),B=H.useRef(),re=H.useRef(A),W=H.useRef(),G=H.useRef(!1);H.useRef(!1);const ne=H.useRef(!1),ae=H.useRef();zg(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const me=H.useMemo(()=>()=>W.current&&A===re.current?W.current:se(te.getState(),A),[te,A]),O=H.useMemo(()=>le=>Z?qW(g,te,Z,se,re,B,G,ne,W,$,le):()=>{},[Z]);WW(YW,[re,B,G,A,W,$]);let R;try{R=Q4(O,me,oe?()=>se(oe(),A):me)}catch(X){throw ae.current&&(X.message+=` +The error may be correlated with this previous error: +${ae.current.stack} + +`),X}zg(()=>{ae.current=void 0,W.current=void 0,B.current=R});const F=H.useMemo(()=>V.createElement(w,hc({},R,{ref:z})),[z,w,R]);return H.useMemo(()=>g?V.createElement(Y.Provider,{value:I},F):F,[Y,F,I])}const k=V.memo(T);if(k.WrappedComponent=w,k.displayName=T.displayName=b,l){const D=V.forwardRef(function(A,Y){return V.createElement(k,hc({},A,{reactReduxForwardedRef:Y}))});return D.displayName=b,D.WrappedComponent=w,Hk(D,w)}return Hk(k,w)}}function KW({store:e,context:t,children:n,serverState:r}){const i=H.useMemo(()=>{const a=X4(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0}},[e,r]),o=H.useMemo(()=>e.getState(),[e]);zg(()=>{const{subscription:a}=i;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),o!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[i,o]);const s=t||Y4;return V.createElement(s.Provider,{value:i},n)}VW(Bg.useSyncExternalStore);fW(Ga.unstable_batchedUpdates);/** + * @remix-run/router v1.2.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ug(){return Ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function QW(){return Math.random().toString(36).substr(2,8)}function Zk(e){return{usr:e.state,key:e.key}}function lw(e,t,n,r){return n===void 0&&(n=null),Ug({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Kc(t):t,{state:n,key:t&&t.key||r||QW()})}function cd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Kc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function JW(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:cd(e);return pn(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function eY(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=ms.Pop,l=null;function c(){a=ms.Pop,l&&l({action:a,location:p.location})}function f(m,g){a=ms.Push;let v=lw(p.location,m,g);n&&n(v,m);let w=Zk(v),y=p.createHref(v);try{s.pushState(w,"",y)}catch{i.location.assign(y)}o&&l&&l({action:a,location:p.location})}function h(m,g){a=ms.Replace;let v=lw(p.location,m,g);n&&n(v,m);let w=Zk(v),y=p.createHref(v);s.replaceState(w,"",y),o&&l&&l({action:a,location:p.location})}let p={get action(){return a},get location(){return e(i,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Gk,c),l=m,()=>{i.removeEventListener(Gk,c),l=null}},createHref(m){return t(i,m)},encodeLocation(m){let g=JW(typeof m=="string"?m:cd(m));return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(m){return s.go(m)}};return p}var Kk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kk||(Kk={}));function tY(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Kc(t):t,i=tI(r.pathname||"/",n);if(i==null)return null;let o=J4(e);nY(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(pn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ks([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(pn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),J4(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:cY(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of eI(o.path))i(o,s,l)}),t}function eI(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=eI(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function nY(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uY(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rY=/^:\w+$/,iY=3,oY=2,sY=1,aY=10,lY=-2,Xk=e=>e==="*";function cY(e,t){let n=e.split("/"),r=n.length;return n.some(Xk)&&(r+=lY),t&&(r+=oY),n.filter(i=>!Xk(i)).reduce((i,o)=>i+(rY.test(o)?iY:o===""?sY:aY),r)}function uY(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function fY(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{if(f==="*"){let p=a[h]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=mY(a[h]||"",f),c},{}),pathname:o,pathnameBase:s,pattern:e}}function hY(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pY(e){try{return decodeURI(e)}catch(t){return qS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function mY(e,t){try{return decodeURIComponent(e)}catch(n){return qS(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function tI(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function qS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gY(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Kc(e):e;return{pathname:n?n.startsWith("/")?n:vY(n,t):t,search:_Y(r),hash:bY(i)}}function vY(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function G0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function nI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rI(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Kc(e):(i=Ug({},e),pn(!i.pathname||!i.pathname.includes("?"),G0("?","pathname","search",i)),pn(!i.pathname||!i.pathname.includes("#"),G0("#","pathname","hash",i)),pn(!i.search||!i.search.includes("#"),G0("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=gY(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const ks=e=>e.join("/").replace(/\/\/+/g,"/"),yY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_Y=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class wY{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function xY(e){return e instanceof wY}const SY=["post","put","patch","delete"];[...SY];/** + * React Router v6.6.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function cw(){return cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,Z0(i)&&o({inst:i})},[e,r,t]),OY(()=>(Z0(i)&&o({inst:i}),e(()=>{Z0(i)&&o({inst:i})})),[e]),kY(r),r}function Z0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!EY(n,r)}catch{return!0}}function RY(e,t,n){return t()}const NY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LY=!NY,DY=LY?RY:MY;"useSyncExternalStore"in X1&&(e=>e.useSyncExternalStore)(X1);const AY=H.createContext(null),IY=H.createContext(null),Qy=H.createContext(null),Ud=H.createContext(null),Jy=H.createContext(null),hl=H.createContext({outlet:null,matches:[]}),iI=H.createContext(null);function FY(e,t){let{relative:n}=t===void 0?{}:t;Xc()||pn(!1);let{basename:r,navigator:i}=H.useContext(Ud),{hash:o,pathname:s,search:a}=GS(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:ks([r,s])),i.createHref({pathname:l,search:a,hash:o})}function Xc(){return H.useContext(Jy)!=null}function Mn(){return Xc()||pn(!1),H.useContext(Jy).location}function jo(){Xc()||pn(!1);let{basename:e,navigator:t}=H.useContext(Ud),{matches:n}=H.useContext(hl),{pathname:r}=Mn(),i=JSON.stringify(nI(n).map(a=>a.pathnameBase)),o=H.useRef(!1);return H.useEffect(()=>{o.current=!0}),H.useCallback(function(a,l){if(l===void 0&&(l={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let c=rI(a,JSON.parse(i),r,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:ks([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,i,r])}function Qs(){let{matches:e}=H.useContext(hl),t=e[e.length-1];return t?t.params:{}}function GS(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=H.useContext(hl),{pathname:i}=Mn(),o=JSON.stringify(nI(r).map(s=>s.pathnameBase));return H.useMemo(()=>rI(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function $Y(e,t){Xc()||pn(!1);let{navigator:n}=H.useContext(Ud),r=H.useContext(Qy),{matches:i}=H.useContext(hl),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Mn(),c;if(t){var f;let v=typeof t=="string"?Kc(t):t;a==="/"||(f=v.pathname)!=null&&f.startsWith(a)||pn(!1),c=v}else c=l;let h=c.pathname||"/",p=a==="/"?h:h.slice(a.length)||"/",m=tY(e,{pathname:p}),g=UY(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:ks([a,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:ks([a,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r||void 0);return t&&g?H.createElement(Jy.Provider,{value:{location:cw({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ms.Pop}},g):g}function jY(){let e=YY(),t=xY(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return H.createElement(H.Fragment,null,H.createElement("h2",null,"Unhandled Thrown Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},t),n?H.createElement("pre",{style:i},n):null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:o},"errorElement")," props on ",H.createElement("code",{style:o},"")))}class BY extends H.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?H.createElement(hl.Provider,{value:this.props.routeContext},H.createElement(iI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zY(e){let{routeContext:t,match:n,children:r}=e,i=H.useContext(AY);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),H.createElement(hl.Provider,{value:t},r)}function UY(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));o>=0||pn(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,s,a)=>{let l=s.route.id?i==null?void 0:i[s.route.id]:null,c=n?s.route.errorElement||H.createElement(jY,null):null,f=t.concat(r.slice(0,a+1)),h=()=>H.createElement(zY,{match:s,routeContext:{outlet:o,matches:f}},l?c:s.route.element!==void 0?s.route.element:o);return n&&(s.route.errorElement||a===0)?H.createElement(BY,{location:n.location,component:c,error:l,children:h(),routeContext:{outlet:null,matches:f}}):h()},null)}var Qk;(function(e){e.UseRevalidator="useRevalidator"})(Qk||(Qk={}));var Vg;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Vg||(Vg={}));function VY(e){let t=H.useContext(Qy);return t||pn(!1),t}function HY(e){let t=H.useContext(hl);return t||pn(!1),t}function WY(e){let t=HY(),n=t.matches[t.matches.length-1];return n.route.id||pn(!1),n.route.id}function YY(){var e;let t=H.useContext(iI),n=VY(Vg.UseRouteError),r=WY(Vg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function ZS(e){let{to:t,replace:n,state:r,relative:i}=e;Xc()||pn(!1);let o=H.useContext(Qy),s=jo();return H.useEffect(()=>{o&&o.navigation.state!=="idle"||s(t,{replace:n,state:r,relative:i})}),null}function yt(e){pn(!1)}function qY(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ms.Pop,navigator:o,static:s=!1}=e;Xc()&&pn(!1);let a=t.replace(/^\/*/,"/"),l=H.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Kc(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,g=H.useMemo(()=>{let v=tI(c,a);return v==null?null:{pathname:v,search:f,hash:h,state:p,key:m}},[a,c,f,h,p,m]);return g==null?null:H.createElement(Ud.Provider,{value:l},H.createElement(Jy.Provider,{children:n,value:{location:g,navigationType:i}}))}function e_(e){let{children:t,location:n}=e,r=H.useContext(IY),i=r&&!t?r.router.routes:uw(t);return $Y(i,n)}var Jk;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Jk||(Jk={}));new Promise(()=>{});function uw(e,t){t===void 0&&(t=[]);let n=[];return H.Children.forEach(e,(r,i)=>{if(!H.isValidElement(r))return;if(r.type===H.Fragment){n.push.apply(n,uw(r.props.children,t));return}r.type!==yt&&pn(!1),!r.props.index||!r.props.children||pn(!1);let o=[...t,i],s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=uw(r.props.children,o)),n.push(s)}),n}/** + * React Router DOM v6.6.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function GY(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZY(e,t){return e.button===0&&(!t||t==="_self")&&!GY(e)}const KY=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],XY=["aria-current","caseSensitive","className","end","style","to","children"];function QY(e){let{basename:t,children:n,window:r}=e,i=H.useRef();i.current==null&&(i.current=XW({window:r,v5Compat:!0}));let o=i.current,[s,a]=H.useState({action:o.action,location:o.location});return H.useLayoutEffect(()=>o.listen(a),[o]),H.createElement(qY,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const At=H.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f}=t,h=oI(t,KY),p=FY(c,{relative:i}),m=JY(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i});function g(v){r&&r(v),v.defaultPrevented||m(v)}return H.createElement("a",Hg({},h,{href:p,onClick:o?r:g,ref:n,target:l}))}),sI=H.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,children:c}=t,f=oI(t,XY),h=GS(l,{relative:f.relative}),p=Mn(),m=H.useContext(Qy),{navigator:g}=H.useContext(Ud),v=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,w=p.pathname,y=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(w=w.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase());let b=w===v||!s&&w.startsWith(v)&&w.charAt(v.length)==="/",x=y!=null&&(y===v||!s&&y.startsWith(v)&&y.charAt(v.length)==="/"),T=b?r:void 0,P;typeof o=="function"?P=o({isActive:b,isPending:x}):P=[o,b?"active":null,x?"pending":null].filter(Boolean).join(" ");let k=typeof a=="function"?a({isActive:b,isPending:x}):a;return H.createElement(At,Hg({},f,{"aria-current":T,className:P,ref:n,style:k,to:l}),typeof c=="function"?c({isActive:b,isPending:x}):c)});var eM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(eM||(eM={}));var tM;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tM||(tM={}));function JY(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=jo(),l=Mn(),c=GS(e,{relative:s});return H.useCallback(f=>{if(ZY(f,n)){f.preventDefault();let h=r!==void 0?r:cd(l)===cd(c);a(e,{replace:h,state:i,preventScrollReset:o,relative:s})}},[l,a,c,r,i,n,e,o,s])}const eq="shlink-web-client",tq="A React-based progressive web application for shlink",nq="/shlink-web-client/develop",rq="https://github.com/shlinkio/shlink-web-client",iq="MIT",oq={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"npm run types && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs",test:"jest --env=jsdom --colors","test:coverage":"npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary","test:ci":"npm run test:coverage -- --coverageReporters=clover --ci","test:pretty":"npm run test:coverage -- --coverageReporters=html","test:verbose":"npm run test -- --verbose"},sq={"@babel/preset-env":"^7.20.2","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.21.0","@fortawesome/fontawesome-free":"^6.3.0","@fortawesome/fontawesome-svg-core":"^6.3.0","@fortawesome/free-brands-svg-icons":"^6.3.0","@fortawesome/free-regular-svg-icons":"^6.3.0","@fortawesome/free-solid-svg-icons":"^6.3.0","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.1",bootstrap:"^5.2.3",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.1.1",classnames:"^2.3.2","compare-versions":"^5.0.3",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.3",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.1.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.0.0","react-leaflet":"^4.2.0","react-redux":"^8.0.5","react-router-dom":"^6.6.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.5",redux:"^4.2.0","redux-localstorage-simple":"^2.5.1","redux-thunk":"^2.4.2",uuid:"^8.3.2","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},aq={"@shlinkio/eslint-config-js-coding-standard":"~2.1.0","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@testing-library/user-event":"^14.4.3","@types/jest":"^29.2.4","@types/json2csv":"^5.0.3","@types/leaflet":"^1.9.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.8.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^3.1.0","adm-zip":"^0.5.10","babel-jest":"^29.5.0",chalk:"^5.2.0",eslint:"^8.30.0","identity-obj-proxy":"^3.0.0",jest:"^29.3.1","jest-canvas-mock":"^2.4.0","jest-environment-jsdom":"^29.3.1","resize-observer-polyfill":"^1.5.1",sass:"^1.57.1",stylelint:"^14.16.0","ts-mockery":"^1.2.0",typescript:"^5.0.2",vite:"^4.2.0","vite-plugin-pwa":"^0.14.4"},lq=[">0.2%","not dead","not ie <= 11","not op_mini all"],Wg={name:eq,description:tq,private:!1,homepage:nq,repository:rq,license:iq,scripts:oq,dependencies:sq,devDependencies:aq,browserslist:lq};var ki,eo=".",aI="function",lI="string",cI="__global__",KS="Provider",cq=0,XS=Array.prototype.slice,uq=function(t,n){var r=t[n];if(r===void 0&&ki.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},t_=function(t){var n;return this.nested[t]||(n=ki.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},uI=function(t){return t.split(eo).reduce(uq,this)},fq=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var a=0,l=function(f){if(f)throw f;t[a]&&t[a++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},dq=function(t,n){var r,i;return typeof t===aI&&(n=t,t=cI),r=t.split(eo),i=r.shift(),r.length?t_.call(this,i).middleware(r.join(eo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},hq=function(t,n){return n(t)},nM=function(t,n){return(t[n]||[]).concat(t.__global__||[])},pq=function(t,n){var r,i,o,s,a;return this.id,o=this.container,s=this.decorators,a=this.middlewares,r=t+KS,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete o[r],o[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=o[r],f;return c&&(f=nM(s,t).reduce(hq,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:fq(nM(a,t),t,f,o)}},Object.defineProperties(o,i),this},fI=function(t,n){var r,i;return r=t.split(eo),this.providerMap[t]&&r.length===1&&!this.container[t+KS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(t_.call(this,i).provider(r.join(eo),n),this):pq.call(this,i,n))},QS=function(t,n){return fI.call(this,t,function(){this.$get=n})},dI=function(t,n,r){var i=arguments.length>3?XS.call(arguments,3):[],o=this;return QS.call(this,t,function(){var a=n,l=i.map(uI,o.container);return r?new(n.bind.apply(n,[null].concat(l))):a.apply(null,l)})},mq=function(t,n){return dI.apply(this,[t,n,!0].concat(XS.call(arguments,2)))},gq=function(t,n){return dI.apply(this,[t,n,!1].concat(XS.call(arguments,2)))},hI=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},pI=function(t,n){var r=t[n];return r||(r={},hI.call(t,n,r)),r},vq=function(t,n){var r;return r=t.split(eo),t=r.pop(),hI.call(r.reduce(pI,this.container),t,n),this},yq=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},_q=function(t,n){var r=t.split(eo);return t=r.pop(),yq.call(r.reduce(pI,this.container),t,n),this},mI=function(t,n){var r,i;return typeof t===aI&&(n=t,t=cI),r=t.split(eo),i=r.shift(),r.length?t_.call(this,i).decorator(r.join(eo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},bq=function(t){return this.deferred.push(t),this},wq=function(t){return(t||[]).map(uI,this.container)},xq=function(t,n){return QS.call(this,t,function(i){return{instance:n.bind(n,i)}})},Sq=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},JS=function(t){return Object.keys(t||this.container||{}).filter(Sq)},Yg={},Cq=function(t){var n;return typeof t===lI?(n=Yg[t],n||(Yg[t]=n=new ki,n.constant("BOTTLE_NAME",t)),n):new ki},Eq=function(t){typeof t===lI?delete Yg[t]:Yg={}},gI=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},rM=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+KS]},Tq=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var s=o.split(eo);s.length>1&&s.forEach(rM,t_.call(this,s[0])),rM.call(this,o),this.provider(o,n[o])}},this)},Oq=function(t){return this.deferred.forEach(function(r){r(t)}),this};ki=function e(t){if(!(this instanceof e))return e.pop(t);this.id=cq++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:mI.bind(this),$register:gI.bind(this),$list:JS.bind(this)}};ki.prototype={constant:_q,decorator:mI,defer:bq,digest:wq,factory:QS,instanceFactory:xq,list:JS,middleware:dq,provider:fI,resetProviders:Tq,register:gI,resolve:Oq,service:mq,serviceFactory:gq,value:vq};ki.pop=Cq;ki.clear=Eq;ki.list=JS;ki.config={strict:!1};const Pq=ki;var kq=function(){return!0};const vI=kq;function kt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function bt(e){return function t(n){return arguments.length===0||kt(n)?t:e.apply(this,arguments)}}function ut(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return kt(n)?t:bt(function(i){return e(n,i)});default:return kt(n)&&kt(r)?t:kt(n)?bt(function(i){return e(i,r)}):kt(r)?bt(function(i){return e(n,i)}):e(n,r)}}}function Mq(e,t){e=e||[],t=t||[];var n,r=e.length,i=t.length,o=[];for(n=0;n=arguments.length)?a=t[s]:(a=arguments[i],i+=1),r[s]=a,kt(a)||(o-=1),s+=1}return o<=0?n.apply(this,r):Qc(o,n_(e,r,n))}}var Rq=ut(function(t,n){return t===1?bt(n):Qc(t,n_(t,[],n))});const qg=Rq;function Js(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return kt(n)?t:ut(function(o,s){return e(n,o,s)});case 2:return kt(n)&&kt(r)?t:kt(n)?ut(function(o,s){return e(o,r,s)}):kt(r)?ut(function(o,s){return e(n,o,s)}):bt(function(o){return e(n,r,o)});default:return kt(n)&&kt(r)&&kt(i)?t:kt(n)&&kt(r)?ut(function(o,s){return e(o,s,i)}):kt(n)&&kt(i)?ut(function(o,s){return e(o,r,s)}):kt(r)&&kt(i)?ut(function(o,s){return e(n,o,s)}):kt(n)?bt(function(o){return e(o,r,i)}):kt(r)?bt(function(o){return e(n,o,i)}):kt(i)?bt(function(o){return e(n,r,o)}):e(n,r,i)}}}const Vd=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Nq(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function eC(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!Vd(i)){for(var o=0;ot?n:t});const yI=Lq;function um(e,t){for(var n=0,r=t.length,i=Array(r);n0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const _I=Dq;var Aq=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},e}();function Iq(e){return new Aq(e)}var Fq=ut(function(t,n){return Qc(t.length,function(){return t.apply(n,arguments)})});const $q=Fq;function jq(e,t,n){for(var r=0,i=n.length;r=0;)n=lM[r],Nr(n,t)&&!Wq(i,n)&&(i[i.length]=n),r-=1;return i});const to=Yq;var qq=ut(eC(["fantasy-land/map","map"],Uq,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return qg(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Jc(function(r,i){return r[i]=t(n[i]),r},{},to(n));default:return um(t,n)}}));const Hd=qq,fw=Number.isInteger||function(t){return t<<0===t};var Gq=ut(function(t,n){var r=t<0?n.length+t:t;return r_(n)?n.charAt(r):n[r]});const wI=Gq;var Zq=ut(function(t,n){return t.map(function(r){for(var i=n,o=0,s;o1){var o=!Bo(r)&&Nr(i,r)?r[i]:fw(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(fw(i)&&Vd(r)){var s=[].concat(r);return s[i]=n,s}else return fd(i,n,r)});const Ml=aG;function lG(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var cG=ut(function(t,n){var r=qg(t,n);return qg(t,function(){return Jc(rG,Hd(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const uG=cG;var fG=bt(function(t){return uG(t.length,t)});const dG=fG;function hG(e){return function t(n){for(var r,i,o,s=[],a=0,l=n.length;a=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:dM(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:dM(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=to(e);if(s.length!==to(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(o=s.length-1;o>=0;){var c=s[o];if(!(Nr(c,t)&&iC(t[c],e[c],a,l)))return!1;o-=1}return!0}var kG=ut(function(t,n){return iC(t,n,[],[])});const oC=kG;function MG(e,t,n){var r,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(r=1/t;n=0}function Q0(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var Iu=function(t){return(t<10?"0":"")+t},NG=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Iu(t.getUTCMonth()+1)+"-"+Iu(t.getUTCDate())+"T"+Iu(t.getUTCHours())+":"+Iu(t.getUTCMinutes())+":"+Iu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const LG=NG;function DG(e){return function(){return!e.apply(this,arguments)}}function AG(e,t){for(var n=0,r=t.length,i=[];n":EI(s,a)},r=function(o,s){return um(function(a){return Q0(a)+": "+n(o[a])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+um(n,e).join(", ")+"))";case"[object Array]":return"["+um(n,e).concat(r(e,Wd(function(o){return/^\d+$/.test(o)},to(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):Q0(LG(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+n(e.valueOf())+")":Q0(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+r(e,to(e)).join(", ")+"}"}}var zG=bt(function(t){return EI(t,[])});const UG=zG;var VG=bt(function(t){var n=tC(yI,0,Hd(function(r){return r[0].length},t));return Qc(n,function(){for(var r=0;rs?1:0})});const EZ=CZ;var TZ=ut(function(t,n){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],i=0;i!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Ms=e=>!!(e!=null&&e.id),i_=e=>!!(e!=null&&e.version),AZ=e=>!!(e!=null&&e.serverNotFound),Yd=e=>Ms(e)?e.id:"",IZ=e=>vZ(["id","autoConnect"],e),o_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",LI=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),DI=e=>e.dir?`${e.field}-${e.dir}`:void 0,FZ=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};var $Z=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},pM=typeof Symbol<"u"&&Symbol,jZ=$Z,BZ=function(){return typeof pM!="function"||typeof Symbol!="function"||typeof pM("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jZ()},zZ="Function.prototype.bind called on incompatible ",J0=Array.prototype.slice,UZ=Object.prototype.toString,VZ="[object Function]",HZ=function(t){var n=this;if(typeof n!="function"||UZ.call(n)!==VZ)throw new TypeError(zZ+n);for(var r=J0.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(J0.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(J0.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l"u"?lt:ns(Uint8Array),mc={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":Rl?ns([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":zl,"%AsyncGenerator%":zl,"%AsyncGeneratorFunction%":zl,"%AsyncIteratorPrototype%":zl,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":AI,"%GeneratorFunction%":zl,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Rl?ns(ns([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Rl?lt:ns(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Rl?lt:ns(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Rl?ns(""[Symbol.iterator]()):lt,"%Symbol%":Rl?Symbol:lt,"%SyntaxError%":hd,"%ThrowTypeError%":GZ,"%TypedArray%":ZZ,"%TypeError%":pc,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet},KZ=function e(t){var n;if(t==="%AsyncFunction%")n=e1("async function () {}");else if(t==="%GeneratorFunction%")n=e1("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=e1("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=ns(i.prototype))}return mc[t]=n,n},mM={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},s_=cC,Xg=qZ,XZ=s_.call(Function.call,Array.prototype.concat),QZ=s_.call(Function.apply,Array.prototype.splice),gM=s_.call(Function.call,String.prototype.replace),Qg=s_.call(Function.call,String.prototype.slice),JZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eK=/\\(\\)?/g,tK=function(t){var n=Qg(t,0,1),r=Qg(t,-1);if(n==="%"&&r!=="%")throw new hd("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new hd("invalid intrinsic syntax, expected opening `%`");var i=[];return gM(t,JZ,function(o,s,a,l){i[i.length]=a?gM(l,eK,"$1"):s||o}),i},nK=function(t,n){var r=t,i;if(Xg(mM,r)&&(i=mM[r],r="%"+i[0]+"%"),Xg(mc,r)){var o=mc[r];if(o===zl&&(o=KZ(r)),typeof o>"u"&&!n)throw new pc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new hd("intrinsic "+t+" does not exist!")},uC=function(t,n){if(typeof t!="string"||t.length===0)throw new pc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new pc('"allowMissing" argument must be a boolean');var r=tK(t),i=r.length>0?r[0]:"",o=nK("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],QZ(r,XZ([0,1],c)));for(var f=1,h=!0;f=r.length){var v=Ua(a,p);h=!!v,h&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[p]}else h=Xg(a,p),a=a[p];h&&!l&&(mc[s]=a)}}return a},hw={},rK={get exports(){return hw},set exports(e){hw=e}};(function(e){var t=cC,n=uC,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var m=s(p,"length");m.configurable&&a(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c})(rK);var II=uC,FI=hw,iK=FI(II("String.prototype.indexOf")),oK=function(t,n){var r=II(t,!!n);return typeof r=="function"&&iK(t,".prototype.")>-1?FI(r):r};const sK={},aK=Object.freeze(Object.defineProperty({__proto__:null,default:sK},Symbol.toStringTag,{value:"Module"})),lK=g7(aK);var fC=typeof Map=="function"&&Map.prototype,n1=Object.getOwnPropertyDescriptor&&fC?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Jg=fC&&n1&&typeof n1.get=="function"?n1.get:null,cK=fC&&Map.prototype.forEach,dC=typeof Set=="function"&&Set.prototype,r1=Object.getOwnPropertyDescriptor&&dC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ev=dC&&r1&&typeof r1.get=="function"?r1.get:null,uK=dC&&Set.prototype.forEach,fK=typeof WeakMap=="function"&&WeakMap.prototype,xf=fK?WeakMap.prototype.has:null,dK=typeof WeakSet=="function"&&WeakSet.prototype,Sf=dK?WeakSet.prototype.has:null,hK=typeof WeakRef=="function"&&WeakRef.prototype,vM=hK?WeakRef.prototype.deref:null,pK=Boolean.prototype.valueOf,mK=Object.prototype.toString,gK=Function.prototype.toString,vK=String.prototype.match,hC=String.prototype.slice,gs=String.prototype.replace,yK=String.prototype.toUpperCase,yM=String.prototype.toLowerCase,$I=RegExp.prototype.test,_M=Array.prototype.concat,Vi=Array.prototype.join,_K=Array.prototype.slice,bM=Math.floor,pw=typeof BigInt=="function"?BigInt.prototype.valueOf:null,i1=Object.getOwnPropertySymbols,mw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ir=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Lc||"symbol")?Symbol.toStringTag:null,jI=Object.prototype.propertyIsEnumerable,wM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function xM(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||$I.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-bM(-e):bM(e);if(r!==e){var i=String(r),o=hC.call(t,i.length+1);return gs.call(i,n,"$&_")+"."+gs.call(gs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gs.call(t,n,"$&_")}var o1=lK.custom,s1=o1&&zI(o1)?o1:null,bK=function e(t,n,r,i){var o=n||{};if(rs(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(rs(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=rs(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(rs(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(rs(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return VI(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?xM(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return a?xM(t,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return gw(t)?"[Array]":"[Object]";var h=jK(o,r);if(typeof i>"u")i=[];else if(UI(i,t)>=0)return"[Circular]";function p(ee,K,te){if(K&&(i=_K.call(i),i.push(K)),te){var oe={depth:o.depth};return rs(o,"quoteStyle")&&(oe.quoteStyle=o.quoteStyle),e(ee,oe,r+1,i)}return e(ee,o,r+1,i)}if(typeof t=="function"){var m=MK(t),g=gp(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(g.length>0?" { "+Vi.call(g,", ")+" }":"")}if(zI(t)){var v=Lc?gs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):mw.call(t);return typeof t=="object"&&!Lc?$u(v):v}if(IK(t)){for(var w="<"+yM.call(String(t.nodeName)),y=t.attributes||[],b=0;b",w}if(gw(t)){if(t.length===0)return"[]";var x=gp(t,p);return h&&!$K(x)?"["+vw(x,h)+"]":"[ "+Vi.call(x,", ")+" ]"}if(CK(t)){var T=gp(t,p);return"cause"in t&&!jI.call(t,"cause")?"{ ["+String(t)+"] "+Vi.call(_M.call("[cause]: "+p(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Vi.call(T,", ")+" }"}if(typeof t=="object"&&s){if(s1&&typeof t[s1]=="function")return t[s1]();if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(RK(t)){var P=[];return cK.call(t,function(ee,K){P.push(p(K,t,!0)+" => "+p(ee,t))}),SM("Map",Jg.call(t),P,h)}if(DK(t)){var k=[];return uK.call(t,function(ee){k.push(p(ee,t))}),SM("Set",ev.call(t),k,h)}if(NK(t))return a1("WeakMap");if(AK(t))return a1("WeakSet");if(LK(t))return a1("WeakRef");if(TK(t))return $u(p(Number(t)));if(PK(t))return $u(p(pw.call(t)));if(OK(t))return $u(pK.call(t));if(EK(t))return $u(p(String(t)));if(!xK(t)&&!SK(t)){var N=gp(t,p),D=wM?wM(t)===Object.prototype:t instanceof Object||t.constructor===Object,z=t instanceof Object?"":"null prototype",A=!D&&ir&&Object(t)===t&&ir in t?hC.call(ea(t),8,-1):z?"Object":"",Y=D||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",q=Y+(A||z?"["+Vi.call(_M.call([],A||[],z||[]),": ")+"] ":"");return N.length===0?q+"{}":h?q+"{"+vw(N,h)+"}":q+"{ "+Vi.call(N,", ")+" }"}return String(t)};function BI(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function wK(e){return gs.call(String(e),/"/g,""")}function gw(e){return ea(e)==="[object Array]"&&(!ir||!(typeof e=="object"&&ir in e))}function xK(e){return ea(e)==="[object Date]"&&(!ir||!(typeof e=="object"&&ir in e))}function SK(e){return ea(e)==="[object RegExp]"&&(!ir||!(typeof e=="object"&&ir in e))}function CK(e){return ea(e)==="[object Error]"&&(!ir||!(typeof e=="object"&&ir in e))}function EK(e){return ea(e)==="[object String]"&&(!ir||!(typeof e=="object"&&ir in e))}function TK(e){return ea(e)==="[object Number]"&&(!ir||!(typeof e=="object"&&ir in e))}function OK(e){return ea(e)==="[object Boolean]"&&(!ir||!(typeof e=="object"&&ir in e))}function zI(e){if(Lc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!mw)return!1;try{return mw.call(e),!0}catch{}return!1}function PK(e){if(!e||typeof e!="object"||!pw)return!1;try{return pw.call(e),!0}catch{}return!1}var kK=Object.prototype.hasOwnProperty||function(e){return e in this};function rs(e,t){return kK.call(e,t)}function ea(e){return mK.call(e)}function MK(e){if(e.name)return e.name;var t=vK.call(gK.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function UI(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return VI(hC.call(e,0,t.maxStringLength),t)+r}var i=gs.call(gs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,FK);return BI(i,"single",t)}function FK(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+yK.call(t.toString(16))}function $u(e){return"Object("+e+")"}function a1(e){return e+" { ? }"}function SM(e,t,n,r){var i=r?vw(n,r):Vi.call(n,", ");return e+" ("+t+") {"+i+"}"}function $K(e){for(var t=0;t=0)return!1;return!0}function jK(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Vi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Vi.call(Array(t+1),n)}}function vw(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+Vi.call(e,","+n)+` +`+t.prev}function gp(e,t){var n=gw(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(Ma(r)){for(var i=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===eX.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+$i[c];continue}if(c<2048){a=a+($i[192|c>>6]+$i[128|c&63]);continue}if(c<55296||c>=57344){a=a+($i[224|c>>12]+$i[128|c>>6&63]+$i[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=$i[240|c>>18]+$i[128|c>>12&63]+$i[128|c>>6&63]+$i[128|c&63]}return a},sX=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(x=0)}if(typeof l=="function"?y=l(n,y):y instanceof Date?y=h(y):r==="comma"&&vo(y)&&(y=yw.maybeMap(y,function($){return $ instanceof Date?h($):$})),y===null){if(o)return a&&!g?a(n,zn.encoder,v,"key",p):n;y=""}if(mX(y)||yw.isBuffer(y)){if(a){var k=g?n:a(n,zn.encoder,v,"key",p);if(r==="comma"&&g){for(var N=dX.call(String(y),","),D="",z=0;z"u")return A;var Y;if(r==="comma"&&vo(y))Y=[{value:y.length>0?y.join(",")||null:void 0}];else if(vo(l))Y=l;else{var q=Object.keys(y);Y=c?q.sort(c):q}for(var ee=i&&vo(y)&&y.length===1?n+"[]":n,K=0;K"u"?zn.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:zn.charsetSentinel,delimiter:typeof t.delimiter>"u"?zn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:zn.encode,encoder:typeof t.encoder=="function"?t.encoder:zn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:zn.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:zn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:zn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:zn.strictNullHandling}},yX=function(e,t){var n=e,r=vX(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):vo(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in CM?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=CM[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=YI(),h=0;h0?g+m:""},Dc=WI,_w=Object.prototype.hasOwnProperty,_X=Array.isArray,En={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Dc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},bX=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},GI=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},wX="utf8=%26%2310003%3B",xX="utf8=%E2%9C%93",SX=function(t,n){var r={},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(g=_X(g)?[g]:g),_w.call(r,m)?r[m]=Dc.combine(r[m],g):r[m]=g}return r},CX=function(e,t,n,r){for(var i=r?t:GI(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},EX=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&_w.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=a.exec(o))!==null&&h"u"?En.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?En.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:En.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:En.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:En.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:En.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:En.comma,decoder:typeof t.decoder=="function"?t.decoder:En.decoder,delimiter:typeof t.delimiter=="string"||Dc.isRegExp(t.delimiter)?t.delimiter:En.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:En.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:En.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:En.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:En.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:En.strictNullHandling}},OX=function(e,t){var n=TX(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?SX(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;sZI.parse(e,{ignoreQueryPrefix:!0}),qd=e=>ZI.stringify(e,{arrayFormat:"brackets"});var a_=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(a_||{}),l_=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(l_||{});const RX=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),io=e=>RX(e)?e:void 0,NX=e=>(e==null?void 0:e.type)===a_.INVALID_ARGUMENT||(e==null?void 0:e.type)===l_.INVALID_ARGUMENT,LX=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===a_.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===l_.INVALID_SHORT_URL_DELETION,DX=e=>((e==null?void 0:e.type)===a_.NOT_FOUND||(e==null?void 0:e.type)===l_.NOT_FOUND)&&(e==null?void 0:e.status)===404,AX=(e,t)=>`${e}/rest/v${t}`,IX=Wd(Bo),FX=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:DI(e)});class $X{constructor(t,n,r){Se(this,"apiVersion");Se(this,"listShortUrls",async(t={})=>this.performRequest("/short-urls","GET",FX(t)).then(({shortUrls:n})=>n));Se(this,"createShortUrl",async t=>{const n=Wd(r=>qn(r)||Bo(r),t);return this.performRequest("/short-urls","POST",{},n)});Se(this,"getShortUrlVisits",async(t,n)=>this.performRequest(`/short-urls/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getTagVisits",async(t,n)=>this.performRequest(`/tags/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getDomainVisits",async(t,n)=>this.performRequest(`/domains/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getOrphanVisits",async t=>this.performRequest("/visits/orphan","GET",t).then(({visits:n})=>n));Se(this,"getNonOrphanVisits",async t=>this.performRequest("/visits/non-orphan","GET",t).then(({visits:n})=>n));Se(this,"getVisitsOverview",async()=>this.performRequest("/visits").then(({visits:t})=>t));Se(this,"getShortUrl",async(t,n)=>this.performRequest(`/short-urls/${t}`,"GET",{domain:n}));Se(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest(`/short-urls/${t}`,"DELETE",{domain:n}));Se(this,"updateShortUrl",async(t,n,r)=>this.performRequest(`/short-urls/${t}`,"PATCH",{domain:n},r));Se(this,"listTags",async()=>this.performRequest("/tags","GET",{withStats:"true"}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));Se(this,"tagsStats",async()=>this.performRequest("/tags/stats","GET").then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t})));Se(this,"deleteTags",async t=>this.performEmptyRequest("/tags","DELETE",{tags:t}).then(()=>({tags:t})));Se(this,"editTag",async(t,n)=>this.performEmptyRequest("/tags","PUT",{},{oldName:t,newName:n}).then(()=>({oldName:t,newName:n})));Se(this,"health",async()=>this.performRequest("/health","GET"));Se(this,"mercureInfo",async()=>this.performRequest("/mercure-info","GET"));Se(this,"listDomains",async()=>this.performRequest("/domains").then(({domains:t})=>t));Se(this,"editDomainRedirects",async t=>this.performRequest("/domains/redirects","PATCH",{},t));Se(this,"performRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)))));Se(this,"performEmptyRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)))));Se(this,"toFetchParams",(t,n,r={},i)=>{const o=qd(IX(r)),s=qn(o)?"":`?${o}`;return[`${AX(this.baseUrl,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});Se(this,"handleFetchError",t=>n=>{if(!DX(io(n)))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const f1={},jX=e=>typeof e=="function",BX=e=>{const{selectedServer:t}=e();if(!lC(t))throw new Error("There's no selected server or it is not found");return t},zX=e=>t=>{const{url:n,apiKey:r}=jX(t)?BX(t):t,i=`${n}_${r}`;return f1[i]||(f1[i]=new $X(e,n,r)),f1[i]},UX=e=>{e.serviceFactory("buildShlinkApiClient",zX,"HttpClient")};var bw={},VX={get exports(){return bw},set exports(e){bw=e}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return Dt.head.insertBefore(t,r),e}}var fJ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function _d(){for(var e=12,t="";e-- >0;)t+=fJ[Math.random()*62|0];return t}function nu(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function OC(e){return e.classList?nu(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function h6(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function dJ(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(h6(e[n]),'" ')},"").trim()}function c_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function PC(e){return e.size!==Gi.size||e.x!==Gi.x||e.y!==Gi.y||e.rotate!==Gi.rotate||e.flipX||e.flipY}function hJ(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function pJ(e){var t=e.transform,n=e.width,r=n===void 0?Sw:n,i=e.height,o=i===void 0?Sw:i,s=e.startCentered,a=s===void 0?!1:s,l="";return a&&s6?l+="translate(".concat(t.x/Ko-r/2,"em, ").concat(t.y/Ko-o/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/Ko,"em), calc(-50% + ").concat(t.y/Ko,"em)) "):l+="translate(".concat(t.x/Ko,"em, ").concat(t.y/Ko,"em) "),l+="scale(".concat(t.size/Ko*(t.flipX?-1:1),", ").concat(t.size/Ko*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var mJ=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, none)); + transform: rotate(var(--fa-rotate-angle, none)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function p6(){var e=a6,t=l6,n=He.cssPrefix,r=He.replacementClass,i=mJ;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var IM=!1;function d1(){He.autoAddCss&&!IM&&(uJ(p6()),IM=!0)}var gJ={mixout:function(){return{dom:{css:p6,insertCss:d1}}},hooks:function(){return{beforeDOMElementCreation:function(){d1()},beforeI2svg:function(){d1()}}}},Ro=js||{};Ro[Mo]||(Ro[Mo]={});Ro[Mo].styles||(Ro[Mo].styles={});Ro[Mo].hooks||(Ro[Mo].hooks={});Ro[Mo].shims||(Ro[Mo].shims=[]);var bi=Ro[Mo],m6=[],vJ=function e(){Dt.removeEventListener("DOMContentLoaded",e),nv=1,m6.map(function(t){return t()})},nv=!1;zo&&(nv=(Dt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Dt.readyState),nv||Dt.addEventListener("DOMContentLoaded",vJ));function yJ(e){zo&&(nv?setTimeout(e,0):m6.push(e))}function Kd(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?h6(e):"<".concat(t," ").concat(dJ(r),">").concat(o.map(Kd).join(""),"")}function FM(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var _J=function(t,n){return function(r,i,o,s){return t.call(n,r,i,o,s)}},h1=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=i!==void 0?_J(n,i):n,l,c,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function $M(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function Tw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=$M(t);typeof bi.hooks.addPack=="function"&&!i?bi.hooks.addPack(e,$M(t)):bi.styles[e]=ze(ze({},bi.styles[e]||{}),o),e==="fas"&&Tw("fa",t)}var Ep,Tp,Op,nc=bi.styles,xJ=bi.shims,SJ=(Ep={},xn(Ep,Mt,Object.values(vd[Mt])),xn(Ep,Zt,Object.values(vd[Zt])),Ep),kC=null,g6={},v6={},y6={},_6={},b6={},CJ=(Tp={},xn(Tp,Mt,Object.keys(md[Mt])),xn(Tp,Zt,Object.keys(md[Zt])),Tp);function EJ(e){return~oJ.indexOf(e)}function TJ(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!EJ(i)?i:null}var w6=function(){var t=function(o){return h1(nc,function(s,a,l){return s[l]=h1(a,o,{}),s},{})};g6=t(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var a=o[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){i[l.toString(16)]=s})}return i}),v6=t(function(i,o,s){if(i[s]=s,o[2]){var a=o[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){i[l]=s})}return i}),b6=t(function(i,o,s){var a=o[2];return i[s]=s,a.forEach(function(l){i[l]=s}),i});var n="far"in nc||He.autoFetchSvg,r=h1(xJ,function(i,o){var s=o[0],a=o[1],l=o[2];return a==="far"&&!n&&(a="fas"),typeof s=="string"&&(i.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:a,iconName:l}),i},{names:{},unicodes:{}});y6=r.names,_6=r.unicodes,kC=u_(He.styleDefault,{family:He.familyDefault})};cJ(function(e){kC=u_(e.styleDefault,{family:He.familyDefault})});w6();function MC(e,t){return(g6[e]||{})[t]}function OJ(e,t){return(v6[e]||{})[t]}function Ia(e,t){return(b6[e]||{})[t]}function x6(e){return y6[e]||{prefix:null,iconName:null}}function PJ(e){var t=_6[e],n=MC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Bs(){return kC}var RC=function(){return{prefix:null,iconName:null,rest:[]}};function u_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Mt:n,i=md[r][e],o=gd[r][e]||gd[r][i],s=e in bi.styles?e:null;return o||s||null}var jM=(Op={},xn(Op,Mt,Object.keys(vd[Mt])),xn(Op,Zt,Object.keys(vd[Zt])),Op);function f_(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},xn(t,Mt,"".concat(He.cssPrefix,"-").concat(Mt)),xn(t,Zt,"".concat(He.cssPrefix,"-").concat(Zt)),t),s=null,a=Mt;(e.includes(o[Mt])||e.some(function(c){return jM[Mt].includes(c)}))&&(a=Mt),(e.includes(o[Zt])||e.some(function(c){return jM[Zt].includes(c)}))&&(a=Zt);var l=e.reduce(function(c,f){var h=TJ(He.cssPrefix,f);if(nc[f]?(f=SJ[a].includes(f)?JQ[a][f]:f,s=f,c.prefix=f):CJ[a].indexOf(f)>-1?(s=f,c.prefix=u_(f,{family:a})):h?c.iconName=h:f!==He.replacementClass&&f!==o[Mt]&&f!==o[Zt]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=s==="fa"?x6(c.iconName):{},m=Ia(c.prefix,c.iconName);p.prefix&&(s=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!nc.far&&nc.fas&&!He.autoFetchSvg&&(c.prefix="fas")}return c},RC());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===Zt&&(nc.fass||He.autoFetchSvg)&&(l.prefix="fass",l.iconName=Ia(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=Bs()||"fas"),l}var kJ=function(){function e(){zQ(this,e),this.definitions={}}return UQ(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&f.forEach(function(h){typeof h=="string"&&(n[a][h]=c)}),n[a][l]=c}),n}}]),e}(),BM=[],rc={},gc={},MJ=Object.keys(gc);function RJ(e,t){var n=t.mixoutsTo;return BM=e,rc={},Object.keys(gc).forEach(function(r){MJ.indexOf(r)===-1&&delete gc[r]}),BM.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),tv(i[s])==="object"&&Object.keys(i[s]).forEach(function(a){n[s]||(n[s]={}),n[s][a]=i[s][a]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){rc[s]||(rc[s]=[]),rc[s].push(o[s])})}r.provides&&r.provides(gc)}),n}function Ow(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return zo?(tl("beforeI2svg",t),No("pseudoElements2svg",t),No("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;He.autoReplaceSvg===!1&&(He.autoReplaceSvg=!0),He.observeMutations=!0,yJ(function(){AJ({autoReplaceSvgRoot:n}),tl("watch",t)})}},DJ={icon:function(t){if(t===null)return null;if(tv(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ia(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=u_(t[0]);return{prefix:r,iconName:Ia(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match(eJ))){var i=f_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Bs(),iconName:Ia(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Bs();return{prefix:o,iconName:Ia(o,t)||t}}}},zr={noAuto:NJ,config:He,dom:LJ,parse:DJ,library:S6,findIconDefinition:Pw,toHtml:Kd},AJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Dt:n;(Object.keys(bi.styles).length>0||He.autoFetchSvg)&&zo&&He.autoReplaceSvg&&zr.dom.i2svg({node:r})};function d_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Kd(r)})}}),Object.defineProperty(e,"node",{get:function(){if(zo){var r=Dt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function IJ(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(PC(s)&&n.found&&!r.found){var a=n.width,l=n.height,c={x:a/l/2,y:.5};i.style=c_(ze(ze({},o),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function FJ(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(He.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ze(ze({},i),{},{id:s}),children:r}]}]}function NC(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,c=e.maskId,f=e.titleId,h=e.extra,p=e.watchable,m=p===void 0?!1:p,g=r.found?r:n,v=g.width,w=g.height,y=i==="fak",b=[He.replacementClass,o?"".concat(He.cssPrefix,"-").concat(o):""].filter(function(z){return h.classes.indexOf(z)===-1}).filter(function(z){return z!==""||!!z}).concat(h.classes).join(" "),x={children:[],attributes:ze(ze({},h.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(w)})},T=y&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/w*16*.0625,"em")}:{};m&&(x.attributes[el]=""),l&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||_d())},children:[l]}),delete x.attributes.title);var P=ze(ze({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:ze(ze({},T),h.styles)}),k=r.found&&n.found?No("generateAbstractMask",P)||{children:[],attributes:{}}:No("generateAbstractIcon",P)||{children:[],attributes:{}},N=k.children,D=k.attributes;return P.children=N,P.attributes=D,a?FJ(P):IJ(P)}function zM(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,a=e.watchable,l=a===void 0?!1:a,c=ze(ze(ze({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(c[el]="");var f=ze({},s.styles);PC(i)&&(f.transform=pJ({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=c_(f);h.length>0&&(c.style=h);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function $J(e){var t=e.content,n=e.title,r=e.extra,i=ze(ze(ze({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=c_(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var p1=bi.styles;function kw(e){var t=e[0],n=e[1],r=e.slice(4),i=xC(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(He.cssPrefix,"-").concat(Aa.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Aa.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(Aa.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var jJ={found:!1,width:512,height:512};function BJ(e,t){!c6&&!He.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Mw(e,t){var n=t;return t==="fa"&&He.styleDefault!==null&&(t=Bs()),new Promise(function(r,i){if(No("missingIconAbstract"),n==="fa"){var o=x6(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&p1[t]&&p1[t][e]){var s=p1[t][e];return r(kw(s))}BJ(e,t),r(ze(ze({},jJ),{},{icon:He.showMissingIcons&&e?No("missingIconAbstract")||{}:{}}))})}var UM=function(){},Rw=He.measurePerformance&&_p&&_p.mark&&_p.measure?_p:{mark:UM,measure:UM},Ju='FA "6.3.0"',zJ=function(t){return Rw.mark("".concat(Ju," ").concat(t," begins")),function(){return C6(t)}},C6=function(t){Rw.mark("".concat(Ju," ").concat(t," ends")),Rw.measure("".concat(Ju," ").concat(t),"".concat(Ju," ").concat(t," begins"),"".concat(Ju," ").concat(t," ends"))},LC={begin:zJ,end:C6},fm=function(){};function VM(e){var t=e.getAttribute?e.getAttribute(el):null;return typeof t=="string"}function UJ(e){var t=e.getAttribute?e.getAttribute(CC):null,n=e.getAttribute?e.getAttribute(EC):null;return t&&n}function VJ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function HJ(){if(He.autoReplaceSvg===!0)return dm.replace;var e=dm[He.autoReplaceSvg];return e||dm.replace}function WJ(e){return Dt.createElementNS("http://www.w3.org/2000/svg",e)}function YJ(e){return Dt.createElement(e)}function E6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?WJ:YJ:n;if(typeof e=="string")return Dt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var o=e.children||[];return o.forEach(function(s){i.appendChild(E6(s,{ceFn:r}))}),i}function qJ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var dm={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(E6(i),n)}),n.getAttribute(el)===null&&He.keepOriginalSource){var r=Dt.createComment(qJ(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~OC(n).indexOf(He.replacementClass))return dm.replace(t);var i=new RegExp("".concat(He.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(a,l){return l===He.replacementClass||l.match(i)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(a){return Kd(a)}).join(` +`);n.setAttribute(el,""),n.innerHTML=s}};function HM(e){e()}function T6(e,t){var n=typeof t=="function"?t:fm;if(e.length===0)n();else{var r=HM;He.mutateApproach===XQ&&(r=js.requestAnimationFrame||HM),r(function(){var i=HJ(),o=LC.begin("mutate");e.map(i),o(),n()})}}var DC=!1;function O6(){DC=!0}function Nw(){DC=!1}var rv=null;function WM(e){if(DM&&He.observeMutations){var t=e.treeCallback,n=t===void 0?fm:t,r=e.nodeCallback,i=r===void 0?fm:r,o=e.pseudoElementsCallback,s=o===void 0?fm:o,a=e.observeMutationsRoot,l=a===void 0?Dt:a;rv=new DM(function(c){if(!DC){var f=Bs();nu(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!VM(h.addedNodes[0])&&(He.searchPseudoElements&&s(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&He.searchPseudoElements&&s(h.target.parentNode),h.type==="attributes"&&VM(h.target)&&~iJ.indexOf(h.attributeName))if(h.attributeName==="class"&&UJ(h.target)){var p=f_(OC(h.target)),m=p.prefix,g=p.iconName;h.target.setAttribute(CC,m||f),g&&h.target.setAttribute(EC,g)}else VJ(h.target)&&i(h.target)})}}),zo&&rv.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function GJ(){rv&&rv.disconnect()}function ZJ(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],a=o.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function KJ(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=f_(OC(e));return i.prefix||(i.prefix=Bs()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=OJ(i.prefix,e.innerText)||MC(i.prefix,Ew(e.innerText))),!i.iconName&&He.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function XJ(e){var t=nu(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return He.autoA11y&&(n?t["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(r||_d()):(t["aria-hidden"]="true",t.focusable="false")),t}function QJ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Gi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function YM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=KJ(e),r=n.iconName,i=n.prefix,o=n.rest,s=XJ(e),a=Ow("parseNodeAttributes",{},e),l=t.styleParser?ZJ(e):[];return ze({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Gi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var JJ=bi.styles;function P6(e){var t=He.autoReplaceSvg==="nest"?YM(e,{styleParser:!1}):YM(e);return~t.extra.classes.indexOf(u6)?No("generateLayersText",e,t):No("generateSvgReplacementMutation",e,t)}var zs=new Set;TC.map(function(e){zs.add("fa-".concat(e))});Object.keys(md[Mt]).map(zs.add.bind(zs));Object.keys(md[Zt]).map(zs.add.bind(zs));zs=Gd(zs);function qM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!zo)return Promise.resolve();var n=Dt.documentElement.classList,r=function(h){return n.add("".concat(AM,"-").concat(h))},i=function(h){return n.remove("".concat(AM,"-").concat(h))},o=He.autoFetchSvg?zs:TC.map(function(f){return"fa-".concat(f)}).concat(Object.keys(JJ));o.includes("fa")||o.push("fa");var s=[".".concat(u6,":not([").concat(el,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(el,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=nu(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();var l=LC.begin("onTree"),c=a.reduce(function(f,h){try{var p=P6(h);p&&f.push(p)}catch(m){c6||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){T6(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),h(p)})})}function eee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;P6(e).then(function(n){n&&T6([n],t)})}function tee(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Pw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Pw(i||{})),e(r,ze(ze({},n),{},{mask:i}))}}var nee=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Gi:r,o=n.symbol,s=o===void 0?!1:o,a=n.mask,l=a===void 0?null:a,c=n.maskId,f=c===void 0?null:c,h=n.title,p=h===void 0?null:h,m=n.titleId,g=m===void 0?null:m,v=n.classes,w=v===void 0?[]:v,y=n.attributes,b=y===void 0?{}:y,x=n.styles,T=x===void 0?{}:x;if(t){var P=t.prefix,k=t.iconName,N=t.icon;return d_(ze({type:"icon"},t),function(){return tl("beforeDOMElementCreation",{iconDefinition:t,params:n}),He.autoA11y&&(p?b["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(g||_d()):(b["aria-hidden"]="true",b.focusable="false")),NC({icons:{main:kw(N),mask:l?kw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:k,transform:ze(ze({},Gi),i),symbol:s,title:p,maskId:f,titleId:g,extra:{attributes:b,styles:T,classes:w}})})}},ree={mixout:function(){return{icon:tee(nee)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=qM,n.nodeCallback=eee,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Dt:r,o=n.callback,s=o===void 0?function(){}:o;return qM(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,s=r.titleId,a=r.prefix,l=r.transform,c=r.symbol,f=r.mask,h=r.maskId,p=r.extra;return new Promise(function(m,g){Promise.all([Mw(i,a),f.iconName?Mw(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(v){var w=xC(v,2),y=w[0],b=w[1];m([n,NC({icons:{main:y,mask:b},prefix:a,iconName:i,transform:l,symbol:c,maskId:h,title:o,titleId:s,extra:p,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,a=n.styles,l=c_(a);l.length>0&&(i.style=l);var c;return PC(s)&&(c=No("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},iee={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return d_({type:"layer"},function(){tl("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(He.cssPrefix,"-layers")].concat(Gd(o)).join(" ")},children:s}]})}}}},oee={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,s=r.classes,a=s===void 0?[]:s,l=r.attributes,c=l===void 0?{}:l,f=r.styles,h=f===void 0?{}:f;return d_({type:"counter",content:n},function(){return tl("beforeDOMElementCreation",{content:n,params:r}),$J({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(He.cssPrefix,"-layers-counter")].concat(Gd(a))}})})}}}},see={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Gi:i,s=r.title,a=s===void 0?null:s,l=r.classes,c=l===void 0?[]:l,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return d_({type:"text",content:n},function(){return tl("beforeDOMElementCreation",{content:n,params:r}),zM({content:n,transform:ze(ze({},Gi),o),title:a,extra:{attributes:h,styles:m,classes:["".concat(He.cssPrefix,"-layers-text")].concat(Gd(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,s=r.extra,a=null,l=null;if(s6){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/c,l=f.height/c}return He.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,zM({content:n.innerHTML,width:a,height:l,transform:o,title:i,extra:s,watchable:!0})])}}},aee=new RegExp('"',"ug"),GM=[1105920,1112319];function lee(e){var t=e.replace(aee,""),n=wJ(t,0),r=n>=GM[0]&&n<=GM[1],i=t.length===2?t[0]===t[1]:!1;return{value:Ew(i?t[0]:t),isSecondary:r||i}}function ZM(e,t){var n="".concat(KQ).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=nu(e.children),s=o.filter(function(N){return N.getAttribute(Cw)===t})[0],a=js.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(tJ),c=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&f!=="none"&&f!==""){var h=a.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Zt:Mt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?gd[p][l[2].toLowerCase()]:nJ[p][c],g=lee(h),v=g.value,w=g.isSecondary,y=l[0].startsWith("FontAwesome"),b=MC(m,v),x=b;if(y){var T=PJ(v);T.iconName&&T.prefix&&(b=T.iconName,m=T.prefix)}if(b&&!w&&(!s||s.getAttribute(CC)!==m||s.getAttribute(EC)!==x)){e.setAttribute(n,x),s&&e.removeChild(s);var P=QJ(),k=P.extra;k.attributes[Cw]=t,Mw(b,m).then(function(N){var D=NC(ze(ze({},P),{},{icons:{main:N,mask:RC()},prefix:m,iconName:x,extra:k,watchable:!0})),z=Dt.createElement("svg");t==="::before"?e.insertBefore(z,e.firstChild):e.appendChild(z),z.outerHTML=D.map(function(A){return Kd(A)}).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function cee(e){return Promise.all([ZM(e,"::before"),ZM(e,"::after")])}function uee(e){return e.parentNode!==document.head&&!~QQ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Cw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function KM(e){if(zo)return new Promise(function(t,n){var r=nu(e.querySelectorAll("*")).filter(uee).map(cee),i=LC.begin("searchPseudoElements");O6(),Promise.all(r).then(function(){i(),Nw(),t()}).catch(function(){i(),Nw(),n()})})}var fee={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=KM,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Dt:r;He.searchPseudoElements&&KM(i)}}},XM=!1,dee={mixout:function(){return{dom:{unwatch:function(){O6(),XM=!0}}}},hooks:function(){return{bootstrap:function(){WM(Ow("mutationObserverCallbacks",{}))},noAuto:function(){GJ()},watch:function(n){var r=n.observeMutationsRoot;XM?Nw():WM(Ow("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},QM=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),s=o[0],a=o.slice(1).join("-");if(s&&a==="h")return r.flipX=!0,r;if(s&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(s){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},hee={mixout:function(){return{parse:{transform:function(n){return QM(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=QM(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,a={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),h={transform:"".concat(l," ").concat(c," ").concat(f)},p={transform:"translate(".concat(s/2*-1," -256)")},m={outer:a,inner:h,path:p};return{tag:"g",attributes:ze({},m.outer),children:[{tag:"g",attributes:ze({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ze(ze({},r.icon.attributes),m.path)}]}]}}}},m1={x:0,y:0,width:"100%",height:"100%"};function JM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function pee(e){return e.tag==="g"?e.children:[e]}var mee={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?f_(i.split(" ").map(function(s){return s.trim()})):RC();return o.prefix||(o.prefix=Bs()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.mask,a=n.maskId,l=n.transform,c=o.width,f=o.icon,h=s.width,p=s.icon,m=hJ({transform:l,containerWidth:h,iconWidth:c}),g={tag:"rect",attributes:ze(ze({},m1),{},{fill:"white"})},v=f.children?{children:f.children.map(JM)}:{},w={tag:"g",attributes:ze({},m.inner),children:[JM(ze({tag:f.tag,attributes:ze(ze({},f.attributes),m.path)},v))]},y={tag:"g",attributes:ze({},m.outer),children:[w]},b="mask-".concat(a||_d()),x="clip-".concat(a||_d()),T={tag:"mask",attributes:ze(ze({},m1),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,y]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:pee(p)},T]};return r.push(P,{tag:"rect",attributes:ze({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(b,")")},m1)}),{children:r,attributes:i}}}},gee={provides:function(t){var n=!1;js.matchMedia&&(n=js.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:ze(ze({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=ze(ze({},o),{},{attributeName:"opacity"}),a={tag:"circle",attributes:ze(ze({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:ze(ze({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ze(ze({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:ze(ze({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ze(ze({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ze(ze({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ze(ze({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},vee={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},yee=[gJ,ree,iee,oee,see,fee,dee,hee,mee,gee,vee];RJ(yee,{mixoutsTo:zr});zr.noAuto;zr.config;zr.library;zr.dom;var Lw=zr.parse;zr.findIconDefinition;zr.toHtml;var _ee=zr.icon;zr.layer;zr.text;zr.counter;var S={},bee={get exports(){return S},set exports(e){S=e}},wee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xee=wee,See=xee;function k6(){}function M6(){}M6.resetWarningCache=k6;var Cee=function(){function e(r,i,o,s,a,l){if(l!==See){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:M6,resetWarningCache:k6};return n.PropTypes=n,n};bee.exports=Cee();function e3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Tee(e,t){if(e==null)return{};var n=Eee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dw(e){return Oee(e)||Pee(e)||kee(e)||Mee()}function Oee(e){if(Array.isArray(e))return Aw(e)}function Pee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kee(e,t){if(e){if(typeof e=="string")return Aw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Aw(e,t)}}function Aw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return N6(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var f=t.attributes[c];switch(c){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=Aee(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[R6(c)]=f}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=Tee(n,Lee);return i.attrs.style=vs(vs({},i.attrs.style),s),e.apply(void 0,[t.tag,vs(vs({},i.attrs),a)].concat(Dw(r)))}var L6=!1;try{L6=!0}catch{}function Iee(){if(!L6&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function t3(e){if(e&&iv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Lw.icon)return Lw.icon(e);if(e===null)return null;if(e&&iv(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function g1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ic({},e,t):{}}var Fe=V.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,s=e.title,a=e.titleId,l=e.maskId,c=t3(n),f=g1("classes",[].concat(Dw(Ree(e)),Dw(o.split(" ")))),h=g1("transform",typeof e.transform=="string"?Lw.transform(e.transform):e.transform),p=g1("mask",t3(r)),m=_ee(c,vs(vs(vs(vs({},f),h),p),{},{symbol:i,title:s,titleId:a,maskId:l}));if(!m)return Iee("Could not find icon",c),null;var g=m.abstract,v={ref:t};return Object.keys(e).forEach(function(w){Fe.defaultProps.hasOwnProperty(w)||(v[w]=e[w])}),Fee(g[0],v)});Fe.displayName="FontAwesomeIcon";Fe.propTypes={beat:S.bool,border:S.bool,beatFade:S.bool,bounce:S.bool,className:S.string,fade:S.bool,flash:S.bool,mask:S.oneOfType([S.object,S.array,S.string]),maskId:S.string,fixedWidth:S.bool,inverse:S.bool,flip:S.oneOf([!0,!1,"horizontal","vertical","both"]),icon:S.oneOfType([S.object,S.array,S.string]),listItem:S.bool,pull:S.oneOf(["right","left"]),pulse:S.bool,rotation:S.oneOf([0,90,180,270]),shake:S.bool,size:S.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:S.bool,spinPulse:S.bool,spinReverse:S.bool,symbol:S.oneOfType([S.bool,S.string]),title:S.string,titleId:S.string,transform:S.oneOfType([S.string,S.object]),swapOpacity:S.bool};Fe.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var Fee=N6.bind(null,V.createElement),D6=H.createContext(),A6=H.createContext();function n3(e){var t=e.children,n=H.useState(null),r=n[0],i=n[1],o=H.useRef(!1);H.useEffect(function(){return function(){o.current=!0}},[]);var s=H.useCallback(function(a){o.current||i(a)},[]);return H.createElement(D6.Provider,{value:r},H.createElement(A6.Provider,{value:s},t))}var I6=function(t){return Array.isArray(t)?t[0]:t},F6=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u")return!1;var t=si(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Kee(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Qr(o)||!no(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Xee(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Qr(i)||!no(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Qee={name:"applyStyles",enabled:!0,phase:"write",fn:Kee,effect:Xee,requires:["computeStyles"]};function Qi(e){return e.split("-")[0]}var Va=Math.max,ov=Math.min,Fc=Math.round;function Fw(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B6(){return!/^((?!chrome|android).)*safari/i.test(Fw())}function $c(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Qr(e)&&(i=e.offsetWidth>0&&Fc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Fc(r.height)/e.offsetHeight||1);var s=nl(e)?si(e):window,a=s.visualViewport,l=!B6()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,f=(r.top+(l&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function FC(e){var t=$c(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function z6(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lo(e){return si(e).getComputedStyle(e)}function Jee(e){return["table","td","th"].indexOf(no(e))>=0}function ta(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function h_(e){return no(e)==="html"?e:e.assignedSlot||e.parentNode||(IC(e)?e.host:null)||ta(e)}function s3(e){return!Qr(e)||Lo(e).position==="fixed"?null:e.offsetParent}function ete(e){var t=/firefox/i.test(Fw()),n=/Trident/i.test(Fw());if(n&&Qr(e)){var r=Lo(e);if(r.position==="fixed")return null}var i=h_(e);for(IC(i)&&(i=i.host);Qr(i)&&["html","body"].indexOf(no(i))<0;){var o=Lo(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Qd(e){for(var t=si(e),n=s3(e);n&&Jee(n)&&Lo(n).position==="static";)n=s3(n);return n&&(no(n)==="html"||no(n)==="body"&&Lo(n).position==="static")?t:n||ete(e)||t}function $C(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Of(e,t,n){return Va(e,ov(t,n))}function tte(e,t,n){var r=Of(e,t,n);return r>n?n:r}function U6(){return{top:0,right:0,bottom:0,left:0}}function V6(e){return Object.assign({},U6(),e)}function H6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var nte=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,V6(typeof t!="number"?t:H6(t,Xd))};function rte(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Qi(n.placement),l=$C(a),c=[Cr,ii].indexOf(a)>=0,f=c?"height":"width";if(!(!o||!s)){var h=nte(i.padding,n),p=FC(o),m=l==="y"?Sr:Cr,g=l==="y"?ri:ii,v=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],w=s[l]-n.rects.reference[l],y=Qd(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=v/2-w/2,T=h[m],P=b-p[f]-h[g],k=b/2-p[f]/2+x,N=Of(T,k,P),D=l;n.modifiersData[r]=(t={},t[D]=N,t.centerOffset=N-k,t)}}function ite(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||z6(t.elements.popper,i)&&(t.elements.arrow=i))}const ote={name:"arrow",enabled:!0,phase:"main",fn:rte,effect:ite,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jc(e){return e.split("-")[1]}var ste={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ate(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Fc(t*i)/i||0,y:Fc(n*i)/i||0}}function a3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,m=p===void 0?0:p,g=s.y,v=g===void 0?0:g,w=typeof f=="function"?f({x:m,y:v}):{x:m,y:v};m=w.x,v=w.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=Cr,T=Sr,P=window;if(c){var k=Qd(n),N="clientHeight",D="clientWidth";if(k===si(n)&&(k=ta(n),Lo(k).position!=="static"&&a==="absolute"&&(N="scrollHeight",D="scrollWidth")),k=k,i===Sr||(i===Cr||i===ii)&&o===bd){T=ri;var z=h&&k===P&&P.visualViewport?P.visualViewport.height:k[N];v-=z-r.height,v*=l?1:-1}if(i===Cr||(i===Sr||i===ri)&&o===bd){x=ii;var A=h&&k===P&&P.visualViewport?P.visualViewport.width:k[D];m-=A-r.width,m*=l?1:-1}}var Y=Object.assign({position:a},c&&ste),q=f===!0?ate({x:m,y:v}):{x:m,y:v};if(m=q.x,v=q.y,l){var ee;return Object.assign({},Y,(ee={},ee[T]=b?"0":"",ee[x]=y?"0":"",ee.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",ee))}return Object.assign({},Y,(t={},t[T]=b?v+"px":"",t[x]=y?m+"px":"",t.transform="",t))}function lte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Qi(t.placement),variation:jc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,a3(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,a3(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const cte={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lte,data:{}};var Pp={passive:!0};function ute(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=si(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,Pp)}),a&&l.addEventListener("resize",n.update,Pp),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Pp)}),a&&l.removeEventListener("resize",n.update,Pp)}}const fte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ute,data:{}};var dte={left:"right",right:"left",bottom:"top",top:"bottom"};function hm(e){return e.replace(/left|right|bottom|top/g,function(t){return dte[t]})}var hte={start:"end",end:"start"};function l3(e){return e.replace(/start|end/g,function(t){return hte[t]})}function jC(e){var t=si(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function BC(e){return $c(ta(e)).left+jC(e).scrollLeft}function pte(e,t){var n=si(e),r=ta(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=B6();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+BC(e),y:l}}function mte(e){var t,n=ta(e),r=jC(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Va(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Va(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+BC(e),l=-r.scrollTop;return Lo(i||n).direction==="rtl"&&(a+=Va(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function zC(e){var t=Lo(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function W6(e){return["html","body","#document"].indexOf(no(e))>=0?e.ownerDocument.body:Qr(e)&&zC(e)?e:W6(h_(e))}function Pf(e,t){var n;t===void 0&&(t=[]);var r=W6(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=si(r),s=i?[o].concat(o.visualViewport||[],zC(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Pf(h_(s)))}function $w(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gte(e,t){var n=$c(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function c3(e,t,n){return t===$6?$w(pte(e,n)):nl(t)?gte(t,n):$w(mte(ta(e)))}function vte(e){var t=Pf(h_(e)),n=["absolute","fixed"].indexOf(Lo(e).position)>=0,r=n&&Qr(e)?Qd(e):e;return nl(r)?t.filter(function(i){return nl(i)&&z6(i,r)&&no(i)!=="body"}):[]}function yte(e,t,n,r){var i=t==="clippingParents"?vte(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var f=c3(e,c,r);return l.top=Va(f.top,l.top),l.right=ov(f.right,l.right),l.bottom=ov(f.bottom,l.bottom),l.left=Va(f.left,l.left),l},c3(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Y6(e){var t=e.reference,n=e.element,r=e.placement,i=r?Qi(r):null,o=r?jc(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Sr:l={x:s,y:t.y-n.height};break;case ri:l={x:s,y:t.y+t.height};break;case ii:l={x:t.x+t.width,y:a};break;case Cr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?$C(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Ic:l[c]=l[c]-(t[f]/2-n[f]/2);break;case bd:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function wd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?$ee:a,c=n.rootBoundary,f=c===void 0?$6:c,h=n.elementContext,p=h===void 0?ju:h,m=n.altBoundary,g=m===void 0?!1:m,v=n.padding,w=v===void 0?0:v,y=V6(typeof w!="number"?w:H6(w,Xd)),b=p===ju?jee:ju,x=e.rects.popper,T=e.elements[g?b:p],P=yte(nl(T)?T:T.contextElement||ta(e.elements.popper),l,f,s),k=$c(e.elements.reference),N=Y6({reference:k,element:x,strategy:"absolute",placement:i}),D=$w(Object.assign({},x,N)),z=p===ju?D:k,A={top:P.top-z.top+y.top,bottom:z.bottom-P.bottom+y.bottom,left:P.left-z.left+y.left,right:z.right-P.right+y.right},Y=e.modifiersData.offset;if(p===ju&&Y){var q=Y[i];Object.keys(A).forEach(function(ee){var K=[ii,ri].indexOf(ee)>=0?1:-1,te=[Sr,ri].indexOf(ee)>=0?"y":"x";A[ee]+=q[te]*K})}return A}function _te(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?j6:l,f=jc(r),h=f?a?o3:o3.filter(function(g){return jc(g)===f}):Xd,p=h.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=h);var m=p.reduce(function(g,v){return g[v]=wd(e,{placement:v,boundary:i,rootBoundary:o,padding:s})[Qi(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function bte(e){if(Qi(e)===AC)return[];var t=hm(e);return[l3(e),t,l3(t)]}function wte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,v=n.allowedAutoPlacements,w=t.options.placement,y=Qi(w),b=y===w,x=l||(b||!g?[hm(w)]:bte(w)),T=[w].concat(x).reduce(function(G,ne){return G.concat(Qi(ne)===AC?_te(t,{placement:ne,boundary:f,rootBoundary:h,padding:c,flipVariations:g,allowedAutoPlacements:v}):ne)},[]),P=t.rects.reference,k=t.rects.popper,N=new Map,D=!0,z=T[0],A=0;A=0,te=K?"width":"height",oe=wd(t,{placement:Y,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),se=K?ee?ii:Cr:ee?ri:Sr;P[te]>k[te]&&(se=hm(se));var Z=hm(se),$=[];if(o&&$.push(oe[q]<=0),a&&$.push(oe[se]<=0,oe[Z]<=0),$.every(function(G){return G})){z=Y,D=!1;break}N.set(Y,$)}if(D)for(var I=g?3:1,B=function(ne){var ae=T.find(function(me){var O=N.get(me);if(O)return O.slice(0,ne).every(function(R){return R})});if(ae)return z=ae,"break"},re=I;re>0;re--){var W=B(re);if(W==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const xte={name:"flip",enabled:!0,phase:"main",fn:wte,requiresIfExists:["offset"],data:{_skip:!1}};function u3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function f3(e){return[Sr,ii,ri,Cr].some(function(t){return e[t]>=0})}function Ste(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=wd(t,{elementContext:"reference"}),a=wd(t,{altBoundary:!0}),l=u3(s,r),c=u3(a,i,o),f=f3(l),h=f3(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Cte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ste};function Ete(e,t,n){var r=Qi(e),i=[Cr,Sr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Cr,ii].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Tte(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=j6.reduce(function(f,h){return f[h]=Ete(h,t.rects,o),f},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const Ote={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tte};function Pte(e){var t=e.state,n=e.name;t.modifiersData[n]=Y6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kte={name:"popperOffsets",enabled:!0,phase:"read",fn:Pte,data:{}};function Mte(e){return e==="x"?"y":"x"}function Rte(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,v=g===void 0?0:g,w=wd(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),y=Qi(t.placement),b=jc(t.placement),x=!b,T=$C(y),P=Mte(T),k=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,z=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(k){if(o){var ee,K=T==="y"?Sr:Cr,te=T==="y"?ri:ii,oe=T==="y"?"height":"width",se=k[T],Z=se+w[K],$=se-w[te],I=m?-D[oe]/2:0,B=b===Ic?N[oe]:D[oe],re=b===Ic?-D[oe]:-N[oe],W=t.elements.arrow,G=m&&W?FC(W):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U6(),ae=ne[K],me=ne[te],O=Of(0,N[oe],G[oe]),R=x?N[oe]/2-I-O-ae-A.mainAxis:B-O-ae-A.mainAxis,F=x?-N[oe]/2+I+O+me+A.mainAxis:re+O+me+A.mainAxis,Q=t.elements.arrow&&Qd(t.elements.arrow),X=Q?T==="y"?Q.clientTop||0:Q.clientLeft||0:0,le=(ee=Y==null?void 0:Y[T])!=null?ee:0,ve=se+R-le-X,De=se+F-le,fe=Of(m?ov(Z,ve):Z,se,m?Va($,De):$);k[T]=fe,q[T]=fe-se}if(a){var ye,be=T==="x"?Sr:Cr,Oe=T==="x"?ri:ii,Ae=k[P],Ne=P==="y"?"height":"width",Le=Ae+w[be],ue=Ae-w[Oe],he=[Sr,Cr].indexOf(y)!==-1,we=(ye=Y==null?void 0:Y[P])!=null?ye:0,_e=he?Le:Ae-N[Ne]-D[Ne]-we+A.altAxis,Ee=he?Ae+N[Ne]+D[Ne]-we-A.altAxis:ue,Me=m&&he?tte(_e,Ae,Ee):Of(m?_e:Le,Ae,m?Ee:ue);k[P]=Me,q[P]=Me-Ae}t.modifiersData[r]=q}}const Nte={name:"preventOverflow",enabled:!0,phase:"main",fn:Rte,requiresIfExists:["offset"]};function Lte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Dte(e){return e===si(e)||!Qr(e)?jC(e):Lte(e)}function Ate(e){var t=e.getBoundingClientRect(),n=Fc(t.width)/e.offsetWidth||1,r=Fc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ite(e,t,n){n===void 0&&(n=!1);var r=Qr(t),i=Qr(t)&&Ate(t),o=ta(t),s=$c(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((no(t)!=="body"||zC(o))&&(a=Dte(t)),Qr(t)?(l=$c(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=BC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Fte(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function $te(e){var t=Fte(e);return Zee.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function jte(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Bte(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var d3={placement:"bottom",modifiers:[],strategy:"absolute"};function h3(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}function Ze(e,t){if(e==null)return{};var n=tne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nne(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function UC(e){document.body.style.paddingRight=e>0?`${e}px`:null}function rne(){return document.body.clientWidtht[n]||n).join(" "):e}function Tr(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function J6(e,t){const n=Array.isArray(t)?t:[t];let{length:r}=n,i;const o={};for(;r>0;)r-=1,i=n[r],o[i]=e[i];return o}let g3={};function zw(e){g3[e]||(typeof console<"u"&&console.error(e),g3[e]=!0)}function e5(e,t){return function(r,i,o,...s){return r[i]!==null&&typeof r[i]<"u"&&zw(`"${i}" property of "${o}" has been deprecated. +${t}`),e(r,i,o,...s)}}const one=typeof window=="object"&&window.Element||function(){};function VC(e,t,n){if(!(e[t]instanceof one))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}const Us=S.oneOfType([S.string,S.func,VC,S.shape({current:S.any})]),ke=S.oneOfType([S.func,S.string,S.shape({$$typeof:S.symbol,render:S.func}),S.arrayOf(S.oneOfType([S.func,S.string,S.shape({$$typeof:S.symbol,render:S.func})]))]),rl={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},sv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],yo={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},vt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},sne=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],HC=!!(typeof window<"u"&&window.document&&window.document.createElement);function ane(e){return e&&typeof e=="object"?"current"in e:!1}function t5(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function av(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function v3(e){const t=typeof e,n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&t5(e)==="[object Symbol]")return n;if(av(e)){const i=typeof e.valueOf=="function"?e.valueOf():e;e=av(i)?`${i}`:i}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");const r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function lne(e){if(!av(e))return!1;const t=t5(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function n5(e){if(ane(e))return e.current;if(lne(e))return e();if(typeof e=="string"&&HC){let t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll(`#${e}`)),!t.length)throw new Error(`The target '${e}' could not be identified in the dom, tip: check spelling`);return t}return e}function lv(e){return e===null?!1:Array.isArray(e)||HC&&typeof e.length=="number"}function Bc(e,t){const n=n5(e);return t?lv(n)?n:n===null?[]:[n]:lv(n)?n[0]:n}const cne=["touchstart","click"];function une(e,t,n,r){let i=e;lv(i)||(i=[i]);let o=n;if(typeof o=="string"&&(o=o.split(/\s+/)),!lv(i)||typeof t!="function"||!Array.isArray(o))throw new Error(` + The first argument of this function must be DOM node or an array on DOM nodes or NodeList. + The second must be a function. + The third is a string or an array of strings that represents DOM events + `);return Array.prototype.forEach.call(o,s=>{Array.prototype.forEach.call(i,a=>{a.addEventListener(s,t,r)})}),function(){Array.prototype.forEach.call(o,a=>{Array.prototype.forEach.call(i,l=>{l.removeEventListener(a,t,r)})})}}const r5=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];S.oneOfType([S.bool,S.string]),S.string,S.object;const fne=["className","cssModule","noGutters","tag","widths"],dne=["xs","sm","md","lg","xl","xxl"],Ll=S.oneOfType([S.number,S.string]),hne={tag:ke,noGutters:e5(S.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:S.string,cssModule:S.object,xs:Ll,sm:Ll,md:Ll,lg:Ll,xl:Ll,xxl:Ll,widths:S.array},pne={tag:"div",widths:dne};function er(e){const{className:t,cssModule:n,noGutters:r,tag:i,widths:o}=e,s=Ze(e,fne),a=[];o.forEach((c,f)=>{let h=e[c];if(delete s[c],!h)return;const p=!f;a.push(p?`row-cols-${h}`:`row-cols-${c}-${h}`)});const l=je(ge(t,r?"gx-0":null,"row",a),n);return V.createElement(i,Be({},s,{className:l}))}er.propTypes=hne;er.defaultProps=pne;const mne=["className","cssModule","widths","tag"],i5=["xs","sm","md","lg","xl","xxl"],y3=S.oneOfType([S.number,S.string]),Dl=S.oneOfType([S.bool,S.number,S.string,S.shape({size:S.oneOfType([S.bool,S.number,S.string]),order:y3,offset:y3})]),gne={tag:ke,xs:Dl,sm:Dl,md:Dl,lg:Dl,xl:Dl,xxl:Dl,className:S.string,cssModule:S.object,widths:S.array},vne={tag:"div",widths:i5},_3=(e,t,n)=>n===!0||n===""?e?"col":`col-${t}`:n==="auto"?e?"col-auto":`col-${t}-auto`:e?`col-${n}`:`col-${t}-${n}`,yne=(e,t,n=i5)=>{const r=e,i=[];return n.forEach((o,s)=>{let a=r[o];if(delete r[o],!a&&a!=="")return;const l=!s;if(av(a)){const c=l?"-":`-${o}-`,f=_3(l,o,a.size);i.push(je(ge({[f]:a.size||a.size==="",[`order${c}${a.order}`]:a.order||a.order===0,[`offset${c}${a.offset}`]:a.offset||a.offset===0}),t))}else{const c=_3(l,o,a);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function WC(e){const{className:t,cssModule:n,widths:r,tag:i}=e,o=Ze(e,mne);let{modifiedAttributes:s,colClasses:a}=yne(o,n,r);a.length||a.push("col");const l=je(ge(t,a),n);return V.createElement(i,Be({},s,{className:l}))}WC.propTypes=gne;WC.defaultProps=vne;const _ne=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],bne={children:S.node,className:S.string,color:S.string,container:S.oneOfType([S.bool,S.string]),cssModule:S.object,dark:S.bool,expand:S.oneOfType([S.bool,S.string]),fixed:S.string,full:S.bool,light:S.bool,role:S.string,sticky:S.string,tag:ke},wne={tag:"nav",expand:!1,container:"fluid"},xne=e=>e===!1?!1:e===!0||e==="xs"?"navbar-expand":`navbar-expand-${e}`;function YC(e){const{expand:t,className:n,cssModule:r,light:i,dark:o,fixed:s,sticky:a,color:l,container:c,tag:f,children:h}=e,p=Ze(e,_ne),m=je(ge(n,"navbar",xne(t),{"navbar-light":i,"navbar-dark":o,[`bg-${l}`]:l,[`fixed-${s}`]:s,[`sticky-${a}`]:a}),r),g=c&&c===!0?"container":`container-${c}`;return V.createElement(f,Be({},p,{className:m}),c?V.createElement("div",{className:g},h):h)}YC.propTypes=bne;YC.defaultProps=wne;const Sne=["className","cssModule","tag"],Cne={className:S.string,cssModule:S.object,tag:ke},Ene={tag:"a"};function qC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,Sne),o=je(ge(t,"navbar-brand"),n);return V.createElement(r,Be({},i,{className:o}))}qC.propTypes=Cne;qC.defaultProps=Ene;S.string,S.object,S.bool;const Tne=["className","cssModule","children","tag"],One={className:S.string,cssModule:S.object,tag:ke,type:S.string,children:S.node},Pne={tag:"button",type:"button"};function GC(e){const{className:t,cssModule:n,children:r,tag:i}=e,o=Ze(e,Tne),s=je(ge(t,"navbar-toggler"),n);return V.createElement(i,Be({"aria-label":"Toggle navigation"},o,{className:s}),r||V.createElement("span",{className:je("navbar-toggler-icon",n)}))}GC.propTypes=One;GC.defaultProps=Pne;const kne=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],Mne={card:S.bool,className:S.string,cssModule:S.object,fill:S.bool,horizontal:S.oneOf(["center","end"]),justified:S.bool,navbar:S.bool,pills:S.bool,tabs:S.bool,tag:ke,vertical:S.oneOfType([S.bool,S.string])},Rne={tag:"ul",vertical:!1},Nne=e=>e===!1?!1:e===!0||e==="xs"?"flex-column":`flex-${e}-column`;function p_(e){const{className:t,cssModule:n,tabs:r,pills:i,vertical:o,horizontal:s,justified:a,fill:l,navbar:c,card:f,tag:h}=e,p=Ze(e,kne),m=je(ge(t,c?"navbar-nav":"nav",s?`justify-content-${s}`:!1,Nne(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":a,"nav-fill":l}),n);return V.createElement(h,Be({},p,{className:m}))}p_.propTypes=Mne;p_.defaultProps=Rne;const Lne=["className","cssModule","active","tag"],Dne={active:S.bool,className:S.string,cssModule:S.object,tag:ke},Ane={tag:"li"};function ZC(e){const{className:t,cssModule:n,active:r,tag:i}=e,o=Ze(e,Lne),s=je(ge(t,"nav-item",r?"active":!1),n);return V.createElement(i,Be({},o,{className:s}))}ZC.propTypes=Dne;ZC.defaultProps=Ane;const Ine=["className","cssModule","active","tag","innerRef"],Fne={active:S.bool,className:S.string,cssModule:S.object,disabled:S.bool,href:S.any,innerRef:S.oneOfType([S.object,S.func,S.string]),onClick:S.func,tag:ke},$ne={tag:"a"};class KC extends V.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled){t.preventDefault();return}this.props.href==="#"&&t.preventDefault(),this.props.onClick&&this.props.onClick(t)}render(){let t=this.props,{className:n,cssModule:r,active:i,tag:o,innerRef:s}=t,a=Ze(t,Ine);const l=je(ge(n,"nav-link",{disabled:a.disabled,active:i}),r);return V.createElement(o,Be({},a,{ref:s,onClick:this.onClick,className:l}))}}KC.propTypes=Fne;KC.defaultProps=$ne;var o5=KC;S.string,S.node,S.string,S.object,S.string;S.bool,S.string,S.object;const jne=["className","cssModule","variant","innerRef"],Bne={active:S.bool,"aria-label":S.string,onClick:S.func,variant:S.oneOf(["white"]),className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func])},zne={"aria-label":"close"};function XC(e){const{className:t,cssModule:n,variant:r,innerRef:i}=e,o=Ze(e,jne),s=je(ge(t,"btn-close",r&&`btn-close-${r}`));return V.createElement("button",Be({ref:i,type:"button",className:s},o))}XC.propTypes=Bne;XC.defaultProps=zne;const Une=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],Vne={active:S.bool,"aria-label":S.string,block:S.bool,children:S.node,className:S.string,cssModule:S.object,close:S.bool,color:S.string,disabled:S.bool,innerRef:S.oneOfType([S.object,S.func,S.string]),onClick:S.func,outline:S.bool,size:S.string,tag:ke},Hne={color:"secondary",tag:"button"};function mt(e){const t=H.useCallback(w=>{if(e.disabled){w.preventDefault();return}if(e.onClick)return e.onClick(w)},[e.onClick,e.disabled]);let{active:n,"aria-label":r,block:i,className:o,close:s,cssModule:a,color:l,outline:c,size:f,tag:h,innerRef:p}=e,m=Ze(e,Une);if(s)return V.createElement(XC,m);const g=`btn${c?"-outline":""}-${l}`,v=je(ge(o,"btn",g,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),a);return m.href&&h==="button"&&(h="a"),V.createElement(h,Be({type:h==="button"&&m.onClick?"button":void 0},m,{className:v,ref:p,onClick:t,"aria-label":r}))}mt.propTypes=Vne;mt.defaultProps=Hne;S.func,S.func,S.func,S.bool,S.string,S.object;const xd=V.createContext({}),s5=V.createContext({}),Wne=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],Yne={a11y:S.bool,disabled:S.bool,direction:S.oneOf(["up","down","start","end","left","right"]),group:S.bool,isOpen:S.bool,nav:S.bool,active:S.bool,size:S.string,tag:ke,toggle:S.func,children:S.node,className:S.string,cssModule:S.object,dropup:S.bool,inNavbar:S.bool,setActiveFromChild:S.bool,menuRole:S.oneOf(["listbox","menu"])},qne={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Gne=[vt.space,vt.enter,vt.up,vt.down,vt.end,vt.home];class m_ extends V.Component{constructor(t){super(t),this.addEvents=this.addEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.removeEvents=this.removeEvents.bind(this),this.toggle=this.toggle.bind(this),this.handleMenuRef=this.handleMenuRef.bind(this),this.handleToggleRef=this.handleToggleRef.bind(this),this.containerRef=V.createRef(),this.menuRef=V.createRef(),this.toggleRef=V.createRef()}componentDidMount(){this.handleProps()}componentDidUpdate(t){this.props.isOpen!==t.isOpen&&this.handleProps()}componentWillUnmount(){this.removeEvents()}handleMenuRef(t){this.menuRef.current=t}handleToggleRef(t){this.toggleRef.current=t}handleDocumentClick(t){if(t&&(t.which===3||t.type==="keyup"&&t.which!==vt.tab))return;const n=this.getContainer(),r=this.getMenu(),i=this.getToggle(),o=t.target===i,s=r&&r.contains(t.target)&&r!==t.target;let a=!1;n&&(a=n.classList.contains("input-group")&&n.classList.contains("dropdown")&&t.target.tagName==="INPUT"),!((o&&!a||s)&&(t.type!=="keyup"||t.which===vt.tab))&&this.toggle(t)}handleKeyDown(t){const n=t.target.getAttribute("role")==="menuitem"||t.target.getAttribute("role")==="option",r=this.getMenuCtrl()===t.target,i=vt.tab===t.which;if(!(/input|textarea/i.test(t.target.tagName)||i&&!this.props.a11y||i&&!(n||r))&&((Gne.indexOf(t.which)!==-1||t.which>=48&&t.which<=90)&&t.preventDefault(),!this.props.disabled&&(r&&([vt.space,vt.enter,vt.up,vt.down].indexOf(t.which)>-1?(this.props.isOpen||this.toggle(t),setTimeout(()=>this.getMenuItems()[0].focus())):this.props.isOpen&&i?(t.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&t.which===vt.esc&&this.toggle(t)),this.props.isOpen&&n))){if([vt.tab,vt.esc].indexOf(t.which)>-1)this.toggle(t),this.getMenuCtrl().focus();else if([vt.space,vt.enter].indexOf(t.which)>-1)t.target.click(),this.getMenuCtrl().focus();else if([vt.down,vt.up].indexOf(t.which)>-1||[vt.n,vt.p].indexOf(t.which)>-1&&t.ctrlKey){const o=this.getMenuItems();let s=o.indexOf(t.target);vt.up===t.which||vt.p===t.which&&t.ctrlKey?s=s!==0?s-1:o.length-1:(vt.down===t.which||vt.n===t.which&&t.ctrlKey)&&(s=s===o.length-1?0:s+1),o[s].focus()}else if(vt.end===t.which){const o=this.getMenuItems();o[o.length-1].focus()}else if(vt.home===t.which)this.getMenuItems()[0].focus();else if(t.which>=48&&t.which<=90){const o=this.getMenuItems(),s=String.fromCharCode(t.which).toLowerCase();for(let a=0;adocument.addEventListener(t,this.handleDocumentClick,!0))}removeEvents(){["click","touchstart","keyup"].forEach(t=>document.removeEventListener(t,this.handleDocumentClick,!0))}toggle(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}render(){const t=Tr(this.props,["toggle","disabled","inNavbar","a11y"]),{className:n,cssModule:r,direction:i,isOpen:o,group:s,size:a,nav:l,setActiveFromChild:c,active:f,tag:h,menuRole:p}=t,m=Ze(t,Wne),g=h||(l?"li":"div");let v=!1;c&&V.Children.map(this.props.children[1].props.children,y=>{y&&y.props.active&&(v=!0)});const w=je(ge(n,l&&f?"active":!1,c&&v?"active":!1,{"btn-group":s,[`btn-group-${a}`]:!!a,dropdown:!s,dropup:i==="up",dropstart:i==="start"||i==="left",dropend:i==="end"||i==="right",show:o,"nav-item":l}),r);return this.context.insideInputGroup?V.createElement(xd.Provider,{value:this.getContextValue()},V.createElement(n3,null,V.Children.map(this.props.children,y=>V.cloneElement(y,{onKeyDown:this.handleKeyDown})))):V.createElement(xd.Provider,{value:this.getContextValue()},V.createElement(n3,null,V.createElement(g,Be({},m,{[typeof g=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:w}))))}}m_.propTypes=Yne;m_.defaultProps=qne;m_.contextType=s5;var ru=m_;const Zne={children:S.node};function g_(e){return V.createElement(ru,Be({group:!0},e))}g_.propTypes=Zne;S.string,S.string,S.object,S.string,S.string,S.bool;S.string,S.string,S.object,S.string;const Kne=["className","cssModule","divider","tag","header","active","text"],Xne={children:S.node,active:S.bool,disabled:S.bool,divider:S.bool,tag:ke,header:S.bool,onClick:S.func,className:S.string,cssModule:S.object,toggle:S.bool,text:S.bool},Qne={tag:"button",toggle:!0};class v_ extends V.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this),this.getTabIndex=this.getTabIndex.bind(this)}onClick(t){const{disabled:n,header:r,divider:i,text:o}=this.props;if(n||r||i||o){t.preventDefault();return}this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t)}getRole(){return this.context.menuRole==="listbox"?"option":"menuitem"}getTabIndex(){const{disabled:t,header:n,divider:r,text:i}=this.props;return t||n||r||i?"-1":"0"}render(){const t=this.getTabIndex(),n=t>-1?this.getRole():void 0;let r=Tr(this.props,["toggle"]),{className:i,cssModule:o,divider:s,tag:a,header:l,active:c,text:f}=r,h=Ze(r,Kne);const p=je(ge(i,{disabled:h.disabled,"dropdown-item":!s&&!l&&!f,active:c,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":f}),o);return a==="button"&&(l?a="h6":s?a="div":h.href?a="a":f&&(a="span")),V.createElement(a,Be({type:a==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:t,role:n,className:p,onClick:this.onClick}))}}v_.propTypes=Xne;v_.defaultProps=Qne;v_.contextType=xd;var Ve=v_;const Jne=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],ere={tag:ke,children:S.node.isRequired,dark:S.bool,end:S.bool,flip:S.bool,modifiers:S.array,className:S.string,cssModule:S.object,style:S.object,persist:S.bool,strategy:S.string,container:Us,updateOnSelect:S.bool,right:e5(S.bool,'Please use "end" instead.')},tre={tag:"div",flip:!0,modifiers:[]},nre={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class y_ extends V.Component{getRole(){return this.context.menuRole==="listbox"?"listbox":"menu"}render(){const t=this.props,{className:n,cssModule:r,dark:i,end:o,right:s,tag:a,flip:l,modifiers:c,persist:f,strategy:h,container:p,updateOnSelect:m}=t,g=Ze(t,Jne),v=je(ge(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":o||s,show:this.context.isOpen}),r),w=a;if(f||this.context.isOpen&&!this.context.inNavbar){const T=`${nre[this.context.direction]||"bottom"}-${o||s?"end":"start"}`,P=[...c,{name:"flip",enabled:!!l}],k=V.createElement(Z6,{placement:T,modifiers:P,strategy:h},({ref:N,style:D,placement:z,update:A})=>{let Y=qe(qe({},this.props.style),D);const q=ee=>{N(ee);const{onMenuRef:K}=this.context;K&&K(ee)};return V.createElement(w,Be({tabIndex:"-1",role:this.getRole(),ref:q},g,{style:Y,"aria-hidden":!this.context.isOpen,className:v,"data-popper-placement":z,onClick:()=>m&&A()}))});return p?za.createPortal(k,Bc(p)):k}const{onMenuRef:y}=this.context;return V.createElement(w,Be({tabIndex:"-1",role:this.getRole()},g,{ref:y,"aria-hidden":!this.context.isOpen,className:v,"data-popper-placement":g.placement}))}}y_.propTypes=ere;y_.defaultProps=tre;y_.contextType=xd;var ml=y_;const rre=["className","color","cssModule","caret","split","nav","tag","innerRef"],ire={caret:S.bool,color:S.string,children:S.node,className:S.string,cssModule:S.object,disabled:S.bool,onClick:S.func,"aria-haspopup":S.bool,split:S.bool,tag:ke,nav:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func])},ore={color:"secondary","aria-haspopup":!0};class __ extends V.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled||this.context.disabled){t.preventDefault();return}this.props.nav&&!this.props.tag&&t.preventDefault(),this.props.onClick&&this.props.onClick(t),this.context.toggle(t)}getRole(){return this.context.menuRole||this.props["aria-haspopup"]}render(){const t=this.props,{className:n,color:r,cssModule:i,caret:o,split:s,nav:a,tag:l,innerRef:c}=t,f=Ze(t,rre),h=f["aria-label"]||"Toggle Dropdown",p=je(ge(n,{"dropdown-toggle":o||s,"dropdown-toggle-split":s,"nav-link":a}),i),m=typeof f.children<"u"?f.children:V.createElement("span",{className:"visually-hidden"},h);let g;return a&&!l?(g="a",f.href="#"):l?g=l:(g=mt,f.color=r,f.cssModule=i),this.context.inNavbar?V.createElement(g,Be({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m})):V.createElement(Qte,{innerRef:c},({ref:v})=>{const w=y=>{v(y);const{onToggleRef:b}=this.context;b&&b(y)};return V.createElement(g,Be({},f,{[typeof g=="string"?"ref":"innerRef"]:w,className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m}))})}}__.propTypes=ire;__.defaultProps=ore;__.contextType=xd;var iu=__;const sre=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],are=qe(qe({},Vo.propTypes),{},{children:S.oneOfType([S.arrayOf(S.node),S.node]),tag:ke,baseClass:S.string,baseClassActive:S.string,className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func])}),lre=qe(qe({},Vo.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:rl.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Qt(e){const{tag:t,baseClass:n,baseClassActive:r,className:i,cssModule:o,children:s,innerRef:a}=e,l=Ze(e,sre),c=J6(l,sv),f=Tr(l,sv);return V.createElement(Vo,c,h=>{const m=je(ge(i,n,h==="entered"&&r),o);return V.createElement(t,Be({className:m},f,{ref:a}),s)})}Qt.propTypes=are;Qt.defaultProps=lre;V.createContext({});S.node,S.string,S.object,S.bool,S.oneOfType([S.object,S.string,S.func]),S.oneOfType([S.array,S.string]).isRequired,S.func.isRequired;S.string,S.object,S.oneOfType([S.object,S.string,S.func]),S.node,S.oneOfType([S.array,S.string]),S.bool;S.node,S.string,S.object,S.oneOfType([S.object,S.string,S.func]),S.string.isRequired;S.node,S.string,S.object,S.oneOfType([S.object,S.string,S.func]);const cre=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],ure=qe(qe({},Vo.propTypes),{},{horizontal:S.bool,isOpen:S.bool,children:S.oneOfType([S.arrayOf(S.node),S.node]),tag:ke,className:S.node,navbar:S.bool,cssModule:S.object,innerRef:S.shape({current:S.object})}),fre=qe(qe({},Vo.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:rl.Collapse}),dre={[yo.ENTERING]:"collapsing",[yo.ENTERED]:"collapse show",[yo.EXITING]:"collapsing",[yo.EXITED]:"collapse"};function hre(e){return dre[e]||"collapse"}class QC extends H.Component{constructor(t){super(t),this.state={dimension:null},this.nodeRef=t.innerRef||V.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(n=>{this[n]=this[n].bind(this)})}onEntering(t,n){const r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onEntering(r,n)}onEntered(t,n){const r=this.getNode();this.setState({dimension:null}),this.props.onEntered(r,n)}onExit(){const t=this.getNode();this.setState({dimension:this.getDimension(t)}),this.props.onExit(t)}onExiting(){const t=this.getNode();this.getDimension(t),this.setState({dimension:0}),this.props.onExiting(t)}onExited(){const t=this.getNode();this.setState({dimension:null}),this.props.onExited(t)}getNode(){return this.nodeRef.current}getDimension(t){return this.props.horizontal?t.scrollWidth:t.scrollHeight}render(){const t=this.props,{tag:n,horizontal:r,isOpen:i,className:o,navbar:s,cssModule:a,children:l,innerRef:c}=t,f=Ze(t,cre),{dimension:h}=this.state,p=J6(f,sv),m=Tr(f,sv);return V.createElement(Vo,Be({},p,{in:i,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),g=>{let v=hre(g);const w=je(ge(o,r&&"collapse-horizontal",v,s&&"navbar-collapse"),a),y=h===null?null:{[r?"width":"height"]:h};return V.createElement(n,Be({},m,{style:qe(qe({},m.style),y),className:w,ref:this.nodeRef}),l)})}}QC.propTypes=ure;QC.defaultProps=fre;var a5=QC;S.string.isRequired,S.string,S.node,S.object,S.oneOfType([S.object,S.string,S.func]);S.node,S.string,S.string,S.object,S.oneOfType([S.object,S.func,S.string]),S.bool;const pre=["className","cssModule","color","body","inverse","outline","tag","innerRef"],mre={body:S.bool,className:S.string,color:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func]),inverse:S.bool,outline:S.bool,tag:ke},gre={tag:"div"};function Er(e){const{className:t,cssModule:n,color:r,body:i,inverse:o,outline:s,tag:a,innerRef:l}=e,c=Ze(e,pre),f=je(ge(t,"card",o?"text-white":!1,i?"card-body":!1,r?`${s?"border":"bg"}-${r}`:!1),n);return V.createElement(a,Be({},c,{className:f,ref:l}))}Er.propTypes=mre;Er.defaultProps=gre;S.string,S.object;S.string,S.object;S.string,S.object;const vre=["className","cssModule","innerRef","tag"],yre={className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func]),tag:ke},_re={tag:"div"};function il(e){const{className:t,cssModule:n,innerRef:r,tag:i}=e,o=Ze(e,vre),s=je(ge(t,"card-body"),n);return V.createElement(i,Be({},o,{className:s,ref:r}))}il.propTypes=yre;il.defaultProps=_re;S.oneOfType([S.object,S.func,S.string]),S.string,S.object;const bre=["className","cssModule","tag"],wre={className:S.string,cssModule:S.object,tag:ke},xre={tag:"div"};function JC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,bre),o=je(ge(t,"card-footer"),n);return V.createElement(r,Be({},i,{className:o}))}JC.propTypes=wre;JC.defaultProps=xre;const Sre=["className","cssModule","tag"],Cre={className:S.string,cssModule:S.object,tag:ke},Ere={tag:"div"};function ol(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,Sre),o=je(ge(t,"card-header"),n);return V.createElement(r,Be({},i,{className:o}))}ol.propTypes=Cre;ol.defaultProps=Ere;S.bool,S.string,S.object,S.bool;S.string,S.object;const mm=V.createContext({}),Tre=["in","children","cssModule","slide","tag","className"];class b_ extends V.Component{constructor(t){super(t),this.state={startAnimation:!1},this.onEnter=this.onEnter.bind(this),this.onEntering=this.onEntering.bind(this),this.onExit=this.onExit.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onEnter(t,n){this.setState({startAnimation:!1}),this.props.onEnter(t,n)}onEntering(t,n){const{offsetHeight:r}=t;return this.setState({startAnimation:!0}),this.props.onEntering(t,n),r}onExit(t){this.setState({startAnimation:!1}),this.props.onExit(t)}onExiting(t){this.setState({startAnimation:!0}),t.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(t)}onExited(t){t.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(t)}render(){const t=this.props,{in:n,children:r,cssModule:i,slide:o,tag:s,className:a}=t,l=Ze(t,Tre);return V.createElement(Vo,Be({},l,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),c=>{const{direction:f}=this.context,h=c===yo.ENTERED||c===yo.EXITING,p=(c===yo.ENTERING||c===yo.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),m=c===yo.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),g=je(ge(a,"carousel-item",h&&"active",p,m),i);return V.createElement(s,{className:g},r)})}}b_.propTypes=qe(qe({},Vo.propTypes),{},{tag:ke,in:S.bool,cssModule:S.object,children:S.node,slide:S.bool,className:S.string});b_.defaultProps=qe(qe({},Vo.defaultProps),{},{tag:"div",timeout:rl.Carousel,slide:!0});b_.contextType=mm;var l5=b_;const Ore=40,c5={activeIndex:S.number,next:S.func.isRequired,previous:S.func.isRequired,keyboard:S.bool,pause:S.oneOf(["hover",!1]),ride:S.oneOf(["carousel"]),interval:S.oneOfType([S.number,S.string,S.bool]),children:S.array,mouseEnter:S.func,mouseLeave:S.func,slide:S.bool,dark:S.bool,fade:S.bool,cssModule:S.object,className:S.string,enableTouch:S.bool},Pre=Object.keys(c5),kre={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class eE extends V.Component{constructor(t){super(t),this.handleKeyPress=this.handleKeyPress.bind(this),this.renderItems=this.renderItems.bind(this),this.hoverStart=this.hoverStart.bind(this),this.hoverEnd=this.hoverEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.touchStartX=0,this.touchStartY=0,this.state={activeIndex:this.props.activeIndex,direction:"end",indicatorClicked:!1}}componentDidMount(){this.props.ride==="carousel"&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}static getDerivedStateFromProps(t,n){let r=null,{activeIndex:i,direction:o,indicatorClicked:s}=n;return t.activeIndex!==i&&(t.activeIndex===i+1?o="end":t.activeIndex===i-1?o="start":t.activeIndex{this.props.next()},parseInt(this.props.interval,10)))}clearInterval(){clearInterval(this.cycleInterval)}hoverStart(...t){this.props.pause==="hover"&&this.clearInterval(),this.props.mouseEnter&&this.props.mouseEnter(...t)}hoverEnd(...t){this.props.pause==="hover"&&this.setInterval(),this.props.mouseLeave&&this.props.mouseLeave(...t)}renderItems(t,n){const{slide:r}=this.props;return V.createElement("div",{className:n},t.map((i,o)=>{const s=o===this.state.activeIndex;return V.cloneElement(i,{in:s,slide:r})}))}render(){const{cssModule:t,slide:n,className:r,dark:i,fade:o}=this.props,s=Tr(this.props,Pre),a=je(ge(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),t),l=je(ge("carousel-inner"),t),c=this.props.children.filter(y=>y!=null&&typeof y!="boolean");if(c.every(y=>y.type===l5))return V.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),V.createElement(mm.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const y=c[0],b=c[1],x=c[2];return V.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),V.createElement(mm.Provider,{value:this.getContextValue()},this.renderItems(y,l),b,x))}const h=c[0],p=y=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(y))},m=V.cloneElement(h,{onClickHandler:p}),g=c[1],v=c[2],w=c[3];return V.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),V.createElement(mm.Provider,{value:this.getContextValue()},m,this.renderItems(g,l),v,w))}}eE.propTypes=c5;eE.defaultProps=kre;var Mre=eE;const Rre=["direction","onClickHandler","cssModule","directionText","className"];function Uw(e){const{direction:t,onClickHandler:n,cssModule:r,directionText:i,className:o}=e,s=Ze(e,Rre),a=je(ge(o,`carousel-control-${t}`),r),l=je(ge(`carousel-control-${t}-icon`),r),c=je(ge("visually-hidden"),r);return V.createElement("a",Be({},s,{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),V.createElement("span",{className:l,"aria-hidden":"true"}),V.createElement("span",{className:c},i||t))}Uw.propTypes={direction:S.oneOf(["prev","next"]).isRequired,onClickHandler:S.func.isRequired,cssModule:S.object,directionText:S.string,className:S.string};const Nre=["items","activeIndex","cssModule","onClickHandler","className"];function u5(e){const{items:t,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=e,s=Ze(e,Nre),a=je(ge(o,"carousel-indicators"),r),l=t.map((c,f)=>{const h=je(ge({active:n===f}),r);return V.createElement("button",{"aria-label":c.caption,"data-bs-target":!0,type:"button",key:`${c.key||Object.values(c).join("")}`,onClick:p=>{p.preventDefault(),i(f)},className:h})});return V.createElement("div",Be({className:a},s),l)}u5.propTypes={activeIndex:S.number.isRequired,className:S.string,cssModule:S.object,items:S.array.isRequired,onClickHandler:S.func.isRequired};function f5(e){const{captionHeader:t,captionText:n,cssModule:r,className:i}=e,o=je(ge(i,"carousel-caption","d-none","d-md-block"),r);return V.createElement("div",{className:o},V.createElement("h3",null,t),V.createElement("p",null,n))}f5.propTypes={captionHeader:S.node,captionText:S.node.isRequired,className:S.string,cssModule:S.object};const Lre=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],Dre={items:S.array.isRequired,indicators:S.bool,controls:S.bool,autoPlay:S.bool,defaultActiveIndex:S.number,activeIndex:S.number,next:S.func,previous:S.func,goToIndex:S.func};class d5 extends H.Component{constructor(t){super(t),this.animating=!1,this.state={activeIndex:t.defaultActiveIndex||0},this.next=this.next.bind(this),this.previous=this.previous.bind(this),this.goToIndex=this.goToIndex.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onExiting(){this.animating=!0}onExited(){this.animating=!1}next(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===this.props.items.length-1?0:t.activeIndex+1}))}previous(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===0?this.props.items.length-1:t.activeIndex-1}))}goToIndex(t){this.animating||this.setState({activeIndex:t})}render(){const t=this.props,{defaultActiveIndex:n,autoPlay:r,indicators:i,controls:o,items:s,goToIndex:a}=t,l=Ze(t,Lre),{activeIndex:c}=this.state,f=s.map(h=>{const p=h.key||h.src;return V.createElement(l5,{onExiting:this.onExiting,onExited:this.onExited,key:p},V.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),V.createElement(f5,{captionText:h.caption,captionHeader:h.header||h.caption}))});return V.createElement(Mre,Be({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&V.createElement(u5,{items:s,activeIndex:l.activeIndex||c,onClickHandler:a||this.goToIndex}),f,o&&V.createElement(Uw,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&V.createElement(Uw,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}d5.propTypes=Dre;d5.defaultProps={controls:!0,indicators:!0,autoPlay:!0};S.string,S.object;const Are=["className","cssModule","tag"],Ire={className:S.string,cssModule:S.object,tag:ke},Fre={tag:"p"};function tE(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,Are),o=je(ge(t,"card-text"),n);return V.createElement(r,Be({},i,{className:o}))}tE.propTypes=Ire;tE.defaultProps=Fre;const $re=["className","cssModule","tag"],jre={className:S.string,cssModule:S.object,tag:ke},Bre={tag:"div"};function nE(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,$re),o=je(ge(t,"card-title"),n);return V.createElement(r,Be({},i,{className:o}))}nE.propTypes=jre;nE.defaultProps=Bre;const zre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function Ure(){}const Vre={children:S.oneOfType([S.node,S.func]).isRequired,popperClassName:S.string,placement:S.string,placementPrefix:S.string,arrowClassName:S.string,hideArrow:S.bool,tag:ke,isOpen:S.bool,cssModule:S.object,offset:S.arrayOf(S.number),fallbackPlacements:S.array,flip:S.bool,container:Us,target:Us.isRequired,modifiers:S.array,strategy:S.string,boundariesElement:S.oneOfType([S.string,VC]),onClosed:S.func,fade:S.bool,transition:S.shape(Qt.propTypes)},Hre={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Ure,fade:!0,transition:qe({},Qt.defaultProps)};class rE extends V.Component{constructor(t){super(t),this.setTargetNode=this.setTargetNode.bind(this),this.getTargetNode=this.getTargetNode.bind(this),this.getRef=this.getRef.bind(this),this.onClosed=this.onClosed.bind(this),this.state={isOpen:t.isOpen}}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}componentDidUpdate(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}onClosed(){this.props.onClosed(),this.setState({isOpen:!1})}getTargetNode(){return this.targetNode}getContainerNode(){return Bc(this.props.container)}getRef(t){this._element=t}setTargetNode(t){this.targetNode=typeof t=="string"?Bc(t):t}renderChildren(){const t=this.props,{cssModule:n,children:r,isOpen:i,flip:o,target:s,offset:a,fallbackPlacements:l,placementPrefix:c,arrowClassName:f,hideArrow:h,popperClassName:p,tag:m,container:g,modifiers:v,strategy:w,boundariesElement:y,onClosed:b,fade:x,transition:T,placement:P}=t,k=Ze(t,zre),N=je(ge("arrow",f),n),D=je(ge(p,c?`${c}-auto`:""),this.props.cssModule),z=v.map(ee=>ee.name),Y=[...[{name:"offset",options:{offset:a}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:y}}].filter(ee=>!z.includes(ee.name)),...v],q=qe(qe(qe({},Qt.defaultProps),T),{},{baseClass:x?T.baseClass:"",timeout:x?T.timeout:0});return V.createElement(Qt,Be({},q,k,{in:i,onExited:this.onClosed,tag:m}),V.createElement(Z6,{referenceElement:this.targetNode,modifiers:Y,placement:P,strategy:w},({ref:ee,style:K,placement:te,isReferenceHidden:oe,arrowProps:se,update:Z})=>V.createElement("div",{ref:ee,style:K,className:D,"data-popper-placement":te,"data-popper-reference-hidden":oe?"true":void 0},typeof r=="function"?r({update:Z}):r,!h&&V.createElement("span",{ref:se.ref,className:N,style:se.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():za.createPortal(V.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}rE.propTypes=Vre;rE.defaultProps=Hre;var Wre=rE;S.object.isRequired;Us.isRequired;const w_={children:S.oneOfType([S.node,S.func]),placement:S.oneOf(sne),target:Us.isRequired,container:Us,isOpen:S.bool,disabled:S.bool,hideArrow:S.bool,boundariesElement:S.oneOfType([S.string,VC]),className:S.string,innerClassName:S.string,arrowClassName:S.string,popperClassName:S.string,cssModule:S.object,toggle:S.func,autohide:S.bool,placementPrefix:S.string,delay:S.oneOfType([S.shape({show:S.number,hide:S.number}),S.number]),modifiers:S.array,strategy:S.string,offset:S.arrayOf(S.number),innerRef:S.oneOfType([S.func,S.string,S.object]),trigger:S.string,fade:S.bool,flip:S.bool},h5={show:0,hide:50},Yre={isOpen:!1,hideArrow:!1,autohide:!1,delay:h5,toggle:function(){},trigger:"click",fade:!0};function p5(e,t){return t&&(e===t||t.contains(e))}function b3(e,t=[]){return t&&t.length&&t.filter(n=>p5(e,n))[0]}class iE extends V.Component{constructor(t){super(t),this._targets=[],this.currentTargetElement=null,this.addTargetEvents=this.addTargetEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.removeTargetEvents=this.removeTargetEvents.bind(this),this.toggle=this.toggle.bind(this),this.showWithDelay=this.showWithDelay.bind(this),this.hideWithDelay=this.hideWithDelay.bind(this),this.onMouseOverTooltipContent=this.onMouseOverTooltipContent.bind(this),this.onMouseLeaveTooltipContent=this.onMouseLeaveTooltipContent.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.onEscKeyDown=this.onEscKeyDown.bind(this),this.getRef=this.getRef.bind(this),this.state={isOpen:t.isOpen},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.updateTarget()}componentWillUnmount(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}handleDocumentClick(t){const n=this.props.trigger.split(" ");n.indexOf("legacy")>-1&&(this.props.isOpen||b3(t.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!p5(t.target,this._popover)?this.hideWithDelay(t):this.props.isOpen||this.showWithDelay(t)):n.indexOf("click")>-1&&b3(t.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(t):this.showWithDelay(t))}onMouseOverTooltipContent(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}onMouseLeaveTooltipContent(t){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),t.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide")))}onEscKeyDown(t){t.key==="Escape"&&this.hide(t)}getRef(t){const{innerRef:n}=this.props;n&&(typeof n=="function"?n(t):typeof n=="object"&&(n.current=t)),this._popover=t}getDelay(t){const{delay:n}=this.props;return typeof n=="object"?isNaN(n[t])?h5[t]:n[t]:n}getCurrentTarget(t){if(!t)return null;const n=this._targets.indexOf(t);return n>=0?this._targets[n]:this.getCurrentTarget(t.parentElement)}show(t){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=t?t.currentTarget||this.getCurrentTarget(t.target):null,t&&t.composedPath&&typeof t.composedPath=="function"){const n=t.composedPath();this.currentTargetElement=n&&n[0]||this.currentTargetElement}this.toggle(t)}}showWithDelay(t){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,t),this.getDelay("show"))}hide(t){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(t))}hideWithDelay(t){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide"))}clearShowTimeout(){clearTimeout(this._showTimeout),this._showTimeout=void 0}clearHideTimeout(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}addEventOnTargets(t,n,r){this._targets.forEach(i=>{i.addEventListener(t,n,r)})}removeEventOnTargets(t,n,r){this._targets.forEach(i=>{i.removeEventListener(t,n,r)})}addTargetEvents(){if(this.props.trigger){let t=this.props.trigger.split(" ");t.indexOf("manual")===-1&&((t.indexOf("click")>-1||t.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(t.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),t.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}removeTargetEvents(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}updateTarget(){const t=Bc(this.props.target,!0);t!==this._targets&&(this.removeTargetEvents(),this._targets=t?Array.from(t):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}toggle(t){return this.props.disabled||!this._isMounted?t&&t.preventDefault():this.props.toggle(t)}render(){this.props.isOpen&&this.updateTarget();const t=this.currentTargetElement||this._targets[0];if(!t)return null;const{className:n,cssModule:r,innerClassName:i,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:h,container:p,modifiers:m,strategy:g,offset:v,fade:w,flip:y,children:b}=this.props,x=Tr(this.props,Object.keys(w_)),T=je(h,r),P=je(i,r);return V.createElement(Wre,{className:n,target:t,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:T,container:p,modifiers:m,strategy:g,offset:v,cssModule:r,fade:w,flip:y},({update:k})=>V.createElement("div",Be({},x,{ref:this.getRef,className:P,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown}),typeof b=="function"?b({update:k}):b))}}iE.propTypes=w_;iE.defaultProps=Yre;var m5=iE;const qre={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Jd(e){const t=ge("popover","show",e.popperClassName),n=ge("popover-inner",e.innerClassName);return V.createElement(m5,Be({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}Jd.propTypes=w_;Jd.defaultProps=qre;const Gre=["defaultOpen"];class Zre extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return V.createElement(Jd,Be({isOpen:this.state.isOpen,toggle:this.toggle},Tr(this.props,Gre)))}}Zre.propTypes=qe({defaultOpen:S.bool},Jd.propTypes);S.string,S.object;S.string,S.object;const Kre=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],Xre={animated:S.bool,bar:S.bool,barAriaLabelledBy:S.string,barAriaValueText:S.string,barClassName:S.string,barStyle:S.object,children:S.node,className:S.string,cssModule:S.object,color:S.string,max:S.oneOfType([S.string,S.number]),min:S.oneOfType([S.string,S.number]),multi:S.bool,striped:S.bool,style:S.object,tag:ke,value:S.oneOfType([S.string,S.number])},Qre={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function oE(e){const{children:t,className:n,barClassName:r,cssModule:i,value:o,min:s,max:a,animated:l,striped:c,color:f,bar:h,multi:p,tag:m,style:g,barStyle:v,barAriaValueText:w,barAriaLabelledBy:y}=e,b=Ze(e,Kre),x=v3(o)/v3(a)*100,T=je(ge(n,"progress"),i),k={className:je(ge("progress-bar",h&&n||r,l?"progress-bar-animated":null,f?`bg-${f}`:null,c||l?"progress-bar-striped":null),i),style:qe(qe(qe({},h?g:{}),v),{},{width:`${x}%`}),role:"progressbar","aria-valuenow":o,"aria-valuemin":s,"aria-valuemax":a,"aria-valuetext":w,"aria-labelledby":y,children:t};return h?V.createElement(m,Be({},b,k)):V.createElement(m,Be({},b,{style:g,className:T}),p?t:V.createElement("div",k))}oE.propTypes=Xre;oE.defaultProps=Qre;const Jre={children:S.node.isRequired,node:S.any};class g5 extends V.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return HC?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),za.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}g5.propTypes=Jre;var v5=g5;function cv(){}const w3=S.shape(Qt.propTypes),y5={autoFocus:S.bool,backdrop:S.oneOfType([S.bool,S.oneOf(["static"])]),backdropClassName:S.string,backdropTransition:w3,centered:S.bool,children:S.node,contentClassName:S.string,className:S.string,container:Us,cssModule:S.object,external:S.node,fade:S.bool,fullscreen:S.oneOfType([S.bool,S.oneOf(["sm","md","lg","xl"])]),innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,keyboard:S.bool,labelledBy:S.string,modalClassName:S.string,modalTransition:w3,onClosed:S.func,onEnter:S.func,onExit:S.func,onOpened:S.func,returnFocusAfterClose:S.bool,role:S.string,scrollable:S.bool,size:S.string,toggle:S.func,trapFocus:S.bool,unmountOnClose:S.bool,wrapClassName:S.string,zIndex:S.oneOfType([S.number,S.string])},eie=Object.keys(y5),tie={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:cv,onClosed:cv,modalTransition:{timeout:rl.Modal},backdropTransition:{mountOnEnter:!0,timeout:rl.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class Vn extends V.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleStaticBackdropAnimation=this.handleStaticBackdropAnimation.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1,showStaticBackdropAnimation:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._dialog?this._dialog.parentNode:null;if(n&&t.target===n&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.modalIndex{this.setState({showStaticBackdropAnimation:!1})},100)}onOpened(t,n){this.props.onOpened(),(this.props.modalTransition.onEntered||cv)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||cv)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}getFocusableChildren(){return this._element.querySelectorAll(r5.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog&&this._dialog.parentNode===t.target||this.modalIndex0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Bc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=X6(),Vn.openCount<1&&(Vn.originalBodyOverflow=window.getComputedStyle(document.body).overflow),Q6(),Vn.openCount===0&&(document.body.className=ge(document.body.className,je("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=Vn.openCount,Vn.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){if(Vn.openCount<=1){const t=je("modal-open",this.props.cssModule),n=new RegExp(`(^| )${t}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=Vn.originalBodyOverflow}this.manageFocusAfterClose(),Vn.openCount=Math.max(0,Vn.openCount-1),UC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const t=Tr(this.props,eie),n="modal-dialog";return V.createElement("div",Be({},t,{className:je(ge(n,this.props.className,{[`modal-${this.props.size}`]:this.props.size,[`${n}-centered`]:this.props.centered,[`${n}-scrollable`]:this.props.scrollable,"modal-fullscreen":this.props.fullscreen===!0,[`modal-fullscreen-${this.props.fullscreen}-down`]:typeof this.props.fullscreen=="string"}),this.props.cssModule),role:"document",ref:r=>{this._dialog=r}}),V.createElement("div",{className:je(ge("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}render(){const{unmountOnClose:t}=this.props;if(this._element&&(this.state.isOpen||!t)){const n=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=n?"none":"block";const{wrapClassName:r,modalClassName:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,external:h,innerRef:p}=this.props,m={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},g=this.props.fade,v=qe(qe(qe({},Qt.defaultProps),this.props.modalTransition),{},{baseClass:g?this.props.modalTransition.baseClass:"",timeout:g?this.props.modalTransition.timeout:0}),w=qe(qe(qe({},Qt.defaultProps),this.props.backdropTransition),{},{baseClass:g?this.props.backdropTransition.baseClass:"",timeout:g?this.props.backdropTransition.timeout:0}),y=l&&(g?V.createElement(Qt,Be({},w,{in:a&&!!l,cssModule:s,className:je(ge("modal-backdrop",o),s)})):V.createElement("div",{className:je(ge("modal-backdrop","show",o),s)}));return V.createElement(v5,{node:this._element},V.createElement("div",{className:je(r)},V.createElement(Qt,Be({},m,v,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:je(ge("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),h,this.renderModalDialog()),y))}return null}}Vn.propTypes=y5;Vn.defaultProps=tie;Vn.openCount=0;Vn.originalBodyOverflow=null;var Ho=Vn;const nie=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],rie={children:S.node,className:S.string,close:S.object,closeAriaLabel:S.string,cssModule:S.object,tag:ke,toggle:S.func,wrapTag:ke},iie={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function oo(e){let t;const{className:n,cssModule:r,children:i,toggle:o,tag:s,wrapTag:a,closeAriaLabel:l,close:c}=e,f=Ze(e,nie),h=je(ge(n,"modal-header"),r);return!c&&o&&(t=V.createElement("button",{type:"button",onClick:o,className:je("btn-close",r),"aria-label":l})),V.createElement(a,Be({},f,{className:h}),V.createElement(s,{className:je("modal-title",r)},i),c||t)}oo.propTypes=rie;oo.defaultProps=iie;const oie=["className","cssModule","tag"],sie={className:S.string,cssModule:S.object,tag:ke},aie={tag:"div"};function Ri(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,oie),o=je(ge(t,"modal-body"),n);return V.createElement(r,Be({},i,{className:o}))}Ri.propTypes=sie;Ri.defaultProps=aie;const lie=["className","cssModule","tag"],cie={className:S.string,cssModule:S.object,tag:ke},uie={tag:"div"};function na(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,lie),o=je(ge(t,"modal-footer"),n);return V.createElement(r,Be({},i,{className:o}))}na.propTypes=cie;na.defaultProps=uie;const fie={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function eh(e){const t=ge("tooltip","show",e.popperClassName),n=ge("tooltip-inner",e.innerClassName);return V.createElement(m5,Be({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}eh.propTypes=w_;eh.defaultProps=fie;S.bool,S.bool,S.string,S.object,S.bool,S.bool,S.oneOfType([S.func,S.string,S.object]),S.oneOfType([S.bool,S.string]),S.string,S.bool;const die=["className","cssModule","tag","flush","horizontal","numbered"],hie={className:S.string,cssModule:S.object,flush:S.bool,horizontal:S.oneOfType([S.bool,S.string]),numbered:S.bool,tag:ke},pie={tag:"ul",horizontal:!1,numbered:!1},mie=e=>e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":`list-group-horizontal-${e}`;function sE(e){const{className:t,cssModule:n,tag:r,flush:i,horizontal:o,numbered:s}=e,a=Ze(e,die),l=je(ge(t,"list-group",i?"list-group-flush":mie(o),{"list-group-numbered":s}),n);return V.createElement(r,Be({},a,{className:l}))}sE.propTypes=hie;sE.defaultProps=pie;const gie=["className","cssModule","tag","innerRef"],vie={children:S.node,tag:ke,innerRef:S.oneOfType([S.object,S.func,S.string]),className:S.string,cssModule:S.object},yie={tag:"form"};class _5 extends H.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.submit=this.submit.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}submit(){this.ref&&this.ref.submit()}render(){const t=this.props,{className:n,cssModule:r,tag:i,innerRef:o}=t,s=Ze(t,gie),a=je(n,r);return V.createElement(i,Be({},s,{ref:o,className:a}))}}_5.propTypes=vie;_5.defaultProps=yie;S.node,S.string,S.object,S.bool,S.bool;const _ie=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],bie={children:S.node,row:S.bool,check:S.bool,switch:S.bool,inline:S.bool,floating:S.bool,disabled:S.bool,tag:ke,className:S.string,cssModule:S.object},wie={tag:"div"};function _r(e){const{className:t,cssModule:n,row:r,disabled:i,check:o,inline:s,floating:a,tag:l,switch:c}=e,f=Ze(e,_ie),h=o||c,p=je(ge(t,r?"row":!1,h?"form-check":"mb-3",c?"form-switch":!1,h&&s?"form-check-inline":!1,h&&i?"disabled":!1,a&&"form-floating"),n);return l==="fieldset"&&(f.disabled=i),V.createElement(l,Be({},f,{className:p}))}_r.propTypes=bie;_r.defaultProps=wie;S.node,S.bool,S.string,S.string,S.object;const xie=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],Sie={children:S.node,type:S.string,size:S.oneOfType([S.number,S.string]),bsSize:S.string,valid:S.bool,invalid:S.bool,tag:ke,innerRef:S.oneOfType([S.object,S.func,S.string]),plaintext:S.bool,addon:S.bool,className:S.string,cssModule:S.object},Cie={type:"text"};let aE=class extends V.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.focus=this.focus.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}focus(){this.ref&&this.ref.focus()}render(){let t=this.props,{className:n,cssModule:r,type:i,bsSize:o,valid:s,invalid:a,tag:l,addon:c,plaintext:f,innerRef:h}=t,p=Ze(t,xie);const m=["switch","radio","checkbox"].indexOf(i)>-1,g=/\D/g,v=i==="textarea",w=i==="select",y=i==="range";let b=l||(w||v?i:"input"),x="form-control";f?(x=`${x}-plaintext`,b=l||"input"):y?x="form-range":w?x="form-select":m&&(c?x=null:x="form-check-input"),p.size&&g.test(p.size)&&(zw(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const T=je(ge(n,a&&"is-invalid",s&&"is-valid",o?w?`form-select-${o}`:`form-control-${o}`:!1,x),r);return(b==="input"||l&&typeof l=="function")&&(p.type=i==="switch"?"checkbox":i),p.children&&!(f||i==="select"||typeof b!="string"||b==="select")&&(zw(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),V.createElement(b,Be({},p,{ref:h,className:T,"aria-invalid":a}))}};aE.propTypes=Sie;aE.defaultProps=Cie;var zc=aE;const Eie=["className","cssModule","tag","type","size"],Tie={className:S.string,cssModule:S.object,size:S.string,tag:ke,type:S.string},Oie={tag:"div"};function th(e){const{className:t,cssModule:n,tag:r,type:i,size:o}=e,s=Ze(e,Eie),a=je(ge(t,"input-group",o?`input-group-${o}`:null),n);return e.type==="dropdown"?V.createElement(ru,Be({},s,{className:a})):V.createElement(s5.Provider,{value:{insideInputGroup:!0}},V.createElement(r,Be({},s,{className:a})))}th.propTypes=Tie;th.defaultProps=Oie;S.string,S.object;const v1=S.oneOfType([S.number,S.string]),Al=S.oneOfType([S.bool,S.string,S.number,S.shape({size:v1,order:v1,offset:v1})]);S.node,S.bool,S.bool,S.string,S.string,S.string,S.object,S.array;S.bool,S.bool,S.node,S.string,S.object,S.bool,S.bool,S.bool,S.bool,S.bool,S.bool,S.bool;function uv(){}const x3=S.shape(Qt.propTypes),b5={autoFocus:S.bool,backdrop:S.bool,backdropClassName:S.string,backdropTransition:x3,children:S.node,className:S.string,container:Us,cssModule:S.object,direction:S.oneOf(["start","end","bottom","top"]),fade:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,keyboard:S.bool,labelledBy:S.string,offcanvasTransition:x3,onClosed:S.func,onEnter:S.func,onExit:S.func,style:S.object,onOpened:S.func,returnFocusAfterClose:S.bool,role:S.string,scrollable:S.bool,toggle:S.func,trapFocus:S.bool,unmountOnClose:S.bool,zIndex:S.oneOfType([S.number,S.string])},Pie=Object.keys(b5),kie={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:uv,onClosed:uv,offcanvasTransition:{timeout:rl.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:rl.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class mi extends V.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._backdrop;if(!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.offcanvasIndex0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Bc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=X6(),Q6(),mi.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=mi.openCount,mi.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){this.manageFocusAfterClose(),mi.openCount=Math.max(0,mi.openCount-1),document.body.style.overflow=null,UC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}render(){const{direction:t,unmountOnClose:n}=this.props;if(this._element&&(this.state.isOpen||!n)){const r=!!this._element&&!this.state.isOpen&&!n;this._element.style.display=r?"none":"block";const{className:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,style:h}=this.props,p={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":f,role:c,tabIndex:"-1"},m=this.props.fade,g=qe(qe(qe({},Qt.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),v=qe(qe(qe({},Qt.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),w=l&&(m?V.createElement(Qt,Be({},v,{in:a&&!!l,innerRef:b=>{this._backdrop=b},cssModule:s,className:je(ge("offcanvas-backdrop",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):V.createElement("div",{className:je(ge("offcanvas-backdrop","show",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),y=Tr(this.props,Pie);return V.createElement(v5,{node:this._element},V.createElement(Qt,Be({},y,p,g,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:je(ge("offcanvas",i,`offcanvas-${t}`),s),innerRef:b=>{this._dialog=b},style:qe(qe({},h),{},{visibility:a?"visible":"hidden"})}),this.props.children),w)}return null}}mi.propTypes=b5;mi.defaultProps=kie;mi.openCount=0;S.string,S.object;S.node,S.string,S.object,S.string,S.object,S.func;const Mie=["className","listClassName","cssModule","size","tag","listTag","aria-label"],Rie={children:S.node,className:S.string,listClassName:S.string,cssModule:S.object,size:S.string,tag:ke,listTag:ke,"aria-label":S.string},Nie={tag:"nav",listTag:"ul","aria-label":"pagination"};function x_(e){const{className:t,listClassName:n,cssModule:r,size:i,tag:o,listTag:s,"aria-label":a}=e,l=Ze(e,Mie),c=je(ge(t),r),f=je(ge(n,"pagination",{[`pagination-${i}`]:!!i}),r);return V.createElement(o,{className:c,"aria-label":a},V.createElement(s,Be({},l,{className:f})))}x_.propTypes=Rie;x_.defaultProps=Nie;const Lie=["active","className","cssModule","disabled","tag"],Die={active:S.bool,children:S.node,className:S.string,cssModule:S.object,disabled:S.bool,tag:ke},Aie={tag:"li"};function Rs(e){const{active:t,className:n,cssModule:r,disabled:i,tag:o}=e,s=Ze(e,Lie),a=je(ge(n,"page-item",{active:t,disabled:i}),r);return V.createElement(o,Be({},s,{className:a}))}Rs.propTypes=Die;Rs.defaultProps=Aie;const Iie=["className","cssModule","next","previous","first","last","tag"],Fie={"aria-label":S.string,children:S.node,className:S.string,cssModule:S.object,next:S.bool,previous:S.bool,first:S.bool,last:S.bool,tag:ke},$ie={tag:"a"};function Ns(e){let{className:t,cssModule:n,next:r,previous:i,first:o,last:s,tag:a}=e,l=Ze(e,Iie);const c=je(ge(t,"page-link"),n);let f;i?f="Previous":r?f="Next":o?f="First":s&&(f="Last");const h=e["aria-label"]||f;let p;i?p="‹":r?p="›":o?p="«":s&&(p="»");let{children:m}=e;return m&&Array.isArray(m)&&m.length===0&&(m=null),!l.href&&a==="a"&&(a="button"),(i||r||o||s)&&(m=[V.createElement("span",{"aria-hidden":"true",key:"caret"},m||p),V.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),V.createElement(a,Be({},l,{className:c,"aria-label":h}),m)}Ns.propTypes=Fie;Ns.defaultProps=$ie;const jie=V.createContext({}),w5={tag:ke,activeTab:S.any,className:S.string,cssModule:S.object},Bie={tag:"div"};class x5 extends H.Component{static getDerivedStateFromProps(t,n){return n.activeTab!==t.activeTab?{activeTab:t.activeTab}:null}constructor(t){super(t),this.state={activeTab:this.props.activeTab}}render(){const{className:t,cssModule:n,tag:r}=this.props,i=Tr(this.props,Object.keys(w5)),o=je(ge("tab-content",t),n);return V.createElement(jie.Provider,{value:{activeTabId:this.state.activeTab}},V.createElement(r,Be({},i,{className:o})))}}x5.propTypes=w5;x5.defaultProps=Bie;S.string,S.object,S.any;const zie=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],Uie={children:S.node,className:S.string,closeClassName:S.string,closeAriaLabel:S.string,color:S.string,cssModule:S.object,fade:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,tag:ke,toggle:S.func,transition:S.shape(Qt.propTypes)},Vie={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:qe(qe({},Qt.defaultProps),{},{unmountOnExit:!0})};function lE(e){const{className:t,closeClassName:n,closeAriaLabel:r,cssModule:i,tag:o,color:s,isOpen:a,toggle:l,children:c,transition:f,fade:h,innerRef:p}=e,m=Ze(e,zie),g=je(ge(t,"alert",`alert-${s}`,{"alert-dismissible":l}),i),v=je(ge("btn-close",n),i),w=qe(qe(qe({},Qt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return V.createElement(Qt,Be({},m,w,{tag:o,className:g,in:a,role:"alert",innerRef:p}),l?V.createElement("button",{type:"button",className:v,"aria-label":r,onClick:l}):null,c)}lE.propTypes=Uie;lE.defaultProps=Vie;S.node,S.string,S.object,S.bool,S.bool,S.shape(Qt.propTypes),S.oneOfType([S.object,S.string,S.func]);qe(qe({},Qt.defaultProps),{},{unmountOnExit:!0});S.string,S.object,S.oneOfType([S.object,S.string,S.func]);S.oneOfType([S.string,S.node]),S.func,S.string,S.object,S.node,S.string,S.oneOfType([S.string,S.number]),S.object,S.string;const Hie=["className","cssModule","tag","active","disabled","action","color"],Wie={action:S.bool,active:S.bool,className:S.string,cssModule:S.object,color:S.string,disabled:S.bool,tag:ke},Yie={tag:"li"},qie=e=>{e.preventDefault()};function cE(e){const{className:t,cssModule:n,tag:r,active:i,disabled:o,action:s,color:a}=e,l=Ze(e,Hie),c=je(ge(t,i?"active":!1,o?"disabled":!1,s?"list-group-item-action":!1,a?`list-group-item-${a}`:!1,"list-group-item"),n);return o&&(l.onClick=qie),V.createElement(r,Be({},l,{className:c}))}cE.propTypes=Wie;cE.defaultProps=Yie;S.string,S.object;S.string,S.object;const Gie=["className","cssModule","tag","type"],Zie={className:S.string,cssModule:S.object,tag:ke,type:S.string},Kie={tag:"ul"},uE=H.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i,type:o}=e,s=Ze(e,Gie),a=je(ge(n,o?`list-${o}`:!1),r);return V.createElement(i,Be({},s,{className:a,ref:t}))});uE.name="List";uE.propTypes=Zie;uE.defaultProps=Kie;const Xie=["className","cssModule","tag"],Qie={className:S.string,cssModule:S.object,tag:ke},Jie={tag:"li"},fE=H.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i}=e,o=Ze(e,Xie),s=je(ge(n,"list-inline-item"),r);return V.createElement(i,Be({},o,{className:s,ref:t}))});fE.name="ListInlineItem";fE.propTypes=Qie;fE.defaultProps=Jie;const eoe=["defaultOpen"];class toe extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return V.createElement(g_,Be({isOpen:this.state.isOpen,toggle:this.toggle},Tr(this.props,eoe)))}}toe.propTypes=qe({defaultOpen:S.bool},g_.propTypes);const noe=["toggleEvents","defaultOpen"],roe={defaultOpen:S.bool,toggler:S.string.isRequired,toggleEvents:S.arrayOf(S.string)},ioe={toggleEvents:cne};class S5 extends H.Component{constructor(t){super(t),this.togglers=null,this.removeEventListeners=null,this.toggle=this.toggle.bind(this),this.state={isOpen:t.defaultOpen||!1}}componentDidMount(){this.togglers=n5(this.props.toggler),this.togglers.length&&(this.removeEventListeners=une(this.togglers,this.toggle,this.props.toggleEvents))}componentWillUnmount(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}toggle(t){this.setState(({isOpen:n})=>({isOpen:!n})),t.preventDefault()}render(){return V.createElement(a5,Be({isOpen:this.state.isOpen},Tr(this.props,noe)))}}S5.propTypes=roe;S5.defaultProps=ioe;const ooe=["defaultOpen"];class nh extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(t){this.setState(n=>({isOpen:!n.isOpen}),()=>{this.props.onToggle&&this.props.onToggle(t,this.state.isOpen)})}render(){return V.createElement(ru,Be({isOpen:this.state.isOpen,toggle:this.toggle},Tr(this.props,ooe)))}}nh.propTypes=qe({defaultOpen:S.bool,onToggle:S.func},ru.propTypes);const soe=["defaultOpen"];class Or extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return V.createElement(eh,Be({isOpen:this.state.isOpen,toggle:this.toggle},Tr(this.props,soe)))}}Or.propTypes=qe({defaultOpen:S.bool},eh.propTypes);S.oneOf(["border","grow"]),S.oneOf(["sm"]),S.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),S.string,S.object,S.string;qe(qe({},WC.propTypes),{},{color:S.string,tag:ke,animation:S.oneOf(["glow","wave"]),innerRef:S.oneOfType([S.object,S.func,S.string]),size:S.oneOf(["lg","sm","xs"])});S.string,S.string,S.bool,S.string,S.object;(()=>{if(typeof window!="object"||typeof window.CustomEvent=="function")return;const e=(t,n)=>{n=n||{bubbles:!1,cancelable:!1,detail:null};let r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};window.CustomEvent=e})();(()=>{if(typeof Object.values=="function")return;Object.values=t=>Object.keys(t).map(n=>t[n])})();const aoe="Left",loe="Right",coe="Up",uoe="Down",oc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Vw={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},S3="mousemove",C3="mouseup",foe="touchend",doe="touchmove",hoe="touchstart";function poe(e,t,n,r){return e>t?n>0?loe:aoe:r>0?uoe:coe}function E3(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function moe(e,t){const n=f=>{const h="touches"in f;h&&f.touches.length>1||e((p,m)=>{m.trackMouse&&!h&&(document.addEventListener(S3,r),document.addEventListener(C3,s));const{clientX:g,clientY:v}=h?f.touches[0]:f,w=E3([g,v],m.rotationAngle);return m.onTouchStartOrOnMouseDown&&m.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),Vw),{initial:w.slice(),xy:w,start:f.timeStamp||0})})},r=f=>{e((h,p)=>{const m="touches"in f;if(m&&f.touches.length>1)return h;if(f.timeStamp-h.start>p.swipeDuration)return h.swiping?Object.assign(Object.assign({},h),{swiping:!1}):h;const{clientX:g,clientY:v}=m?f.touches[0]:f,[w,y]=E3([g,v],p.rotationAngle),b=w-h.xy[0],x=y-h.xy[1],T=Math.abs(b),P=Math.abs(x),k=(f.timeStamp||0)-h.start,N=Math.sqrt(T*T+P*P)/(k||1),D=[b/(k||1),x/(k||1)],z=poe(T,P,b,x),A=typeof p.delta=="number"?p.delta:p.delta[z.toLowerCase()]||oc.delta;if(T{e((h,p)=>{let m;if(h.swiping&&h.eventData){if(f.timeStamp-h.start{document.removeEventListener(S3,r),document.removeEventListener(C3,s)},s=f=>{o(),i(f)},a=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const m=Object.assign(Object.assign({},oc.touchEventOptions),h.touchEventOptions),g=[[hoe,n,m],[doe,r,Object.assign(Object.assign({},m),h.preventScrollOnSwipe?{passive:!1}:{})],[foe,i,m]];g.forEach(([v,w,y])=>f.addEventListener(v,w,y)),p=()=>g.forEach(([v,w])=>f.removeEventListener(v,w))}return p},c={ref:f=>{f!==null&&e((h,p)=>{if(h.el===f)return h;const m={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),m.cleanUpTouch=void 0),p.trackTouch&&f&&(m.cleanUpTouch=a(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),m)})}};return t.trackMouse&&(c.onMouseDown=n),[c,a]}function goe(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function voe(e){const{trackMouse:t}=e,n=H.useRef(Object.assign({},Vw)),r=H.useRef(Object.assign({},oc)),i=H.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},oc),e);let o;for(o in oc)r.current[o]===void 0&&(r.current[o]=oc[o]);const[s,a]=H.useMemo(()=>moe(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=goe(n.current,r.current,i.current,a),s}var kp,yoe=new Uint8Array(16);function _oe(){if(!kp&&(kp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!kp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return kp(yoe)}const boe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function woe(e){return typeof e=="string"&&boe.test(e)}var Bn=[];for(var y1=0;y1<256;++y1)Bn.push((y1+256).toString(16).substr(1));function xoe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Bn[e[t+0]]+Bn[e[t+1]]+Bn[e[t+2]]+Bn[e[t+3]]+"-"+Bn[e[t+4]]+Bn[e[t+5]]+"-"+Bn[e[t+6]]+Bn[e[t+7]]+"-"+Bn[e[t+8]]+Bn[e[t+9]]+"-"+Bn[e[t+10]]+Bn[e[t+11]]+Bn[e[t+12]]+Bn[e[t+13]]+Bn[e[t+14]]+Bn[e[t+15]]).toLowerCase();if(!woe(n))throw TypeError("Stringified UUID is invalid");return n}function dE(e,t,n){e=e||{};var r=e.random||(e.rng||_oe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return xoe(r)}const Soe=2e3,Coe=(e,t)=>(n=!1,r=Soe)=>{const[i,o]=H.useState(n),s=H.useRef(void 0);return[i,()=>{o(!n),s.current&&t(s.current),s.current=e(()=>o(n),r)}]},jt=(e=!1)=>{const[t,n]=H.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},Eoe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:s})=>s==null?void 0:s.contains("visits-table"))||document.querySelector(".modal")||r()};return voe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Toe=(e,t)=>{const[n,r]=H.useState(t);return[n,o=>{const{location:s,history:a}=window,l=pl(s.search);l[e]=o,a.pushState(null,"",`${s.pathname}?${qd(l)}`),r(o)}]},Ooe=(e,t)=>{const n=H.useRef(!0);H.useEffect(()=>{!n.current&&e(),n.current=!1},t)},ra=()=>{const e=jo();return()=>e(-1)},Poe=()=>{const{search:e}=Mn();return pl(e)},S_=()=>{const{current:e}=H.useRef(`dom-${dE()}`);return e},gl=()=>H.useRef(null),dn=({title:e,children:t,bodyClassName:n,...r})=>U(Er,{...r,children:[e&&C(ol,{role:"heading",children:e}),C(il,{className:n,children:t})]});const koe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=jt();return U(lE,{className:"app-update-banner",isOpen:e,toggle:t,tag:dn,color:"secondary",children:[C("h4",{className:"mb-4",children:"This app has just been updated!"}),U("p",{className:"mb-0",children:["Restart it to enjoy the new features.",U(mt,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:()=>{i(),n()},children:[!r&&U(We,{children:["Restart now ",C(Fe,{icon:DQ,className:"ms-1"})]}),r&&C(We,{children:"Restarting..."})]})]})]})},C5=({to:e="/",children:t="Home"})=>C("div",{className:"home",children:U(dn,{className:"p-4",children:[C("h2",{children:"Oops! We could not find requested route."}),C("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),C("br",{}),C(At,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),Moe=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},hE="#4696e5",Roe="rgba(70, 150, 229, 0.4)",E5="#f77f28",Noe="rgba(247, 127, 40, 0.4)",Loe="white",Doe="#161b22",T5=e=>{var t,n;return(n=(t=document.getElementsByTagName("html"))==null?void 0:t[0])==null?void 0:n.setAttribute("data-theme",e)},Aoe=()=>{var e,t;return((t=(e=document.getElementsByTagName("html"))==null?void 0:e[0])==null?void 0:t.getAttribute("data-theme"))==="dark"};const Ioe=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const g=Mn().pathname==="/";return H.useEffect(()=>{var v;Object.keys(c).length===0&&l(),T5(((v=f.ui)==null?void 0:v.theme)??"light")},[]),U("div",{className:"container-fluid app-container",children:[C(e,{}),U("div",{className:"app",children:[C("div",{className:ge("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:U(e_,{children:[C(yt,{index:!0,element:C(t,{})}),C(yt,{path:"/settings/*",element:C(o,{})}),C(yt,{path:"/manage-servers",element:C(s,{})}),C(yt,{path:"/server/create",element:C(r,{})}),C(yt,{path:"/server/:serverId/edit",element:C(i,{})}),C(yt,{path:"/server/:serverId/*",element:C(n,{})}),C(yt,{path:"*",element:C(C5,{})})]})}),C("div",{className:"shlink-footer",children:C(a,{})})]}),C(koe,{isOpen:h,toggle:p,forceUpdate:Moe})]})};function vi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:pE(e)?2:mE(e)?3:0}function vc(e,t){return ou(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Foe(e,t){return ou(e)===2?e.get(t):e[t]}function O5(e,t,n){var r=ou(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function P5(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function pE(e){return Voe&&e instanceof Map}function mE(e){return Hoe&&e instanceof Set}function Pa(e){return e.o||e.t}function gE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=M5(e);delete t[Ft];for(var n=yc(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=$oe),Object.freeze(e),t&&sl(e,function(n,r){return vE(r,!0)},!0)),e}function $oe(){vi(2)}function yE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ji(e){var t=qw[e];return t||vi(18,e),t}function joe(e,t){qw[e]||(qw[e]=t)}function Hw(){return Sd}function _1(e,t){t&&(Ji("Patches"),e.u=[],e.s=[],e.v=t)}function fv(e){Ww(e),e.p.forEach(Boe),e.p=null}function Ww(e){e===Sd&&(Sd=e.l)}function T3(e){return Sd={p:[],l:Sd,h:e,m:!0,_:0}}function Boe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.O=!0}function b1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Ji("ES5").S(t,e,r),r?(n[Ft].P&&(fv(t),vi(4)),Do(e)&&(e=dv(t,e),t.l||hv(t,e)),t.u&&Ji("Patches").M(n[Ft].t,e,t.u,t.s)):e=dv(t,n,[]),fv(t),t.u&&t.v(t.u,t.s),e!==k5?e:void 0}function dv(e,t,n){if(yE(t))return t;var r=t[Ft];if(!r)return sl(t,function(o,s){return O3(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return hv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=gE(r.k):r.o;sl(r.i===3?new Set(i):i,function(o,s){return O3(e,r,i,o,s,n)}),hv(e,i,!1),n&&e.u&&Ji("Patches").R(r,n,e.u,e.s)}return r.o}function O3(e,t,n,r,i,o){if(Vs(i)){var s=dv(e,i,o&&t&&t.i!==3&&!vc(t.D,r)?o.concat(r):void 0);if(O5(n,r,s),!Vs(s))return;e.m=!1}if(Do(i)&&!yE(i)){if(!e.h.F&&e._<1)return;dv(e,i),t&&t.A.l||hv(e,i)}}function hv(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&vE(t,n)}function w1(e,t){var n=e[Ft];return(n?Pa(n):e)[t]}function P3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function as(e){e.P||(e.P=!0,e.l&&as(e.l))}function x1(e){e.o||(e.o=gE(e.t))}function Yw(e,t,n){var r=pE(t)?Ji("MapSet").N(t,n):mE(t)?Ji("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Hw(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=Cd;s&&(l=[a],c=tf);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Ji("ES5").J(t,n);return(n?n.A:Hw()).p.push(r),r}function zoe(e){return Vs(e)||vi(22,e),function t(n){if(!Do(n))return n;var r,i=n[Ft],o=ou(n);if(i){if(!i.P&&(i.i<4||!Ji("ES5").K(i)))return i.t;i.I=!0,r=k3(n,o),i.I=!1}else r=k3(n,o);return sl(r,function(s,a){i&&Foe(i.t,s)===a||O5(r,s,t(a))}),o===3?new Set(r):r}(e)}function k3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return gE(e)}function Uoe(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[Ft];return Cd.get(l,o)},set:function(l){var c=this[Ft];Cd.set(c,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][Ft];if(!a.P)switch(a.i){case 5:r(a)&&as(a);break;case 4:n(a)&&as(a)}}}function n(o){for(var s=o.t,a=o.k,l=yc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==Ft){var h=s[f];if(h===void 0&&!vc(s,f))return!0;var p=a[f],m=p&&p[Ft];if(m?m.t!==h:!P5(p,h))return!0}}var g=!!s[Ft];return l.length!==yc(s).length+(g?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l1?y-1:0),x=1;x1?f-1:0),p=1;p=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=Ji("Patches").$;return Vs(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Fr=new Yoe,R5=Fr.produce;Fr.produceWithPatches.bind(Fr);Fr.setAutoFreeze.bind(Fr);Fr.setUseProxies.bind(Fr);Fr.applyPatches.bind(Fr);Fr.createDraft.bind(Fr);Fr.finishDraft.bind(Fr);function qoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function D3(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Xn(1));return n(N5)(e,t)}if(typeof e!="function")throw new Error(Xn(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(Xn(3));return o}function h(v){if(typeof v!="function")throw new Error(Xn(4));if(l)throw new Error(Xn(5));var w=!0;return c(),a.push(v),function(){if(w){if(l)throw new Error(Xn(6));w=!1,c();var b=a.indexOf(v);a.splice(b,1),s=null}}}function p(v){if(!Goe(v))throw new Error(Xn(7));if(typeof v.type>"u")throw new Error(Xn(8));if(l)throw new Error(Xn(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var w=s=a,y=0;y"u")throw new Error(Xn(12));if(typeof n(void 0,{type:pv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Xn(13))})}function L5(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Xn(14));h[m]=w,f=f||w!==v}return f=f||o.length!==Object.keys(l).length,f?h:l}}function mv(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0)for(var x=m.getState(),T=Array.from(n.values()),P=0,k=T;P!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:$se,resetAppUpdate:jse}=Ise,Bse=Fse,zse=(e,t)=>{e.serviceFactory("App",Ioe,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>$se),e.serviceFactory("resetAppUpdate",()=>jse)};function vv(e){return t=>{const{resetSelectedServer:n}=t;return H.useEffect(()=>{n()},[]),C(e,{...t})}}const Il=({children:e,to:t,className:n,...r})=>C(sI,{className:({isActive:i})=>ge("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Use=e=>({selectedServer:t,showOnMobile:n=!1})=>{const r=Ms(t),i=r?t.id:"",{pathname:o}=Mn(),s=ge("aside-menu",{"aside-menu--hidden":!n}),a=l=>`/server/${i}${l}`;return C("aside",{className:s,children:U("nav",{className:"nav flex-column aside-menu__nav",children:[U(Il,{to:a("/overview"),children:[C(Fe,{fixedWidth:!0,icon:xQ}),C("span",{className:"aside-menu__item-text",children:"Overview"})]}),U(Il,{to:a("/list-short-urls/1"),className:ge({"aside-menu__item--selected":o.match("/list-short-urls")!==null}),children:[C(Fe,{fixedWidth:!0,icon:XI}),C("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),U(Il,{to:a("/create-short-url"),children:[C(Fe,{fixedWidth:!0,icon:OQ,flip:"horizontal"}),C("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),U(Il,{to:a("/manage-tags"),children:[C(Fe,{fixedWidth:!0,icon:JI}),C("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),U(Il,{to:a("/manage-domains"),children:[C(Fe,{fixedWidth:!0,icon:tQ}),C("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),U(Il,{to:a("/edit"),className:"aside-menu__item--push",children:[C(Fe,{fixedWidth:!0,icon:uQ}),C("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),r&&C(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:t})]})})},Vse=({location:e},{error:t})=>class extends H.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){t(n)}render(){const{hasError:n}=this.state;if(n)return C("div",{className:"home",children:U(dn,{className:"p-4",children:[C("h1",{children:"Oops! This is awkward :S"}),C("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),C("br",{}),C(mt,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Kw=function(){return Kw=Object.assign||function(t){for(var n,r=1,i=arguments.length;rU(cE,{tag:At,to:`/server/${e}`,className:"servers-list__server-item",children:[t,C(Fe,{icon:NQ,className:"servers-list__server-item-icon"})]}),W5=({servers:e,children:t,embedded:n=!1})=>U(We,{children:[t&&C("h5",{className:"mb-md-3",children:t}),e.length>0&&C(sE,{className:ge("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>C(Wse,{id:r,name:i},r))})]}),Y5=({color:e=hE,className:t})=>C("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:U("g",{fill:e,children:[C("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),C("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),C("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),C("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})});const Yse=({servers:e})=>{const t=jo(),n=eu(e),r=!qn(n);return H.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),C("div",{className:"home",children:C(Er,{className:"home__main-card",children:U(er,{className:"g-0",children:[C("div",{className:"col-md-5 d-none d-md-block",children:C("div",{className:"home__logo-wrapper",children:C("div",{className:"home__logo",children:C(Y5,{})})})}),U("div",{className:"col-md-7 home__servers-container",children:[C("div",{className:"home__title-wrapper",children:C("h1",{className:"home__title",children:"Welcome!"})}),C(W5,{embedded:!0,servers:n,children:!r&&U("div",{className:"p-4 text-center",children:[C("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),C("p",{children:U(At,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[C(Fe,{icon:wC})," ",C("span",{className:"ms-1",children:"Add a server"})]})}),C("p",{className:"mb-0 mt-5",children:C(Ei,{href:"https://shlink.io/documentation",children:U("small",{children:[C("span",{className:"me-1",children:"Learn more about Shlink"})," ",C(Fe,{icon:hQ})]})})})]})})]})]})})})};const qse=e=>()=>{const[t,n,,r]=jt(),i=Mn(),{pathname:o}=i;H.useEffect(r,[i]);const s="/settings",a=ge("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return U(YC,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[U(qC,{tag:At,to:"/",children:[C(Y5,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),C(GC,{onClick:n,children:C(Fe,{icon:MQ,className:a})}),C(a5,{navbar:!0,isOpen:t,children:U(p_,{navbar:!0,className:"ms-auto",children:[C(ZC,{children:U(o5,{tag:At,to:s,active:o.startsWith(s),children:[C(Fe,{icon:IQ}),"  Settings"]})}),C(e,{})]})})]})};const su=({children:e})=>C("div",{className:"no-menu-wrapper container-xl",children:e}),Gse=e=>({error:"border-danger",default:""})[e],Zse=e=>({error:"text-danger",default:"text-muted"})[e],Eo=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=ge({"col-md-12":i,"col-md-10 offset-md-1":!i});return C(er,{className:ge("g-0",e),children:C("div",{className:o,children:C(Er,{className:Gse(r),body:!0,children:U("h3",{className:ge("text-center mb-0",Zse(r)),children:[n&&C(Fe,{icon:KI,spin:!0}),n&&C("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})};function q5(e,t){return n=>{const r=Qs(),{selectServer:i,selectedServer:o}=n;return H.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?AZ(o)?C(t,{}):C(e,{...n}):C(su,{children:C(Eo,{loading:!0})})}}const or=(e,t)=>vse(e,t,{serializeError:rC}),Kse=(e,t)=>{const n=V3(e),r=V3(t),i=n.pop(),o=r.pop(),s=Y3(n,r);return s!==0?s:i&&o?Y3(i.split("."),o.split(".")):i||o?i?-1:1:0},Xw=(e,t,n)=>{eae(n);const r=Kse(e,t);return G5[n].includes(r)},Xse=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,V3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Xse);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},H3=e=>e==="*"||e==="x"||e==="X",W3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Qse=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Jse=(e,t)=>{if(H3(e)||H3(t))return 0;const[n,r]=Qse(W3(e),W3(t));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},q3=Object.keys(G5),eae=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(q3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${q3.join("|")}`)},SE=(e,t,n=1)=>aC(n,e+1).map(t),yi=e=>!Bo(e)&&!qn(e),sh=e=>It(t=>t.preventDefault(),e),T1=e=>qn(e)?null:e,ya=e=>t=>e===t,Z5=e=>e?"true":"false",O1=e=>e===void 0?void 0:Z5(e),tae=(e,{maxVersion:t,minVersion:n})=>{if(!yi(e))return!1;const r=!n||Xw(e,n,">=");return(!t||Xw(e,t,"<="))&&r},K5=PI(rC,e=>{try{return Xw(e,e,"=")}catch{return!1}}),X5=e=>K5(e)?`v${e}`:e,Q5=(e="latest")=>t=>K5(t)?t:e,CE="shlink/selectedServer",nae="1.0.0",rae="999.999.999",iae="latest",oae=It(e=>e===iae?rae:e,Q5(nae)),sae=PI(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:oae(n),printableVersion:X5(n)}))),G3=null,EE=bn(`${CE}/resetSelectedServer`),J5=e=>or(`${CE}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(EE());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:s}=e(o),{version:a,printableVersion:l}=await sae(o,s);return{...o,version:a,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),aae=(e,t)=>{const n=Ase();return n.startListening({actionCreator:e.fulfilled,effect:({payload:r},{dispatch:i})=>{i_(r)&&i(t())}}),n},lae=e=>Gn({name:CE,initialState:G3,reducers:{},extraReducers:t=>{t.addCase(EE,()=>G3),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),ji=e=>t=>i_(t)&&tae(t.version,{minVersion:e}),TE={forwardQuery:ji("2.9.0"),nonRestCors:ji("2.9.0"),defaultDomainRedirectsEdition:ji("2.10.0"),nonOrphanVisits:ji("3.0.0"),allTagsFiltering:ji("3.0.0"),tagsStats:ji("3.0.0"),domainVisits:ji("3.1.0"),excludeBotsOnShortUrls:ji("3.4.0"),filterDisabledUrls:ji("3.4.0"),deviceLongUrls:ji("3.5.0")};Object.freeze(TE);const Mi=(e,t)=>H.useMemo(()=>TE[e](t),[e,J5]);const cae=(e,t,n,r,i,o,s,a,l,c,f,h,p)=>q5(({selectedServer:m,sidebarNotPresent:g,sidebarPresent:v})=>{const w=Mn(),[y,b,x,T]=jt(),P=i_(m);if(H.useEffect(()=>T(),[w]),H.useEffect(()=>(P&&v(),()=>g()),[]),!P)return C(c,{});const k=Mi("nonOrphanVisits",m),N=Mi("domainVisits",m),D=ge("menu-layout__burger-icon",{"menu-layout__burger-icon--active":y}),z=Eoe(x,T);return U(We,{children:[C(Fe,{icon:KX,className:D,onClick:b}),C("div",{...z,className:"menu-layout__swipeable",children:U("div",{className:"menu-layout__swipeable-inner",children:[C(n,{selectedServer:m,showOnMobile:y}),C("div",{className:"menu-layout__container",onClick:()=>T(),children:C("div",{className:"container-xl",children:U(e_,{children:[C(yt,{index:!0,element:C(ZS,{replace:!0,to:"overview"})}),C(yt,{path:"/overview",element:C(f,{})}),C(yt,{path:"/list-short-urls/:page",element:C(t,{})}),C(yt,{path:"/create-short-url",element:C(r,{})}),C(yt,{path:"/short-code/:shortCode/visits/*",element:C(i,{})}),C(yt,{path:"/short-code/:shortCode/edit",element:C(h,{})}),C(yt,{path:"/tag/:tag/visits/*",element:C(o,{})}),N&&C(yt,{path:"/domain/:domain/visits/*",element:C(s,{})}),C(yt,{path:"/orphan-visits/*",element:C(a,{})}),k&&C(yt,{path:"/non-orphan-visits/*",element:C(l,{})}),C(yt,{path:"/manage-tags",element:C(e,{})}),C(yt,{path:"/manage-domains",element:C(p,{})}),C(yt,{path:"*",element:C(C5,{to:`/server/${m.id}/list-short-urls/1`,children:"List short URLs"})})]})})})]})})]})},c),uae={sidebarPresent:!1},{actions:fae,reducer:dae}=Gn({name:"shlink/sidebar",initialState:uae,reducers:{sidebarPresent:()=>({sidebarPresent:!0}),sidebarNotPresent:()=>({sidebarPresent:!1})}}),{sidebarPresent:hae,sidebarNotPresent:pae}=fae,mae=dae,gae=({children:e})=>{const t=Mn();return H.useEffect(()=>{scrollTo(0,0)},[t]),C(We,{children:e})},vae="%_VERSION_%",yae=It(Q5(),X5),Z3=({project:e,version:t})=>C(Ei,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:C("b",{children:t})}),_ae=({selectedServer:e,clientVersion:t=vae})=>{const n=yae(t);return U("small",{className:"text-muted",children:[i_(e)&&U(We,{children:["Server: ",C(Z3,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",C(Z3,{project:"shlink-web-client",version:n})]})};const bae=({selectedServer:e,sidebar:t})=>{const n=ge("text-center",{"shlink-versions-container--with-sidebar":t.sidebarPresent});return C("div",{className:n,children:C(_ae,{selectedServer:e})})},K3={"Content-Type":"application/json"},X3=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...K3}}:{headers:K3}:e;class wae{constructor(t){Se(this,"fetchJson",(t,n)=>this.fetch(t,X3(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));Se(this,"fetchEmpty",(t,n)=>this.fetch(t,X3(n)).then(async r=>{if(!r.ok)throw await r.json()}));Se(this,"fetchBlob",t=>this.fetch(t).then(n=>n.blob()));this.fetch=t}}const e8=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},t8=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);e8(e,i,n)};class xae{constructor(t,n){this.httpClient=t,this.window=n}async saveImage(t,n){const r=await this.httpClient.fetchBlob(t),i=URL.createObjectURL(r);e8(this.window,i,n)}}class Sae{constructor(t,n){Se(this,"exportVisits",(t,n)=>{n.length&&this.exportCsv(t,n)});Se(this,"exportShortUrls",t=>{t.length&&this.exportCsv("short_urls.csv",t)});Se(this,"exportCsv",(t,n)=>{const r=this.jsonToCsv(n);t8(this.window,r,t)});this.window=t,this.jsonToCsv=n}}const Cae=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",wae,"fetch"),e.service("ImageDownloader",xae,"HttpClient","window"),e.service("ReportExporter",Sae,"window","jsonToCsv"),e.serviceFactory("ScrollToTop",()=>gae),e.serviceFactory("MainHeader",qse,"ServersDropdown"),e.serviceFactory("Home",()=>Yse),e.decorator("Home",vv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",cae,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",Use,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",()=>bae),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",Vse,"window","console"),e.serviceFactory("sidebarPresent",()=>hae),e.serviceFactory("sidebarNotPresent",()=>pae)};const ia=({text:e,disabled:t=!1,className:n="",children:r,dropdownClassName:i,right:o=!1,minWidth:s})=>{const[a,l]=jt(),c=`dropdown-btn__toggle btn-block ${n}`,f={minWidth:s&&`${s}px`};return U(ru,{isOpen:a,toggle:l,disabled:t,className:i,children:[C(iu,{caret:!0,className:c,color:"primary",children:e}),C(ml,{className:"w-100",end:o,style:f,children:r})]})};const Eae=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=jt(),{domains:a}=n,l=qn(t),c=()=>r("");return H.useEffect(()=>{e()},[]),i?U(th,{children:[C(zc,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),C(mt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:It(c,s),children:C(Fe,{icon:vQ})}),C(Or,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):U(ia,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>U(Ve,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&C("span",{className:"float-end text-muted",children:"default"})]},f)),C(Ve,{divider:!0}),C(Ve,{onClick:It(c,o),children:C("i",{children:"New domain"})})]})},Ao=({errorData:e,fallbackMessage:t})=>U(We,{children:[(e==null?void 0:e.detail)??t,NX(e)&&U("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),Dr=({children:e,type:t,className:n,small:r=!1})=>C(er,{className:n,children:C("div",{className:ge({"col-md-10 offset-md-1":!r,"col-12":r}),children:C(dn,{role:"document",className:ge("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:ge({"p-2":r}),children:e})})});const Tae=500;let Mp;const ah=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,s]=H.useState(i),a=()=>{Mp&&clearTimeout(Mp),Mp=null},l=(c,f=Tae)=>{s(c),a(),Mp=setTimeout(()=>{e(c),a()},f)};return U("div",{className:ge("search-field",t),children:[C("input",{type:"text",className:ge("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>l(c.target.value)}),C(Fe,{icon:kQ,className:"search-field__icon"}),C("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})};const E_=({isOpen:e,toggle:t,children:n,right:r=!0})=>U(g_,{toggle:t,isOpen:e,children:[U(iu,{size:"sm",caret:!0,outline:!0,className:"dropdown-btn-menu__dropdown-toggle",children:[" ",C(Fe,{icon:bQ})," "]}),C(ml,{end:r,children:n})]}),kf=(e,t,n)=>Bo(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Oae=(e,t)=>!e.domain&&t===k8?!0:e.domain===t,Pae=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls,validateUrl:n}:{longUrl:"",validateUrl:n}},n8="__",kae=e=>e.replaceAll("/",n8),gm=e=>e.replaceAll(n8,"/");function et(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Pe(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vm=function(n){return typeof n}:vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vm(e)}function Re(e){Pe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||vm(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function vl(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function ro(e,t){Pe(2,arguments);var n=Re(e),r=et(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ym=function(n){return typeof n}:ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ym(e)}function Mae(e,t){if(Pe(2,arguments),!t||ym(t)!=="object")return new Date(NaN);var n=t.years?et(t.years):0,r=t.months?et(t.months):0,i=t.weeks?et(t.weeks):0,o=t.days?et(t.days):0,s=t.hours?et(t.hours):0,a=t.minutes?et(t.minutes):0,l=t.seconds?et(t.seconds):0,c=Re(e),f=r||n?ro(c,r+n*12):c,h=o||i?vl(f,o+i*7):f,p=a+s*60,m=l+p*60,g=m*1e3,v=new Date(h.getTime()+g);return v}function OE(e,t){Pe(2,arguments);var n=Re(e).getTime(),r=et(t);return new Date(n+r)}var Rae=36e5;function Nae(e,t){Pe(2,arguments);var n=et(t);return OE(e,n*Rae)}var Lae={};function Wo(){return Lae}function r8(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Wo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Re(e),m=p.getDay(),g=(m=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Aae(e){Pe(1,arguments);var t=Dae(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Td(n);return r}function Uc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Ar(e){Pe(1,arguments);var t=Re(e);return t.setHours(0,0,0,0),t}var Iae=864e5;function Od(e,t){Pe(2,arguments);var n=Ar(e),r=Ar(t),i=n.getTime()-Uc(n),o=r.getTime()-Uc(r);return Math.round((i-o)/Iae)}var Fae=6e4;function Qw(e,t){Pe(2,arguments);var n=et(t);return OE(e,n*Fae)}function PE(e,t){Pe(2,arguments);var n=et(t),r=n*7;return vl(e,r)}function Vc(e,t){Pe(2,arguments);var n=et(t);return ro(e,n*12)}function _m(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_m=function(n){return typeof n}:_m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_m(e)}function Q3(e){Pe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(_m(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Re(r);(n===void 0||ni||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function wm(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var kE=6e4,T_=36e5,$ae=1e3;function jae(e,t){Pe(2,arguments);var n=Ar(e),r=Ar(t);return n.getTime()===r.getTime()}function xm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xm=function(n){return typeof n}:xm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xm(e)}function ME(e){return Pe(1,arguments),e instanceof Date||xm(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function i8(e){if(Pe(1,arguments),!ME(e)&&typeof e!="number")return!1;var t=Re(e);return!isNaN(Number(t))}function Pd(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Jw(e){Pe(1,arguments);var t=Re(e),n=Math.floor(t.getMonth()/3)+1;return n}function yv(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()-r.getFullYear()}function eR(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function RE(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=eR(n,r),o=Math.abs(Od(n,r));n.setDate(n.getDate()-i*o);var s=+(eR(n,r)===-i),a=i*(o-s);return a===0?0:a}function o8(e,t){return Pe(2,arguments),Re(e).getTime()-Re(t).getTime()}var tR={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Bae="trunc";function NE(e){return e?tR[e]:tR[Bae]}function zae(e,t,n){Pe(2,arguments);var r=o8(e,t)/T_;return NE(n==null?void 0:n.roundingMethod)(r)}function al(e){Pe(1,arguments);var t=Re(e);return t.setHours(23,59,59,999),t}function Uae(e){Pe(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Vae(e){Pe(1,arguments);var t=Re(e);return al(t).getTime()===Uae(t).getTime()}function _v(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=wm(n,r),o=Math.abs(Pd(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=wm(n,r)===-i;Vae(Re(e))&&o===1&&wm(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function Hae(e,t,n){Pe(2,arguments);var r=o8(e,t)/1e3;return NE(n==null?void 0:n.roundingMethod)(r)}function Wae(e,t,n){Pe(2,arguments);var r=RE(e,t)/7;return NE(n==null?void 0:n.roundingMethod)(r)}function e2(e){Pe(1,arguments);var t=Re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Yae(e){Pe(1,arguments);var t=Re(e);return t.setDate(1),t.setHours(0,0,0,0),t}function qae(e){Pe(1,arguments);var t=Re(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Gae(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Wo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Re(e),m=p.getDay(),g=(m=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Qae(e){Pe(1,arguments);var t=a8(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Hc(n);return r}var Jae=6048e5;function l8(e){Pe(1,arguments);var t=Re(e),n=Hc(t).getTime()-Qae(t).getTime();return Math.round(n/Jae)+1}function ll(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Wo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Re(e),m=p.getUTCDay(),g=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(h+1,0,m),g.setUTCHours(0,0,0,0);var v=ll(g,t),w=new Date(0);w.setUTCFullYear(h,0,m),w.setUTCHours(0,0,0,0);var y=ll(w,t);return f.getTime()>=v.getTime()?h+1:f.getTime()>=y.getTime()?h:h-1}function ele(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Wo(),h=et((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=LE(e,t),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var g=ll(m,t);return g}var tle=6048e5;function c8(e,t){Pe(1,arguments);var n=Re(e),r=ll(n,t).getTime()-ele(n,t).getTime();return Math.round(r/tle)+1}function rt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return rt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):rt(r+1,2)},d:function(t,n){return rt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return rt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return rt(t.getUTCHours(),n.length)},m:function(t,n){return rt(t.getUTCMinutes(),n.length)},s:function(t,n){return rt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return rt(o,n.length)}};const Xo=nle;var Fl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},rle={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Xo.y(t,n)},Y:function(t,n,r,i){var o=LE(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return rt(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):rt(s,n.length)},R:function(t,n){var r=a8(t);return rt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return rt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return rt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return rt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Xo.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return rt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=c8(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):rt(o,n.length)},I:function(t,n,r){var i=l8(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):rt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Xo.d(t,n)},D:function(t,n,r){var i=Xae(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):rt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return rt(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return rt(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return rt(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Fl.noon:i===0?o=Fl.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Fl.evening:i>=12?o=Fl.afternoon:i>=4?o=Fl.morning:o=Fl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Xo.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Xo.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):rt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):rt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Xo.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Xo.s(t,n)},S:function(t,n){return Xo.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return rR(s);case"XXXX":case"XX":return ka(s);case"XXXXX":case"XXX":default:return ka(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return rR(s);case"xxxx":case"xx":return ka(s);case"xxxxx":case"xxx":default:return ka(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+nR(s,":");case"OOOO":default:return"GMT"+ka(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+nR(s,":");case"zzzz":default:return"GMT"+ka(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return rt(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return rt(s,n.length)}};function nR(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t||"";return n+String(i)+s+rt(o,2)}function rR(e,t){if(e%60===0){var n=e>0?"-":"+";return n+rt(Math.abs(e)/60,2)}return ka(e,t)}function ka(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=rt(Math.floor(i/60),2),s=rt(i%60,2);return r+o+n+s}const ile=rle;var iR=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},u8=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},ole=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return iR(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",iR(i,n)).replace("{{time}}",u8(o,n))},sle={p:u8,P:ole};const t2=sle;var ale=["D","DD"],lle=["YY","YYYY"];function f8(e){return ale.indexOf(e)!==-1}function d8(e){return lle.indexOf(e)!==-1}function bv(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var cle={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ule=function(t,n,r){var i,o=cle[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const fle=ule;function P1(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var dle={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hle={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ple={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mle={date:P1({formats:dle,defaultWidth:"full"}),time:P1({formats:hle,defaultWidth:"full"}),dateTime:P1({formats:ple,defaultWidth:"full"})};const gle=mle;var vle={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yle=function(t,n,r,i){return vle[t]};const _le=yle;function Bu(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var ble={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},wle={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xle={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Sle={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Cle={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ele={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Tle=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ole={ordinalNumber:Tle,era:Bu({values:ble,defaultWidth:"wide"}),quarter:Bu({values:wle,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Bu({values:xle,defaultWidth:"wide"}),day:Bu({values:Sle,defaultWidth:"wide"}),dayPeriod:Bu({values:Cle,defaultWidth:"wide",formattingValues:Ele,defaultFormattingWidth:"wide"})};const Ple=Ole;function zu(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Mle(a,function(h){return h.test(s)}):kle(a,function(h){return h.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function kle(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Mle(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Nle=/^(\d+)(th|st|nd|rd)?/i,Lle=/\d+/i,Dle={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ale={any:[/^b/i,/^(a|c)/i]},Ile={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fle={any:[/1/i,/2/i,/3/i,/4/i]},$le={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},jle={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ble={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zle={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ule={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Vle={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Hle={ordinalNumber:Rle({matchPattern:Nle,parsePattern:Lle,valueCallback:function(t){return parseInt(t,10)}}),era:zu({matchPatterns:Dle,defaultMatchWidth:"wide",parsePatterns:Ale,defaultParseWidth:"any"}),quarter:zu({matchPatterns:Ile,defaultMatchWidth:"wide",parsePatterns:Fle,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:zu({matchPatterns:$le,defaultMatchWidth:"wide",parsePatterns:jle,defaultParseWidth:"any"}),day:zu({matchPatterns:Ble,defaultMatchWidth:"wide",parsePatterns:zle,defaultParseWidth:"any"}),dayPeriod:zu({matchPatterns:Ule,defaultMatchWidth:"any",parsePatterns:Vle,defaultParseWidth:"any"})};const Wle=Hle;var Yle={code:"en-US",formatDistance:fle,formatLong:gle,formatRelative:_le,localize:Ple,match:Wle,options:{weekStartsOn:0,firstWeekContainsDate:1}};const DE=Yle;var qle=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gle=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zle=/^'([^]*?)'?$/,Kle=/''/g,Xle=/[a-zA-Z]/;function _o(e,t,n){var r,i,o,s,a,l,c,f,h,p,m,g,v,w,y,b,x,T;Pe(2,arguments);var P=String(t),k=Wo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:DE,D=et((o=(s=(a=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:k.firstWeekContainsDate)!==null&&s!==void 0?s:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=et((m=(g=(v=(w=n==null?void 0:n.weekStartsOn)!==null&&w!==void 0?w:n==null||(y=n.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&g!==void 0?g:(x=k.locale)===null||x===void 0||(T=x.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&m!==void 0?m:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var A=Re(e);if(!i8(A))throw new RangeError("Invalid time value");var Y=Uc(A),q=s8(A,Y),ee={firstWeekContainsDate:D,weekStartsOn:z,locale:N,_originalDate:A},K=P.match(Gle).map(function(te){var oe=te[0];if(oe==="p"||oe==="P"){var se=t2[oe];return se(te,N.formatLong)}return te}).join("").match(qle).map(function(te){if(te==="''")return"'";var oe=te[0];if(oe==="'")return Qle(te);var se=ile[oe];if(se)return!(n!=null&&n.useAdditionalWeekYearTokens)&&d8(te)&&bv(te,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&f8(te)&&bv(te,t,String(e)),se(q,te,N.localize,ee);if(oe.match(Xle))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");return te}).join("");return K}function Qle(e){var t=e.match(Zle);return t?t[1].replace(Kle,"'"):e}function AE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Jle(e){return AE({},e)}var oR=1440,ece=2520,k1=43200,tce=86400;function nce(e,t,n){var r,i;Pe(2,arguments);var o=Wo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:DE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=wm(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=AE(Jle(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:a}),c,f;a>0?(c=Re(t),f=Re(e)):(c=Re(e),f=Re(t));var h=Hae(f,c),p=(Uc(f)-Uc(c))/1e3,m=Math.round((h-p)/60),g;if(m<2)return n!=null&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,l):h<10?s.formatDistance("lessThanXSeconds",10,l):h<20?s.formatDistance("lessThanXSeconds",20,l):h<40?s.formatDistance("halfAMinute",0,l):h<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):m===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",m,l);if(m<45)return s.formatDistance("xMinutes",m,l);if(m<90)return s.formatDistance("aboutXHours",1,l);if(mr.getTime()}function Kr(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getTime()"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function IE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function uR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sce=function(e){_ce(n,e);var t=bce(n);function n(){var r;vce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,s=Math.floor(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function _8(e){return e%400===0||e%4===0&&e%100!==0}function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function Cce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function dR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mce=function(e){Tce(n,e);var t=Oce(n);function n(){var r;Cce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=y8(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Tm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tm=function(n){return typeof n}:Tm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function Rce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function pR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fce=function(e){Lce(n,e);var t=Dce(n);function n(){var r;Rce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s,a){var l=LE(i,a);if(s.isTwoDigitYear){var c=y8(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ll(i,a)}var f=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ll(i,a)}}]),n}(gt);function Om(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Om=function(n){return typeof n}:Om=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function $ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function gR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hce=function(e){Bce(n,e);var t=zce(n);function n(){var r;$ce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}function yR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xce=function(e){qce(n,e);var t=Gce(n);function n(){var r;Wce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function bR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iue=function(e){eue(n,e);var t=tue(n);function n(){var r;Qce(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Mm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mm=function(n){return typeof n}:Mm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mm(e)}function oue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}function xR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fue=function(e){aue(n,e);var t=lue(n);function n(){var r;oue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Rm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rm=function(n){return typeof n}:Rm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rm(e)}function due(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}function CR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yue=function(e){pue(n,e);var t=mue(n);function n(){var r;due(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Nm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nm=function(n){return typeof n}:Nm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nm(e)}function _ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ER(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nv(e)}function TR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eue=function(e){wue(n,e);var t=xue(n);function n(){var r;_ue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Tue(e,t,n){Pe(2,arguments);var r=Re(e),i=et(t),o=c8(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lm=function(n){return typeof n}:Lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lm(e)}function Oue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lv(e)}function PR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lue=function(e){kue(n,e);var t=Mue(n);function n(){var r;Oue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s,a){return ll(Tue(i,s,a),a)}}]),n}(gt);function Due(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=l8(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dm=function(n){return typeof n}:Dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dm(e)}function Aue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dv(e)}function MR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zue=function(e){Fue(n,e);var t=$ue(n);function n(){var r;Aue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s){return Hc(Due(i,s))}}]),n}(gt);function Am(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Am=function(n){return typeof n}:Am=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Am(e)}function Uue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function M1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gue=[31,28,31,30,31,30,31,31,30,31,30,31],Zue=[31,29,31,30,31,30,31,31,30,31,30,31],Kue=function(e){Hue(n,e);var t=Wue(n);function n(){var r;Uue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=Zue[l]:o>=1&&o<=Gue[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Fm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fm=function(n){return typeof n}:Fm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fm(e)}function Xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iv(e)}function R1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rfe=function(e){Jue(n,e);var t=efe(n);function n(){var r;Xue(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function jE(e,t,n){var r,i,o,s,a,l,c,f;Pe(2,arguments);var h=Wo(),p=et((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(a=n.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Re(e),g=et(t),v=m.getUTCDay(),w=g%7,y=(w+7)%7,b=(y"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fv(e)}function DR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ufe=function(e){sfe(n,e);var t=afe(n);function n(){var r;ife(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=jE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bm=function(n){return typeof n}:Bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}function ffe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$v(e)}function IR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vfe=function(e){hfe(n,e);var t=pfe(n);function n(){var r;ffe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=jE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zm=function(n){return typeof n}:zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zm(e)}function yfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(e)}function $R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cfe=function(e){bfe(n,e);var t=wfe(n);function n(){var r;yfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=jE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Efe(e,t){Pe(2,arguments);var n=et(t);n%7===0&&(n=n-7);var r=1,i=Re(e),o=i.getUTCDay(),s=n%7,a=(s+7)%7,l=(a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Bv(e)}function BR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nfe=function(e){Pfe(n,e);var t=kfe(n);function n(){var r;Tfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=7}},{key:"set",value:function(i,o,s){return i=Efe(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vm=function(n){return typeof n}:Vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vm(e)}function Lfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zv(e)}function UR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jfe=function(e){Afe(n,e);var t=Ife(n);function n(){var r;Lfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uv(e)}function HR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yfe=function(e){Ufe(n,e);var t=Vfe(n);function n(){var r;Bfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vv(e)}function YR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jfe=function(e){Zfe(n,e);var t=Kfe(n);function n(){var r;qfe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Hv(e)}function GR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sde=function(e){nde(n,e);var t=rde(n);function n(){var r;ede(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):!a&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(gt);function qm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qm=function(n){return typeof n}:qm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qm(e)}function ade(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wv(e){return Wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Wv(e)}function KR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hde=function(e){cde(n,e);var t=ude(n);function n(){var r;ade(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(gt);function Gm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gm=function(n){return typeof n}:Gm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gm(e)}function pde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yv(e){return Yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yv(e)}function QR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bde=function(e){gde(n,e);var t=vde(n);function n(){var r;pde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(gt);function Zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zm=function(n){return typeof n}:Zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zm(e)}function wde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qv(e){return qv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qv(e)}function eN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ode=function(e){Sde(n,e);var t=Cde(n);function n(){var r;wde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=24}},{key:"set",value:function(i,o,s){var a=s<=24?s%24:s;return i.setUTCHours(a,0,0,0),i}}]),n}(gt);function Km(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Km=function(n){return typeof n}:Km=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Km(e)}function Pde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tN(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gv(e)}function nN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dde=function(e){Mde(n,e);var t=Rde(n);function n(){var r;Pde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(gt);function Xm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xm=function(n){return typeof n}:Xm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xm(e)}function Ade(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rN(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zv(e){return Zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zv(e)}function iN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zde=function(e){Fde(n,e);var t=$de(n);function n(){var r;Ade(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(gt);function Qm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qm=function(n){return typeof n}:Qm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qm(e)}function Ude(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oN(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kv(e){return Kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Kv(e)}function sN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gde=function(e){Hde(n,e);var t=Wde(n);function n(){var r;Ude(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xv(e)}function lN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var the=function(e){Xde(n,e);var t=Qde(n);function n(){var r;Zde(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qv(e){return Qv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qv(e)}function uN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lhe=function(e){ihe(n,e);var t=ohe(n);function n(){var r;nhe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jv(e){return Jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Jv(e)}function dN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mhe=function(e){fhe(n,e);var t=dhe(n);function n(){var r;che(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function pN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xhe=function(e){yhe(n,e);var t=_he(n);function n(){var r;ghe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Che(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Che(e,t){if(e){if(typeof e=="string")return gN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gN(e,t)}}function gN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=et((g=(v=(w=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&w!==void 0?w:D.weekStartsOn)!==null&&v!==void 0?v:(T=D.locale)===null||T===void 0||(P=T.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&g!==void 0?g:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(N==="")return k===""?Re(n):new Date(NaN);var q={firstWeekContainsDate:A,weekStartsOn:Y,locale:z},ee=[new pce],K=N.match(The).map(function(O){var R=O[0];if(R in t2){var F=t2[R];return F(O,z.formatLong)}return O}).join("").match(Ehe),te=[],oe=mN(K),se;try{var Z=function(){var R=se.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&d8(R)&&bv(R,N,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&f8(R)&&bv(R,N,e);var F=R[0],Q=She[F];if(Q){var X=Q.incompatibleTokens;if(Array.isArray(X)){var le=te.find(function(De){return X.includes(De.token)||De.token===F});if(le)throw new RangeError("The format string mustn't contain `".concat(le.fullToken,"` and `").concat(R,"` at the same time"))}else if(Q.incompatibleTokens==="*"&&te.length>0)throw new RangeError("The format string mustn't contain `".concat(R,"` and any other token at the same time"));te.push({token:F,fullToken:R});var ve=Q.run(k,R,z.match,q);if(!ve)return{v:new Date(NaN)};ee.push(ve.setter),k=ve.rest}else{if(F.match(Mhe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");if(R==="''"?R="'":F==="'"&&(R=Rhe(R)),k.indexOf(R)===0)k=k.slice(R.length);else return{v:new Date(NaN)}}};for(oe.s();!(se=oe.n()).done;){var $=Z();if(rg($)==="object")return $.v}}catch(O){oe.e(O)}finally{oe.f()}if(k.length>0&&khe.test(k))return new Date(NaN);var I=ee.map(function(O){return O.priority}).sort(function(O,R){return R-O}).filter(function(O,R,F){return F.indexOf(O)===R}).map(function(O){return ee.filter(function(R){return R.priority===O}).sort(function(R,F){return F.subPriority-R.subPriority})}).map(function(O){return O[0]}),B=Re(n);if(isNaN(B.getTime()))return new Date(NaN);var re=s8(B,Uc(B)),W={},G=mN(I),ne;try{for(G.s();!(ne=G.n()).done;){var ae=ne.value;if(!ae.validate(re,q))return new Date(NaN);var me=ae.set(re,W,q);Array.isArray(me)?(re=me[0],AE(W,me[1])):re=me}}catch(O){G.e(O)}finally{G.f()}return re}function Rhe(e){return e.match(Ohe)[1].replace(Phe,"'")}function Nhe(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Lhe(e,t){Pe(2,arguments);var n=e2(e),r=e2(t);return n.getTime()===r.getTime()}function Dhe(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()===r.getFullYear()}function Wc(e,t){Pe(2,arguments);var n=Re(e).getTime(),r=Re(t.start).getTime(),i=Re(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function BE(e,t){Pe(2,arguments);var n=et(t);return vl(e,-n)}function Io(e,t){var n;Pe(1,arguments);var r=et((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=$he(e),o;if(i.date){var s=jhe(i.date,r);o=Bhe(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a=o.getTime(),l=0,c;if(i.time&&(l=zhe(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Uhe(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(a+l),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(a+l+c)}var Rp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ahe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ihe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Fhe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $he(e){var t={},n=e.split(Rp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Rp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Rp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Rp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function jhe(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Bhe(e,t){if(t===null)return new Date(NaN);var n=e.match(Ahe);if(!n)return new Date(NaN);var r=!!n[4],i=Uu(n[1]),o=Uu(n[2])-1,s=Uu(n[3]),a=Uu(n[4]),l=Uu(n[5])-1;if(r)return qhe(t,a,l)?Vhe(t,a,l):new Date(NaN);var c=new Date(0);return!Whe(t,o,s)||!Yhe(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,s)),c)}function Uu(e){return e?parseInt(e):1}function zhe(e){var t=e.match(Ihe);if(!t)return NaN;var n=L1(t[1]),r=L1(t[2]),i=L1(t[3]);return Ghe(n,r,i)?n*T_+r*kE+i*1e3:NaN}function L1(e){return e&&parseFloat(e.replace(",","."))||0}function Uhe(e){if(e==="Z")return 0;var t=e.match(Fhe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Zhe(r,i)?n*(r*T_+i*kE):NaN}function Vhe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var Hhe=[31,null,31,30,31,30,31,31,30,31,30,31];function b8(e){return e%400===0||e%4===0&&e%100!==0}function Whe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Hhe[t]||(b8(e)?29:28))}function Yhe(e,t){return t>=1&&t<=(b8(e)?366:365)}function qhe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Ghe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Zhe(e,t){return t>=0&&t<=59}function qi(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var a=oce(s);return n.setMonth(r,Math.min(o,a)),n}function Mf(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setHours(r),n}function Rf(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setMinutes(r),n}function nf(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return qi(n,n.getMonth()+o*3)}function Khe(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setSeconds(r),n}function ty(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function kd(e,t){Pe(2,arguments);var n=et(t);return ro(e,-n)}function Xhe(e,t){Pe(2,arguments);var n=et(t);return PE(e,-n)}function Md(e,t){Pe(2,arguments);var n=et(t);return Vc(e,-n)}const Nf="yyyy-MM-dd",zE="yyyy-MM-dd HH:mm",Ws=()=>new Date,UE=e=>typeof e!="string",w8=(e,t)=>!e||!UE(e)?e:t?_o(e,t):rce(e),x8=(e=Nf)=>t=>w8(t,e),Ys=e=>w8(e,void 0),Np=x8(),ny=x8(zE),wi=e=>UE(e)?e:Io(e),vN=e=>e?wi(e):null,lh=(e,t,n)=>{try{return Wc(wi(e),{start:wi(t??e),end:wi(n??e)})}catch{return!1}},_a=(e,t)=>h8(e,t)||Kr(e,t),ch="all",S8={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[ch]:void 0},C8=Object.keys(S8),E8=e=>e===void 0||qn(CI(Boolean,e)),ry=e=>typeof e=="string"&&C8.includes(e),Qhe=C8.filter(e=>e!==ch),T8=(e,t)=>({startDate:vN(e),endDate:vN(t)}),Jhe=e=>{if(!(!e||E8(e)))return e.startDate&&!e.endDate?`Since ${Np(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Np(e.endDate)}`:`${Np(e.startDate)} - ${Np(e.endDate)}`},VE=e=>{if(!(!e||e===ch))return ry(e)?S8[e]:Jhe(e)},Gr=e=>Ar(BE(Ws(),e)),$l=e=>({startDate:e,endDate:al(Ws())}),O8=sC([[ya("today"),()=>$l(Ar(Ws()))],[ya("yesterday"),()=>({startDate:Gr(1),endDate:al(BE(Ws(),1))})],[ya("last7Days"),()=>$l(Gr(7))],[ya("last30Days"),()=>$l(Gr(30))],[ya("last90Days"),()=>$l(Gr(90))],[ya("last180Days"),()=>$l(Gr(180))],[ya("last365Days"),()=>$l(Gr(365))],[vI,()=>({})]]),epe=e=>{const t=wi(e);return sC([[()=>_a(Ar(Ws()),t),()=>"today"],[()=>_a(Gr(1),t),()=>"yesterday"],[()=>_a(Gr(7),t),()=>"last7Days"],[()=>_a(Gr(30),t),()=>"last30Days"],[()=>_a(Gr(90),t),()=>"last90Days"],[()=>_a(Gr(180),t),()=>"last180Days"],[()=>_a(Gr(365),t),()=>"last365Days"],[vI,()=>ch]])()},tpe=e=>ry(e)?O8(e):e,uh=bn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),yN=5e3,_N=4,bN=2,npe=({currentPage:e,pagesCount:t})=>e>=t,rpe=(e,t)=>t*100/e,fh=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=bn(`${e}/progressChanged`),o=bn(`${e}/large`),s=bn(`${e}/fallbackToInterval`),a=or(e,async(l,{getState:c,dispatch:f})=>{var b;const[h,p]=t(l,c),m=async x=>Promise.all(x.map(async T=>h(T,yN).then(ct("data")))).then(nZ),g=async(x,T=0)=>{if(r(c))return[];const P=await m(x[T]);return f(i(rpe(x.length,T+bN))),T{const{pagination:T,data:P}=await h(x,yN);if(!T||npe(T))return P;const k=aC(bN,T.pagesCount+1),N=dd(_N,k);return T.pagesCount-1>_N&&f(o()),P.concat(await g(N))},[w,y]=await Promise.all([v(),p((b=l.query)==null?void 0:b.excludeBots)]);return!w.length&&y&&f(s(epe(y.date))),{...n(l),visits:w}});return Object.assign(a,{progressChanged:i,large:o,fallbackToInterval:s})},dh=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),hh=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:s,large:a,progressChanged:l,fallbackToInterval:c}=t,{reducer:f,actions:h}=Gn({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(o,(g,{error:v})=>({...n,error:!0,errorData:io(v)})),m.addCase(s,(g,{payload:v})=>({...g,...v,loading:!1,loadingLarge:!1,error:!1})),m.addCase(a,g=>({...g,loadingLarge:!0})),m.addCase(l,(g,{payload:v})=>({...g,progress:v})),m.addCase(c,(g,{payload:v})=>({...g,fallbackInterval:v})),m.addCase(uh,(g,{payload:v})=>{const{visits:w}=g,y=r(g,v.createdVisits).map(({visit:b})=>b);return y.length?{...g,visits:[...y,...w]}:g})}}),{cancelGetVisits:p}=h;return{reducer:f,cancelGetVisits:p}},P8="shlink/domainVisits",k8="DEFAULT",ipe={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},ope=e=>fh({typePrefix:`${P8}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getDomainVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=dh(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),spe=e=>hh({name:P8,initialState:ipe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>s&&Oae(s,t)&&lh(a.date,i,o))}}),au=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>U("div",{className:`${n} ${i?"":"mb-3"}`,children:[C("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),ig=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:a})=>{const l=S_();return C(au,{label:U(We,{children:[e,":"]}),className:s??"",labelClassName:a,id:l,children:C("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},og=({className:e="",placement:t,children:n})=>{const r=gl();return U(We,{children:[C("span",{className:e,ref:r,children:C(Fe,{icon:bC})}),C(Or,{target:r,placement:t,children:n})]})},D1=({isLast:e,...t})=>C(ig,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),ape=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,m;const[i,o]=H.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[s,a]=H.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=H.useState(((m=n.redirects)==null?void 0:m.invalidShortUrlRedirect)??""),f=sh(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:T1(i),regular404Redirect:T1(s),invalidShortUrlRedirect:T1(l)}}).then(t));return C(Ho,{isOpen:e,toggle:t,centered:!0,children:U("form",{name:"domainRedirectsModal",onSubmit:f,children:[U(oo,{toggle:t,children:["Edit redirects for ",C("b",{children:n.domain})]}),U(Ri,{children:[U(D1,{value:i,onChange:o,children:[U(og,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",U("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),U(D1,{value:s,onChange:a,children:[U(og,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",U("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),U(D1,{value:l,isLast:!0,onChange:c,children:[C(og,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),U(na,{children:[C(mt,{color:"link",type:"button",onClick:t,children:"Cancel"}),C(mt,{color:"primary",children:"Save"})]})]})})},lpe=({domain:e,editDomainRedirects:t,selectedServer:n})=>{const[r,i]=jt(),[o,s]=jt(),{isDefault:a}=e,l=!a||Mi("defaultDomainRedirectsEdition",n),c=Mi("domainVisits",n),f=Yd(n);return U(E_,{isOpen:r,toggle:i,children:[c&&U(Ve,{tag:At,to:`/server/${f}/domain/${e.domain}${e.isDefault?`_${k8}`:""}/visits`,children:[C(Fe,{icon:_C,fixedWidth:!0})," Visit stats"]}),U(Ve,{disabled:!l,onClick:l?s:void 0,children:[C(Fe,{fixedWidth:!0,icon:yC})," Edit redirects"]}),C(ape,{domain:e,isOpen:o,toggle:s,editDomainRedirects:t})]})},cpe=({status:e,matchMedia:t=window.matchMedia})=>{const n=gl(),r=()=>t("(max-width: 991px)").matches,[i,o]=H.useState(r());return H.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e==="validating"?C(Fe,{fixedWidth:!0,icon:KI,spin:!0}):U(We,{children:[C("span",{ref:n,children:e==="valid"?C(Fe,{fixedWidth:!0,icon:pd,className:"text-muted"}):C(Fe,{fixedWidth:!0,icon:ww,className:"text-danger"})}),C(Or,{target:n,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":U("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",C("br",{}),"Check the ",C(Ei,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},A1=({fallback:e})=>U("span",{className:"text-muted",children:[!e&&C("small",{children:"No redirect"}),e&&U(We,{children:[e," ",C("small",{children:"(as fallback)"})]})]}),upe=()=>U(We,{children:[C(Fe,{fixedWidth:!0,icon:QX,className:"text-primary",id:"defaultDomainIcon"}),C(Or,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),fpe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r,selectedServer:i})=>{const{domain:o,isDefault:s,redirects:a,status:l}=e;return H.useEffect(()=>{n(e.domain)},[]),U("tr",{className:"responsive-table__row",children:[C("td",{className:"responsive-table__cell","data-th":"Is default domain",children:s&&C(upe,{})}),C("th",{className:"responsive-table__cell","data-th":"Domain",children:o}),C("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??C(A1,{fallback:r==null?void 0:r.baseUrlRedirect})}),C("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??C(A1,{fallback:r==null?void 0:r.regular404Redirect})}),C("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??C(A1,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),C("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:C(cpe,{status:l})}),C("td",{className:"responsive-table__cell text-end",children:C(lpe,{domain:e,editDomainRedirects:t,selectedServer:i})})]})},wN=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],dpe=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i,selectedServer:o})=>{var m;const{filteredDomains:s,defaultRedirects:a,loading:l,error:c,errorData:f}=t,h=a??((m=s.find(({isDefault:g})=>g))==null?void 0:m.redirects);return H.useEffect(()=>{e()},[]),l?C(Eo,{loading:!0}):U(We,{children:[C(ah,{className:"mb-3",onChange:n}),(()=>c?C(Dr,{type:"error",children:C(Ao,{errorData:f,fallbackMessage:"Error loading domains :("})}):C(dn,{children:U("table",{className:"table table-hover responsive-table mb-0",children:[C("thead",{className:"responsive-table__header",children:C("tr",{children:wN.map((g,v)=>C("th",{children:g},v))})}),U("tbody",{children:[s.length<1&&C("tr",{children:C("td",{colSpan:wN.length,className:"text-center",children:"No results found"})}),s.map(g=>C(fpe,{domain:g,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:h,selectedServer:o},g.domain))]})]})}))()]})},hpe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",ppe=e=>or(hpe,async({domain:t,redirects:n},{getState:r})=>{const{editDomainRedirects:i}=e(r),o=await i({domain:t,...n});return{domain:t,redirects:o}}),mpe=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},Lp="shlink/domainsList",Dp={domains:[],filteredDomains:[],loading:!1,error:!1},xN=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},SN=(e,t)=>n=>n.domain!==e?n:{...n,status:t},gpe=(e,t)=>{const n=or(`${Lp}/listDomains`,async(s,{getState:a})=>{const{listDomains:l}=e(a),{data:c,defaultRedirects:f}=await l();return{domains:c.map(h=>({...h,status:"validating"})),defaultRedirects:f}}),r=or(`${Lp}/checkDomainHealth`,async(s,{getState:a})=>{const{selectedServer:l}=a();if(!lC(l))return{domain:s,status:"invalid"};try{const{url:c,...f}=l,{health:h}=e({...f,url:mpe(c,s)}),{status:p}=await h();return{domain:s,status:p==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=bn(`${Lp}/filterDomains`),{reducer:o}=Gn({name:Lp,initialState:Dp,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...Dp,loading:!0})),s.addCase(n.rejected,(a,{error:l})=>({...Dp,error:!0,errorData:io(l)})),s.addCase(n.fulfilled,(a,{payload:l})=>({...Dp,...l,filteredDomains:l.domains})),s.addCase(r.fulfilled,({domains:a,filteredDomains:l,...c},{payload:f})=>({...c,domains:a.map(SN(f.domain,f.status)),filteredDomains:l.map(SN(f.domain,f.status))})),s.addCase(i,(a,{payload:l})=>({...a,filteredDomains:a.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),s.addCase(t.fulfilled,(a,{payload:l})=>({...a,domains:a.domains.map(xN(l)),filteredDomains:a.filteredDomains.map(xN(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},vpe=(e,t)=>{e.serviceFactory("DomainSelector",()=>Eae),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>dpe),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",gpe,"buildShlinkApiClient","editDomainRedirects"),e.serviceFactory("domainsListReducer",ct("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",ct("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",ct("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",ppe,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",ct("checkDomainHealth"),"domainsListReducerCreator")},CN="shlink/mercure",ype={loading:!0,error:!1},_pe=e=>{const t=or(`${CN}/loadMercureInfo`,(r,{getState:i})=>{const{settings:o}=i();if(!o.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e(i).mercureInfo()}),{reducer:n}=Gn({name:CN,initialState:ype,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},bpe=e=>{e.serviceFactory("mercureInfoReducerCreator",_pe,"buildShlinkApiClient"),e.serviceFactory("mercureInfoReducer",ct("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",ct("loadMercureInfo"),"mercureInfoReducerCreator")},M8=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return U(Ho,{centered:!0,isOpen:e,children:[U(oo,{children:["Duplicated server",i&&"s"]}),U(Ri,{children:[C("p",{children:i?"The next servers already exist:":"There is already a server with:"}),C("ul",{children:t.map(({url:o,apiKey:s},a)=>i?U("li",{children:[C("b",{children:o})," - ",C("b",{children:s})]},a):U(H.Fragment,{children:[U("li",{children:["URL: ",C("b",{children:o})]}),U("li",{children:["API key: ",C("b",{children:s})]})]},a))}),U("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),U(na,{children:[C(mt,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),C(mt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},R8=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=H.useState(""),[s,a]=H.useState(""),[l,c]=H.useState(""),f=sh(()=>e({name:i,url:s,apiKey:l}));return H.useEffect(()=>{t&&o(t.name),t&&a(t.url),t&&c(t.apiKey)},[t]),U("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[U(dn,{className:"mb-3",title:r,children:[C(ig,{value:i,onChange:o,children:"Name"}),C(ig,{type:"url",value:s,onChange:a,children:"URL"}),C(ig,{value:l,onChange:c,children:"API key"})]}),C("div",{className:"text-end",children:n})]})},EN=4e3,TN=({type:e})=>C("div",{className:"mt-3",children:U(Dr,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),wpe=(e,t)=>({servers:n,createServers:r})=>{const i=jo(),o=ra(),s=!!Object.keys(n).length,[a,l]=t(!1,EN),[c,f]=t(!1,EN),[h,p]=jt(),[m,g]=H.useState(),v=()=>{if(!m)return;const w=dE();r([{...m,id:w}]),i(`/server/${w}`)};return H.useEffect(()=>{Object.values(n).some(({url:y,apiKey:b})=>(m==null?void 0:m.url)===y&&(m==null?void 0:m.apiKey)===b)?p():v()},[m]),U(su,{children:[U(R8,{title:C("h5",{className:"mb-0",children:"Add new server"}),onSubmit:g,children:[!s&&C(e,{tooltipPlacement:"top",onImport:l,onImportError:f}),s&&C(mt,{outline:!0,onClick:o,children:"Cancel"}),C(mt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),a&&C(TN,{type:"success"}),c&&C(TN,{type:"error"}),C(M8,{isOpen:h,duplicatedServers:m?[m]:[],onDiscard:o,onSave:v})]})},xpe=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,s,a]=jt();return U(We,{children:[U("span",{className:n,onClick:s,children:[!r&&C(Fe,{fixedWidth:!0,icon:vC}),C("span",{className:i,children:r??"Remove this server"})]}),C(e,{server:t,isOpen:o,toggle:a})]})},Spe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=jo(),s=H.useRef(!1),a=()=>{s.current=!0,t()};return U(Ho,{isOpen:n,toggle:t,centered:!0,onClosed:()=>{s.current&&(r(e),i&&o("/"))},children:[C(oo,{toggle:t,className:"text-danger",children:"Remove server"}),U(Ri,{children:[U("p",{children:["Are you sure you want to remove ",C("b",{children:e?e.name:""}),"?"]}),C("p",{children:C("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),U(na,{children:[C(mt,{color:"link",onClick:t,children:"Cancel"}),C(mt,{color:"danger",onClick:a,children:"Delete"})]})]})},Cpe=e=>q5(({editServer:t,selectedServer:n,selectServer:r})=>{const i=ra(),{reconnect:o}=Poe();if(!Ms(n))return null;const s=a=>{t(n.id,a),o==="true"&&r(n.id),i()};return C(su,{children:U(R8,{title:U("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:s,children:[C(mt,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),C(mt,{outline:!0,color:"primary",children:"Save"})]})})},e);const ON=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),Epe=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:s="bottom",className:a=""})=>{const l=gl(),[c,f]=H.useState(),[h,p]=H.useState([]),[m,,g,v]=jt(),w=It(t,i),y=It(()=>w(c??[]),v),b=It(()=>w((c??[]).filter(_G(ON(h)))),v),x=async({target:T})=>{var P;return e((P=T.files)==null?void 0:P[0]).then(f).then(()=>{T.value=null}).catch(o)};return H.useEffect(()=>{if(!c)return;const T=Object.values(n),P=c.filter(ON(T)),k=!!P.length;k?p(P):w(c),k&&g()},[c]),U(We,{children:[U(mt,{outline:!0,id:"importBtn",className:a,onClick:()=>{var T;return(T=l.current)==null?void 0:T.click()},children:[C(Fe,{icon:iQ,fixedWidth:!0})," ",r??"Import from file"]}),U(Or,{placement:s,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",C("b",{children:"name"}),", ",C("b",{children:"apiKey"})," and ",C("b",{children:"url"}),"."]}),C("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:l,onChange:x}),C(M8,{isOpen:m,duplicatedServers:h,onDiscard:b,onSave:y})]})};const Tpe=e=>({servers:t,selectedServer:n})=>C(su,{children:U("div",{className:"server-error__container flex-column",children:[U(Eo,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Ms(n)&&"Could not find this Shlink server.",Ms(n)&&U(We,{children:[C("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),U(W5,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",C(At,{to:"/server/create",children:"add a new one"}),"."]}),Ms(n)&&C("div",{className:"container mt-3 mt-md-5",children:U("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",C(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",C(At,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})}),Ope=4e3,Ppe=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[s,a]=H.useState(o),l=p=>a(o.filter(({name:m,url:g})=>`${m} ${g}`.toLowerCase().match(p.toLowerCase()))),c=s.some(({autoConnect:p})=>!!p),[f,h]=n(!1,Ope);return H.useEffect(()=>{a(Object.values(i))},[i]),U(su,{children:[C(ah,{className:"mb-3",onChange:l}),U(er,{className:"mb-3",children:[U("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[C(t,{className:"flex-fill",onImportError:h,children:"Import servers"}),o.length>0&&U(mt,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[C(Fe,{icon:t6,fixedWidth:!0})," Export servers"]})]}),C("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:U(mt,{outline:!0,color:"primary",className:"flex-fill",tag:At,to:"/server/create",children:[C(Fe,{icon:wC,fixedWidth:!0})," Add a server"]})})]}),C(dn,{children:U("table",{className:"table table-hover responsive-table mb-0",children:[C("thead",{className:"responsive-table__header",children:U("tr",{children:[c&&C("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),C("th",{children:"Name"}),C("th",{children:"Base URL"}),C("th",{"aria-label":"Options"})]})}),U("tbody",{children:[!s.length&&C("tr",{className:"text-center",children:C("td",{colSpan:4,children:"No servers found."})}),s.map(p=>C(r,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&C("div",{className:"mt-3",children:C(Dr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},kpe=e=>({server:t,hasAutoConnect:n})=>U("tr",{className:"responsive-table__row",children:[n&&C("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&U(We,{children:[C(Fe,{icon:pd,className:"text-primary",id:"autoConnectIcon"}),C(Or,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),C("th",{className:"responsive-table__cell","data-th":"Name",children:C(At,{to:`/server/${t.id}`,children:t.name})}),C("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),C("td",{className:"responsive-table__cell text-end",children:C(e,{server:t})})]});var Mpe={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},Rpe=Mpe,Npe={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 135.1c-4.2-4.5-10.1-7.1-16.3-7.1C266 128 256 138 256 150.3V208H160c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h96v57.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.3-7.1l99.9-107.1c3.5-3.8 5.5-8.7 5.5-13.8s-2-10.1-5.5-13.8L294.6 135.1z"]},Lpe=Npe,Dpe={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},N8={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z"]};const Ape=e=>({server:t,setAutoConnect:n})=>{const[r,i]=jt(),[o,,s,a]=jt(),l=`/server/${t.id}`,{autoConnect:c}=t,f=c?nQ:Dpe;return U(E_,{isOpen:r,toggle:i,children:[U(Ve,{tag:At,to:l,children:[C(Fe,{icon:eQ,fixedWidth:!0})," Connect"]}),U(Ve,{tag:At,to:`${l}/edit`,children:[C(Fe,{icon:yC,fixedWidth:!0})," Edit server"]}),U(Ve,{onClick:()=>n(t,!c),children:[C(Fe,{icon:f,fixedWidth:!0})," ",c?"Do not a":"A","uto-connect"]}),C(Ve,{divider:!0}),U(Ve,{className:"dropdown-item--danger",onClick:s,children:[C(Fe,{icon:vC,fixedWidth:!0})," Remove server"]}),C(e,{redirectHome:!1,server:t,isOpen:o,toggle:a})]})};var iy={},Ipe={get exports(){return iy},set exports(e){iy=e}};/** @license + * eventsource.js + * Available under MIT License (MIT) + * https://github.com/Yaffle/EventSource/ + */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,a=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,h=n.fetch,p=n.Response,m=n.TextDecoder,g=n.TextEncoder,v=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(fe){c.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(fe){function ye(){}return ye.prototype=fe,new ye}),Date.now||(Date.now=function(){return new Date().getTime()}),v==null){var w=h;h=function(fe,ye){var be=ye.signal;return w(fe,{headers:ye.headers,credentials:ye.credentials,cache:ye.cache}).then(function(Oe){var Ae=Oe.body.getReader();return be._reader=Ae,be._aborted&&be._reader.cancel(),{status:Oe.status,statusText:Oe.statusText,headers:Oe.headers,body:{getReader:function(){return Ae}}}})},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function y(){this.bitsNeeded=0,this.codePoint=0}y.prototype.decode=function(fe){function ye(we,_e,Ee){if(Ee===1)return we>=128>>_e&&we<<_e<=2047;if(Ee===2)return we>=2048>>_e&&we<<_e<=55295||we>=57344>>_e&&we<<_e<=65535;if(Ee===3)return we>=65536>>_e&&we<<_e<=1114111;throw new Error}function be(we,_e){if(we===6*1)return _e>>6>15?3:_e>31?2:1;if(we===6*2)return _e>15?3:2;if(we===6*3)return 3;throw new Error}for(var Oe=65533,Ae="",Ne=this.bitsNeeded,Le=this.codePoint,ue=0;ue191||!ye(Le<<6|he&63,Ne-6,be(Ne,Le)))&&(Ne=0,Le=Oe,Ae+=String.fromCharCode(Le)),Ne===0?(he>=0&&he<=127?(Ne=0,Le=he):he>=192&&he<=223?(Ne=6*1,Le=he&31):he>=224&&he<=239?(Ne=6*2,Le=he&15):he>=240&&he<=247?(Ne=6*3,Le=he&7):(Ne=0,Le=Oe),Ne!==0&&!ye(Le,Ne,be(Ne,Le))&&(Ne=0,Le=Oe)):(Ne-=6,Le=Le<<6|he&63),Ne===0&&(Le<=65535?Ae+=String.fromCharCode(Le):(Ae+=String.fromCharCode(55296+(Le-65535-1>>10)),Ae+=String.fromCharCode(56320+(Le-65535-1&1023))))}return this.bitsNeeded=Ne,this.codePoint=Le,Ae};var b=function(){try{return new m().decode(new g().encode("test"),{stream:!0})==="test"}catch(fe){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+fe)}return!1};(m==null||g==null||!b())&&(m=y);var x=function(){};function T(fe){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=x,this.onload=x,this.onerror=x,this.onreadystatechange=x,this._contentType="",this._xhr=fe,this._sendTimeout=0,this._abort=x}T.prototype.open=function(fe,ye){this._abort(!0);var be=this,Oe=this._xhr,Ae=1,Ne=0;this._abort=function(Ee){be._sendTimeout!==0&&(i(be._sendTimeout),be._sendTimeout=0),(Ae===1||Ae===2||Ae===3)&&(Ae=4,Oe.onload=x,Oe.onerror=x,Oe.onabort=x,Oe.onprogress=x,Oe.onreadystatechange=x,Oe.abort(),Ne!==0&&(i(Ne),Ne=0),Ee||(be.readyState=4,be.onabort(null),be.onreadystatechange())),Ae=0};var Le=function(){if(Ae===1){var Ee=0,Me="",$e=void 0;if("contentType"in Oe)Ee=200,Me="OK",$e=Oe.contentType;else try{Ee=Oe.status,Me=Oe.statusText,$e=Oe.getResponseHeader("Content-Type")}catch{Ee=0,Me="",$e=void 0}Ee!==0&&(Ae=2,be.readyState=2,be.status=Ee,be.statusText=Me,be._contentType=$e,be.onreadystatechange())}},ue=function(){if(Le(),Ae===2||Ae===3){Ae=3;var Ee="";try{Ee=Oe.responseText}catch{}be.readyState=3,be.responseText=Ee,be.onprogress()}},he=function(Ee,Me){if((Me==null||Me.preventDefault==null)&&(Me={preventDefault:x}),ue(),Ae===1||Ae===2||Ae===3){if(Ae=4,Ne!==0&&(i(Ne),Ne=0),be.readyState=4,Ee==="load")be.onload(Me);else if(Ee==="error")be.onerror(Me);else if(Ee==="abort")be.onabort(Me);else throw new TypeError;be.onreadystatechange()}},we=function(Ee){Oe!=null&&(Oe.readyState===4?(!("onload"in Oe)||!("onerror"in Oe)||!("onabort"in Oe))&&he(Oe.responseText===""?"error":"load",Ee):Oe.readyState===3?"onprogress"in Oe||ue():Oe.readyState===2&&Le())},_e=function(){Ne=r(function(){_e()},500),Oe.readyState===3&&ue()};"onload"in Oe&&(Oe.onload=function(Ee){he("load",Ee)}),"onerror"in Oe&&(Oe.onerror=function(Ee){he("error",Ee)}),"onabort"in Oe&&(Oe.onabort=function(Ee){he("abort",Ee)}),"onprogress"in Oe&&(Oe.onprogress=ue),"onreadystatechange"in Oe&&(Oe.onreadystatechange=function(Ee){we(Ee)}),("contentType"in Oe||!("ontimeout"in o.prototype))&&(ye+=(ye.indexOf("?")===-1?"?":"&")+"padding=true"),Oe.open(fe,ye,!0),"readyState"in Oe&&(Ne=r(function(){_e()},0))},T.prototype.abort=function(){this._abort(!1)},T.prototype.getResponseHeader=function(fe){return this._contentType},T.prototype.setRequestHeader=function(fe,ye){var be=this._xhr;"setRequestHeader"in be&&be.setRequestHeader(fe,ye)},T.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},T.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var fe=this;fe._sendTimeout=r(function(){fe._sendTimeout=0,fe.send()},4);return}var ye=this._xhr;"withCredentials"in ye&&(ye.withCredentials=this.withCredentials);try{ye.send(void 0)}catch(be){throw be}};function P(fe){return fe.replace(/[A-Z]/g,function(ye){return String.fromCharCode(ye.charCodeAt(0)+32)})}function k(fe){for(var ye=Object.create(null),be=fe.split(`\r +`),Oe=0;Oe"u"?typeof window<"u"?window:typeof self<"u"?self:Vl:globalThis)})(Ipe,iy);const Fpe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:a}=e;if(s||a||!i)return;const l=({data:h})=>n(JSON.parse(h)),c=({status:h})=>h===401&&r(),f=t.map(h=>{const p=new URL(i);p.searchParams.append("topic",h);const m=new iy.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=c,m});return()=>f.forEach(h=>h.close())};function oa(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,{interval:a}=s,l=Qs();return H.useEffect(()=>{const c=m=>a?n.add(m):i([m]),f=t(r,l),h=Fpe(s,f,c,o);if(!a)return h;const p=setInterval(()=>{i([...n]),n.clear()},a*1e3*60);return It(()=>clearInterval(p),()=>h==null?void 0:h())},[s]),C(e,{...r})}}class Jr{}Se(Jr,"visits","https://shlink.io/new-visit"),Se(Jr,"orphanVisits","https://shlink.io/new-orphan-visit"),Se(Jr,"shortUrlVisits",t=>`https://shlink.io/new-visit/${t}`);const HE="shlink/shortUrlDeletion",PN={shortCode:"",loading:!1,deleted:!1,error:!1},$pe=e=>or(`${HE}/deleteShortUrl`,async({shortCode:t,domain:n},{getState:r})=>{const{deleteShortUrl:i}=e(r);return await i(t,n),{shortCode:t,domain:n}}),L8=bn(`${HE}/shortUrlDeleted`),jpe=e=>{const{actions:t,reducer:n}=Gn({name:HE,initialState:PN,reducers:{resetDeleteShortUrl:()=>PN},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:io(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},D8="shlink/shortUrlsList",A8=5,Bpe={loading:!0,error:!1},zpe=e=>or(`${D8}/listShortUrls`,(t,{getState:n})=>{const{listShortUrls:r}=e(n);return r(t??{})}),Upe=(e,t,n)=>Gn({name:D8,initialState:Bpe,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,It((i,{payload:o})=>i.shortUrls?Ml(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,A8-1)],i):i,i=>i.shortUrls?Ml(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?Ml(["shortUrls","data"],i.shortUrls.data.map(s=>{const{shortCode:a,domain:l}=o;return kf(s,a,l)?o:s}),i):i),r.addCase(L8,It((i,{payload:o})=>i.shortUrls?Ml(["shortUrls","data"],Wd(s=>kf(s,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?Ml(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(uh,(i,{payload:o})=>{var s,a;return Ml(["shortUrls","data"],(a=(s=i.shortUrls)==null?void 0:s.data)==null?void 0:a.map(l=>{var c;return((c=QG(o.createdVisits.filter(({shortUrl:f})=>f&&kf(l,f.shortCode,f.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),kN=10,{ceil:Vpe}=Math,Hpe=new Intl.NumberFormat("en-US"),wn=e=>Hpe.format(Number(e)),Wpe=e=>Vpe(e/kN)*kN;const Ype=e=>e?{tag:At,to:e}:{},fx=({children:e,title:t,link:n,tooltip:r})=>{const i=gl();return U(We,{children:[U(Er,{innerRef:i,className:"highlight-card",body:!0,...Ype(n),children:[n&&C(Fe,{size:"3x",className:"highlight-card__link-icon",icon:Lpe}),C(nE,{tag:"h5",className:"highlight-card__title",children:t}),C(tE,{tag:"h2",children:e})]}),r&&C(Or,{target:i,placement:"bottom",children:r})]})},MN=({loading:e,excludeBots:t,visitsSummary:n,...r})=>C(fx,{tooltip:n.bots!==void 0?U(We,{children:[t?"Plus":"Including"," ",C("b",{children:wn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":wn(t&&n.nonBots?n.nonBots:n.total)}),qpe=(e,t)=>oa(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,selectedServer:s,loadVisitsOverview:a,visitsOverview:l,settings:{visits:c}})=>{const{loading:f,shortUrls:h}=n,{loading:p}=o,{loading:m,nonOrphanVisits:g,orphanVisits:v}=l,w=Yd(s),y=Mi("nonOrphanVisits",s),b=jo();return H.useEffect(()=>{r({itemsPerPage:A8,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),a()},[]),U(We,{children:[U(er,{children:[C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(MN,{title:"Visits",link:y?`/server/${w}/non-orphan-visits`:void 0,excludeBots:(c==null?void 0:c.excludeBots)??!1,loading:m,visitsSummary:g})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(MN,{title:"Orphan visits",link:`/server/${w}/orphan-visits`,excludeBots:(c==null?void 0:c.excludeBots)??!1,loading:m,visitsSummary:v})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(fx,{title:"Short URLs",link:`/server/${w}/list-short-urls/1`,children:f?"Loading...":wn((h==null?void 0:h.pagination.totalItems)??0)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(fx,{title:"Tags",link:`/server/${w}/manage-tags`,children:p?"Loading...":wn(o.tags.length)})})]}),U(Er,{className:"mb-3",children:[U(ol,{children:[C("span",{className:"d-sm-none",children:"Create a short URL"}),C("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),C(At,{className:"float-end",to:`/server/${w}/create-short-url`,children:"Advanced options »"})]}),C(il,{children:C(t,{basicMode:!0})})]}),U(Er,{children:[U(ol,{children:[C("span",{className:"d-sm-none",children:"Recently created URLs"}),C("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),C(At,{className:"float-end",to:`/server/${w}/list-short-urls/1`,children:"See all »"})]}),C(il,{children:C(e,{shortUrlsList:n,selectedServer:s,className:"mb-0",onTagClick:x=>b(`/server/${w}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[Jr.visits,Jr.orphanVisits]),Gpe={},Zpe=e=>e.id?e:fd("id",dE(),e),Kpe=tC((e,t)=>fd(t.id,t,e),{}),{actions:Xpe,reducer:Qpe}=Gn({name:"shlink/servers",initialState:Gpe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?fd(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>KG(t.id,e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Qu(Kg(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):fd(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:It(Hd(Zpe),Kpe,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:Jpe,deleteServer:eme,setAutoConnect:tme,createServers:I8}=Xpe,nme=Qpe,rme=e=>Array.isArray(e)?e.filter(lC):[],ime=e=>or("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${Wg.homepage}/servers.json`),i=rme(r);n(I8(i))}),ome=({servers:e,selectedServer:t})=>{const n=eu(e);return U(nh,{nav:!0,inNavbar:!0,children:[U(iu,{nav:!0,caret:!0,children:[C(Fe,{icon:TM})," ",C("span",{className:"ms-1",children:"Servers"})]}),C(ml,{end:!0,style:{right:0},children:(()=>qn(n)?U(Ve,{tag:At,to:"/server/create",children:[C(Fe,{icon:wC})," ",C("span",{className:"ms-1",children:"Add a server"})]}):U(We,{children:[n.map(({name:i,id:o})=>C(Ve,{tag:At,to:`/server/${o}`,active:Yd(t)===o,children:i},o)),C(Ve,{divider:!0}),U(Ve,{tag:At,to:"/manage-servers",children:[C(Fe,{icon:TM})," ",C("span",{className:"ms-1",children:"Manage servers"})]})]}))()})]})},sme="shlink-servers.csv";class ame{constructor(t,n,r){Se(this,"exportServers",async()=>{const t=eu(this.storage.get("servers")??{}).map(IZ);try{const n=this.jsonToCsv(t);t8(this.window,n,sme)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const lme=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",cme=e=>Array.isArray(e)&&e.every(lme);class ume{constructor(t,n){Se(this,"importServersFromFile",async t=>{if(!t)throw new Error("No file provided");const n=this.fileReaderFactory();return new Promise((r,i)=>{n.addEventListener("loadend",async o=>{var s,a;try{const l=((a=(s=o.target)==null?void 0:s.result)==null?void 0:a.toString())??"",c=await this.csvToJson(l);if(!cme(c))throw new Error("Provided file does not have the right format.");r(c)}catch(l){i(l)}}),n.readAsText(t)})});this.csvToJson=t,this.fileReaderFactory=n}}const fme=(e,t)=>{e.serviceFactory("ManageServers",Ppe,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",vv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",kpe,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Ape,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",wpe,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",vv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",Cpe,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>ome),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>Spe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",xpe,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",Epe,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",Tpe,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",qpe,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview","settings"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",ume,"csvToJson","fileReaderFactory"),e.service("ServersExporter",ame,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",J5,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>I8),e.serviceFactory("deleteServer",()=>eme),e.serviceFactory("editServer",()=>Jpe),e.serviceFactory("setAutoConnect",()=>tme),e.serviceFactory("fetchServers",ime,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>EE),e.serviceFactory("selectServerListener",aae,"selectServer","loadMercureInfo"),e.serviceFactory("selectedServerReducerCreator",lae,"selectServer"),e.serviceFactory("selectedServerReducer",ct("reducer"),"selectedServerReducerCreator")},wc=({children:e})=>C("small",{className:"form-text text-muted d-block",children:e}),F8=({checked:e=!1,onChange:t=rC,className:n,children:r,type:i,inline:o=!1})=>{const s=S_(),a=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return U("span",{className:ge("form-check",l,n),style:c,children:[C("input",{type:"checkbox",className:"form-check-input",id:s,checked:e,onChange:a}),C("label",{className:"form-check-label",htmlFor:s,children:r})]})},Yc=e=>C(F8,{type:"switch",...e}),dme=e=>e?`${e}`:"",hme=({settings:{realTimeUpdates:e},toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const r=S_();return U(dn,{title:"Real-time updates",className:"h-100",children:[C(_r,{children:U(Yc,{checked:e.enabled,onChange:t,children:["Enable or disable real-time updates.",U(wc,{children:["Real-time updates are currently being ",C("b",{children:e.enabled?"processed":"ignored"}),"."]})]})}),U(au,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ge("form-label",{"text-muted":!e.enabled}),id:r,children:[C(zc,{type:"number",min:0,placeholder:"Immediate",disabled:!e.enabled,value:dme(e.interval),id:r,onChange:({target:i})=>n(Number(i.value))}),e.enabled&&U(wc,{children:[e.interval!==void 0&&e.interval>0&&U("span",{children:["Updates will be reflected in the UI every ",C("b",{children:e.interval})," minute",e.interval>1&&"s","."]}),!e.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},WE={field:"dateCreated",dir:"DESC"},pme={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:WE}},mme=(e,{payload:t})=>kI(e,t),ba=e=>({reducer:mme,prepare:e}),wa=e=>({payload:e}),{reducer:gme,actions:vme}=Gn({name:"shlink/settings",initialState:pme,reducers:{toggleRealTimeUpdates:ba(e=>wa({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:ba(e=>wa({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:ba(e=>wa({shortUrlCreation:e})),setShortUrlsListSettings:ba(e=>wa({shortUrlsList:e})),setUiSettings:ba(e=>wa({ui:e})),setVisitsSettings:ba(e=>wa({visits:e})),setTagsSettings:ba(e=>wa({tags:e}))}}),{toggleRealTimeUpdates:yme,setRealTimeUpdatesInterval:_me,setShortUrlCreationSettings:bme,setShortUrlsListSettings:wme,setUiSettings:xme,setVisitsSettings:Sme,setTagsSettings:Cme}=vme,Eme=gme;const Lf=({children:e,...t})=>C(o5,{className:"nav-pills__nav-link",tag:sI,...t,children:e}),$8=({children:e,fill:t=!1,className:n=""})=>C(Er,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:C(p_,{pills:!0,fill:t,children:H.Children.map(e,r=>{if(!H.isValidElement(r)||r.type!==Lf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),I1=({items:e})=>C(We,{children:e.map((t,n)=>C("div",{className:"mb-3",children:t},n))}),Tme=(e,t,n,r,i,o)=>()=>U(su,{children:[U($8,{className:"mb-3",children:[C(Lf,{to:"general",children:"General"}),C(Lf,{to:"short-urls",children:"Short URLs"}),C(Lf,{to:"other-items",children:"Other items"})]}),U(e_,{children:[C(yt,{path:"general",element:C(I1,{items:[C(r,{}),C(e,{})]})}),C(yt,{path:"short-urls",element:C(I1,{items:[C(t,{}),C(n,{})]})}),C(yt,{path:"other-items",element:C(I1,{items:[C(o,{}),C(i,{})]})}),C(yt,{path:"*",element:C(ZS,{replace:!0,to:"general"})})]})]}),F1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Ome=e=>e==="includes"?U(We,{children:["The list of suggested tags will contain those ",C("b",{children:"including"})," provided input."]}):U(We,{children:["The list of suggested tags will contain those ",C("b",{children:"starting with"})," provided input."]}),Pme=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return U(dn,{title:"Short URLs form",className:"h-100",children:[C(_r,{children:U(Yc,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",U(wc,{children:["The initial state of the ",C("b",{children:"Validate URL"})," checkbox will be ",C("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),C(_r,{children:U(Yc,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",U(wc,{children:["The initial state of the ",C("b",{children:"Forward query params on redirect"})," checkbox will be ",C("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),U(au,{noMargin:!0,label:"Tag suggestions search mode:",children:[U(ia,{text:F1(n.tagFilteringMode),children:[C(Ve,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:F1("startsWith")}),C(Ve,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:F1("includes")})]}),C(wc,{children:Ome(n.tagFilteringMode)})]})]})},j8={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"};function ph({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=a=>()=>{const l=o_(a,t.field,t.dir);n(l?a:void 0,l)};return U(nh,{children:[U(iu,{caret:!0,color:r?"primary":"link",className:ge({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&C(We,{children:"Order by"}),r&&!t.field&&C("i",{children:"Order by..."}),r&&t.field&&U(We,{children:[o&&"Order by: ",e[t.field]," - ",C("small",{children:t.dir??"DESC"})]})]}),U(ml,{end:i,className:ge("w-100",{"ordering-dropdown__menu--link":!r}),children:[Kg(e).map(([a,l])=>U(Ve,{active:t.field===a,onClick:s(a),children:[l,t.field===a&&C(Fe,{icon:t.dir==="ASC"?CQ:cQ,className:"ordering-dropdown__sort-icon"})]},a)),C(Ve,{divider:!0}),C(Ve,{disabled:!t.field,onClick:()=>n(),children:C("i",{children:"Clear selection"})})]})]})}const kme=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>C(dn,{title:"Short URLs list",className:"h-100",children:C(au,{noMargin:!0,label:"Default ordering for short URLs list:",children:C(ph,{items:j8,order:(e==null?void 0:e.defaultOrdering)??WE,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),B8={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Mme=({settings:{tags:e},setTagsSettings:t})=>C(dn,{title:"Tags",className:"h-100",children:C(au,{noMargin:!0,label:"Default ordering for tags list:",children:C(ph,{items:B8,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})});const Rme=({settings:{ui:e},setUiSettings:t})=>U(dn,{title:"User interface",className:"h-100",children:[C(Fe,{icon:(e==null?void 0:e.theme)==="dark"?$Q:TQ,className:"user-interface__theme-icon"}),C(Yc,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),T5(r)},children:"Use dark theme."})]}),z8=({active:e,allText:t,onChange:n})=>U(We,{children:[C(Ve,{active:e==="all",onClick:()=>n("all"),children:t}),C(Ve,{divider:!0}),Qhe.map(r=>C(Ve,{active:e===r,onClick:()=>n(r),children:VE(r)},r))]}),Nme=({onChange:e,active:t,allText:n})=>C(ia,{text:VE(t)??n,children:C(z8,{allText:n,active:t,onChange:e})}),RN=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},Lme=({settings:e,setVisitsSettings:t})=>{var n,r;return U(dn,{title:"Visits",className:"h-100",children:[C(_r,{children:U(Yc,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:RN(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",U(wc,{children:["The visits coming from potential bots will be ",C("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),C(au,{noMargin:!0,label:"Default interval to load on visits sections:",children:C(Nme,{allText:"All visits",active:RN(e),onChange:i=>t({defaultInterval:i})})})]})},Dme=(e,t)=>{e.serviceFactory("Settings",Tme,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",vv),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>hme),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>Pme),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>Rme),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>Lme),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>Mme),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>kme),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>yme),e.serviceFactory("setRealTimeUpdatesInterval",()=>_me),e.serviceFactory("setShortUrlCreationSettings",()=>bme),e.serviceFactory("setShortUrlsListSettings",()=>wme),e.serviceFactory("setUiSettings",()=>xme),e.serviceFactory("setVisitsSettings",()=>Sme),e.serviceFactory("setTagsSettings",()=>Cme)},Ame=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),Ime=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,selectedServer:o,basicMode:s=!1,settings:{shortUrlCreation:a}})=>{const l=H.useMemo(()=>Ame(a),[a]);return U(We,{children:[C(e,{initialState:l,saving:r.saving,selectedServer:o,mode:s?"create-basic":"create",onSave:async c=>(i(),n(c))}),C(t,{creation:r,resetCreateShortUrl:i,canBeClosed:s})]})},Fme=e=>({settings:{shortUrlCreation:t},selectedServer:n,shortUrlDetail:r,getShortUrlDetail:i,shortUrlEdition:o,editShortUrl:s})=>{const{search:a}=Mn(),l=Qs(),c=ra(),{loading:f,error:h,errorData:p,shortUrl:m}=r,{saving:g,saved:v,error:w,errorData:y}=o,{domain:b}=pl(a),x=H.useMemo(()=>Pae(m,t),[m,t]);return H.useEffect(()=>{l.shortCode&&i({shortCode:gm(l.shortCode),domain:b})},[]),f?C(Eo,{loading:!0}):h?C(Dr,{type:"error",children:C(Ao,{errorData:p,fallbackMessage:"An error occurred while loading short URL detail :("})}):U(We,{children:[C("header",{className:"mb-3",children:C(Er,{body:!0,children:U("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[C(mt,{color:"link",size:"lg",className:"p-0 me-3",onClick:c,children:C(Fe,{icon:e6})}),C("span",{className:"text-center",children:U("small",{children:["Edit ",C(Ei,{href:(m==null?void 0:m.shortUrl)??""})]})}),C("span",{})]})})}),C(e,{initialState:x,saving:g,selectedServer:n,mode:"edit",onSave:async T=>{m&&s({...m,data:T})}}),v&&w&&C(Dr,{type:"error",className:"mt-3",children:C(Ao,{errorData:y,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!w&&C(Dr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})};var O_={},$me=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=NN[t.format]||NN.default;window.clipboardData.setData(h,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=zme("message"in t?t.message:Bme),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var Vme=Ume;function dx(e){return dx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dx(e)}Object.defineProperty(O_,"__esModule",{value:!0});O_.CopyToClipboard=void 0;var Ap=U8(H),Hme=U8(Vme),Wme=["text","onCopy","options","children"];function U8(e){return e&&e.__esModule?e:{default:e}}function LN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DN(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qme(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Gme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AN(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},oy(e)}function YE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H8=function(e){Kme(n,e);var t=Xme(n);function n(){var r;Gme(this,n);for(var i=arguments.length,o=new Array(i),s=0;s({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:s,saved:a}=t;if(H.useEffect(()=>{n()},[]),s)return U(Dr,{type:"error",className:"mt-3",children:[r&&C(Fe,{icon:ww,className:"float-end pointer",onClick:n}),C(Ao,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!a)return null;const{shortUrl:l}=t.result;return U(Dr,{type:"success",className:"mt-3",children:[r&&C(Fe,{icon:ww,className:"float-end pointer",onClick:n}),U("span",{children:[C("b",{children:"Great!"})," The short URL is ",C("b",{children:l})]}),C(W8,{text:l,onCopy:o,children:U("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[C(Fe,{icon:N8})," Copy"]})}),C(eh,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},$1="delete",nge=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[a,l]=H.useState("");H.useEffect(()=>i,[]);const{loading:c,error:f,deleted:h,errorData:p}=r,m=It(i,t),g=sh(()=>o(e).then(t));return C(Ho,{isOpen:n,toggle:m,centered:!0,onClosed:()=>h&&s(e),children:U("form",{onSubmit:g,children:[C(oo,{toggle:m,children:C("span",{className:"text-danger",children:"Delete short URL"})}),U(Ri,{children:[U("p",{children:[C("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),C("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),U("p",{children:["Write ",C("b",{children:$1})," to confirm deletion."]}),C("input",{type:"text",className:"form-control",placeholder:`Insert ${$1}`,value:a,onChange:v=>l(v.target.value)}),f&&C(Dr,{type:LX(p)?"warning":"error",small:!0,className:"mt-2",children:C(Ao,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),U(na,{children:[C("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),C("button",{type:"submit",className:"btn btn-danger",disabled:a!==$1||c,children:c?"Deleting...":"Delete"})]})]})})},Y8=({amount:e=0,loading:t=!1,...n})=>U(mt,{...n,outline:!0,color:"primary",disabled:t,children:[C(Fe,{icon:qX})," ",t?"Exporting...":U(We,{children:["Export (",wn(e),")"]})]}),P_=()=>{const e=jo(),{search:t}=Mn(),{serverId:n=""}=Qs(),r=H.useMemo(It(()=>pl(t),({orderBy:o,tags:s,excludeBots:a,excludeMaxVisitsReached:l,excludePastValidUntil:c,...f})=>{const h=o?FZ(o):void 0,p=(s==null?void 0:s.split(","))??[];return{...f,orderBy:h,tags:p,excludeBots:a!==void 0?a==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}}),[t]);return[r,o=>{const s={...r,...o},{orderBy:a,tags:l,excludeBots:c,excludeMaxVisitsReached:f,excludePastValidUntil:h,...p}=s,m={...p,orderBy:a&&DI(a),tags:l.length>0?l.join(","):void 0,excludeBots:O1(c),excludeMaxVisitsReached:O1(f),excludePastValidUntil:O1(h)},g=qd(m),v=qn(g)?"":`?${g}`;e(`/server/${n}/list-short-urls/1${v}`)}]},IN=20,rge=(e,{exportShortUrls:t})=>({amount:n=0,selectedServer:r})=>{const[{tags:i,search:o,startDate:s,endDate:a,orderBy:l,tagsMode:c}]=P_(),[f,,h,p]=jt();return C(Y8,{loading:f,className:"btn-md-block",amount:n,onClick:async()=>{if(!Ms(r))return;const g=n/IN,{listShortUrls:v}=e(r),w=async(b=1)=>{const{data:x}=await v({page:`${b}`,tags:i,searchTerm:o,startDate:s,endDate:a,orderBy:l,tagsMode:c,itemsPerPage:IN});return b>=g?x:x.concat(await w(b+1))};h();const y=await w();t(y.map(b=>{var x;return{createdAt:b.dateCreated,shortUrl:b.shortUrl,longUrl:b.longUrl,title:b.title??"",tags:b.tags.join(","),visits:((x=b==null?void 0:b.visitsSummary)==null?void 0:x.total)??b.visitsCount}})),p()}})};const q8=({text:e,onCopy:t})=>C(W8,{text:e,onCopy:t,children:C(Fe,{icon:N8,className:"ms-2 copy-to-clipboard-icon"})}),ige=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=qd({...n,margin:t>0?t:void 0});return`${r}${qn(i)?"":`?${i}`}`},oge=({errorCorrection:e,setErrorCorrection:t})=>U(ia,{text:`Error correction (${e})`,children:[U(Ve,{active:e==="L",onClick:()=>t("L"),children:[C("b",{children:"L"}),"ow"]}),U(Ve,{active:e==="M",onClick:()=>t("M"),children:[C("b",{children:"M"}),"edium"]}),U(Ve,{active:e==="Q",onClick:()=>t("Q"),children:[C("b",{children:"Q"}),"uartile"]}),U(Ve,{active:e==="H",onClick:()=>t("H"),children:[C("b",{children:"H"}),"igh"]})]}),sge=({format:e,setFormat:t})=>U(ia,{text:`Format (${e})`,children:[C(Ve,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),C(Ve,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]});const age=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i,selectedServer:o})=>{const[s,a]=H.useState(300),[l,c]=H.useState(0),[f,h]=H.useState("png"),[p,m]=H.useState("L"),g=Mi("nonRestCors",o),v=H.useMemo(()=>ige(t,{size:s,format:f,margin:l,errorCorrection:p}),[t,s,f,l,p]),w=H.useMemo(()=>s+l,[s,l]),y=H.useMemo(()=>{if(!(w<500))return w<800?"lg":"xl"},[w]);return U(Ho,{isOpen:i,toggle:r,centered:!0,size:y,children:[U(oo,{toggle:r,children:["QR code for ",C(Ei,{href:t,children:t})]}),U(Ri,{children:[U(er,{children:[U(_r,{className:"d-grid col-md-4",children:[U("label",{children:["Size: ",s,"px"]}),C("input",{type:"range",className:"form-control-range",value:s,step:10,min:50,max:1e3,onChange:b=>a(Number(b.target.value))})]}),U(_r,{className:"d-grid col-md-4",children:[U("label",{htmlFor:"marginControl",children:["Margin: ",l,"px"]}),C("input",{id:"marginControl",type:"range",className:"form-control-range",value:l,step:1,min:0,max:100,onChange:b=>c(Number(b.target.value))})]}),C(_r,{className:"d-grid col-md-4",children:C(sge,{format:f,setFormat:h})}),C(_r,{className:"col-md-6",children:C(oge,{errorCorrection:p,setErrorCorrection:m})})]}),U("div",{className:"text-center",children:[U("div",{className:"mb-3",children:[C(Ei,{href:v}),C(q8,{text:v})]}),C("img",{src:v,className:"qr-code-modal__img",alt:"QR code"}),g&&C("div",{className:"mt-3",children:U(mt,{block:!0,color:"primary",onClick:()=>{e.saveImage(v,`${n}-qr-code.${f}`).catch(()=>{})},children:["Download ",C(Fe,{icon:t6,className:"ms-1"})]})})]})]})]})},sy=({date:e,format:t=zE,relative:n=!1})=>{const r=UE(e)?e:Io(e);return C("time",{dateTime:`${cce(r)}000`,children:n?`${nce(Ws(),r)} ago`:_o(r,t)})},lge=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:s}=t,a=(r==null?void 0:r.total)??n;return i&&a>=i?{icon:jQ,className:"text-danger",description:U(We,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",C("b",{children:i})," visit",i>1?"s":"","."]})}:s&&Kr(wi(s),Ws())?{icon:OM,className:"text-danger",description:U(We,{children:["This short URL cannot be visited since ",C("b",{className:"indivisible",children:ny(wi(s))}),"."]})}:o&&Kr(Ws(),wi(o))?{icon:OM,className:"text-warning",description:U(We,{children:["This short URL will start working on ",C("b",{className:"indivisible",children:ny(wi(o))}),"."]})}:{icon:pd,className:"text-primary",description:"This short URL can be visited normally."}},cge=({shortUrl:e})=>{const t=gl(),{icon:n,className:r,description:i}=lge(e);return U(We,{children:[C("span",{style:{cursor:i?"help":void 0},ref:t,children:C(Fe,{icon:n,className:r})}),C(Or,{target:t,placement:"bottom",children:i})]})},uge=({id:e},{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`/server/${e}/short-code/${kae(t)}/${r}${i}`},mx=({selectedServer:e,shortUrl:t,suffix:n,children:r,...i})=>!e||!Ms(e)||!t?C("span",{...i,children:r}):C(At,{to:uge(e,t,n),...i,children:r});const G8=({visitsCount:e,shortUrl:t,selectedServer:n,active:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:s}=(t==null?void 0:t.meta)??{},a=!!i||!!o||!!s,l=C(mx,{selectedServer:n,shortUrl:t,suffix:"visits",children:C("strong",{className:ge("short-url-visits-count__amount",{"short-url-visits-count__amount--big":r}),children:wn(e)})});if(!a)return l;const c=gl();return U(We,{children:[U("span",{className:"indivisible",children:[l,U("small",{className:"short-urls-visits-count__max-visits-control",ref:c,children:[i&&U(We,{children:[" / ",wn(i)]}),C("sup",{className:"ms-1",children:C(Fe,{icon:bC})})]})]}),C(Or,{target:c,placement:"bottom",children:U("ul",{className:"list-unstyled mb-0",children:[i&&U("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",C("b",{children:wn(i)})," visit",i===1?"":"s","."]}),o&&U("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",C("b",{className:"indivisible",children:ny(wi(o))}),"."]}),s&&U("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",C("b",{className:"indivisible",children:ny(wi(s))}),"."]})]})})]})};const qE=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:s})=>U("span",{className:ge("badge tag",r,{"tag--light-bg":i.isColorLightForKey(e)}),style:{backgroundColor:i.getColorForKey(e),cursor:n||!o?"auto":"pointer"},onClick:o,children:[t??e,n&&C("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:s,children:"×"})]}),fge=({tags:e,onTagClick:t,colorGenerator:n})=>qn(e)?C("i",{className:"indivisible",children:C("small",{children:"No tags"})}):C(We,{children:e.map(r=>C(qE,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))});const dge=(e,t,n)=>({shortUrl:r,selectedServer:i,onTagClick:o,settings:s})=>{var v,w,y,b;const[a,l]=n(),[c,f]=n(!1,500),h=H.useRef(!0),[{excludeBots:p}]=P_(),{visits:m}=s,g=p??(m==null?void 0:m.excludeBots);return H.useEffect(()=>{!h.current&&f(),h.current=!1},[(v=r.visitsSummary)==null?void 0:v.total,(w=r.visitsSummary)==null?void 0:w.nonBots,r.visitsCount]),U("tr",{className:"responsive-table__row",children:[C("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:C(sy,{date:r.dateCreated})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:U("span",{className:"position-relative short-urls-row__cell--indivisible",children:[C("span",{className:"short-urls-row__short-url-wrapper",children:C(Ei,{href:r.shortUrl})}),C(q8,{text:r.shortUrl,onCopy:l}),C("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!a,children:"Copied short URL!"})]})}),C("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:C(Ei,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&C("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:C(Ei,{href:r.longUrl})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:C(fge,{tags:r.tags,colorGenerator:t,onTagClick:o})}),C("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:C(G8,{visitsCount:(g?(y=r.visitsSummary)==null?void 0:y.nonBots:(b=r.visitsSummary)==null?void 0:b.total)??r.visitsCount,shortUrl:r,selectedServer:i,active:c})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:C(cge,{shortUrl:r})}),C("td",{className:"responsive-table__cell short-urls-row__cell",children:C(e,{selectedServer:i,shortUrl:r})})]})},hge=(e,t)=>({shortUrl:n,selectedServer:r})=>{const[i,o]=jt(),[s,,a,l]=jt(),[c,,f,h]=jt();return U(E_,{toggle:o,isOpen:i,children:[U(Ve,{tag:mx,selectedServer:r,shortUrl:n,suffix:"visits",children:[C(Fe,{icon:_C,fixedWidth:!0})," Visit stats"]}),U(Ve,{tag:mx,selectedServer:r,shortUrl:n,suffix:"edit",children:[C(Fe,{icon:yC,fixedWidth:!0})," Edit short URL"]}),U(Ve,{onClick:a,children:[C(Fe,{icon:FQ,fixedWidth:!0})," QR code"]}),C(t,{shortUrl:n,isOpen:s,toggle:l}),C(Ve,{divider:!0}),U(Ve,{className:"dropdown-item--danger",onClick:f,children:[C(Fe,{icon:vC,fixedWidth:!0})," Delete short URL"]}),C(e,{shortUrl:n,isOpen:c,toggle:h})]})},Z8="shlink/shortUrlCreation",FN={saving:!1,saved:!1,error:!1},pge=e=>or(`${Z8}/createShortUrl`,(t,{getState:n})=>e(n).createShortUrl(t)),mge=e=>{const{reducer:t,actions:n}=Gn({name:Z8,initialState:FN,reducers:{resetCreateShortUrl:()=>FN},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:io(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},$N="shlink/shortUrlDetail",jN={loading:!1,error:!1},gge=e=>{const t=or(`${$N}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var l;const{shortUrlsList:s}=o();return((l=s==null?void 0:s.shortUrls)==null?void 0:l.data.find(c=>kf(c,r,i)))??await e(o).getShortUrl(r,i)}),{reducer:n}=Gn({name:$N,initialState:jN,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:io(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...jN,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},K8="shlink/shortUrlEdition",vge={saving:!1,saved:!1,error:!1},yge=e=>or(`${K8}/editShortUrl`,({shortCode:t,domain:n,data:r},{getState:i})=>{const{updateShortUrl:o}=e(i);return o(t,n,r)}),_ge=e=>Gn({name:K8,initialState:vge,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:io(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}});var bge={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},wge={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]};const X8=e=>C(F8,{type:"checkbox",...e});function xge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gx(e,t)}function gx(e,t){return gx=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},gx(e,t)}function Sge(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function BN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cge(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Ege(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Cge(e,t,n))return!0;e=e.parentNode||e.host}return e}function Tge(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Oge=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function Pge(e){return e===void 0&&(e=0),function(){return++e}}var kge=Pge(),vx,Ip={},j1={},Mge=["touchstart","touchmove"],Rge="ignore-react-onclickoutside";function zN(e,t){var n=null,r=Mge.indexOf(t)!==-1;return r&&vx&&(n={passive:!e.props.preventDefault}),n}function k_(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){xge(s,o);function s(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(f){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(f);return}var h=c.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(f);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var f=c.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():Ga.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||j1[c._uid])){typeof vx>"u"&&(vx=Oge()),j1[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),Ip[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&Tge(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;Ege(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,Ip[c._uid],zN(BN(c),h))})}},c.disableOnClickOutside=function(){delete j1[c._uid];var f=Ip[c._uid];if(f&&typeof document<"u"){var h=c.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(p){return document.removeEventListener(p,f,zN(BN(c),p))}),delete Ip[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=kge(),c}var a=s.prototype;return a.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var f=Sge(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?f.ref=this.getRef:f.wrappedRef=this.getRef,f.disableOnClickOutside=this.disableOnClickOutside,f.enableOnClickOutside=this.enableOnClickOutside,H.createElement(e,f)},s}(H.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:Rge,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var Q8=H.createContext(),J8=H.createContext();function Nge(e){var t=e.children,n=H.useState(null),r=n[0],i=n[1],o=H.useRef(!1);H.useEffect(function(){return function(){o.current=!0}},[]);var s=H.useCallback(function(a){o.current||i(a)},[]);return H.createElement(Q8.Provider,{value:r},H.createElement(J8.Provider,{value:s},t))}var eF=function(t){return Array.isArray(t)?t[0]:t},tF=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=_x(e);if(t){var i=_x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Bge(this,n)}}function iF(e){return function(t){if(Array.isArray(t))return B1(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return B1(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return B1(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(o=N1(e,t.slice(0,e.length),new Date)),is(o)||(o=new Date(e))),is(o)&&a?o:null)}function is(e,t){return t=t||new Date("1/1/1000"),i8(e)&&!Kr(e,t)}function ln(e,t,n){if(n==="en")return _o(e,t,{awareOfUnicodeTokens:!0});var r=Ds(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Wa()&&Ds(Wa())&&(r=Ds(Wa())),_o(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function z1(e,t){var n=t.dateFormat,r=t.locale;return e&&ln(e,Array.isArray(n)?n[0]:n,r)||""}function ZN(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,s=t.second;return Mf(Rf(Khe(e,s===void 0?0:s),o),r)}function Hge(e,t){var n=t&&Ds(t)||Wa()&&Ds(Wa());return ace(e,n?{locale:n}:null)}function Wge(e,t){return ln(e,"ddd",t)}function Yge(e){return Ar(e)}function GE(e,t,n){var r=Ds(t||Wa());return r8(e,{locale:r,weekStartsOn:n})}function Ha(e){return Yae(e)}function rf(e){return qae(e)}function qge(e){return e2(e)}function oF(e,t){return e&&t?Dhe(e,t):!e&&!t}function ys(e,t){return e&&t?Nhe(e,t):!e&&!t}function ay(e,t){return e&&t?Lhe(e,t):!e&&!t}function gr(e,t){return e&&t?jae(e,t):!e&&!t}function _s(e,t){return e&&t?h8(e,t):!e&&!t}function sg(e,t,n){var r,i=Ar(t),o=al(n);try{r=Wc(e,{start:i,end:o})}catch{r=!1}return r}function Wa(){return(typeof window<"u"?window:globalThis).__localeId__}function Ds(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function sF(e,t){return ln(qi(mn(),e),"LLLL",t)}function aF(e,t){return ln(qi(mn(),e),"LLL",t)}function Gge(e,t){return ln(nf(mn(),e),"QQQ",t)}function R_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,s=t.includeDates,a=t.includeDateIntervals,l=t.filterDate;return N_(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return gr(e,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return Wc(e,{start:f,end:h})})||s&&!s.some(function(c){return gr(e,c)})||a&&!a.some(function(c){var f=c.start,h=c.end;return Wc(e,{start:f,end:h})})||l&&!l(mn(e))||!1}function ZE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,s=i.end;return Wc(e,{start:o,end:s})}):n&&n.some(function(i){return gr(e,i)})||!1}function Zge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return N_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return ys(e,a)})||o&&!o.some(function(a){return ys(e,a)})||s&&!s(mn(e))||!1}function Kge(e,t,n,r){var i=pt(e),o=ur(e),s=pt(t),a=ur(t),l=pt(r);return i===s&&i===l?o<=n&&n<=a:i=n||li:void 0}function Xge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return N_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return ay(e,a)})||o&&!o.some(function(a){return ay(e,a)})||s&&!s(mn(e))||!1}function Qge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=new Date(e,0,1);return N_(i,{minDate:n,maxDate:r})||!1}function Jge(e,t,n,r){var i=pt(e),o=Jw(e),s=pt(t),a=Jw(t),l=pt(r);return i===s&&i===l?o<=n&&n<=a:i=n||li:void 0}function N_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Od(e,n)<0||r&&Od(e,r)>0}function KN(e,t){return t.some(function(n){return Ti(n)===Ti(e)&&Oi(n)===Oi(e)})}function XN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&KN(e,n)||r&&!KN(e,r)||i&&!i(e)||!1}function QN(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=mn(),s=Mf(Rf(o,Oi(e)),Ti(e)),a=Mf(Rf(o,Oi(n)),Ti(n)),l=Mf(Rf(o,Oi(r)),Ti(r));try{i=!Wc(s,{start:a,end:l})}catch{i=!1}return i}function JN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=kd(e,1);return n&&Pd(n,i)>0||r&&r.every(function(o){return Pd(o,i)>0})||!1}function eL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=ro(e,1);return n&&Pd(i,n)>0||r&&r.every(function(o){return Pd(i,o)>0})||!1}function tL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Md(e,1);return n&&yv(n,i)>0||r&&r.every(function(o){return yv(o,i)>0})||!1}function nL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Vc(e,1);return n&&yv(i,n)>0||r&&r.every(function(o){return yv(i,o)>0})||!1}function lF(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Od(i,t)>=0});return J3(r)}return n?J3(n):t}function cF(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Od(i,t)<=0});return Q3(r)}return n?Q3(n):t}function rL(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(pt(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function tve(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var s=e+t-o,a=!0;n&&(a=pt(n)<=s),r&&a&&(a=pt(r)>=s),a&&i.push(s)}return i}var nve=k_(function(e){Ln(n,V.Component);var t=Dn(n);function n(r){var i;Rn(this,n),ie(ce(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return V.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(ce(i),p),"aria-selected":l===p?"true":void 0},l===p?V.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?pt(i.props.minDate):null,h=i.props.maxDate?pt(i.props.maxDate):null;return h&&i.state.yearsList.find(function(p){return p===h})||c.unshift(V.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},V.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||c.push(V.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},V.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),ie(ce(i),"onChange",function(l){i.props.onChange(l)}),ie(ce(i),"handleClickOutside",function(){i.props.onCancel()}),ie(ce(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),ie(ce(i),"incrementYears",function(){return i.shiftYears(1)}),ie(ce(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,a=o||(s?10:5);return i.state={yearsList:tve(i.props.year,a,i.props.minDate,i.props.maxDate)},i.dropdownRef=H.createRef(),i}return Nn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;r&&(r.scrollTop=r.scrollHeight/2-r.clientHeight/2)}},{key:"render",value:function(){var r=ge({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return V.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),rve=function(e){Ln(n,V.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!a.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0)),l&&r.dayEl.current.focus({preventScroll:!0})}),ie(ce(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(sR(r.props.day),r.props.day):sR(r.props.day)}),ie(ce(r),"render",function(){return V.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()},r.renderDayContents())}),r}return Nn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),uve=function(e){Ln(n,V.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=6,m=!l&&!r.isWeekInMonth(h);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return a}),ie(ce(r),"onMonthClick",function(a,l){r.handleDayClick(Ha(qi(r.props.day,l)),a)}),ie(ce(r),"handleMonthNavigation",function(a,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[a].current&&r.MONTH_REFS[a].current.focus())}),ie(ce(r),"onMonthKeyDown",function(a,l){var c=a.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onMonthClick(a,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,ro(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,kd(r.props.preSelection,1))}}),ie(ce(r),"onQuarterClick",function(a,l){r.handleDayClick(qge(nf(r.props.day,l)),a)}),ie(ce(r),"getMonthClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,g=l.maxDate,v=l.preSelection,w=l.monthClassName,y=w?w(c):void 0;return ge("react-datepicker__month-text","react-datepicker__month-".concat(a),y,{"react-datepicker__month--disabled":(m||g)&&Zge(qi(c,a),r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,a,p),"react-datepicker__month-text--keyboard-selected":ur(v)===a,"react-datepicker__month--in-range":Kge(f,h,a,c),"react-datepicker__month--range-start":r.isRangeStartMonth(a),"react-datepicker__month--range-end":r.isRangeEndMonth(a),"react-datepicker__month-text--today":r.isCurrentMonth(c,a)})}),ie(ce(r),"getTabIndex",function(a){var l=ur(r.props.preSelection);return r.props.disabledKeyboardNavigation||a!==l?"-1":"0"}),ie(ce(r),"getAriaLabel",function(a){var l=r.props,c=l.chooseDayAriaLabelPrefix,f=c===void 0?"Choose":c,h=l.disabledDayAriaLabelPrefix,p=h===void 0?"Not available":h,m=l.day,g=qi(m,a),v=r.isDisabled(g)||r.isExcluded(g)?p:f;return"".concat(v," ").concat(ln(g,"MMMM yyyy"))}),ie(ce(r),"getQuarterClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,g=l.maxDate;return ge("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter--disabled":(m||g)&&Xge(nf(c,a),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,a,p),"react-datepicker__quarter--in-range":Jge(f,h,a,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(a),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(a)})}),ie(ce(r),"renderMonths",function(){var a=r.props,l=a.showFullMonthYearPicker,c=a.showTwoColumnMonthYearPicker,f=a.showFourColumnMonthYearPicker,h=a.locale,p=a.day,m=a.selected;return(f?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:c?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(g,v){return V.createElement("div",{className:"react-datepicker__month-wrapper",key:v},g.map(function(w,y){return V.createElement("div",{ref:r.MONTH_REFS[w],key:y,onClick:function(b){r.onMonthClick(b,w)},onKeyDown:function(b){r.onMonthKeyDown(b,w)},tabIndex:r.getTabIndex(w),className:r.getMonthClassNames(w),role:"option","aria-label":r.getAriaLabel(w),"aria-current":r.isCurrentMonth(p,w)?"date":void 0,"aria-selected":r.isSelectedMonth(p,w,m)},l?sF(w,h):aF(w,h))}))})}),ie(ce(r),"renderQuarters",function(){var a=r.props,l=a.day,c=a.selected;return V.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return V.createElement("div",{key:h,role:"option",onClick:function(p){r.onQuarterClick(p,f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c)},Gge(f,r.props.locale))}))}),ie(ce(r),"getClassNames",function(){var a=r.props;a.day;var l=a.selectingDate,c=a.selectsStart,f=a.selectsEnd,h=a.showMonthYearPicker,p=a.showQuarterYearPicker;return ge("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||f)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":p})}),r}return Nn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,s=r.day,a=r.ariaLabelPrefix,l=a===void 0?"month ":a;return V.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(ln(s,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),uF=function(e){Ln(n,V.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return gve.some(function(a){return s.indexOf(a)>=0})})(o.target)&&i.props.onDropdownFocus()}),ie(ce(i),"getDateInView",function(){var o=i.props,s=o.preSelection,a=o.selected,l=o.openToDate,c=lF(i.props),f=cF(i.props),h=mn(),p=l||a||s;return p||(c&&Kr(h,c)?c:f&&Hs(h,f)?f:h)}),ie(ce(i),"increaseMonth",function(){i.setState(function(o){var s=o.date;return{date:ro(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),ie(ce(i),"decreaseMonth",function(){i.setState(function(o){var s=o.date;return{date:kd(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),ie(ce(i),"handleDayClick",function(o,s,a){i.props.onSelect(o,s,a),i.props.setPreSelection&&i.props.setPreSelection(o)}),ie(ce(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),ie(ce(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),ie(ce(i),"handleYearChange",function(o){i.props.onYearChange&&i.props.onYearChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ie(ce(i),"handleMonthChange",function(o){i.props.onMonthChange&&i.props.onMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),ie(ce(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),ie(ce(i),"changeYear",function(o){i.setState(function(s){var a=s.date;return{date:ty(a,o)}},function(){return i.handleYearChange(i.state.date)})}),ie(ce(i),"changeMonth",function(o){i.setState(function(s){var a=s.date;return{date:qi(a,o)}},function(){return i.handleMonthChange(i.state.date)})}),ie(ce(i),"changeMonthYear",function(o){i.setState(function(s){var a=s.date;return{date:ty(qi(a,ur(o)),pt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),ie(ce(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=GE(o,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(V.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(l){var c=vl(s,l),f=i.formatWeekday(c,i.props.locale),h=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return V.createElement("div",{key:l,className:ge("react-datepicker__day-name",h)},f)}))}),ie(ce(i),"formatWeekday",function(o,s){return i.props.formatWeekDay?function(a,l,c){return l(ln(a,"EEEE",c))}(o,i.props.formatWeekDay,s):i.props.useWeekdaysShort?function(a,l){return ln(a,"EEE",l)}(o,s):function(a,l){return ln(a,"EEEEEE",l)}(o,s)}),ie(ce(i),"decreaseYear",function(){i.setState(function(o){var s=o.date;return{date:Md(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ie(ce(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=tL(i.state.date,i.props);break;case i.props.showYearPicker:o=function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=b.minDate,T=b.yearItemNumber,P=T===void 0?12:T,k=Df(rf(Md(y,P)),P).endPeriod,N=x&&pt(x);return N&&N>k||!1}(i.state.date,i.props);break;default:o=JN(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,g=m===void 0?typeof f=="string"?f:"Previous Month":m,v=p.previousYearAriaLabel,w=v===void 0?typeof h=="string"?h:"Previous Year":v;return V.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?w:g},V.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),ie(ce(i),"increaseYear",function(){i.setState(function(o){var s=o.date;return{date:Vc(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),ie(ce(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=nL(i.state.date,i.props);break;case i.props.showYearPicker:o=function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=b.maxDate,T=b.yearItemNumber,P=T===void 0?12:T,k=Df(Vc(y,P),P).startPeriod,N=x&&pt(x);return N&&N0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=["react-datepicker__current-month"];return i.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),V.createElement("div",{className:s.join(" ")},ln(o,i.props.dateFormat,i.props.locale))}),ie(ce(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return V.createElement(rve,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:pt(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),ie(ce(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return V.createElement(ove,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:ur(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),ie(ce(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return V.createElement(lve,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),ie(ce(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return V.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.props.onSelect(Ar(mn()),o)}},i.props.todayButton)}),ie(ce(i),"renderDefaultHeader",function(o){var s=o.monthDate,a=o.i;return V.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(s),V.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(a!==0),i.renderMonthYearDropdown(a!==0),i.renderYearDropdown(a!==0)),V.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),ie(ce(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.monthDate,a=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=JN(i.state.date,i.props),c=eL(i.state.date,i.props),f=tL(i.state.date,i.props),h=nL(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return V.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(WN(WN({},i.state),{},{customHeaderCount:a,monthDate:s,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:h})),p&&V.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),ie(ce(i),"renderYearHeader",function(){var o=i.state.date,s=i.props,a=s.showYearPicker,l=Df(o,s.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return V.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(c," - ").concat(f):pt(o))}),ie(ce(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),ie(ce(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,a=kd(i.state.date,s),l=0;l0;o.push(V.createElement("div",{key:h,ref:function(g){i.monthContainer=g},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),V.createElement(dve,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:f,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return o}}),ie(ce(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?V.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),V.createElement(hve,M_({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),ie(ce(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return V.createElement(uF,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),ie(ce(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),s=is(o)&&i.props.selected?"".concat(iL(o.getHours()),":").concat(iL(o.getMinutes())):"";if(i.props.showTimeInput)return V.createElement(pve,{date:o,timeString:s,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),i.containerRef=V.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null},i}return Nn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){this.props.preSelection&&!gr(this.props.preSelection,r.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!gr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||mve;return V.createElement("div",{ref:this.containerRef},V.createElement(r,{className:ge("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),fF=function(e){Ln(n,V.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Nn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return za.createPortal(this.props.children,this.el)}}]),n}(),yve=function(e){return!e.disabled&&e.tabIndex!==-1},_ve=function(e){Ln(n,V.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),ie(ce(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(yve)}),ie(ce(i),"handleFocusStart",function(o){var s=i.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),ie(ce(i),"handleFocusEnd",function(o){var s=i.getTabChildren();s&&s.length>1&&s[0].focus()}),i.tabLoopRef=V.createRef(),i}return Nn(n,[{key:"render",value:function(){return this.props.enableTabLoop?V.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},V.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,V.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),bve=function(e){Ln(n,V.Component);var t=Dn(n);function n(){return Rn(this,n),t.apply(this,arguments)}return Nn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,s=i.wrapperClassName,a=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,f=i.popperPlacement,h=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,g=i.popperOnKeyDown,v=i.portalId,w=i.portalHost;if(!a){var y=ge("react-datepicker-popper",o);r=V.createElement($ge,M_({modifiers:c,placement:f},h),function(x){var T=x.ref,P=x.style,k=x.placement,N=x.arrowProps;return V.createElement(_ve,{enableTabLoop:m},V.createElement("div",{ref:T,style:P,className:y,"data-placement":k,onKeyDown:g},V.cloneElement(l,{arrowProps:N})))})}this.props.popperContainer&&(r=V.createElement(this.props.popperContainer,{},r)),v&&!a&&(r=V.createElement(fF,{portalId:v,portalHost:w},r));var b=ge("react-datepicker-wrapper",s);return V.createElement(Nge,{className:"react-datepicker-manager"},V.createElement(jge,null,function(x){var T=x.ref;return V.createElement("div",{ref:T,className:b},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),wve=k_(vve),xve=function(e){Ln(n,V.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),ie(ce(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:mn()}),ie(ce(i),"calcInitialState",function(){var o,s=i.getPreSelection(),a=lF(i.props),l=cF(i.props),c=a&&Kr(s,Ar(a))?a:l&&Hs(s,al(l))?l:s;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:rL(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),ie(ce(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),ie(ce(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),ie(ce(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),ie(ce(i),"setOpen",function(o){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:U1},function(){o||i.setState(function(a){return{focused:!!s&&a.focused}},function(){!s&&i.setBlur(),i.setState({inputValue:null})})})}),ie(ce(i),"inputOk",function(){return ME(i.state.preSelection)}),ie(ce(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),ie(ce(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),ie(ce(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),ie(ce(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),ie(ce(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),ie(ce(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),ie(ce(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),ie(ce(i),"handleChange",function(){for(var o=arguments.length,s=new Array(o),a=0;a{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||Bo(r),s=H.useRef();return U("div",{className:"icon-input-container",children:[C(xve,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??Nf,className:ge("icon-input-container__input form-control",t),ref:s}),o&&C(Fe,{icon:Rpe,className:"icon-input-container__icon",onClick:()=>{var a;return(a=s.current)==null?void 0:a.input.focus()}})]})},Cve=e=>C(bx,{...e,dateFormat:zE,showTimeSelect:!0,timeIntervals:10});const Eve=({icon:e,className:t,...n})=>{const r=gl(),i=ge("icon-input-container__input",t);return U("div",{className:"icon-input-container",children:[C(zc,{className:i,innerRef:r,...n}),C(Fe,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var o;return(o=r.current)==null?void 0:o.focus()}})]})},V1=({children:e,infoTooltip:t,checked:n,onChange:r})=>U("p",{children:[C(X8,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&C(og,{placement:"right",children:t})]});const Tve=({isOpen:e,toggle:t})=>U(Ho,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[C(oo,{toggle:t,children:"Info"}),U(Ri,{children:[U("p",{children:["When the ",C("b",{children:C("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),C("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),U("ul",{children:[C("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),U("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",C("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),C("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),Ove=()=>{const[e,t]=jt();return U(We,{children:[C("span",{title:"What does this mean?",children:C(Fe,{icon:bC,style:{cursor:"pointer"},onClick:t})}),C(Tve,{isOpen:e,toggle:t})]})};const Pve=It(LZ,SZ(/ /g,"-")),H1=e=>typeof e=="string"?Io(e):e,kve=(e,t)=>({mode:n,saving:r,onSave:i,initialState:o,selectedServer:s})=>{const[a,l]=H.useState(o),c=()=>l(o),f=Mi("deviceLongUrls",s),h=n==="edit",p=n==="create-basic",m=P=>l({...a,tags:P.map(Pve)}),g=(P,k)=>yi(P)?P:yi(k)?null:void 0,v=sh(async()=>i({...a,validSince:Ys(a.validSince)??null,validUntil:Ys(a.validUntil)??null,maxVisits:yi(a.maxVisits)?Number(a.maxVisits):null}).then(()=>!h&&c()).catch(()=>{}));H.useEffect(()=>{l(o)},[o]);const w=(P,k,N="text",D={},z={})=>C(_r,{...z,children:C(zc,{id:P,type:N,placeholder:k,value:a[P]??"",onChange:D.onChange??(A=>l({...a,[P]:A.target.value})),...D})}),y=(P,k,N)=>{var D;return C(Eve,{icon:N,id:P,type:"url",placeholder:k,value:((D=a.deviceLongUrls)==null?void 0:D[P])??"",onChange:z=>{var A;return l({...a,deviceLongUrls:{...a.deviceLongUrls??{},[P]:g(z.target.value,(A=o.deviceLongUrls)==null?void 0:A[P])}})}})},b=(P,k,N={})=>C(Cve,{selected:a[P]?H1(a[P]):null,placeholderText:k,isClearable:!0,onChange:D=>l({...a,[P]:D}),...N}),x=U(We,{children:[C(_r,{children:C(zc,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:a.longUrl,onChange:P=>l({...a,longUrl:P.target.value})})}),U(er,{children:[p&&w("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),C("div",{className:p?"col-lg-6 mb-3":"col-12",children:C(e,{selectedTags:a.tags??[],onChange:m})})]})]}),T=Mi("forwardQuery",s);return U("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:v,children:[p&&x,!p&&U(We,{children:[U(er,{children:[C("div",{className:ge("mb-3",{"col-sm-6":f,"col-12":!f}),children:C(dn,{title:"Main options",className:"mb-3",children:x})}),f&&C("div",{className:"col-sm-6 mb-3",children:U(dn,{title:"Device-specific long URLs",children:[C(_r,{children:y("android","Android-specific redirection",wge)}),C(_r,{children:y("ios","iOS-specific redirection",bge)}),y("desktop","Desktop-specific redirection",BQ)]})})]}),U(er,{children:[C("div",{className:"col-sm-6 mb-3",children:U(dn,{title:"Customize the short URL",children:[w("title","Title","text",{onChange:({target:P})=>l({...a,title:g(P.value,o.title)})}),!h&&U(We,{children:[U(er,{children:[C("div",{className:"col-lg-6",children:w("customSlug","Custom slug","text",{disabled:yi(a.shortCodeLength)})}),C("div",{className:"col-lg-6",children:w("shortCodeLength","Short code length","number",{min:4,disabled:yi(a.customSlug)})})]}),C(t,{value:a.domain,onChange:P=>l({...a,domain:P})})]})]})}),C("div",{className:"col-sm-6 mb-3",children:U(dn,{title:"Limit access to the short URL",children:[w("maxVisits","Maximum number of visits allowed","number",{min:1}),C("div",{className:"mb-3",children:b("validSince","Enabled since...",{maxDate:a.validUntil?H1(a.validUntil):void 0})}),b("validUntil","Enabled until...",{minDate:a.validSince?H1(a.validSince):void 0})]})})]}),U(er,{children:[C("div",{className:"col-sm-6 mb-3",children:U(dn,{title:"Extra checks",children:[C(V1,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:a.validateUrl,onChange:P=>l({...a,validateUrl:P}),children:"Validate URL"}),!h&&U("p",{children:[C(X8,{inline:!0,className:"me-2",checked:a.findIfExists,onChange:P=>l({...a,findIfExists:P}),children:"Use existing URL if found"}),C(Ove,{})]})]})}),C("div",{className:"col-sm-6 mb-3",children:U(dn,{title:"Configure behavior",children:[C(V1,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:a.crawlable,onChange:P=>l({...a,crawlable:P}),children:"Make it crawlable"}),T&&C(V1,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:a.forwardQuery,onChange:P=>l({...a,forwardQuery:P}),children:"Forward query params on redirect"})]})})]})]}),C("div",{className:"text-center",children:C(mt,{outline:!0,color:"primary",disabled:r||qn(a.longUrl),className:"btn-xs-block",children:r?"Saving...":"Save"})})]})},Mve=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>U("div",{className:"row",children:[C("div",{className:"col-md-6",children:C(bx,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),C("div",{className:"col-md-6",children:C(bx,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&al(o))})})]}),dF=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=ry(t),[s,a]=H.useState(o?t:void 0),[l,c]=H.useState(o?void 0:t),f=p=>{a(E8(p)?ch:void 0),c(p),e(p)},h=p=>{a(p),c(void 0),e(O8(p))};return i&&Ooe(()=>{const p=ry(t);p&&h(t),t&&!p&&f(t)},[t]),U(ia,{disabled:r,text:VE(s??l)??n,children:[C(z8,{allText:n,active:s,onChange:h}),C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Custom:"}),C(Ve,{text:!0,children:C(Mve,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})},Rve=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:s=!1}=t,a=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return U(ia,{text:"Filters",dropdownClassName:n,className:"me-3",right:!0,minWidth:250,children:[C(Ve,{header:!0,children:"Visits:"}),C(Ve,{active:i,onClick:a("excludeBots"),children:"Ignore visits from bots"}),r&&U(We,{children:[C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Short URLs:"}),C(Ve,{active:o,onClick:a("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),C(Ve,{active:s,onClick:a("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),C(Ve,{divider:!0}),C(Ve,{disabled:!yi(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:C("i",{children:"Clear filters"})})]})};const Nve=(e,t)=>({selectedServer:n,className:r,shortUrlsAmount:i,order:o,handleOrderBy:s,settings:a})=>{var D;const[l,c]=P_(),{search:f,tags:h,startDate:p,endDate:m,excludeBots:g,excludeMaxVisitsReached:v,excludePastValidUntil:w,tagsMode:y="any"}=l,b=Mi("filterDisabledUrls",n),x=It(({startDate:z,endDate:A})=>({startDate:Ys(z)??void 0,endDate:Ys(A)??void 0}),c),T=It(z=>qn(z)?void 0:z,z=>c({search:z})),P=z=>c({tags:z}),k=Mi("allTagsFiltering",n),N=It(()=>y==="any"?"all":"any",z=>c({tagsMode:z}));return U("div",{className:ge("short-urls-filtering-bar-container",r),children:[C(ah,{initialValue:f,onChange:T}),U(th,{className:"mt-3",children:[C(t,{allowNew:!1,placeholder:"With tags...",selectedTags:h,onChange:P}),k&&h.length>1&&U(We,{children:[C(mt,{outline:!0,color:"secondary",onClick:N,id:"tagsModeBtn","aria-label":"Change tags mode",children:C(Fe,{className:"short-urls-filtering-bar__tags-icon",icon:y==="all"?JI:pQ})}),C(Or,{target:"tagsModeBtn",placement:"left",children:y==="all"?"With all the tags.":"With any of the tags."})]})]}),U(er,{className:"flex-lg-row-reverse",children:[C("div",{className:"col-lg-8 col-xl-6 mt-3",children:U("div",{className:"d-md-flex",children:[C("div",{className:"flex-fill",children:C(dF,{defaultText:"All short URLs",initialDateRange:T8(p,m),onDatesChange:x})}),C(Rve,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:g??((D=a.visits)==null?void 0:D.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:w},onChange:c,supportsDisabledFiltering:b})]})}),C("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:C(e,{amount:i})}),C("div",{className:"col-6 d-lg-none mt-3",children:C(ph,{prefixed:!1,items:j8,order:o,onChange:s})})]})]})};function Af({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:C(Fe,{icon:e.dir==="ASC"?sQ:yQ,className:n})}const jl=2,wx="...",hF=(e,t)=>{const n=aC(yI(jl,e-jl),MI(t-1,e+jl)+1);return e-jl>jl&&n.unshift(wx),e+jle===wx,pF=e=>Rd(e)?e:wn(e),mF=(e,t)=>Rd(e)?`${e}_${t}`:`${e}`,Lve=({paginator:e,serverId:t,currentQueryString:n=""})=>{const{currentPage:r=0,pagesCount:i=0}=e??{},o=a=>`/server/${t}/list-short-urls/${a}${n}`;if(i<=1)return C("div",{className:"pb-3"});const s=()=>hF(r,i).map((a,l)=>C(Rs,{disabled:Rd(a),active:r===a,children:C(Ns,{tag:At,to:o(a),children:pF(a)})},mF(a,l)));return U(x_,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[C(Rs,{disabled:r===1,children:C(Ns,{previous:!0,tag:At,to:o(r-1)})}),s(),C(Rs,{disabled:r>=i,children:C(Ns,{next:!0,tag:At,to:o(r+1)})})]})},Dve=(e,t)=>oa(({listShortUrls:n,shortUrlsList:r,selectedServer:i,settings:o})=>{var K,te,oe;const s=Yd(i),{page:a}=Qs(),l=Mn(),[c,f]=P_(),{tags:h,search:p,startDate:m,endDate:g,orderBy:v,tagsMode:w,excludeBots:y,excludePastValidUntil:b,excludeMaxVisitsReached:x}=c,[T,P]=H.useState(v??((K=o.shortUrlsList)==null?void 0:K.defaultOrdering)??WE),{pagination:k}=(r==null?void 0:r.shortUrls)??{},N=y??((te=o.visits)==null?void 0:te.excludeBots),D=Mi("excludeBotsOnShortUrls",i),z=(se,Z)=>{f({orderBy:{field:se,dir:Z}}),P({field:se,dir:Z})},A=se=>()=>z(se,o_(se,T.field,T.dir)),Y=se=>C(Af,{currentOrder:T,field:se}),q=It(se=>[...new Set([...h,se])],se=>f({tags:se})),ee=({field:se,dir:Z})=>D&&N&&se==="visits"?{field:"nonBotVisits",dir:Z}:{field:se,dir:Z};return H.useEffect(()=>{n({page:a,searchTerm:p,tags:h,startDate:m,endDate:g,orderBy:ee(T),tagsMode:w,excludePastValidUntil:b,excludeMaxVisitsReached:x})},[a,p,h,m,g,T.field,T.dir,w,b,x]),U(We,{children:[C(t,{selectedServer:i,shortUrlsAmount:(oe=r.shortUrls)==null?void 0:oe.pagination.totalItems,order:T,handleOrderBy:z,settings:o,className:"mb-3"}),U(Er,{body:!0,className:"pb-0",children:[C(e,{selectedServer:i,shortUrlsList:r,orderByColumn:A,renderOrderIcon:Y,onTagClick:q}),C(Lve,{paginator:k,serverId:s,currentQueryString:l.search})]})]})},()=>[Jr.visits]);const Ave=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,selectedServer:o,className:s})=>{const{error:a,loading:l,shortUrls:c}=r,f=ge({"short-urls-table__header-cell--with-action":!!t}),h=ge("short-urls-table__header-cell",f),p=ge("table table-hover responsive-table short-urls-table",s),m=()=>a?C("tr",{children:C("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):l?C("tr",{children:C("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!l&&qn(c==null?void 0:c.data)?C("tr",{children:C("td",{colSpan:6,className:"text-center",children:"No results found"})}):c==null?void 0:c.data.map(g=>C(e,{shortUrl:g,selectedServer:o,onTagClick:i},g.shortUrl));return U("table",{className:p,children:[C("thead",{className:"responsive-table__header short-urls-table__header",children:U("tr",{children:[U("th",{className:h,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),U("th",{className:h,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),U("th",{className:"short-urls-table__header-cell",children:[U("span",{className:f,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]}),"  /  ",U("span",{className:f,onClick:t==null?void 0:t("longUrl"),children:[C("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),C("th",{className:"short-urls-table__header-cell",children:"Tags"}),C("th",{className:h,onClick:t==null?void 0:t("visits"),children:U("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),C("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),C("tbody",{children:m()})]})},Ive=(e,t)=>{e.serviceFactory("ShortUrlsList",Dve,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",Ave,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",dge,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.decorator("ShortUrlsRow",t(["settings"])),e.serviceFactory("ShortUrlsRowMenu",hge,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",tge,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",kve,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",Ime,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Fme,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>nge),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",age,"ImageDownloader"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",Nve,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",rge,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("shortUrlsListReducerCreator",Upe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",ct("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",mge,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",ct("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",_ge,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",ct("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",jpe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",ct("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",gge,"buildShlinkApiClient"),e.serviceFactory("shortUrlDetailReducer",ct("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",zpe,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",pge,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",ct("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",$pe,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",ct("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>L8),e.serviceFactory("getShortUrlDetail",ct("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",yge,"buildShlinkApiClient")},Fve=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:a,deleted:l,errorData:c}=i;return U(Ho,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[C(oo,{toggle:t,className:"text-danger",children:"Delete tag"}),U(Ri,{children:["Are you sure you want to delete tag ",C("b",{children:e}),"?",a&&C(Dr,{type:"error",small:!0,className:"mt-2",children:C(Ao,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),U(na,{children:[C(mt,{color:"link",onClick:t,children:"Cancel"}),C(mt,{color:"danger",disabled:s,onClick:async()=>{await r(e),t()},children:s?"Deleting tag...":"Delete tag"})]})]})};function L_(){return(L_=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function xx(e){var t=H.useRef(e),n=H.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var Nd=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&i.current?o(oL(i.current,w,a.current)):v(!1)},g=function(){return v(!1)};function v(w){var y=l.current,b=Sx(i.current),x=w?b.addEventListener:b.removeEventListener;x(y?"touchmove":"mousemove",m),x(y?"touchend":"mouseup",g)}return[function(w){var y=w.nativeEvent,b=i.current;if(b&&(sL(y),!function(T,P){return P&&!If(T)}(y,l.current)&&b)){if(If(y)){l.current=!0;var x=y.changedTouches||[];x.length&&(a.current=x[0].identifier)}b.focus(),o(oL(b,y,a.current)),v(!0)}},function(w){var y=w.which||w.keyCode;y<37||y>40||(w.preventDefault(),s({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},v]},[s,o]),f=c[0],h=c[1],p=c[2];return H.useEffect(function(){return p},[p]),V.createElement("div",L_({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),KE=function(e){return e.filter(Boolean).join(" ")},yF=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=KE(["react-colorful__pointer",e.className]);return V.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},V.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Hn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},$ve=function(e){return Vve(Cx(e))},Cx=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Hn(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Hn(parseInt(e.substring(6,8),16)/255,2):1}},jve=function(e){return Uve(zve(e))},Bve=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:Hn(e.h),s:Hn(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Hn(i/2),a:Hn(r,2)}},Ex=function(e){var t=Bve(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},zve=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:Hn(255*[r,a,s,s,l,r][c]),g:Hn(255*[l,r,r,a,s,s][c]),b:Hn(255*[s,s,l,r,r,a][c]),a:Hn(i,2)}},Fp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Uve=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?Fp(Hn(255*i)):"";return"#"+Fp(t)+Fp(n)+Fp(r)+o},Vve=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:Hn(60*(a<0?a+6:a)),s:Hn(o?s/o*100:0),v:Hn(o/255*100),a:i}},Hve=V.memo(function(e){var t=e.hue,n=e.onChange,r=KE(["react-colorful__hue",e.className]);return V.createElement("div",{className:r},V.createElement(vF,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:Nd(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Hn(t),"aria-valuemax":"360","aria-valuemin":"0"},V.createElement(yF,{className:"react-colorful__hue-pointer",left:t/360,color:Ex({h:t,s:100,v:100,a:1})})))}),Wve=V.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Ex({h:t.h,s:100,v:100,a:1})};return V.createElement("div",{className:"react-colorful__saturation",style:r},V.createElement(vF,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:Nd(t.s+100*i.left,0,100),v:Nd(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Hn(t.s)+"%, Brightness "+Hn(t.v)+"%"},V.createElement(yF,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Ex(t)})))}),_F=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Yve=function(e,t){return e.toLowerCase()===t.toLowerCase()||_F(Cx(e),Cx(t))};function qve(e,t,n){var r=xx(n),i=H.useState(function(){return e.toHsva(t)}),o=i[0],s=i[1],a=H.useRef({color:t,hsva:o});H.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),H.useEffect(function(){var c;_F(o,a.current.hsva)||e.equal(c=e.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},r(c))},[o,e,r]);var l=H.useCallback(function(c){s(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var Gve=typeof window<"u"?H.useLayoutEffect:H.useEffect,Zve=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},aL=new Map,Kve=function(e){Gve(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!aL.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,aL.set(t,n);var r=Zve();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Xve=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,s=gF(e,["className","colorModel","color","onChange"]),a=H.useRef(null);Kve(a);var l=qve(n,i,o),c=l[0],f=l[1],h=KE(["react-colorful",t]);return V.createElement("div",L_({},s,{ref:a,className:h}),V.createElement(Wve,{hsva:c,onChange:f}),V.createElement(Hve,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},Qve={defaultColor:"000",toHsva:$ve,fromHsva:function(e){return jve({h:e.h,s:e.s,v:e.v,a:1})},equal:Yve},Jve=function(e){return V.createElement(Xve,L_({},e,{colorModel:Qve}))};const eye=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:s})=>{const[a,l]=H.useState(t),[c,f]=H.useState(e(t)),[h,p,,m]=jt(),{editing:g,error:v,edited:w,errorData:y}=s,b=sh(async()=>{await n({oldName:t,newName:a,color:c}),r()}),x=It(m,()=>w&&i({oldName:t,newName:a,color:c}));return C(Ho,{isOpen:o,toggle:r,centered:!0,onClosed:x,children:U("form",{name:"editTag",onSubmit:b,children:[C(oo,{toggle:r,children:"Edit tag"}),U(Ri,{children:[U(th,{children:[C("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:c,borderColor:c},onClick:p,children:C(Fe,{icon:aQ,className:"edit-tag-modal__color-icon"})}),C(Jd,{isOpen:h,toggle:p,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:C(Jve,{color:c,onChange:f})}),C(zc,{value:a,placeholder:"Tag",required:!0,onChange:({target:T})=>l(T.value)})]}),v&&C(Dr,{type:"error",small:!0,className:"mt-2",children:C(Ao,{errorData:y,fallbackMessage:"Something went wrong while editing the tag :("})})]}),U(na,{children:[C(mt,{type:"button",color:"link",onClick:r,children:"Cancel"}),C(mt,{color:"primary",disabled:g,children:g?"Saving...":"Save"})]})]})})};function tye(e){return V.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},V.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const nye={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},rye=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class iye extends V.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=V.createRef(),this.sizer=V.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);rye.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:o,classNames:s,inputAttributes:a,inputEventHandlers:l,index:c}=this.props;return V.createElement("div",{className:s.searchWrapper},V.createElement("input",Object.assign({},a,l,{ref:this.input,value:n,placeholder:i,className:s.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":c>-1?`${t}-${c}`:null,"aria-expanded":o,style:{width:this.state.inputWidth}})),V.createElement("div",{ref:this.sizer,style:nye},n||i))}}function XE(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function oye(e){return new RegExp(XE(e),"gi")}function sye(e){return new RegExp(`(?:^|\\s)${XE(e)}`,"i")}function aye(e){return new RegExp(`^${XE(e)}$`,"i")}function lye(e,t){const n=oye(t);return e.replace(n,"$&")}function cye({item:e,query:t}){return V.createElement("span",{dangerouslySetInnerHTML:{__html:lye(e.name,t)}})}function uye(e){const t=e.suggestionComponent||cye,n=e.options.map((r,i)=>{const o=`${e.id}-${i}`,s=[];return e.index===i&&s.push(e.classNames.suggestionActive),r.disabled&&s.push(e.classNames.suggestionDisabled),V.createElement("li",{id:o,key:o,role:"option",className:s.join(" "),"aria-disabled":!!r.disabled,onMouseDown:a=>a.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?V.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:V.createElement(t,{item:r,query:e.query}))});return V.createElement("div",{className:e.classNames.suggestions},V.createElement("ul",{role:"listbox",id:e.id},n))}function fye(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,o=>o===t),i=n[r-1]||n[r+1];i&&i.focus()}const Ra={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},bF={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function wF(e,t){return e.findIndex(n=>aye(t).test(n.name))}function W1(){if(this.state.query.length>=this.props.minQueryLength){const e=wF(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function dye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function hye(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function pye(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function mye(e,t){return sye(t).test(e.name)}function gye(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&wF(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class QE extends V.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=V.createRef(),this.input=V.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?W1.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),W1.call(this)),t.key===Ra.BACKSPACE&&this.props.allowBackspace&&pye.call(this,t),(t.key===Ra.UP_ARROW||t.key===Ra.UP_ARROW_COMPAT)&&dye.call(this,t),(t.key===Ra.DOWN_ARROW||t.key===Ra.DOWN_ARROW_COMPAT)&&hye.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&W1.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&fye(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||tye,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},bF,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),V.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},V.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,s)=>V.createElement(t,{key:s,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,s)}))),V.createElement("div",{className:r.search},V.createElement(iye,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?V.createElement(uye,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:gye(t,n)}:null}}QE.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:mye,suggestionsTransform:null,autoresize:!0,classNames:bF,delimiters:[Ra.TAB,Ra.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};QE.propTypes={id:S.string,tags:S.arrayOf(S.object),placeholderText:S.string,ariaLabelText:S.string,removeButtonText:S.string,noSuggestionsText:S.string,newTagText:S.string,suggestions:S.arrayOf(S.object),suggestionsFilter:S.func,suggestionsTransform:S.func,autoresize:S.bool,delimiters:S.arrayOf(S.string),onDelete:S.func.isRequired,onAddition:S.func.isRequired,onInput:S.func,onFocus:S.func,onBlur:S.func,onValidate:S.func,minQueryLength:S.number,maxSuggestionsLength:S.number,classNames:S.object,allowNew:S.bool,allowBackspace:S.bool,addOnBlur:S.bool,tagComponent:S.oneOfType([S.func,S.element]),suggestionComponent:S.oneOfType([S.func,S.element]),inputAttributes:S.object};const xF=({tag:e,colorGenerator:t})=>C("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"}),lL=e=>({id:e,name:e}),vye=e=>({selectedTags:t,onChange:n,placeholder:r,listTags:i,tagsList:o,settings:s,allowNew:a=!0})=>{var h;H.useEffect(()=>{i()},[]);const l=((h=s.shortUrlCreation)==null?void 0:h.tagFilteringMode)??"startsWith",c=({tag:p,onDelete:m})=>C(qE,{colorGenerator:e,text:p.name,clearable:!0,className:"react-tags__tag",onClose:m}),f=({item:p})=>U(We,{children:[C(xF,{tag:`${p.name}`,colorGenerator:e}),p.name]});return C(QE,{tags:t.map(lL),tagComponent:c,suggestions:o.tags.filter(p=>!t.includes(p)).map(lL),suggestionComponent:f,allowNew:a,addOnBlur:!0,placeholderText:r??"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:l==="includes"?(p,m)=>m.filter(({name:g})=>g.includes(p)):void 0,onDelete:p=>{const m=[...t];m.splice(p,1),n(m)},onAddition:({name:p})=>n([...new Set([...t,...p.toLowerCase().split(",")])])})},Tx="shlink/tagDelete",yye={deleting:!1,deleted:!1,error:!1},SF=bn(`${Tx}/tagDeleted`),_ye=e=>{const t=or(`${Tx}/deleteTag`,async(r,{getState:i})=>{const{deleteTags:o}=e(i);await o([r])}),{reducer:n}=Gn({name:Tx,initialState:yye,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:io(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},JE="shlink/tagEdit",bye={editing:!1,edited:!1,error:!1},CF=bn(`${JE}/tagEdited`),wye=(e,t)=>or(`${JE}/editTag`,async({oldName:n,newName:r,color:i},{getState:o})=>(await e(o).editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),xye=e=>Gn({name:JE,initialState:bye,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:io(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...RI(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),eT="shlink/tagsList",Y1={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},cL=(e,t)=>n=>n===e?t:n,uL=(e,t)=>Wd(n=>n===t,e),Sye=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:s}=i,a=n[r];return{...n,[r]:{...a,visitsSummary:a.visitsSummary&&{total:a.visitsSummary.total+o+s,bots:a.visitsSummary.bots+o,nonBots:a.visitsSummary.nonBots+s},visitsCount:a.visitsCount+o+s}}},{...t}),Cye=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),Eye=(e,t=!0)=>or(`${eT}/listTags`,async(n,{getState:r})=>{const{tagsList:i,selectedServer:o}=r();if(!t&&!qn(i.tags))return i;const{listTags:s,tagsStats:a}=e(r),{tags:l,stats:c}=await(TE.tagsStats(o)?a():s()),f=c.reduce((h,{tag:p,...m})=>(h[p]=m,h),{});return{tags:l,stats:f}}),EF=bn(`${eT}/filterTags`),Tye=(e,t)=>Gn({name:eT,initialState:Y1,reducers:{},extraReducers:n=>{n.addCase(EF,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...Y1,error:!0,errorData:io(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...Y1,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(SF,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:uL(r,s),filteredTags:uL(i,s)})),n.addCase(CF,({tags:r,filteredTags:i,stats:o,...s},{payload:a})=>({...s,stats:{...o,[a.newName]:o[a.oldName]},tags:r.map(cL(a.oldName,a.newName)).sort(),filteredTags:i.map(cL(a.oldName,a.newName)).sort()})),n.addCase(uh,(r,{payload:i})=>({...r,stats:Sye(Cye(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}}),Oye=e=>oa(({filterTags:t,forceListTags:n,tagsList:r,selectedServer:i,settings:o})=>{var h;const[s,a]=H.useState(((h=o.tags)==null?void 0:h.defaultOrdering)??{}),l=It(()=>r.filteredTags.map(p=>{var v,w,y;const m=r.stats[p],g=((v=o.visits)!=null&&v.excludeBots?(w=m==null?void 0:m.visitsSummary)==null?void 0:w.nonBots:(y=m==null?void 0:m.visitsSummary)==null?void 0:y.total)??(m==null?void 0:m.visitsCount)??0;return{tag:p,visits:g,shortUrls:(m==null?void 0:m.shortUrlsCount)??0}}),p=>LI(p,s));if(H.useEffect(()=>{n()},[]),r.loading)return C(Eo,{loading:!0});if(r.error)return C(Dr,{type:"error",children:C(Ao,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const c=p=>()=>{const m=o_(p,s.field,s.dir);a({field:m?p:void 0,dir:m})};return U(We,{children:[C(ah,{className:"mb-3",onChange:t}),C(er,{className:"mb-3",children:C("div",{className:"col-lg-6 offset-lg-6",children:C(ph,{items:B8,order:s,onChange:(p,m)=>a({field:p,dir:m})})})}),(()=>{if(r.filteredTags.length<1)return C(Eo,{children:"No tags found"});const p=l();return C(e,{sortedTags:p,selectedServer:i,currentOrder:s,orderByColumn:c})})()]})},()=>[Jr.visits]);const tT=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Rd(o)&&n(o);return U(x_,{listClassName:ge("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[C(Rs,{disabled:t<=1,children:C(Ns,{previous:!0,tag:"span",onClick:i(t-1)})}),hF(t,e).map((o,s)=>C(Rs,{disabled:Rd(o),active:t===o,children:C(Ns,{role:"link",tag:"span",onClick:i(o),children:pF(o)})},mF(o,s))),C(Rs,{disabled:t>=e,children:C(Ns,{next:!0,tag:"span",onClick:i(t+1)})})]})};const Pye=20,kye=e=>({sortedTags:t,selectedServer:n,orderByColumn:r,currentOrder:i})=>{const o=H.useRef(!0),{search:s}=Mn(),{page:a=1}=pl(s),[l,c]=Toe("page",Number(a)),f=dd(Pye,t),h=f.length>1,p=f[l-1]??[];return H.useEffect(()=>{!o.current&&c(1),o.current=!1},[t]),H.useEffect(()=>{scrollTo(0,0)},[l]),U(dn,{bodyClassName:h?"pb-1":"",children:[U("table",{className:"table table-hover responsive-table mb-0",children:[U("thead",{className:"responsive-table__header",children:[U("tr",{children:[U("th",{className:"tags-table__header-cell",onClick:r("tag"),children:["Tag ",C(Af,{currentOrder:i,field:"tag"})]}),U("th",{className:"tags-table__header-cell text-lg-end",onClick:r("shortUrls"),children:["Short URLs ",C(Af,{currentOrder:i,field:"shortUrls"})]}),U("th",{className:"tags-table__header-cell text-lg-end",onClick:r("visits"),children:["Visits ",C(Af,{currentOrder:i,field:"visits"})]}),C("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),C("tr",{children:C("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),U("tbody",{children:[p.length===0&&C("tr",{children:C("td",{colSpan:4,className:"text-center",children:"No results found"})}),p.map(m=>C(e,{tag:m,selectedServer:n},m.tag))]})]}),h&&C("div",{className:"sticky-card-paginator",children:C(tT,{pagesCount:f.length,currentPage:l,setCurrentPage:c})})]},l)},Mye=(e,t,n)=>({tag:r,selectedServer:i})=>{const[o,s]=jt(),[a,l]=jt(),[c,f]=jt(),h=Yd(i);return U("tr",{className:"responsive-table__row",children:[U("th",{className:"responsive-table__cell","data-th":"Tag",children:[C(xF,{tag:r.tag,colorGenerator:n})," ",r.tag]}),C("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:C(At,{to:`/server/${h}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:wn(r.shortUrls)})}),C("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:C(At,{to:`/server/${h}/tag/${r.tag}/visits`,children:wn(r.visits)})}),C("td",{className:"responsive-table__cell text-lg-end",children:U(E_,{toggle:f,isOpen:c,children:[U(Ve,{onClick:l,children:[C(Fe,{icon:ZX,fixedWidth:!0,className:"me-1"})," Edit"]}),U(Ve,{onClick:s,children:[C(Fe,{icon:fQ,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),C(t,{tag:r.tag,toggle:l,isOpen:a}),C(e,{tag:r.tag,toggle:s,isOpen:o})]})},Rye=(e,t)=>{e.serviceFactory("TagsSelector",vye,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("DeleteTagConfirmModal",()=>Fve),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",eye,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",Mye,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.decorator("TagsTableRow",t(["settings"])),e.serviceFactory("TagsTable",kye,"TagsTableRow"),e.serviceFactory("TagsList",Oye,"TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",xye,"editTag"),e.serviceFactory("tagEditReducer",ct("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",_ye,"buildShlinkApiClient"),e.serviceFactory("tagDeleteReducer",ct("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",Tye,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",ct("reducer"),"tagsListReducerCreator");const n=r=>({buildShlinkApiClient:i})=>Eye(i,r);e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",()=>EF),e.serviceFactory("deleteTag",ct("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>SF),e.serviceFactory("editTag",wye,"buildShlinkApiClient","ColorGenerator"),e.serviceFactory("tagEdited",()=>CF)};var Nye="Expected a function",TF="__lodash_hash_undefined__",OF=1/0,Lye="[object Function]",Dye="[object GeneratorFunction]",Aye="[object Symbol]",Iye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fye=/^\w*$/,$ye=/^\./,jye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bye=/[\\^$.*+?()[\]{}|]/g,zye=/\\(\\)?/g,Uye=/^\[object .+?Constructor\]$/,Vye=typeof Vl=="object"&&Vl&&Vl.Object===Object&&Vl,Hye=typeof self=="object"&&self&&self.Object===Object&&self,nT=Vye||Hye||Function("return this")();function Wye(e,t){return e==null?void 0:e[t]}function Yye(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var qye=Array.prototype,Gye=Function.prototype,PF=Object.prototype,q1=nT["__core-js_shared__"],fL=function(){var e=/[^.]+$/.exec(q1&&q1.keys&&q1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),kF=Gye.toString,rT=PF.hasOwnProperty,MF=PF.toString,Zye=RegExp("^"+kF.call(rT).replace(Bye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dL=nT.Symbol,Kye=qye.splice,Xye=RF(nT,"Map"),Ld=RF(Object,"create"),hL=dL?dL.prototype:void 0,pL=hL?hL.toString:void 0;function cl(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function a_e(e,t){var n=this.__data__,r=D_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}lu.prototype.clear=r_e;lu.prototype.delete=i_e;lu.prototype.get=o_e;lu.prototype.has=s_e;lu.prototype.set=a_e;function yl(e){var t=-1,n=e?e.length:0;for(this.clear();++tt.toFixed(e.decimals).replace(".",e.separator):t=>`${t}`.replace(".",e.separator):e.decimals?t=>t.toFixed(e.decimals):t=>`${t}`}function sT(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;return!t||t===n?r=>r:r=>(r.includes(t)&&(r=r.replace(new RegExp(t,"g"),n)),`${t}${r}${t}`)}function k_e(e={stringFormatter:sT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function M_e(e={stringFormatter:sT()}){return t=>t===null||(t=JSON.stringify(t),t===void 0)?"":(t[0]==='"'&&(t=t.replace(/^"(.+)"$/,"$1")),e.stringFormatter(t))}function gL(e,t,n){const r=e[t];return r===void 0?n:r}function DF(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function Ox(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}class R_e{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||sT(),i=M_e({stringFormatter:r}),o={header:r,undefined:G1,boolean:G1,number:P_e(),bigint:G1,string:r,symbol:k_e({stringFormatter:r}),function:i,object:i};return n.formatters={...o,...n.formatters},n.delimiter=n.delimiter||",",n.eol=n.eol||` +`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>mL(i,r,n):i=>gL(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string")return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?o=>mL(o,r.value,i):o=>gL(o,r.value,i)};if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i};return{label:o,value(a){const l=r.value(a,s);return l??i}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Ox(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(DF,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return Ox(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){return this.opts.formatters[typeof t](t)}}class N_e extends R_e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,a)=>(Object.keys(a).forEach(l=>{s.includes(l)||s.push(l)}),s),[]));const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields&&(n.length===0||typeof n[0]!="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(DF,[])}processData(t){return Ox(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Cn;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Cn||(Cn={}));Cn.QUOTATION_MARK+"",Cn.QUOTATION_MARK,Cn.REVERSE_SOLIDUS+"",Cn.REVERSE_SOLIDUS,Cn.SOLIDUS+"",Cn.SOLIDUS,Cn.LATIN_SMALL_LETTER_B+"",Cn.BACKSPACE,Cn.LATIN_SMALL_LETTER_F+"",Cn.FORM_FEED,Cn.LATIN_SMALL_LETTER_N+"",Cn.NEWLINE,Cn.LATIN_SMALL_LETTER_R+"",Cn.CARRIAGE_RETURN,Cn.LATIN_SMALL_LETTER_T+"",Cn.TAB;var vL;(function(e){e[e.LEFT_BRACE=1]="LEFT_BRACE",e[e.RIGHT_BRACE=2]="RIGHT_BRACE",e[e.LEFT_BRACKET=3]="LEFT_BRACKET",e[e.RIGHT_BRACKET=4]="RIGHT_BRACKET",e[e.COLON=5]="COLON",e[e.COMMA=6]="COMMA",e[e.TRUE=7]="TRUE",e[e.FALSE=8]="FALSE",e[e.NULL=9]="NULL",e[e.STRING=10]="STRING",e[e.NUMBER=11]="NUMBER",e[e.SEPARATOR=12]="SEPARATOR"})(vL||(vL={}));var yL;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR"})(yL||(yL={}));var _L;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(_L||(_L={}));var bL;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(bL||(bL={}));var L_e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(g){var v=[];for(var w in g)v.push(w);return v};e.exports=h;var o=n(5);o.inherits=n(2);var s=n(23),a=n(14);o.inherits(h,s);for(var l=i(a.prototype),c=0;c + * @license MIT + */var i=n(38),o=n(39),s=n(40);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(O,R){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|O}function v(O,R){if(c.isBuffer(O))return O.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(O)||O instanceof ArrayBuffer))return O.byteLength;typeof O!="string"&&(O=""+O);var F=O.length;if(F===0)return 0;for(var Q=!1;;)switch(R){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":case void 0:return ne(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return ae(O).length;default:if(Q)return ne(O).length;R=(""+R).toLowerCase(),Q=!0}}function w(O,R,F){var Q=O[R];O[R]=O[F],O[F]=Q}function y(O,R,F,Q,X){if(O.length===0)return-1;if(typeof F=="string"?(Q=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,isNaN(F)&&(F=X?0:O.length-1),F<0&&(F=O.length+F),F>=O.length){if(X)return-1;F=O.length-1}else if(F<0){if(!X)return-1;F=0}if(typeof R=="string"&&(R=c.from(R,Q)),c.isBuffer(R))return R.length===0?-1:b(O,R,F,Q,X);if(typeof R=="number")return R&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call(O,R,F):Uint8Array.prototype.lastIndexOf.call(O,R,F):b(O,[R],F,Q,X);throw new TypeError("val must be string, number or Buffer")}function b(O,R,F,Q,X){var le,ve=1,De=O.length,fe=R.length;if(Q!==void 0&&((Q=String(Q).toLowerCase())==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(O.length<2||R.length<2)return-1;ve=2,De/=2,fe/=2,F/=2}function ye(Ne,Le){return ve===1?Ne[Le]:Ne.readUInt16BE(Le*ve)}if(X){var be=-1;for(le=F;leDe&&(F=De-fe),le=F;le>=0;le--){for(var Oe=!0,Ae=0;AeX&&(Q=X):Q=X;var le=R.length;if(le%2!=0)throw new TypeError("Invalid hex string");Q>le/2&&(Q=le/2);for(var ve=0;ve>8,fe=ve%256,ye.push(fe),ye.push(De);return ye}(R,O.length-F),O,F,Q)}function z(O,R,F){return R===0&&F===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(R,F))}function A(O,R,F){F=Math.min(O.length,F);for(var Q=[],X=R;X239?4:ye>223?3:ye>191?2:1;if(X+Oe<=F)switch(Oe){case 1:ye<128&&(be=ye);break;case 2:(192&(le=O[X+1]))==128&&(fe=(31&ye)<<6|63&le)>127&&(be=fe);break;case 3:le=O[X+1],ve=O[X+2],(192&le)==128&&(192&ve)==128&&(fe=(15&ye)<<12|(63&le)<<6|63&ve)>2047&&(fe<55296||fe>57343)&&(be=fe);break;case 4:le=O[X+1],ve=O[X+2],De=O[X+3],(192&le)==128&&(192&ve)==128&&(192&De)==128&&(fe=(15&ye)<<18|(63&le)<<12|(63&ve)<<6|63&De)>65535&&fe<1114112&&(be=fe)}be===null?(be=65533,Oe=1):be>65535&&(be-=65536,Q.push(be>>>10&1023|55296),be=56320|1023&be),Q.push(be),X+=Oe}return function(Ae){var Ne=Ae.length;if(Ne<=Y)return String.fromCharCode.apply(String,Ae);for(var Le="",ue=0;uethis.length||((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(F>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return K(this,F,Q);case"utf8":case"utf-8":return A(this,F,Q);case"ascii":return q(this,F,Q);case"latin1":case"binary":return ee(this,F,Q);case"base64":return z(this,F,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,F,Q);default:if(X)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),X=!0}}.apply(this,arguments)},c.prototype.equals=function(O){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||c.compare(this,O)===0},c.prototype.inspect=function(){var O="",R=t.INSPECT_MAX_BYTES;return this.length>0&&(O=this.toString("hex",0,R).match(/.{2}/g).join(" "),this.length>R&&(O+=" ... ")),""},c.prototype.compare=function(O,R,F,Q,X){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(R===void 0&&(R=0),F===void 0&&(F=O?O.length:0),Q===void 0&&(Q=0),X===void 0&&(X=this.length),R<0||F>O.length||Q<0||X>this.length)throw new RangeError("out of range index");if(Q>=X&&R>=F)return 0;if(Q>=X)return-1;if(R>=F)return 1;if(R>>>=0,F>>>=0,Q>>>=0,X>>>=0,this===O)return 0;for(var le=X-Q,ve=F-R,De=Math.min(le,ve),fe=this.slice(Q,X),ye=O.slice(R,F),be=0;beX)&&(F=X),O.length>0&&(F<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var le=!1;;)switch(Q){case"hex":return x(this,O,R,F);case"utf8":case"utf-8":return T(this,O,R,F);case"ascii":return P(this,O,R,F);case"latin1":case"binary":return k(this,O,R,F);case"base64":return N(this,O,R,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,O,R,F);default:if(le)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),le=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Y=4096;function q(O,R,F){var Q="";F=Math.min(O.length,F);for(var X=R;XQ)&&(F=Q);for(var X="",le=R;leF)throw new RangeError("Trying to access beyond buffer length")}function se(O,R,F,Q,X,le){if(!c.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>X||RO.length)throw new RangeError("Index out of range")}function Z(O,R,F,Q){R<0&&(R=65535+R+1);for(var X=0,le=Math.min(O.length-F,2);X>>8*(Q?X:1-X)}function $(O,R,F,Q){R<0&&(R=4294967295+R+1);for(var X=0,le=Math.min(O.length-F,4);X>>8*(Q?X:3-X)&255}function I(O,R,F,Q,X,le){if(F+Q>O.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function B(O,R,F,Q,X){return X||I(O,0,F,4),o.write(O,R,F,Q,23,4),F+4}function re(O,R,F,Q,X){return X||I(O,0,F,8),o.write(O,R,F,Q,52,8),F+8}c.prototype.slice=function(O,R){var F,Q=this.length;if(O=~~O,R=R===void 0?Q:~~R,O<0?(O+=Q)<0&&(O=0):O>Q&&(O=Q),R<0?(R+=Q)<0&&(R=0):R>Q&&(R=Q),R0&&(X*=256);)Q+=this[O+--R]*X;return Q},c.prototype.readUInt8=function(O,R){return R||oe(O,1,this.length),this[O]},c.prototype.readUInt16LE=function(O,R){return R||oe(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUInt16BE=function(O,R){return R||oe(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUInt32LE=function(O,R){return R||oe(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUInt32BE=function(O,R){return R||oe(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readIntLE=function(O,R,F){O|=0,R|=0,F||oe(O,R,this.length);for(var Q=this[O],X=1,le=0;++le=(X*=128)&&(Q-=Math.pow(2,8*R)),Q},c.prototype.readIntBE=function(O,R,F){O|=0,R|=0,F||oe(O,R,this.length);for(var Q=R,X=1,le=this[O+--Q];Q>0&&(X*=256);)le+=this[O+--Q]*X;return le>=(X*=128)&&(le-=Math.pow(2,8*R)),le},c.prototype.readInt8=function(O,R){return R||oe(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,R){R||oe(O,2,this.length);var F=this[O]|this[O+1]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt16BE=function(O,R){R||oe(O,2,this.length);var F=this[O+1]|this[O]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt32LE=function(O,R){return R||oe(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,R){return R||oe(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readFloatLE=function(O,R){return R||oe(O,4,this.length),o.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,R){return R||oe(O,4,this.length),o.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,R){return R||oe(O,8,this.length),o.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,R){return R||oe(O,8,this.length),o.read(this,O,!1,52,8)},c.prototype.writeUIntLE=function(O,R,F,Q){O=+O,R|=0,F|=0,Q||se(this,O,R,F,Math.pow(2,8*F)-1,0);var X=1,le=0;for(this[R]=255&O;++le=0&&(le*=256);)this[R+X]=O/le&255;return R+F},c.prototype.writeUInt8=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,1,255,0),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[R]=255&O,R+1},c.prototype.writeUInt16LE=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):Z(this,O,R,!0),R+2},c.prototype.writeUInt16BE=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):Z(this,O,R,!1),R+2},c.prototype.writeUInt32LE=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R+3]=O>>>24,this[R+2]=O>>>16,this[R+1]=O>>>8,this[R]=255&O):$(this,O,R,!0),R+4},c.prototype.writeUInt32BE=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):$(this,O,R,!1),R+4},c.prototype.writeIntLE=function(O,R,F,Q){if(O=+O,R|=0,!Q){var X=Math.pow(2,8*F-1);se(this,O,R,F,X-1,-X)}var le=0,ve=1,De=0;for(this[R]=255&O;++le>0)-De&255;return R+F},c.prototype.writeIntBE=function(O,R,F,Q){if(O=+O,R|=0,!Q){var X=Math.pow(2,8*F-1);se(this,O,R,F,X-1,-X)}var le=F-1,ve=1,De=0;for(this[R+le]=255&O;--le>=0&&(ve*=256);)O<0&&De===0&&this[R+le+1]!==0&&(De=1),this[R+le]=(O/ve>>0)-De&255;return R+F},c.prototype.writeInt8=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,1,127,-128),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[R]=255&O,R+1},c.prototype.writeInt16LE=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):Z(this,O,R,!0),R+2},c.prototype.writeInt16BE=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):Z(this,O,R,!1),R+2},c.prototype.writeInt32LE=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8,this[R+2]=O>>>16,this[R+3]=O>>>24):$(this,O,R,!0),R+4},c.prototype.writeInt32BE=function(O,R,F){return O=+O,R|=0,F||se(this,O,R,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):$(this,O,R,!1),R+4},c.prototype.writeFloatLE=function(O,R,F){return B(this,O,R,!0,F)},c.prototype.writeFloatBE=function(O,R,F){return B(this,O,R,!1,F)},c.prototype.writeDoubleLE=function(O,R,F){return re(this,O,R,!0,F)},c.prototype.writeDoubleBE=function(O,R,F){return re(this,O,R,!1,F)},c.prototype.copy=function(O,R,F,Q){if(F||(F=0),Q||Q===0||(Q=this.length),R>=O.length&&(R=O.length),R||(R=0),Q>0&&Q=this.length)throw new RangeError("sourceStart out of bounds");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),O.length-R=0;--X)O[X+R]=this[X+F];else if(le<1e3||!c.TYPED_ARRAY_SUPPORT)for(X=0;X>>=0,F=F===void 0?this.length:F>>>0,O||(O=0),typeof O=="number")for(le=R;le55295&&F<57344){if(!X){if(F>56319){(R-=3)>-1&&le.push(239,191,189);continue}if(ve+1===Q){(R-=3)>-1&&le.push(239,191,189);continue}X=F;continue}if(F<56320){(R-=3)>-1&&le.push(239,191,189),X=F;continue}F=65536+(X-55296<<10|F-56320)}else X&&(R-=3)>-1&&le.push(239,191,189);if(X=null,F<128){if((R-=1)<0)break;le.push(F)}else if(F<2048){if((R-=2)<0)break;le.push(F>>6|192,63&F|128)}else if(F<65536){if((R-=3)<0)break;le.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;le.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return le}function ae(O){return i.toByteArray(function(R){if((R=function(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(R).replace(W,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(O))}function me(O,R,F,Q){for(var X=0;X=R.length||X>=O.length);++X)R[X+F]=O[X];return X}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(w){if(n===setTimeout)return setTimeout(w,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&m())}function m(){if(!f){var w=a(p);f=!0;for(var y=c.length;y;){for(l=c,c=[];++h1)for(var b=1;b=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},l))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(a){return typeof a=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var a,l,c,f,h,p;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((a=arguments[1])instanceof Error)throw a;var m=new Error('Uncaught, unspecified "error" event. ('+a+")");throw m.context=a,m}if(o(l=this._events[s]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,h=0;h0&&this._events[s].length>l&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,a){if(!r(a))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(s,c),l||(l=!0,a.apply(this,arguments))}return c.listener=a,this.on(s,c),this},n.prototype.removeListener=function(s,a){var l,c,f,h;if(!r(a))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(f=(l=this._events[s]).length,c=-1,l===a||r(l.listener)&&l.listener===a)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,a);else if(i(l)){for(h=f;h-- >0;)if(l[h]===a||l[h].listener&&l[h].listener===a){c=h;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[s]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",s,a)}return this},n.prototype.removeAllListeners=function(s){var a,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(a in this._events)a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[s]))this.removeListener(s,l);else if(l)for(;l.length;)this.removeListener(s,l[l.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var a=this._events[s];if(r(a))return 1;if(a)return a.length}return 0},n.listenerCount=function(s,a){return s.listenerCount(a)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var s=n(6);function a(A){var Y=this;this.next=null,this.entry=null,this.finish=function(){(function(q,ee,K){var te=q.entry;for(q.entry=null;te;){var oe=te.callback;ee.pendingcb--,oe(void 0),te=te.next}ee.corkedRequestsFree?ee.corkedRequestsFree.next=q:ee.corkedRequestsFree=q})(Y,A)}}e.exports=x;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;x.WritableState=b;var f=n(5);f.inherits=n(2);var h,p={deprecate:n(44)},m=n(24),g=n(7).Buffer,v=o.Uint8Array||function(){},w=n(25);function y(){}function b(A,Y){l=l||n(1),A=A||{};var q=Y instanceof l;this.objectMode=!!A.objectMode,q&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var ee=A.highWaterMark,K=A.writableHighWaterMark,te=this.objectMode?16:16384;this.highWaterMark=ee||ee===0?ee:q&&(K||K===0)?K:te,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var oe=A.decodeStrings===!1;this.decodeStrings=!oe,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){(function(Z,$){var I=Z._writableState,B=I.sync,re=I.writecb;if(function(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}(I),$)(function(G,ne,ae,me,O){--ne.pendingcb,ae?(s.nextTick(O,me),s.nextTick(z,G,ne),G._writableState.errorEmitted=!0,G.emit("error",me)):(O(me),G._writableState.errorEmitted=!0,G.emit("error",me),z(G,ne))})(Z,I,B,$,re);else{var W=N(I);W||I.corked||I.bufferProcessing||!I.bufferedRequest||k(Z,I),B?c(P,Z,I,W,re):P(Z,I,W,re)}})(Y,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function x(A){if(l=l||n(1),!(h.call(x,this)||this instanceof l))return new x(A);this._writableState=new b(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),m.call(this)}function T(A,Y,q,ee,K,te,oe){Y.writelen=ee,Y.writecb=oe,Y.writing=!0,Y.sync=!0,q?A._writev(K,Y.onwrite):A._write(K,te,Y.onwrite),Y.sync=!1}function P(A,Y,q,ee){q||function(K,te){te.length===0&&te.needDrain&&(te.needDrain=!1,K.emit("drain"))}(A,Y),Y.pendingcb--,ee(),z(A,Y)}function k(A,Y){Y.bufferProcessing=!0;var q=Y.bufferedRequest;if(A._writev&&q&&q.next){var ee=Y.bufferedRequestCount,K=new Array(ee),te=Y.corkedRequestsFree;te.entry=q;for(var oe=0,se=!0;q;)K[oe]=q,q.isBuf||(se=!1),q=q.next,oe+=1;K.allBuffers=se,T(A,Y,!0,Y.length,K,"",te.finish),Y.pendingcb++,Y.lastBufferedRequest=null,te.next?(Y.corkedRequestsFree=te.next,te.next=null):Y.corkedRequestsFree=new a(Y),Y.bufferedRequestCount=0}else{for(;q;){var Z=q.chunk,$=q.encoding,I=q.callback;if(T(A,Y,!1,Y.objectMode?1:Z.length,Z,$,I),q=q.next,Y.bufferedRequestCount--,Y.writing)break}q===null&&(Y.lastBufferedRequest=null)}Y.bufferedRequest=q,Y.bufferProcessing=!1}function N(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function D(A,Y){A._final(function(q){Y.pendingcb--,q&&A.emit("error",q),Y.prefinished=!0,A.emit("prefinish"),z(A,Y)})}function z(A,Y){var q=N(Y);return q&&(function(ee,K){K.prefinished||K.finalCalled||(typeof ee._final=="function"?(K.pendingcb++,K.finalCalled=!0,s.nextTick(D,ee,K)):(K.prefinished=!0,ee.emit("prefinish")))}(A,Y),Y.pendingcb===0&&(Y.finished=!0,A.emit("finish"))),q}f.inherits(x,m),b.prototype.getBuffer=function(){for(var A=this.bufferedRequest,Y=[];A;)Y.push(A),A=A.next;return Y},function(){try{Object.defineProperty(b.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(A){return!!h.call(this,A)||this===x&&A&&A._writableState instanceof b}})):h=function(A){return A instanceof this},x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},x.prototype.write=function(A,Y,q){var ee=this._writableState,K=!1,te=!ee.objectMode&&function(oe){return g.isBuffer(oe)||oe instanceof v}(A);return te&&!g.isBuffer(A)&&(A=function(oe){return g.from(oe)}(A)),typeof Y=="function"&&(q=Y,Y=null),te?Y="buffer":Y||(Y=ee.defaultEncoding),typeof q!="function"&&(q=y),ee.ended?function(oe,se){var Z=new Error("write after end");oe.emit("error",Z),s.nextTick(se,Z)}(this,q):(te||function(oe,se,Z,$){var I=!0,B=!1;return Z===null?B=new TypeError("May not write null values to stream"):typeof Z=="string"||Z===void 0||se.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B&&(oe.emit("error",B),s.nextTick($,B),I=!1),I}(this,ee,A,q))&&(ee.pendingcb++,K=function(oe,se,Z,$,I,B){if(!Z){var re=function(ae,me,O){return ae.objectMode||ae.decodeStrings===!1||typeof me!="string"||(me=g.from(me,O)),me}(se,$,I);$!==re&&(Z=!0,I="buffer",$=re)}var W=se.objectMode?1:$.length;se.length+=W;var G=se.length-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(A,Y,q){q(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(A,Y,q){var ee=this._writableState;typeof A=="function"?(q=A,A=null,Y=null):typeof Y=="function"&&(q=Y,Y=null),A!=null&&this.write(A,Y),ee.corked&&(ee.corked=1,this.uncork()),ee.ending||ee.finished||function(K,te,oe){te.ending=!0,z(K,te),oe&&(te.finished?s.nextTick(oe):K.once("finish",oe)),te.ended=!0,K.writable=!1}(this,ee,q)},Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),x.prototype.destroy=w.destroy,x.prototype._undestroy=w.undestroy,x.prototype._destroy=function(A,Y){this.end(),Y(A)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function s(a,l,c){function f(m,g){if(!l[m]){if(!a[m]){var v=typeof _dereq_=="function"&&_dereq_;if(!g&&v)return v(m,!0);if(h)return h(m,!0);var w=new Error("Cannot find module '"+m+"'");throw w.code="MODULE_NOT_FOUND",w}var y=l[m]={exports:{}};a[m][0].call(y.exports,function(b){return f(a[m][1][b]||b)},y,y.exports,s,a,l,c)}return l[m].exports}for(var h=typeof _dereq_=="function"&&_dereq_,p=0;p0;){var b=y.shift();if(typeof b=="function"){var x=y.shift(),T=y.shift();b.call(x,T)}else b._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},a.exports=m,a.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,a,l){a.exports=function(c,f,h,p){var m=!1,g=function(b,x){this._reject(x)},v=function(b,x){x.promiseRejectionQueued=!0,x.bindingPromise._then(g,g,null,this,b)},w=function(b,x){!(50397184&this._bitField)&&this._resolveCallback(x.target)},y=function(b,x){x.promiseRejectionQueued||this._reject(b)};c.prototype.bind=function(b){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var x=h(b),T=new c(f);T._propagateFrom(this,1);var P=this._target();if(T._setBoundTo(x),x instanceof c){var k={promiseRejectionQueued:!1,promise:T,target:P,bindingPromise:x};P._then(f,v,void 0,T,k),x._then(w,y,void 0,T,k),T._setOnCancel(x)}else T._resolveCallback(P);return T},c.prototype._setBoundTo=function(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(b,x){return c.resolve(x).bind(b)}}},{}],4:[function(s,a,l){var c;typeof Promise<"u"&&(c=Promise);var f=s("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},a.exports=f},{"./promise":22}],5:[function(s,a,l){var c=Object.create;if(c){var f=c(null),h=c(null);f[" size"]=h[" size"]=0}a.exports=function(p){var m=s("./util"),g=m.canEvaluate;function v(b){return function(x,T){var P;if(x!=null&&(P=x[T]),typeof P!="function"){var k="Object "+m.classString(x)+" has no method '"+m.toString(T)+"'";throw new p.TypeError(k)}return P}(b,this.pop()).apply(b,this)}function w(b){return b[this]}function y(b){var x=+this;return x<0&&(x=Math.max(0,x+b.length)),b[x]}m.isIdentifier,p.prototype.call=function(b){var x=[].slice.call(arguments,1);return x.push(b),this._then(v,void 0,void 0,x,void 0)},p.prototype.get=function(b){var x;if(typeof b=="number")x=y;else if(g){var T=(void 0)(b);x=T!==null?T:w}else x=w;return this._then(x,void 0,void 0,b,void 0)}}},{"./util":36}],6:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),g=m.tryCatch,v=m.errorObj,w=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var y=this,b=y;y._isCancellable();){if(!y._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var x=y._cancellationParent;if(x==null||!x._isCancellable()){y._isFollowing()?y._followee().cancel():y._cancelBranched();break}y._isFollowing()&&y._followee().cancel(),y._setWillBeCancelled(),b=y,y=x}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(y){return y===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),w.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(y,b){if(m.isArray(y))for(var x=0;x=0)return h[g]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,h.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var g=h.pop(),v=g._promiseCreated;return g._promiseCreated=null,v}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var g=c.prototype._pushContext,v=c.prototype._popContext,w=c._peekContext,y=c.prototype._peekContext,b=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=g,c.prototype._popContext=v,c._peekContext=w,c.prototype._peekContext=y,c.prototype._promiseCreated=b,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var x=this._peekContext();x&&x._promiseCreated==null&&(x._promiseCreated=this)}},p}},{}],9:[function(s,a,l){a.exports=function(c,f){var h,p,m,g=c._getDomain,v=c._async,w=s("./errors").Warning,y=s("./util"),b=y.canAttachTrace,x=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,T=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,N=null,D=!1,z=y.env("BLUEBIRD_DEBUG")!=0,A=!(y.env("BLUEBIRD_WARNINGS")==0||!z&&!y.env("BLUEBIRD_WARNINGS")),Y=!(y.env("BLUEBIRD_LONG_STACK_TRACES")==0||!z&&!y.env("BLUEBIRD_LONG_STACK_TRACES")),q=y.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(A||!!y.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ue=this._target();ue._bitField=-1048577&ue._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ue=this;setTimeout(function(){ue._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ve("rejectionHandled",h,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ue=this._settledValue();this._setUnhandledRejectionIsNotified(),ve("unhandledRejection",p,ue,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(ue,he,we){return F(ue,he,we||this)},c.onPossiblyUnhandledRejection=function(ue){var he=g();p=typeof ue=="function"?he===null?ue:y.domainBind(he,ue):void 0},c.onUnhandledRejectionHandled=function(ue){var he=g();h=typeof ue=="function"?he===null?ue:y.domainBind(he,ue):void 0};var ee=function(){};c.longStackTraces=function(){if(v.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);if(!Le.longStackTraces&&fe()){var ue=c.prototype._captureStackTrace,he=c.prototype._attachExtraTrace;Le.longStackTraces=!0,ee=function(){if(v.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);c.prototype._captureStackTrace=ue,c.prototype._attachExtraTrace=he,f.deactivateLongStackTraces(),v.enableTrampoline(),Le.longStackTraces=!1},c.prototype._captureStackTrace=O,c.prototype._attachExtraTrace=R,f.activateLongStackTraces(),v.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Le.longStackTraces&&fe()};var K=function(){try{if(typeof CustomEvent=="function"){var ue=new CustomEvent("CustomEvent");return y.global.dispatchEvent(ue),function(he,we){var _e=new CustomEvent(he.toLowerCase(),{detail:we,cancelable:!0});return!y.global.dispatchEvent(_e)}}return typeof Event=="function"?(ue=new Event("CustomEvent"),y.global.dispatchEvent(ue),function(he,we){var _e=new Event(he.toLowerCase(),{cancelable:!0});return _e.detail=we,!y.global.dispatchEvent(_e)}):((ue=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),y.global.dispatchEvent(ue),function(he,we){var _e=document.createEvent("CustomEvent");return _e.initCustomEvent(he.toLowerCase(),!1,!0,we),!y.global.dispatchEvent(_e)})}catch{}return function(){return!1}}(),te=y.isNode?function(){return r.emit.apply(r,arguments)}:y.global?function(ue){var he="on"+ue.toLowerCase(),we=y.global[he];return!!we&&(we.apply(y.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function oe(ue,he){return{promise:he}}var se={promiseCreated:oe,promiseFulfilled:oe,promiseRejected:oe,promiseResolved:oe,promiseCancelled:oe,promiseChained:function(ue,he,we){return{promise:he,child:we}},warning:function(ue,he){return{warning:he}},unhandledRejection:function(ue,he,we){return{reason:he,promise:we}},rejectionHandled:oe},Z=function(ue){var he=!1;try{he=te.apply(null,arguments)}catch(_e){v.throwLater(_e),he=!0}var we=!1;try{we=K(ue,se[ue].apply(null,arguments))}catch(_e){v.throwLater(_e),we=!0}return we||he};function $(){return!1}function I(ue,he,we){var _e=this;try{ue(he,we,function(Ee){if(typeof Ee!="function")throw new TypeError("onCancel must be a function, got: "+y.toString(Ee));_e._attachCancellationCallback(Ee)})}catch(Ee){return Ee}}function B(ue){if(!this._isCancellable())return this;var he=this._onCancel();he!==void 0?y.isArray(he)?he.push(ue):this._setOnCancel([he,ue]):this._setOnCancel(ue)}function re(){return this._onCancelField}function W(ue){this._onCancelField=ue}function G(){this._cancellationParent=void 0,this._onCancelField=void 0}function ne(ue,he){if(1&he){this._cancellationParent=ue;var we=ue._branchesRemainingToCancel;we===void 0&&(we=0),ue._branchesRemainingToCancel=we+1}2&he&&ue._isBound()&&this._setBoundTo(ue._boundTo)}c.config=function(ue){if("longStackTraces"in(ue=Object(ue))&&(ue.longStackTraces?c.longStackTraces():!ue.longStackTraces&&c.hasLongStackTraces()&&ee()),"warnings"in ue){var he=ue.warnings;Le.warnings=!!he,q=Le.warnings,y.isObject(he)&&"wForgottenReturn"in he&&(q=!!he.wForgottenReturn)}if("cancellation"in ue&&ue.cancellation&&!Le.cancellation){if(v.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=G,c.prototype._propagateFrom=ne,c.prototype._onCancel=re,c.prototype._setOnCancel=W,c.prototype._attachCancellationCallback=B,c.prototype._execute=I,ae=ne,Le.cancellation=!0}return"monitoring"in ue&&(ue.monitoring&&!Le.monitoring?(Le.monitoring=!0,c.prototype._fireEvent=Z):!ue.monitoring&&Le.monitoring&&(Le.monitoring=!1,c.prototype._fireEvent=$)),c},c.prototype._fireEvent=$,c.prototype._execute=function(ue,he,we){try{ue(he,we)}catch(_e){return _e}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ue){},c.prototype._attachCancellationCallback=function(ue){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ue,he){};var ae=function(ue,he){2&he&&ue._isBound()&&this._setBoundTo(ue._boundTo)};function me(){var ue=this._boundTo;return ue!==void 0&&ue instanceof c?ue.isFulfilled()?ue.value():void 0:ue}function O(){this._trace=new Ae(this._peekContext())}function R(ue,he){if(b(ue)){var we=this._trace;if(we!==void 0&&he&&(we=we._parent),we!==void 0)we.attachExtraTrace(ue);else if(!ue.__stackCleaned__){var _e=X(ue);y.notEnumerableProp(ue,"stack",_e.message+` +`+_e.stack.join(` +`)),y.notEnumerableProp(ue,"__stackCleaned__",!0)}}}function F(ue,he,we){if(Le.warnings){var _e,Ee=new w(ue);if(he)we._attachExtraTrace(Ee);else if(Le.longStackTraces&&(_e=c._peekContext()))_e.attachExtraTrace(Ee);else{var Me=X(Ee);Ee.stack=Me.message+` +`+Me.stack.join(` +`)}Z("warning",Ee)||le(Ee,"",!0)}}function Q(ue){for(var he=[],we=0;we0?function(_e){for(var Ee=_e.stack.replace(/\s+$/g,"").split(` +`),Me=0;Me0&&_e.name!="SyntaxError"&&(Ee=Ee.slice(Me)),Ee}(ue):[" (No stack trace)"],{message:we,stack:ue.name=="SyntaxError"?he:Q(he)}}function le(ue,he,we){if(typeof console<"u"){var _e;if(y.isObject(ue)){var Ee=ue.stack;_e=he+N(Ee,ue)}else _e=he+String(ue);typeof m=="function"?m(_e,we):typeof console.log!="function"&&typeof console.log!="object"||console.log(_e)}}function ve(ue,he,we,_e){var Ee=!1;try{typeof he=="function"&&(Ee=!0,ue==="rejectionHandled"?he(_e):he(we,_e))}catch(Me){v.throwLater(Me)}ue==="unhandledRejection"?Z(ue,we,_e)||Ee||le(we,"Unhandled rejection "):Z(ue,_e)}function De(ue){var he;if(typeof ue=="function")he="[function "+(ue.name||"anonymous")+"]";else{if(he=ue&&typeof ue.toString=="function"?ue.toString():y.toString(ue),/\[object [a-zA-Z0-9$_]+\]/.test(he))try{he=JSON.stringify(ue)}catch{}he.length===0&&(he="(empty array)")}return"(<"+function(we){return we.length<41?we:we.substr(0,38)+"..."}(he)+">, no stack trace)"}function fe(){return typeof Ne=="function"}var ye=function(){return!1},be=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Oe(ue){var he=ue.match(be);if(he)return{fileName:he[1],line:parseInt(he[2],10)}}function Ae(ue){this._parent=ue,this._promisesCreated=0;var he=this._length=1+(ue===void 0?0:ue._length);Ne(this,Ae),he>32&&this.uncycle()}y.inherits(Ae,Error),f.CapturedTrace=Ae,Ae.prototype.uncycle=function(){var ue=this._length;if(!(ue<2)){for(var he=[],we={},_e=0,Ee=this;Ee!==void 0;++_e)he.push(Ee),Ee=Ee._parent;for(_e=(ue=this._length=_e)-1;_e>=0;--_e){var Me=he[_e].stack;we[Me]===void 0&&(we[Me]=_e)}for(_e=0;_e0&&(he[$e-1]._parent=void 0,he[$e-1]._length=1),he[_e]._parent=void 0,he[_e]._length=1;var tt=_e>0?he[_e-1]:this;$e=0;--Ke)he[Ke]._length=nt,nt++;return}}}},Ae.prototype.attachExtraTrace=function(ue){if(!ue.__stackCleaned__){this.uncycle();for(var he=X(ue),we=he.message,_e=[he.stack],Ee=this;Ee!==void 0;)_e.push(Q(Ee.stack.split(` +`))),Ee=Ee._parent;(function(Me){for(var $e=Me[0],tt=1;tt=0;--Sn)if(nt[Sn]===qt){zt=Sn;break}for(Sn=zt;Sn>=0;--Sn){var sr=nt[Sn];if($e[Ke]!==sr)break;$e.pop(),Ke--}$e=nt}})(_e),function(Me){for(var $e=0;$e=0)return k=/@/,N=he,D=!0,function(Me){Me.stack=new Error().stack};try{throw new Error}catch(Me){_e="stack"in Me}return"stack"in Ee||!_e||typeof Error.stackTraceLimit!="number"?(N=function(Me,$e){return typeof Me=="string"?Me:typeof $e!="object"&&typeof $e!="function"||$e.name===void 0||$e.message===void 0?De($e):$e.toString()},null):(k=ue,N=he,function(Me){Error.stackTraceLimit+=6;try{throw new Error}catch($e){Me.stack=$e.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ue){console.warn(ue)},y.isNode&&r.stderr.isTTY?m=function(ue,he){var we=he?"\x1B[33m":"\x1B[31m";console.warn(we+ue+`\x1B[0m +`)}:y.isNode||typeof new Error().stack!="string"||(m=function(ue,he){console.warn("%c"+ue,he?"color: darkorange":"color: red")}));var Le={warnings:A,longStackTraces:!1,cancellation:!1,monitoring:!1};return Y&&c.longStackTraces(),{longStackTraces:function(){return Le.longStackTraces},warnings:function(){return Le.warnings},cancellation:function(){return Le.cancellation},monitoring:function(){return Le.monitoring},propagateFromFunction:function(){return ae},boundValueFunction:function(){return me},checkForgottenReturns:function(ue,he,we,_e,Ee){if(ue===void 0&&he!==null&&q){if(Ee!==void 0&&Ee._returnedNonUndefined()||!(65535&_e._bitField))return;we&&(we+=" ");var Me="",$e="";if(he._trace){for(var tt=he._trace.stack.split(` +`),nt=Q(tt),Ke=nt.length-1;Ke>=0;--Ke){var qt=nt[Ke];if(!T.test(qt)){var zt=qt.match(P);zt&&(Me="at "+zt[1]+":"+zt[2]+":"+zt[3]+" ");break}}if(nt.length>0){var Sn=nt[0];for(Ke=0;Ke0&&($e=` +`+tt[Ke-1]);break}}}var sr="a promise was created in a "+we+"handler "+Me+"but was not returned from it, see http://goo.gl/rRqMUw"+$e;_e._warn(sr,!0,he)}},setBounds:function(ue,he){if(fe()){for(var we,_e,Ee=ue.stack.split(` +`),Me=he.stack.split(` +`),$e=-1,tt=-1,nt=0;nt=tt||(ye=function(qt){if(x.test(qt))return!0;var zt=Oe(qt);return!!(zt&&zt.fileName===we&&$e<=zt.line&&zt.line<=tt)})}},warn:F,deprecated:function(ue,he){var we=ue+" is deprecated and will be removed in a future version.";return he&&(we+=" Use "+he+" instead."),F(we)},CapturedTrace:Ae,fireDomEvent:K,fireGlobalEvent:te}}},{"./errors":12,"./util":36}],10:[function(s,a,l){a.exports=function(c){function f(){return this.value}function h(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(h,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,h,void 0,{reason:p},void 0);var m=arguments[1];return this.caught(p,function(){throw m})},c.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof c&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(s,a,l){a.exports=function(c,f){var h=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(g){return h(this,g,f,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(g){return h(this,g,f,f)},c.each=function(g,v){return h(g,v,f,0)._then(m,void 0,void 0,g,void 0)},c.mapSeries=function(g,v){return h(g,v,f,f)}}},{}],12:[function(s,a,l){var c,f,h=s("./es5"),p=h.freeze,m=s("./util"),g=m.inherits,v=m.notEnumerableProp;function w(A,Y){function q(ee){if(!(this instanceof q))return new q(ee);v(this,"message",typeof ee=="string"?ee:Y),v(this,"name",A),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return g(q,Error),q}var y=w("Warning","warning"),b=w("CancellationError","cancellation error"),x=w("TimeoutError","timeout error"),T=w("AggregateError","aggregate error");try{c=TypeError,f=RangeError}catch{c=w("TypeError","type error"),f=w("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),k=0;k1?k.cancelPromise._reject(N):k.cancelPromise._cancel(),k.cancelPromise=null,!0)}function x(){return P.call(this,this.promise._target()._settledValue())}function T(k){if(!b(this,k))return g.e=k,g}function P(k){var N=this.promise,D=this.handler;if(!this.called){this.called=!0;var z=this.isFinallyHandler()?D.call(N._boundValue()):D.call(N._boundValue(),k);if(z===h)return z;if(z!==void 0){N._setReturnedNonUndefined();var A=f(z,N);if(A instanceof c){if(this.cancelPromise!=null){if(A._isCancelled()){var Y=new m("late cancellation observer");return N._attachExtraTrace(Y),g.e=Y,g}A.isPending()&&A._attachCancellationCallback(new y(this))}return A._then(x,T,void 0,this,void 0)}}}return N.isRejected()?(b(this),g.e=k,g):(b(this),k)}return w.prototype.isFinallyHandler=function(){return this.type===0},y.prototype._resultCancelled=function(){b(this.finallyHandler)},c.prototype._passThrough=function(k,N,D,z){return typeof k!="function"?this.then():this._then(D,z,void 0,new w(this,N,k),void 0)},c.prototype.lastly=c.prototype.finally=function(k){return this._passThrough(k,0,P,P)},c.prototype.tap=function(k){return this._passThrough(k,1,P)},c.prototype.tapCatch=function(k){var N=arguments.length;if(N===1)return this._passThrough(k,1,void 0,P);var D,z=new Array(N-1),A=0;for(D=0;D0&&typeof arguments[y]=="function"&&(w=arguments[y]);var b=[].slice.call(arguments);w&&b.pop();var x=new f(b).promise();return w!==void 0?x.spread(w):x}}},{"./util":36}],18:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=c._getDomain,w=s("./util"),y=w.tryCatch,b=w.errorObj,x=c._async;function T(k,N,D,z){this.constructor$(k),this._promise._captureStackTrace();var A=v();this._callback=A===null?N:w.domainBind(A,N),this._preservedValues=z===m?new Array(this.length()):null,this._limit=D,this._inFlight=0,this._queue=[],x.invoke(this._asyncInit,this,void 0)}function P(k,N,D,z){if(typeof N!="function")return h("expecting a function but got "+w.classString(N));var A=0;if(D!==void 0){if(typeof D!="object"||D===null)return c.reject(new TypeError("options argument must be an object but it is "+w.classString(D)));if(typeof D.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+w.classString(D.concurrency)));A=D.concurrency}return new T(k,N,A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,z).promise()}w.inherits(T,f),T.prototype._asyncInit=function(){this._init$(void 0,-2)},T.prototype._init=function(){},T.prototype._promiseFulfilled=function(k,N){var D=this._values,z=this.length(),A=this._preservedValues,Y=this._limit;if(N<0){if(D[N=-1*N-1]=k,Y>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(Y>=1&&this._inFlight>=Y)return D[N]=k,this._queue.push(N),!1;A!==null&&(A[N]=k);var q=this._promise,ee=this._callback,K=q._boundValue();q._pushContext();var te=y(ee).call(K,k,N,z),oe=q._popContext();if(g.checkForgottenReturns(te,oe,A!==null?"Promise.filter":"Promise.map",q),te===b)return this._reject(te.e),!0;var se=p(te,this._promise);if(se instanceof c){var Z=(se=se._target())._bitField;if(!(50397184&Z))return Y>=1&&this._inFlight++,D[N]=se,se._proxy(this,-1*(N+1)),!1;if(!(33554432&Z))return 16777216&Z?(this._reject(se._reason()),!0):(this._cancel(),!0);te=se._value()}D[N]=te}return++this._totalResolved>=z&&(A!==null?this._filter(D,A):this._resolve(D),!0)},T.prototype._drainQueue=function(){for(var k=this._queue,N=this._limit,D=this._values;k.length>0&&this._inFlight1){m.deprecated("calling Promise.try with more than 1 argument");var x=arguments[1],T=arguments[2];y=g.isArray(x)?v(w).apply(T,x):v(w).call(T,x)}else y=v(w)();var P=b._popContext();return m.checkForgottenReturns(y,P,"Promise.try",b),b._resolveFromSyncValue(y),b},c.prototype._resolveFromSyncValue=function(w){w===g.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(s,a,l){var c=s("./util"),f=c.maybeWrapAsError,h=s("./errors").OperationalError,p=s("./es5"),m=/^(?:name|message|stack|cause)$/;function g(v){var w;if(function(T){return T instanceof Error&&p.getPrototypeOf(T)===Error.prototype}(v)){(w=new h(v)).name=v.name,w.message=v.message,w.stack=v.stack;for(var y=p.keys(v),b=0;b1){var ne,ae=new Array(G-1),me=0;for(ne=0;ne0&&typeof W!="function"&&typeof G!="function"){var ne=".then() only accepts functions but was passed: "+v.classString(W);arguments.length>1&&(ne+=", "+v.classString(G)),this._warn(ne)}return this._then(W,G,void 0,void 0,void 0)},$.prototype.done=function(W,G){this._then(W,G,void 0,void 0,void 0)._setIsFinal()},$.prototype.spread=function(W){return typeof W!="function"?h("expecting a function but got "+v.classString(W)):this.all()._then(W,void 0,void 0,N,void 0)},$.prototype.toJSON=function(){var W={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(W.fulfillmentValue=this.value(),W.isFulfilled=!0):this.isRejected()&&(W.rejectionReason=this.reason(),W.isRejected=!0),W},$.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new A(this).promise()},$.prototype.error=function(W){return this.caught(v.originatesFromRejection,W)},$.getNewLibraryCopy=a.exports,$.is=function(W){return W instanceof $},$.fromNode=$.fromCallback=function(W){var G=new $(k);G._captureStackTrace();var ne=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=Z(W)(oe(G,ne));return ae===se&&G._rejectCallback(ae.e,!0),G._isFateSealed()||G._setAsyncGuaranteed(),G},$.all=function(W){return new A(W).promise()},$.cast=function(W){var G=z(W);return G instanceof $||((G=new $(k))._captureStackTrace(),G._setFulfilled(),G._rejectionHandler0=W),G},$.resolve=$.fulfilled=$.cast,$.reject=$.rejected=function(W){var G=new $(k);return G._captureStackTrace(),G._rejectCallback(W,!0),G},$.setScheduler=function(W){if(typeof W!="function")throw new T("expecting a function but got "+v.classString(W));return b.setScheduler(W)},$.prototype._then=function(W,G,ne,ae,me){var O=me!==void 0,R=O?me:new $(k),F=this._target(),Q=F._bitField;O||(R._propagateFrom(this,3),R._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&Q?this._boundValue():F===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,R));var X=m();if(50397184&Q){var le,ve,De=F._settlePromiseCtx;33554432&Q?(ve=F._rejectionHandler0,le=W):16777216&Q?(ve=F._fulfillmentHandler0,le=G,F._unsetRejectionIsUnhandled()):(De=F._settlePromiseLateCancellationObserver,ve=new P("late cancellation observer"),F._attachExtraTrace(ve),le=G),b.invoke(De,F,{handler:X===null?le:typeof le=="function"&&v.domainBind(X,le),promise:R,receiver:ae,value:ve})}else F._addCallbacks(W,G,R,ae,X);return R},$.prototype._length=function(){return 65535&this._bitField},$.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},$.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},$.prototype._setLength=function(W){this._bitField=-65536&this._bitField|65535&W},$.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},$.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},$.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},$.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},$.prototype._isFinal=function(){return(4194304&this._bitField)>0},$.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},$.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},$.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},$.prototype._setAsyncGuaranteed=function(){b.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},$.prototype._receiverAt=function(W){var G=W===0?this._receiver0:this[4*W-4+3];if(G!==g)return G===void 0&&this._isBound()?this._boundValue():G},$.prototype._promiseAt=function(W){return this[4*W-4+2]},$.prototype._fulfillmentHandlerAt=function(W){return this[4*W-4+0]},$.prototype._rejectionHandlerAt=function(W){return this[4*W-4+1]},$.prototype._boundValue=function(){},$.prototype._migrateCallback0=function(W){W._bitField;var G=W._fulfillmentHandler0,ne=W._rejectionHandler0,ae=W._promise0,me=W._receiverAt(0);me===void 0&&(me=g),this._addCallbacks(G,ne,ae,me,null)},$.prototype._migrateCallbackAt=function(W,G){var ne=W._fulfillmentHandlerAt(G),ae=W._rejectionHandlerAt(G),me=W._promiseAt(G),O=W._receiverAt(G);O===void 0&&(O=g),this._addCallbacks(ne,ae,me,O,null)},$.prototype._addCallbacks=function(W,G,ne,ae,me){var O=this._length();if(O>=65531&&(O=0,this._setLength(0)),O===0)this._promise0=ne,this._receiver0=ae,typeof W=="function"&&(this._fulfillmentHandler0=me===null?W:v.domainBind(me,W)),typeof G=="function"&&(this._rejectionHandler0=me===null?G:v.domainBind(me,G));else{var R=4*O-4;this[R+2]=ne,this[R+3]=ae,typeof W=="function"&&(this[R+0]=me===null?W:v.domainBind(me,W)),typeof G=="function"&&(this[R+1]=me===null?G:v.domainBind(me,G))}return this._setLength(O+1),O},$.prototype._proxy=function(W,G){this._addCallbacks(void 0,void 0,G,W,null)},$.prototype._resolveCallback=function(W,G){if(!(117506048&this._bitField)){if(W===this)return this._rejectCallback(c(),!1);var ne=z(W,this);if(!(ne instanceof $))return this._fulfill(W);G&&this._propagateFrom(ne,2);var ae=ne._target();if(ae!==this){var me=ae._bitField;if(50397184&me)if(33554432&me)this._fulfill(ae._value());else if(16777216&me)this._reject(ae._reason());else{var F=new P("late cancellation observer");ae._attachExtraTrace(F),this._reject(F)}else{var O=this._length();O>0&&ae._migrateCallback0(this);for(var R=1;R>>16)){if(W===this){var ne=c();return this._attachExtraTrace(ne),this._reject(ne)}this._setFulfilled(),this._rejectionHandler0=W,(65535&G)>0&&(134217728&G?this._settlePromises():b.settlePromises(this))}},$.prototype._reject=function(W){var G=this._bitField;if(!((117506048&G)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=W,this._isFinal())return b.fatalError(W,v.isNode);(65535&G)>0?b.settlePromises(this):this._ensurePossibleRejectionHandled()}},$.prototype._fulfillPromises=function(W,G){for(var ne=1;ne0){if(16842752&W){var ne=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ne,W),this._rejectPromises(G,ne)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,W),this._fulfillPromises(G,ae)}this._setLength(0)}this._clearCancellationData()},$.prototype._settledValue=function(){var W=this._bitField;return 33554432&W?this._rejectionHandler0:16777216&W?this._fulfillmentHandler0:void 0},$.defer=$.pending=function(){return ee.deprecated("Promise.defer","new Promise"),{promise:new $(k),resolve:I,reject:B}},v.notEnumerableProp($,"_makeSelfResolutionError",c),s("./method")($,k,z,h,ee),s("./bind")($,k,z,ee),s("./cancel")($,A,h,ee),s("./direct_resolve")($),s("./synchronous_inspection")($),s("./join")($,A,z,k,b,m),$.Promise=$,$.version="3.5.1",s("./map.js")($,A,h,z,k,ee),s("./call_get.js")($),s("./using.js")($,h,z,q,k,ee),s("./timers.js")($,k,ee),s("./generators.js")($,h,k,z,p,ee),s("./nodeify.js")($),s("./promisify.js")($,k),s("./props.js")($,A,z,h),s("./race.js")($,k,z,h),s("./reduce.js")($,A,h,z,k,ee),s("./settle.js")($,A,ee),s("./some.js")($,A,h),s("./filter.js")($,k),s("./each.js")($,k),s("./any.js")($),v.toFastProperties($),v.toFastProperties($.prototype),re({a:1}),re({b:2}),re({c:3}),re(1),re(function(){}),re(void 0),re(!1),re(new $(k)),ee.setBounds(y.firstLineError,v.lastLineError),$}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(s,a,l){a.exports=function(c,f,h,p,m){var g=s("./util");function v(w){var y=this._promise=new c(f);w instanceof c&&y._propagateFrom(w,3),y._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return g.isArray,g.inherits(v,m),v.prototype.length=function(){return this._length},v.prototype.promise=function(){return this._promise},v.prototype._init=function w(y,b){var x=h(this._values,this._promise);if(x instanceof c){var T=(x=x._target())._bitField;if(this._values=x,(50397184&T)==0)return this._promise._setAsyncGuaranteed(),x._then(w,this._reject,void 0,this,b);if(!(33554432&T))return 16777216&T?this._reject(x._reason()):this._cancel();x=x._value()}if((x=g.asArray(x))!==null)x.length!==0?this._iterate(x):b===-5?this._resolveEmptyArray():this._resolve(function(k){switch(b){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=p("expecting an array or an iterable object but got "+g.classString(x)).reason();this._promise._rejectCallback(P,!1)}},v.prototype._iterate=function(w){var y=this.getActualLength(w.length);this._length=y,this._values=this.shouldCopyValues()?new Array(y):this._values;for(var b=this._promise,x=!1,T=null,P=0;P=this._length&&(this._resolve(this._values),!0)},v.prototype._promiseCancelled=function(){return this._cancel(),!0},v.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},v.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof c)w.cancel();else for(var y=0;y=this._length){var k;if(this._isMap)k=function(A){for(var Y=new m,q=A.length/2|0,ee=0;ee>1},c.prototype.props=function(){return x(this)},c.props=function(T){return x(T)}}},{"./es5":13,"./util":36}],26:[function(s,a,l){function c(f){this._capacity=f,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(f){return this._capacity"u"){var p=i.setImmediate,m=r.nextTick;c=f.isRecentNode?function(v){p.call(i,v)}:function(v){m.call(r,v)}}else if(typeof h=="function"&&typeof h.resolve=="function"){var g=h.resolve();c=function(v){g.then(v)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(v){o(v)}:typeof setTimeout<"u"?function(v){setTimeout(v,0)}:function(){throw new Error(`No async scheduler available + + See http://goo.gl/MqrFmX +`)}:function(){var v=document.createElement("div"),w={attributes:!0},y=!1,b=document.createElement("div");return new MutationObserver(function(){v.classList.toggle("foo"),y=!1}).observe(b,w),function(x){var T=new MutationObserver(function(){T.disconnect(),x()});T.observe(v,w),y||(y=!0,b.classList.toggle("foo"))}}();a.exports=c},{"./util":36}],30:[function(s,a,l){a.exports=function(c,f,h){var p=c.PromiseInspection;function m(g){this.constructor$(g)}s("./util").inherits(m,f),m.prototype._promiseResolved=function(g,v){return this._values[g]=v,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(g,v){var w=new p;return w._bitField=33554432,w._settledValueField=g,this._promiseResolved(v,w)},m.prototype._promiseRejected=function(g,v){var w=new p;return w._bitField=16777216,w._settledValueField=g,this._promiseResolved(v,w)},c.settle=function(g){return h.deprecated(".settle()",".reflect()"),new m(g).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=s("./errors").RangeError,g=s("./errors").AggregateError,v=p.isArray,w={};function y(x){this.constructor$(x),this._howMany=0,this._unwrap=!1,this._initialized=!1}function b(x,T){if((0|T)!==T||T<0)return h(`expecting a positive integer + + See http://goo.gl/MqrFmX +`);var P=new y(x),k=P.promise();return P.setHowMany(T),P.init(),k}p.inherits(y,f),y.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var x=v(this._values);!this._isResolved()&&x&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},y.prototype.init=function(){this._initialized=!0,this._init()},y.prototype.setUnwrap=function(){this._unwrap=!0},y.prototype.howMany=function(){return this._howMany},y.prototype.setHowMany=function(x){this._howMany=x},y.prototype._promiseFulfilled=function(x){return this._addFulfilled(x),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},y.prototype._promiseRejected=function(x){return this._addRejected(x),this._checkOutcome()},y.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},y.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var x=new g,T=this.length();T0?this._reject(x):this._cancel(),!0}return!1},y.prototype._fulfilled=function(){return this._totalResolved},y.prototype._rejected=function(){return this._values.length-this.length()},y.prototype._addRejected=function(x){this._values.push(x)},y.prototype._addFulfilled=function(x){this._values[this._totalResolved++]=x},y.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},y.prototype._getRangeError=function(x){var T="Input array must contain at least "+this._howMany+" items but contains only "+x+" items";return new m(T)},y.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(x,T){return b(x,T)},c.prototype.some=function(x){return b(this,x)},c._SomePromiseArray=y}},{"./errors":12,"./util":36}],32:[function(s,a,l){a.exports=function(c){function f(y){y!==void 0?(y=y._target(),this._bitField=y._bitField,this._settledValueField=y._isFateSealed()?y._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var h=f.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise + + See http://goo.gl/MqrFmX +`);return this._settledValue()},p=f.prototype.error=f.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise + + See http://goo.gl/MqrFmX +`);return this._settledValue()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},g=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},v=f.prototype.isPending=function(){return(50397184&this._bitField)==0},w=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return v.call(this._target())},c.prototype.isRejected=function(){return g.call(this._target())},c.prototype.isFulfilled=function(){return m.call(this._target())},c.prototype.isResolved=function(){return w.call(this._target())},c.prototype.value=function(){return h.call(this._target())},c.prototype.reason=function(){var y=this._target();return y._unsetRejectionIsUnhandled(),p.call(y)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=f}},{}],33:[function(s,a,l){a.exports=function(c,f){var h=s("./util"),p=h.errorObj,m=h.isObject,g={}.hasOwnProperty;return function(v,w){if(m(v)){if(v instanceof c)return v;var y=function(x){try{return function(T){return T.then}(x)}catch(T){return p.e=T,p}}(v);if(y===p){w&&w._pushContext();var b=c.reject(y.e);return w&&w._popContext(),b}if(typeof y=="function")return function(x){try{return g.call(x,"_promise0")}catch{return!1}}(v)?(b=new c(f),v._then(b._fulfill,b._reject,void 0,b,null),b):function(x,T,P){var k=new c(f),N=k;P&&P._pushContext(),k._captureStackTrace(),P&&P._popContext();var D=!0,z=h.tryCatch(T).call(x,function(A){k&&(k._resolveCallback(A),k=null)},function(A){k&&(k._rejectCallback(A,D,!0),k=null)});return D=!1,k&&z===p&&(k._rejectCallback(z.e,!0,!0),k=null),N}(v,y,w)}return v}}},{"./util":36}],34:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.TimeoutError;function g(x){this.handle=x}g.prototype._resultCancelled=function(){clearTimeout(this.handle)};var v=function(x){return w(+this).thenReturn(x)},w=c.delay=function(x,T){var P,k;return T!==void 0?(P=c.resolve(T)._then(v,null,null,x,void 0),h.cancellation()&&T instanceof c&&P._setOnCancel(T)):(P=new c(f),k=setTimeout(function(){P._fulfill()},+x),h.cancellation()&&P._setOnCancel(new g(k)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function y(x){return clearTimeout(this.handle),x}function b(x){throw clearTimeout(this.handle),x}c.prototype.delay=function(x){return w(x,this)},c.prototype.timeout=function(x,T){var P,k;x=+x;var N=new g(setTimeout(function(){P.isPending()&&function(D,z,A){var Y;Y=typeof z!="string"?z instanceof Error?z:new m("operation timed out"):new m(z),p.markAsOriginatingFromRejection(Y),D._attachExtraTrace(Y),D._reject(Y),A!=null&&A.cancel()}(P,T,k)},x));return h.cancellation()?(k=this.then(),(P=k._then(y,b,void 0,N,void 0))._setOnCancel(N)):P=this._then(y,b,void 0,N,void 0),P}}},{"./util":36}],35:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=s("./util"),w=s("./errors").TypeError,y=s("./util").inherits,b=v.errorObj,x=v.tryCatch,T={};function P(Y){setTimeout(function(){throw Y},0)}function k(Y,q){var ee=0,K=Y.length,te=new c(m);return function oe(){if(ee>=K)return te._fulfill();var se=function(Z){var $=h(Z);return $!==Z&&typeof Z._isDisposable=="function"&&typeof Z._getDisposer=="function"&&Z._isDisposable()&&$._setDisposable(Z._getDisposer()),$}(Y[ee++]);if(se instanceof c&&se._isDisposable()){try{se=h(se._getDisposer().tryDispose(q),Y.promise)}catch(Z){return P(Z)}if(se instanceof c)return se._then(oe,P,null,null,null)}oe()}(),te}function N(Y,q,ee){this._data=Y,this._promise=q,this._context=ee}function D(Y,q,ee){this.constructor$(Y,q,ee)}function z(Y){return N.isDisposer(Y)?(this.resources[this.index]._setDisposable(Y),Y.promise()):Y}function A(Y){this.length=Y,this.promise=null,this[Y-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():T},N.prototype.tryDispose=function(Y){var q=this.resource(),ee=this._context;ee!==void 0&&ee._pushContext();var K=q!==T?this.doDispose(q,Y):null;return ee!==void 0&&ee._popContext(),this._promise._unsetDisposable(),this._data=null,K},N.isDisposer=function(Y){return Y!=null&&typeof Y.resource=="function"&&typeof Y.tryDispose=="function"},y(D,N),D.prototype.doDispose=function(Y,q){return this.data().call(Y,Y,q)},A.prototype._resultCancelled=function(){for(var Y=this.length,q=0;q0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(Y){if(typeof Y=="function")return new D(Y,this,p());throw new w}}},{"./errors":12,"./util":36}],36:[function(s,a,l){var c,f=s("./es5"),h=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function g(){try{var K=c;return c=null,K.apply(this,arguments)}catch(te){return p.e=te,p}}function v(K){return K==null||K===!0||K===!1||typeof K=="string"||typeof K=="number"}function w(K,te,oe){if(v(K))return K;var se={value:oe,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(K,te,se),K}var y=function(){var K=[Array.prototype,Object.prototype,Function.prototype],te=function(Z){for(var $=0;$1,se=te.length>0&&!(te.length===1&&te[0]==="constructor"),Z=b.test(K+"")&&f.names(K).length>0;if(oe||se||Z)return!0}return!1}catch{return!1}},isIdentifier:function(K){return x.test(K)},inheritedDataKeys:y,getDataPropertyOrDefault:function(K,te,oe){if(!f.isES5)return{}.hasOwnProperty.call(K,te)?K[te]:void 0;var se=Object.getOwnPropertyDescriptor(K,te);return se!=null?se.get==null&&se.set==null?se.value:oe:void 0},thrower:function(K){throw K},isArray:f.isArray,asArray:z,notEnumerableProp:w,isPrimitive:v,isObject:function(K){return typeof K=="function"||typeof K=="object"&&K!==null},isError:P,canEvaluate:h,errorObj:p,tryCatch:function(K){return c=K,g},inherits:function(K,te){var oe={}.hasOwnProperty;function se(){for(var Z in this.constructor=K,this.constructor$=te,te.prototype)oe.call(te.prototype,Z)&&Z.charAt(Z.length-1)!=="$"&&(this[Z+"$"]=te.prototype[Z])}return se.prototype=te.prototype,K.prototype=new se,K.prototype},withAppended:function(K,te){var oe,se=K.length,Z=new Array(se+1);for(oe=0;oe10||K[0]>0}(),ee.isNode&&ee.toFastProperties(r);try{throw new Error}catch(K){ee.lastLineError=K}a.exports=ee},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,s=r.length;o0?(typeof B=="string"||ae.objectMode||Object.getPrototypeOf(B)===f.prototype||(B=function(me){return f.from(me)}(B)),W?ae.endEmitted?I.emit("error",new Error("stream.unshift() after end event")):k(I,ae,B,!0):ae.ended?I.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!re?(B=ae.decoder.write(B),ae.objectMode||B.length!==0?k(I,ae,B,!1):Y(I,ae)):k(I,ae,B,!1))):W||(ae.reading=!1)),function(me){return!me.ended&&(me.needReadable||me.lengthB.highWaterMark&&(B.highWaterMark=function(re){return re>=N?re=N:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}(I)),I<=B.length?I:B.ended?B.length:(B.needReadable=!0,0))}function z(I){var B=I._readableState;B.needReadable=!1,B.emittedReadable||(g("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?o.nextTick(A,I):A(I))}function A(I){g("emit readable"),I.emit("readable"),te(I)}function Y(I,B){B.readingMore||(B.readingMore=!0,o.nextTick(q,I,B))}function q(I,B){for(var re=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length=B.length?(re=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):re=function(W,G,ne){var ae;return WX.length?X.length:me;if(le===X.length?Q+=X:Q+=X.slice(0,me),(me-=le)==0){le===X.length?(++F,R.next?O.head=R.next:O.head=O.tail=null):(O.head=R,R.data=X.slice(le));break}++F}return O.length-=F,Q}(W,G):function(me,O){var R=f.allocUnsafe(me),F=O.head,Q=1;for(F.data.copy(R),me-=F.data.length;F=F.next;){var X=F.data,le=me>X.length?X.length:me;if(X.copy(R,R.length-me,0,le),(me-=le)==0){le===X.length?(++Q,F.next?O.head=F.next:O.head=O.tail=null):(O.head=F,F.data=X.slice(le));break}++Q}return O.length-=Q,R}(W,G),ae}(I,B.buffer,B.decoder),re);var re}function se(I){var B=I._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,o.nextTick(Z,B,I))}function Z(I,B){I.endEmitted||I.length!==0||(I.endEmitted=!0,B.readable=!1,B.emit("end"))}function $(I,B){for(var re=0,W=I.length;re=B.highWaterMark||B.ended))return g("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?se(this):z(this),null;if((I=D(I,B))===0&&B.ended)return B.length===0&&se(this),null;var W,G=B.needReadable;return g("need readable",G),(B.length===0||B.length-I0?oe(I,B):null)===null?(B.needReadable=!0,I=0):B.length-=I,B.length===0&&(B.ended||(B.needReadable=!0),re!==I&&B.ended&&se(this)),W!==null&&this.emit("data",W),W},T.prototype._read=function(I){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(I,B){var re=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=I;break;case 1:W.pipes=[W.pipes,I];break;default:W.pipes.push(I)}W.pipesCount+=1,g("pipe count=%d opts=%j",W.pipesCount,B);var G=B&&B.end===!1||I===i.stdout||I===i.stderr?le:ne;function ne(){g("onend"),I.end()}W.endEmitted?o.nextTick(G):re.once("end",G),I.on("unpipe",function ve(De,fe){g("onunpipe"),De===re&&fe&&fe.hasUnpiped===!1&&(fe.hasUnpiped=!0,g("cleanup"),I.removeListener("close",Q),I.removeListener("finish",X),I.removeListener("drain",ae),I.removeListener("error",F),I.removeListener("unpipe",ve),re.removeListener("end",ne),re.removeListener("end",le),re.removeListener("data",R),me=!0,!W.awaitDrain||I._writableState&&!I._writableState.needDrain||ae())});var ae=function(ve){return function(){var De=ve._readableState;g("pipeOnDrain",De.awaitDrain),De.awaitDrain&&De.awaitDrain--,De.awaitDrain===0&&l(ve,"data")&&(De.flowing=!0,te(ve))}}(re);I.on("drain",ae);var me=!1,O=!1;function R(ve){g("ondata"),O=!1,I.write(ve)!==!1||O||((W.pipesCount===1&&W.pipes===I||W.pipesCount>1&&$(W.pipes,I)!==-1)&&!me&&(g("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,O=!0),re.pause())}function F(ve){g("onerror",ve),le(),I.removeListener("error",F),l(I,"error")===0&&I.emit("error",ve)}function Q(){I.removeListener("finish",X),le()}function X(){g("onfinish"),I.removeListener("close",Q),le()}function le(){g("unpipe"),re.unpipe(I)}return re.on("data",R),function(ve,De,fe){if(typeof ve.prependListener=="function")return ve.prependListener(De,fe);ve._events&&ve._events[De]?a(ve._events[De])?ve._events[De].unshift(fe):ve._events[De]=[fe,ve._events[De]]:ve.on(De,fe)}(I,"error",F),I.once("close",Q),I.once("finish",X),I.emit("pipe",re),W.flowing||(g("pipe resume"),re.resume()),I},T.prototype.unpipe=function(I){var B=this._readableState,re={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return I&&I!==B.pipes?this:(I||(I=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,I&&I.emit("unpipe",this,re),this);if(!I){var W=B.pipes,G=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var ne=0;ne>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function a(g){var v=this.lastTotal-this.lastNeed,w=function(y,b,x){if((192&b[0])!=128)return y.lastNeed=0,"�";if(y.lastNeed>1&&b.length>1){if((192&b[1])!=128)return y.lastNeed=1,"�";if(y.lastNeed>2&&b.length>2&&(192&b[2])!=128)return y.lastNeed=2,"�"}}(this,g);return w!==void 0?w:this.lastNeed<=g.length?(g.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,v,0,g.length),void(this.lastNeed-=g.length))}function l(g,v){if((g.length-v)%2==0){var w=g.toString("utf16le",v);if(w){var y=w.charCodeAt(w.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",v,g.length-1)}function c(g){var v=g&&g.length?this.write(g):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,w)}return v}function f(g,v){var w=(g.length-v)%3;return w===0?g.toString("base64",v):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",v,g.length-w))}function h(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function p(g){return g.toString(this.encoding)}function m(g){return g&&g.length?this.write(g):""}t.StringDecoder=o,o.prototype.write=function(g){if(g.length===0)return"";var v,w;if(this.lastNeed){if((v=this.fillLast(g))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w=0?(k>0&&(b.lastNeed=k-1),k):--P=0?(k>0&&(b.lastNeed=k-2),k):--P=0?(k>0&&(k===2?k=0:b.lastNeed=k-3),k):0}(this,g,v);if(!this.lastNeed)return g.toString("utf8",v);this.lastTotal=w;var y=g.length-(w-this.lastNeed);return g.copy(this.lastChar,0,y),g.toString("utf8",v,y)},o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:function(c,f){var h=this._transformState;h.transforming=!1;var p=h.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));h.writechunk=null,h.writecb=null,f!=null&&this.push(f),p(c);var m=this._readableState;m.reading=!1,(m.needReadable||m.length-1&&s.push(i[a]);return s},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l])};return function(s,a){function l(){this.constructor=s}o(s,a),s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function s(a,l,c){var f=o.call(this,"Error: "+a+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=a,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(s,o),s.column_mismatched=function(a,l){return new s("column_mismatched",a,l)},s.unclosed_quote=function(a,l){return new s("unclosed_quote",a,l)},s.fromJSON=function(a){return new s(a.err,a.line,a.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;e.exports=function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":s&&s in Object(a)?i(a):o(a)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var w in v)v.hasOwnProperty(w)&&(g[w]=v[w])};return function(g,v){function w(){this.constructor=g}m(g,v),g.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),a=n(50),l=n(51),c=o(n(15)),f=n(52),h=n(105),p=function(m){function g(v,w){w===void 0&&(w={});var y=m.call(this,w)||this;return y.options=w,y.params=a.mergeParams(v),y.runtime=l.initParseRuntime(y),y.result=new h.Result(y),y.processor=new f.ProcessorLocal(y),y.once("error",function(b){r(function(){y.result.processError(b),y.emit("done",b)})}),y.once("done",function(){y.processor.destroy()}),y}return i(g,m),g.prototype.preRawData=function(v){return this.runtime.preRawDataHook=v,this},g.prototype.preFileLine=function(v){return this.runtime.preFileLineHook=v,this},g.prototype.subscribe=function(v,w,y){return this.parseRuntime.subscribe={onNext:v,onError:w,onCompleted:y},this},g.prototype.fromFile=function(v,w){var y=this,b=n(!function(){var x=new Error("Cannot find module 'fs'");throw x.code="MODULE_NOT_FOUND",x}());return b.exists(v,function(x){x?b.createReadStream(v,w).pipe(y):y.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},g.prototype.fromStream=function(v){return v.pipe(this),this},g.prototype.fromString=function(v){v.toString();var w=new s.Readable,y=0;return w._read=function(b){if(y>=v.length)this.push(null);else{var x=v.substr(y,b);this.push(x),y+=b}},this.fromStream(w)},g.prototype.then=function(v,w){var y=this;return new c.default(function(b,x){y.parseRuntime.then={onfulfilled:function(T){b(v?v(T):T)},onrejected:function(T){w?b(w(T)):x(T)}}})},Object.defineProperty(g.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),g.prototype._transform=function(v,w,y){var b=this;this.processor.process(v).then(function(x){if(x.length>0)return b.runtime.started=!0,b.result.processResult(x)}).then(function(){b.emit("drained"),y()},function(x){b.runtime.hasError=!0,b.runtime.error=x,b.emit("error",x),y()})},g.prototype._flush=function(v){var w=this;this.processor.flush().then(function(y){if(y.length>0)return w.result.processResult(y)}).then(function(){w.processEnd(v)},function(y){w.emit("error",y),v()})},g.prototype.processEnd=function(v){this.result.endProcess(),this.emit("done"),v()},Object.defineProperty(g.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),g}(s.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,s){if(!o.setImmediate){var a,l=1,c={},f=!1,h=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?a=function(v){i.nextTick(function(){g(v)})}:function(){if(o.postMessage&&!o.importScripts){var v=!0,w=o.onmessage;return o.onmessage=function(){v=!1},o.postMessage("","*"),o.onmessage=w,v}}()?function(){var v="setImmediate$"+Math.random()+"$",w=function(y){y.source===o&&typeof y.data=="string"&&y.data.indexOf(v)===0&&g(+y.data.slice(v.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),a=function(y){o.postMessage(v+y,"*")}}():o.MessageChannel?function(){var v=new MessageChannel;v.port1.onmessage=function(w){g(w.data)},a=function(w){v.port2.postMessage(w)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var v=h.documentElement;a=function(w){var y=h.createElement("script");y.onreadystatechange=function(){g(w),y.onreadystatechange=null,v.removeChild(y),y=null},v.appendChild(y)}}():a=function(v){setTimeout(g,0,v)},p.setImmediate=function(v){typeof v!="function"&&(v=new Function(""+v));for(var w=new Array(arguments.length-1),y=0;y"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,s){var a=this;function l(v){o.writable&&o.write(v)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",l),o.on("drain",c),o._isStdio||s&&s.end===!1||(a.on("end",h),a.on("close",p));var f=!1;function h(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function m(v){if(g(),r.listenerCount(this,"error")===0)throw v}function g(){a.removeListener("data",l),o.removeListener("drain",c),a.removeListener("end",h),a.removeListener("close",p),a.removeListener("error",m),o.removeListener("error",m),a.removeListener("end",g),a.removeListener("close",g),o.removeListener("close",g)}return a.on("error",m),o.on("error",m),a.on("end",g),a.on("close",g),o.on("close",g),o.emit("pipe",a),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(p){var m=c(p),g=m[0],v=m[1];return 3*(g+v)/4-v},t.toByteArray=function(p){for(var m,g=c(p),v=g[0],w=g[1],y=new o(3*(v+w)/4-w),b=0,x=w>0?v-4:v,T=0;T>16&255,y[b++]=m>>8&255,y[b++]=255&m;return w===2&&(m=i[p.charCodeAt(T)]<<2|i[p.charCodeAt(T+1)]>>4,y[b++]=255&m),w===1&&(m=i[p.charCodeAt(T)]<<10|i[p.charCodeAt(T+1)]<<4|i[p.charCodeAt(T+2)]>>2,y[b++]=m>>8&255,y[b++]=255&m),y},t.fromByteArray=function(p){for(var m,g=p.length,v=g%3,w=[],y=0,b=g-v;yb?b:y+16383));return v===1?(m=p[g-1],w.push(r[m>>2]+r[m<<4&63]+"==")):v===2&&(m=(p[g-2]<<8)+p[g-1],w.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),w.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");return g===-1&&(g=m),[g,g===m?0:4-g%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function h(p,m,g){for(var v,w=[],y=m;y>1,p=-7,m=i?s-1:0,g=i?-1:1,v=n[r+m];for(m+=g,a=v&(1<<-p)-1,v>>=-p,p+=c;p>0;a=256*a+n[r+m],m+=g,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=g,p-=8);if(a===0)a=1-h;else{if(a===f)return l?NaN:1/0*(v?-1:1);l+=Math.pow(2,o),a-=h}return(v?-1:1)*l*Math.pow(2,a-o)},t.write=function(n,r,i,o,s,a){var l,c,f,h=8*a-s-1,p=(1<>1,g=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:a-1,w=o?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+m>=1?g/f:g*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*f-1)*Math.pow(2,s),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;n[i+v]=255&c,v+=w,c/=256,s-=8);for(l=l<0;n[i+v]=255&l,v+=w,l/=256,h-=8);n[i+v-w]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(s,a,l){s.copy(a,l)}e.exports=function(){function s(){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var l={data:a,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},s.prototype.unshift=function(a){var l={data:a,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=a+l.data;return c},s.prototype.concat=function(a){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(a>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(o,s){if(i("noDeprecation"))return o;var a=!1;return function(){if(!a){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),a=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,a,l){l(null,s)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var x in b)b.hasOwnProperty(x)&&(y[x]=b[x])};return function(y,b){function x(){this.constructor=y}w(y,b),y.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),a=o(n(15)),l=n(54),c=o(n(16)),f=n(57),h=n(28),p=n(58),m=o(n(59)),g=o(n(29)),v=function(w){function y(){var b=w!==null&&w.apply(this,arguments)||this;return b.rowSplit=new p.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(y,w),y.prototype.flush=function(){var b=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var x=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(x,!0).then(function(T){return b.runtime.csvLineBuffer&&b.runtime.csvLineBuffer.length>0?a.default.reject(g.default.unclosed_quote(b.runtime.parsedLineNumber,b.runtime.csvLineBuffer.toString())):a.default.resolve(T)})}return a.default.resolve([])},y.prototype.destroy=function(){return a.default.resolve()},Object.defineProperty(y.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),y.prototype.process=function(b,x){var T,P=this;return x===void 0&&(x=!1),T=x?b.toString():l.prepareData(b,this.converter.parseRuntime),a.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(T):T}).then(function(k){return k&&k.length>0?P.processCSV(k,x):a.default.resolve([])})},y.prototype.processCSV=function(b,x){var T=this,P=this.params,k=this.runtime;k.eol||c.default(b,k),this.needEmitEol&&!this.eolEmitted&&k.eol&&(this.converter.emit("eol",k.eol),this.eolEmitted=!0),P.ignoreEmpty&&!k.started&&(b=h.trimLeft(b));var N=f.stringToLines(b,k);return x?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(h.bufFromString(N.partial)),N.lines.length>0?(k.preFileLineHook?this.runPreLineHook(N.lines):a.default.resolve(N.lines)).then(function(D){return k.started||T.runtime.headers?T.processCSVBody(D):T.processDataWithHead(D)}):a.default.resolve([])},y.prototype.processDataWithHead=function(b){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var x="",T=[];b.length;){var P=x+b.shift(),k=this.rowSplit.parse(P);if(k.closed){T=k.cells,x="";break}x=P+c.default(P,this.runtime)}if(this.prependLeftBuf(h.bufFromString(x)),T.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=T}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(b)},y.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var b=this.runtime.headers,x=0;x=N.length)A();else if(D.preFileLineHook){var Y=N[z],q=D.preFileLineHook(Y,D.parsedLineNumber+z);if(z++,q&&q.then)q.then(function(ee){N[z-1]=ee,k(N,D,z,A)});else{for(N[z-1]=q;z0?r.concat([h.csvLineBuffer,f]):f}(s,a);a.csvLineBuffer=void 0;var c=function(f,h){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(h.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,a).toString("utf8");return a.started===!1?o.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var f=this.quote,h=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,m=c.split(p);if(f==="off"){if(h)for(var g=0;gh&&(p=m,h=g)}),p},l.prototype.isQuoteOpen=function(c){var f=this.quote,h=this.escape;return c[0]===f&&(c[1]!==f||c[1]===h&&(c[2]===f||c.length===2))},l.prototype.isQuoteClose=function(c){var f=this.quote,h=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,m=c.length-1;c[m]===f||c[m]===h;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var h=this.cachedRegExp[f];return c.replace(h,this.quote)},l.prototype.parseMultiLines=function(c){for(var f=[],h="";c.length;){var p=h+c.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),h=""):h=p+(i.default(p,this.conv.parseRuntime)||` +`))}return{rowsCells:f,partial:h}},l}();t.RowSplit=a},function(e,t,n){var r=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function a(y,b,x){if(b.parseParam.checkColumn&&b.parseRuntime.headers&&y.length!==b.parseRuntime.headers.length)throw i.default.column_mismatched(b.parseRuntime.parsedLineNumber+x);return function(T,P,k){for(var N=!1,D={},z=0,A=T.length;z-1){for(var k=b.split("."),N=!0;k.length>0;)if(k.shift().length===0){N=!1;break}!N||T.parseParam.colParser[b]&&T.parseParam.colParser[b].flat?T.parseRuntime.columnValueSetter[P]=h:T.parseRuntime.columnValueSetter[P]=p}else T.parseRuntime.columnValueSetter[P]=h;T.parseParam.nullObject===!0&&x==="null"&&(x=null),T.parseRuntime.columnValueSetter[P](y,b,x)}function h(y,b,x){y[b]=x}function p(y,b,x){o.default(y,b,x)}function m(y,b,x,T){return T.parseRuntime.headerType[x]?T.parseRuntime.headerType[x]:b.indexOf("number#!")>-1?T.parseRuntime.headerType[x]=g:b.indexOf("string#!")>-1?T.parseRuntime.headerType[x]=v:T.parseParam.checkType?T.parseRuntime.headerType[x]=w:T.parseRuntime.headerType[x]=v}function g(y){var b=parseFloat(y);return isNaN(b)?y:b}function v(y){return y.toString()}function w(y){var b=y.trim();return b===""?v(y):s.test(b)?g(y):b.length===5&&b.toLowerCase()==="false"||b.length===4&&b.toLowerCase()==="true"?function(x){var T=x.trim();return T.length!==5||T.toLowerCase()!=="false"}(y):b[0]==="{"&&b[b.length-1]==="}"||b[0]==="["&&b[b.length-1]==="]"?function(x){try{return JSON.parse(x)}catch{return x}}(y):v(y)}},function(e,t,n){var r=n(61);e.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),s=n(20),a=n(104);e.exports=function(l,c,f,h){if(!s(l))return l;for(var p=-1,m=(c=i(c,l)).length,g=m-1,v=l;v!=null&&++p-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var s=this.__data__,a=r(s,i);return a<0?(++this.size,s.push([i,o])):s[a][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var s=r(this,i),a=s.size;return s.set(i,o),this.size+=s.size==a?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),s=n(22),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(s(f))return l?l.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,s=Array(o);++i-1&&r%1==0&&r0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(c){var f=this,h=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&h===0&&a(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function g(v,w,y,b,x){if(y>=v.length)x();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var T=w.parseRuntime.subscribe.onNext,P=v[y],k=T(P,w.parseRuntime.parsedLineNumber+y);if(y++,k&&k.then)k.then(function(){(function(D,z,A,Y,q,ee,K){q&&a(A,K),g(D,A,Y,q,ee)})(v,0,w,y,b,x,P)},x);else{for(b&&a(w,P);ynew Promise(t=>{L_e().fromString(e).then(t)}),A_e=new N_e,I_e=e=>A_e.parse(e),F_e=6,wL="0123456789ABCDEF",$_e=128,{floor:j_e,random:B_e,sqrt:z_e,round:U_e}=Math,V_e=()=>`#${SE(F_e,()=>wL[j_e(B_e()*wL.length)]).join("")}`,xL=e=>e.toLowerCase().trim(),H_e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),W_e=(e=0,t=0,n=0)=>U_e(z_e(.299*e**2+.587*t**2+.114*n**2));class Y_e{constructor(t){Se(this,"colors");Se(this,"lights");Se(this,"getColorForKey",t=>{const n=xL(t),r=this.colors[n];return r||this.setColorForKey(n,V_e())});Se(this,"setColorForKey",(t,n)=>{const r=xL(t);return this.colors[r]=n,this.storage.set("colors",this.colors),n});Se(this,"isColorLightForKey",t=>{const n=this.getColorForKey(t).substring(1);if(Bo(this.lights[n])){const r=H_e(n);this.lights[n]=W_e(...r)>=$_e}return this.lights[n]});this.storage=t,this.colors=this.storage.get("colors")??{},this.lights={}}}const q_e="shlink",SL=e=>`${q_e}.${e}`;class G_e{constructor(t){Se(this,"get",t=>{const n=this.localStorage.getItem(SL(t));return n?JSON.parse(n):void 0});Se(this,"set",(t,n)=>this.localStorage.setItem(SL(t),JSON.stringify(n)));this.localStorage=t}}const Z_e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",G_e,"localStorage"),e.service("ColorGenerator",Y_e,"Storage"),e.constant("csvToJson",D_e),e.constant("jsonToCsv",I_e),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",Coe,"setTimeout","clearTimeout")},aT=e=>e.visitedUrl!==void 0,K_e=e=>e.visitedUrl!==void 0,X_e=It(oZ(e=>aT(e.visit)?"orphanVisits":"nonOrphanVisits"),e=>({orphanVisits:[],nonOrphanVisits:[],...e})),$p=(e,t)=>OI(ct(t),e),mh=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&Ys(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&Ys(r==null?void 0:r.endDate))??void 0,s=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:s}},gh=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>C("header",{children:U(Er,{body:!0,children:[U("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[C(mt,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:C(Fe,{icon:e6})}),C("span",{className:"text-center d-none d-sm-block",children:C("small",{children:i})}),U("span",{className:"badge badge-main ms-3",children:["Visits:"," ",C(G8,{visitsCount:e.length,shortUrl:n})]})]}),C("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:C("small",{children:i})}),r&&C("div",{className:"mt-md-2",children:r})]})});const AF=({title:e,footer:t,children:n})=>U(Er,{role:"document",children:[C(ol,{className:"chart-card__header",children:typeof e=="function"?e():e}),C(il,{children:n}),t&&C(JC,{className:"chart-card__footer--sticky",children:t})]}),IF="label";function CL(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Q_e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function FF(e,t){e.labels=t}function $F(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:IF;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function J_e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:IF;const n={labels:[],datasets:[]};return FF(n,e.labels),$F(n,e.datasets,t),n}function jF(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function e0e(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=e,m=H.useRef(null),g=H.useRef(),v=()=>{m.current&&(g.current=new py(m.current,{type:s,data:J_e(a,o),options:l&&{...l},plugins:c}),CL(t,g.current))},w=()=>{CL(t,null),g.current&&(g.current.destroy(),g.current=null)};return H.useEffect(()=>{!i&&g.current&&l&&Q_e(g.current,l)},[i,l]),H.useEffect(()=>{!i&&g.current&&FF(g.current.config.data,a.labels)},[i,a.labels]),H.useEffect(()=>{!i&&g.current&&a.datasets&&$F(g.current.config.data,a.datasets,o)},[i,a.datasets]),H.useEffect(()=>{g.current&&(i?(w(),setTimeout(v)):g.current.update(h))},[i,l,a.labels,a.datasets,h]),H.useEffect(()=>{g.current&&(w(),setTimeout(v))},[s]),H.useEffect(()=>(v(),()=>w()),[]),V.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),f)}const t0e=H.forwardRef(e0e);function lT(e,t){return py.register(t),H.forwardRef((n,r)=>V.createElement(t0e,Object.assign({},n,{ref:r,type:e})))}const n0e=lT("line",ff),r0e=lT("bar",uf),i0e=lT("doughnut",us),BF=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},zF=({dataset:e,raw:t})=>`${e.label}: ${wn(`${t}`)}`,o0e=({label:e,raw:t})=>`${e}: ${wn(`${t}`)}`;const s0e=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return C("ul",{className:"doughnut-chart-legend",children:n.map((s,a)=>U("li",{className:"doughnut-chart-legend__item d-flex",children:[C("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[a]??o}}),C("small",{className:"doughnut-chart-legend__item-text flex-fill",children:s})]},s))})},a0e=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:Aoe()?Doe:Loe,borderWidth:2}],l0e=(e,t)=>({labels:e,datasets:a0e(t)}),c0e=H.memo(({stats:e})=>{const[t,n]=H.useState(),r=to(e),i=eu(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:o0e}}}},s=l0e(r,i);return U("div",{className:"row",children:[C("div",{className:"col-sm-12 col-md-7",children:C(i0e,{height:300,data:s,options:o,ref:a=>{n(a??void 0)}})}),C("div",{className:"col-sm-12 col-md-5",children:t&&C(s0e,{chart:t})})]})}),EL=({title:e,stats:t})=>C(AF,{title:e,children:C(c0e,{stats:t})}),u0e={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},UF={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},nn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},lr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Jo={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class xe{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=xe.getVersionPrecision(t),o=xe.getVersionPrecision(n);let s=Math.max(i,o),a=0;const l=xe.map([t,n],c=>{const f=s-xe.getVersionPrecision(c),h=c+new Array(f+1).join(".0");return xe.map(h.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]{r[l]=s[l]})}return t}static getBrowserAlias(t){return u0e[t]}static getBrowserTypeByAlias(t){return UF[t]||""}}const Ct=/version\/(\d+(\.?_?\d+)+)/i,f0e=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=xe.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=xe.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=xe.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=xe.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=xe.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=xe.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=xe.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=xe.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=xe.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=xe.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=xe.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=xe.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=xe.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=xe.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=xe.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=xe.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=xe.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=xe.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=xe.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=xe.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=xe.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=xe.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=xe.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=xe.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=xe.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=xe.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=xe.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:xe.getFirstMatch(i,e),version:xe.getSecondMatch(i,e)}}}],d0e=[{test:[/Roku\/DVP/],describe(e){const t=xe.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:lr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=xe.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:lr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=xe.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=xe.getWindowsVersionName(t);return{name:lr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:lr.iOS},n=xe.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=xe.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=xe.getMacOSVersionName(t),r={name:lr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=xe.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:lr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=xe.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=xe.getAndroidVersionName(t),r={name:lr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=xe.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:lr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=xe.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||xe.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||xe.getFirstMatch(/\bbb(\d+)/i,e);return{name:lr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=xe.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:lr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=xe.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:lr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:lr.Linux}}},{test:[/CrOS/],describe(){return{name:lr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=xe.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:lr.PlayStation4,version:t}}}],h0e=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=xe.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:nn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:nn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:nn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:nn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:nn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=xe.getFirstMatch(/(ipod|iphone)/i,e);return{type:nn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:nn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:nn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:nn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:nn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:nn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:nn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:nn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:nn.tv}}}],p0e=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Jo.Blink};const n=xe.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Jo.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Jo.Trident},n=xe.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Jo.Presto},n=xe.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Jo.Gecko},n=xe.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Jo.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Jo.WebKit},n=xe.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class TL{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=xe.find(f0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=xe.find(d0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=xe.find(h0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=xe.find(p0e,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return xe.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const l=t[a];typeof l=="string"?(i[a]=l,o+=1):typeof l=="object"&&(n[a]=l,r+=1)}),r>0){const a=Object.keys(n),l=xe.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=xe.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const a=Object.keys(i),l=xe.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=xe.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(xe.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! + * Bowser - a browser detector + * https://github.com/lancedikson/bowser + * MIT License | (c) Dustin Diaz 2012-2015 + * MIT License | (c) Denis Demchenko 2015-2019 + */class m0e{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new TL(t,n)}static parse(t){return new TL(t).getResult()}static get BROWSER_MAP(){return UF}static get ENGINE_MAP(){return Jo}static get OS_MAP(){return lr}static get PLATFORMS_MAP(){return nn}}const jp="Others",g0e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],v0e=e=>{if(!yi(e))return{browser:jp,os:jp};const{browser:{name:t},os:{name:n}}=m0e.parse(e);return{os:n??jp,browser:t&&g0e.includes(t)?t:jp}},y0e=e=>{var t;return yi(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},cT=(e,t)=>Object.values({...NI(t,t.map(()=>0)),...e});const OL={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},_0e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},b0e={hourly:zae,daily:RE,weekly:Wae,monthly:_v},uT={hourly:e=>_o(e,"yyyy-MM-dd HH:00"),daily:e=>_o(e,Nf),weekly(e){const t=_o(Td(e),Nf),n=_o(Zae(e),Nf);return`${t} - ${n}`},monthly:e=>_o(e,"yyyy-MM")},w0e=e=>{const t=new Date,n=Io(e);return sC([[()=>RE(t,n)<=2,K0("hourly")],[()=>_v(t,n)<=1,K0("daily")],[()=>_v(t,n)<=6,K0("weekly")]])()??"monthly"},PL=(e,t)=>OI(n=>uT[e](Io(n.date)),t),x0e=(e,t)=>t.reduce((n,r)=>{const i=uT[e](Io(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),S0e=(e,t)=>{const n=b0e[e],r=uT[e],i=Io(t[0].date),o=Io(t[t.length-1].date),s=n(i,o),a=_0e[e];return[r(o),...SE(s,l=>r(Mae(o,a(l))))]},C0e=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=S0e(n,e);return[i,cT(t,i)]},kL=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let Z1=null;const E0e=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;Z1===e[i]?(r([]),Z1=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),Z1=e[i]??null)},T0e=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,s]=H.useState(t.length>0?w0e(t[t.length-1].date):"monthly"),[a,l]=jt(!0),c=H.useRef(null),f=H.useRef(null),h=H.useMemo(()=>x0e(o,t),[o,t]),p=H.useMemo(()=>PL(o,dw(t)),[o,t]),[m,g]=H.useMemo(()=>C0e(t,p,o,a),[t,o,a]),v=H.useMemo(()=>cT(PL(o,dw(n)),m),[n,o,m]),w=()=>{const T=kL(g,"Visits",hE);if(n.length===0)return[T];const P=kL(v,r,E5);return[T,P]},y=()=>({labels:m,datasets:w()}),b={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:zF}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:wn}},x:{title:{display:!0,text:OL[o]}}},onHover:BF},x=T=>C(n0e,{ref:T,data:y(),options:b,onClick:P=>E0e(m,h,jF(T.current,P),i)});return U(Er,{children:[U(ol,{role:"heading",children:[e,C("div",{className:"float-end",children:U(nh,{children:[C(iu,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),C(ml,{end:!0,children:Object.entries(OL).map(([T,P])=>C(Ve,{active:o===T,onClick:()=>s(T),children:P},T))})]})}),C("div",{className:"float-end me-2",children:C(Yc,{checked:a,onChange:l,children:C("small",{children:"Skip dates with no visits"})})})]}),U(il,{className:"line-chart-card__body",children:[n.length>0&&x(c),n.length===0&&x(f)]})]})},O0e=({toggleClassName:e,ranges:t,value:n,setValue:r})=>U(nh,{children:[C(iu,{caret:!0,color:"link",className:e,children:"Paginate"}),U(ml,{end:!0,children:[t.map(i=>U(Ve,{active:i===n,onClick:()=>r(i),children:[C("b",{children:i})," items per page"]},i)),C(Ve,{divider:!0}),C(Ve,{disabled:n===1/0,onClick:()=>r(1/0),children:C("i",{children:"Clear pagination"})})]})]}),P0e=e=>e.startsWith("hidden")?"":e,k0e=e=>!!e&&Object.keys(e).length>0,M0e=e=>e.length>20?e.length*10:void 0,R0e=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:Roe,borderColor:hE,borderWidth:2};return t.every(o=>o===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:Noe,borderColor:E5,borderWidth:2}]},N0e=(e,t,n,r)=>({labels:e,datasets:R0e(t,n,r)}),L0e=(e,[t],n)=>{!n||!t||n(e[t.index])},D0e=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=to(e).map(P0e),s=eu(k0e(t)?to(t).reduce((g,v)=>(g[v]&&(g[v]-=t[v]),g),{...e}):e),a=cT(t??{},o),l=H.useRef(null),c=H.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:g})=>g!=="",callbacks:{label:zF}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:wn}},y:{stacked:!0}},onHover:BF,indexAxis:"y"},h=N0e(o,s,a,n),p=M0e(o),m=(g,v)=>C(r0e,{ref:v,data:h,options:f,height:p,onClick:w=>L0e(o,jF(v.current,w),r)},`${p}_${g}`);return U(We,{children:[t!==void 0&&m("with_stats",l),t===void 0&&m("without_stats",c)]})},A0e=e=>Gg(e)==="String"?PZ(e):e,ML=([e])=>e,RL=([,e])=>e,Bp=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...s})=>{const[a,l]=H.useState({}),[c,f]=H.useState(1),[h,p]=H.useState(50),m=(N,D)=>{const z=Kg(N),A=a.field?EZ(It(a.field===Object.keys(D)[0]?ML:RL,A0e),z):z;return!a.dir||a.dir==="ASC"?A:dw(A)},g=N=>{const D=N[c-1];if(c[`hidden_${A}`,0])]},v=N=>C(tT,{currentPage:c,pagesCount:N,setCurrentPage:f}),w=(N,D,z)=>{const A=m(N,D),Y=A.map(ML),q=z&&Kg({...NI(Y,Y.map(()=>0)),...z});if(A.length<=h)return{currentPageStats:Qu(A),currentPageHighlightedStats:q&&Qu(q)};const ee=dd(h,A),K=q&&dd(h,q);return{currentPageStats:Qu(g(ee)),currentPageHighlightedStats:K&&Qu(g(K)),pagination:v(ee.length),max:Wpe(Math.max(...A.map(RL)))}},{currentPageStats:y,currentPageHighlightedStats:b,pagination:x,max:T}=w(e,r,t&&Object.keys(t).length>0?t:void 0),P=Object.keys(y);return C(AF,{title:()=>U(We,{children:[n,C("div",{className:"float-end",children:C(ph,{isButton:!1,right:!0,items:r,order:a,onChange:(N,D)=>{l({field:N,dir:D}),f(1)}})}),o&&Object.keys(e).length>50&&C("div",{className:"float-end",children:C(O0e,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:N=>{p(N),f(1)}})}),i&&C("div",{className:"float-end",children:i(x?P:void 0)})]}),footer:x,children:C(D0e,{stats:y,highlightedStats:b,max:T,...s})})},I0e=()=>{const e=jo(),{search:t}=Mn(),{filtering:n,domain:r}=H.useMemo(It(()=>pl(t),({startDate:o,endDate:s,orphanVisitsType:a,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:o!=null||s!=null?T8(o,s):void 0,visitsFilter:{orphanVisitsType:a,excludeBots:Bo(l)?void 0:l==="true"}}})),[t]);return[n,o=>{const{dateRange:s,visitsFilter:a}=kI(n,o),{excludeBots:l,orphanVisitsType:c}=a,f={startDate:(s==null?void 0:s.startDate)&&Ys(s.startDate)||"",endDate:(s==null?void 0:s.endDate)&&Ys(s.endDate)||"",excludeBots:l===void 0?void 0:Z5(l),orphanVisitsType:c,domain:r},h=qd(f),p=qn(h)?"":`?${h}`;e(p,{replace:!0,relative:"route"})}]};function VF(e,t){const n=H.useRef(t);H.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const F0e=1;function $0e(e){return Object.freeze({__version:F0e,map:e})}function j0e(e,t){return Object.freeze({...e,...t})}const HF=H.createContext(null),WF=HF.Provider;function YF(){const e=H.useContext(HF);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function B0e(e){function t(n,r){const{instance:i,context:o}=e(n).current;return H.useImperativeHandle(r,()=>i),n.children==null?null:V.createElement(WF,{value:o},n.children)}return H.forwardRef(t)}function z0e(e){function t(n,r){const[i,o]=H.useState(!1),{instance:s}=e(n,o).current;H.useImperativeHandle(r,()=>s),H.useEffect(function(){i&&s.update()},[s,i,n.children]);const a=s._contentNode;return a?Ga.createPortal(n.children,a):null}return H.forwardRef(t)}function U0e(e){function t(n,r){const{instance:i}=e(n).current;return H.useImperativeHandle(r,()=>i),null}return H.forwardRef(t)}function qF(e,t){const n=H.useRef();H.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function fT(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function V0e(e,t){return function(r,i){const o=YF(),s=e(fT(r,o),o);return VF(o.map,r.attribution),qF(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var qs={},H0e={get exports(){return qs},set exports(e){qs=e}};/* @preserve + * Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(e,t){(function(n,r){r(t)})(Vl,function(n){var r="1.9.3";function i(u){var d,_,E,M;for(_=1,E=arguments.length;_"u"||!L||!L.Mixin)){u=x(u)?u:[u];for(var d=0;d0?Math.floor(u):Math.ceil(u)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(u){return this.clone()._add(I(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(I(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new Z(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new Z(this.x/u.x,this.y/u.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=$(this.x),this.y=$(this.y),this},distanceTo:function(u){u=I(u);var d=u.x-this.x,_=u.y-this.y;return Math.sqrt(d*d+_*_)},equals:function(u){return u=I(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=I(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function I(u,d,_){return u instanceof Z?u:x(u)?new Z(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new Z(u.x,u.y):new Z(u,d,_)}function B(u,d){if(u)for(var _=d?[u,d]:u,E=0,M=_.length;E=this.min.x&&_.x<=this.max.x&&d.y>=this.min.y&&_.y<=this.max.y},intersects:function(u){u=re(u);var d=this.min,_=this.max,E=u.min,M=u.max,j=M.x>=d.x&&E.x<=_.x,J=M.y>=d.y&&E.y<=_.y;return j&&J},overlaps:function(u){u=re(u);var d=this.min,_=this.max,E=u.min,M=u.max,j=M.x>d.x&&E.x<_.x,J=M.y>d.y&&E.y<_.y;return j&&J},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var d=this.min,_=this.max,E=Math.abs(d.x-_.x)*u,M=Math.abs(d.y-_.y)*u;return re(I(d.x-E,d.y-M),I(_.x+E,_.y+M))},equals:function(u){return u?(u=re(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function re(u,d){return!u||u instanceof B?u:new B(u,d)}function W(u,d){if(u)for(var _=d?[u,d]:u,E=0,M=_.length;E=d.lat&&M.lat<=_.lat&&E.lng>=d.lng&&M.lng<=_.lng},intersects:function(u){u=G(u);var d=this._southWest,_=this._northEast,E=u.getSouthWest(),M=u.getNorthEast(),j=M.lat>=d.lat&&E.lat<=_.lat,J=M.lng>=d.lng&&E.lng<=_.lng;return j&&J},overlaps:function(u){u=G(u);var d=this._southWest,_=this._northEast,E=u.getSouthWest(),M=u.getNorthEast(),j=M.lat>d.lat&&E.lat<_.lat,J=M.lng>d.lng&&E.lng<_.lng;return j&&J},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,d){return u?(u=G(u),this._southWest.equals(u.getSouthWest(),d)&&this._northEast.equals(u.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function G(u,d){return u instanceof W?u:new W(u,d)}function ne(u,d,_){if(isNaN(u)||isNaN(d))throw new Error("Invalid LatLng object: ("+u+", "+d+")");this.lat=+u,this.lng=+d,_!==void 0&&(this.alt=+_)}ne.prototype={equals:function(u,d){if(!u)return!1;u=ae(u);var _=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return _<=(d===void 0?1e-9:d)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return O.distance(this,ae(u))},wrap:function(){return O.wrapLatLng(this)},toBounds:function(u){var d=180*u/40075017,_=d/Math.cos(Math.PI/180*this.lat);return G([this.lat-d,this.lng-_],[this.lat+d,this.lng+_])},clone:function(){return new ne(this.lat,this.lng,this.alt)}};function ae(u,d,_){return u instanceof ne?u:x(u)&&typeof u[0]!="object"?u.length===3?new ne(u[0],u[1],u[2]):u.length===2?new ne(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new ne(u.lat,"lng"in u?u.lng:u.lon,u.alt):d===void 0?null:new ne(u,d,_)}var me={latLngToPoint:function(u,d){var _=this.projection.project(u),E=this.scale(d);return this.transformation._transform(_,E)},pointToLatLng:function(u,d){var _=this.scale(d),E=this.transformation.untransform(u,_);return this.projection.unproject(E)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var d=this.projection.bounds,_=this.scale(u),E=this.transformation.transform(d.min,_),M=this.transformation.transform(d.max,_);return new B(E,M)},infinite:!1,wrapLatLng:function(u){var d=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,_=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,E=u.alt;return new ne(_,d,E)},wrapLatLngBounds:function(u){var d=u.getCenter(),_=this.wrapLatLng(d),E=d.lat-_.lat,M=d.lng-_.lng;if(E===0&&M===0)return u;var j=u.getSouthWest(),J=u.getNorthEast(),de=new ne(j.lat-E,j.lng-M),pe=new ne(J.lat-E,J.lng-M);return new W(de,pe)}},O=i({},me,{wrapLng:[-180,180],R:6371e3,distance:function(u,d){var _=Math.PI/180,E=u.lat*_,M=d.lat*_,j=Math.sin((d.lat-u.lat)*_/2),J=Math.sin((d.lng-u.lng)*_/2),de=j*j+Math.cos(E)*Math.cos(M)*J*J,pe=2*Math.atan2(Math.sqrt(de),Math.sqrt(1-de));return this.R*pe}}),R=6378137,F={R,MAX_LATITUDE:85.0511287798,project:function(u){var d=Math.PI/180,_=this.MAX_LATITUDE,E=Math.max(Math.min(_,u.lat),-_),M=Math.sin(E*d);return new Z(this.R*u.lng*d,this.R*Math.log((1+M)/(1-M))/2)},unproject:function(u){var d=180/Math.PI;return new ne((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*d,u.x*d/this.R)},bounds:function(){var u=R*Math.PI;return new B([-u,-u],[u,u])}()};function Q(u,d,_,E){if(x(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=d,this._c=_,this._d=E}Q.prototype={transform:function(u,d){return this._transform(u.clone(),d)},_transform:function(u,d){return d=d||1,u.x=d*(this._a*u.x+this._b),u.y=d*(this._c*u.y+this._d),u},untransform:function(u,d){return d=d||1,new Z((u.x/d-this._b)/this._a,(u.y/d-this._d)/this._c)}};function X(u,d,_,E){return new Q(u,d,_,E)}var le=i({},O,{code:"EPSG:3857",projection:F,transformation:function(){var u=.5/(Math.PI*F.R);return X(u,.5,-u,.5)}()}),ve=i({},le,{code:"EPSG:900913"});function De(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function fe(u,d){var _="",E,M,j,J,de,pe;for(E=0,j=u.length;E1,en=function(){var u=!1;try{var d=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,d),window.removeEventListener("testPassiveEventSupport",h,d)}catch{}return u}(),ar=function(){return!!document.createElement("canvas").getContext}(),In=!!(document.createElementNS&&De("svg").createSVGRect),Fn=!!In&&function(){var u=document.createElement("div");return u.innerHTML="",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),gn=!In&&function(){try{var u=document.createElement("div");u.innerHTML='';var d=u.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),li=navigator.platform.indexOf("Mac")===0,ci=navigator.platform.indexOf("Linux")===0;function $n(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var Ye={ie:be,ielt9:Oe,edge:Ae,webkit:Ne,android:Le,android23:ue,androidStock:we,opera:_e,chrome:Ee,gecko:Me,safari:$e,phantom:tt,opera12:nt,win:Ke,ie3d:qt,webkit3d:zt,gecko3d:Sn,any3d:sr,mobile:Ni,mobileWebkit:An,mobileWebkit3d:cu,msPointer:Li,pointer:yh,touch:bh,touchNative:_h,mobileOpera:uu,mobileGecko:aa,retina:cn,passiveEvents:en,canvas:ar,svg:In,vml:gn,inlineSvg:Fn,mac:li,linux:ci},gT=Ye.msPointer?"MSPointerDown":"pointerdown",vT=Ye.msPointer?"MSPointerMove":"pointermove",yT=Ye.msPointer?"MSPointerUp":"pointerup",_T=Ye.msPointer?"MSPointerCancel":"pointercancel",I_={touchstart:gT,touchmove:vT,touchend:yT,touchcancel:_T},bT={touchstart:h$,touchmove:wh,touchend:wh,touchcancel:wh},_l={},wT=!1;function l$(u,d,_){return d==="touchstart"&&d$(),bT[d]?(_=bT[d].bind(this,_),u.addEventListener(I_[d],_,!1),_):(console.warn("wrong event specified:",d),h)}function c$(u,d,_){if(!I_[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(I_[d],_,!1)}function u$(u){_l[u.pointerId]=u}function f$(u){_l[u.pointerId]&&(_l[u.pointerId]=u)}function xT(u){delete _l[u.pointerId]}function d$(){wT||(document.addEventListener(gT,u$,!0),document.addEventListener(vT,f$,!0),document.addEventListener(yT,xT,!0),document.addEventListener(_T,xT,!0),wT=!0)}function wh(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var _ in _l)d.touches.push(_l[_]);d.changedTouches=[d],u(d)}}function h$(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&jn(d),wh(u,d)}function p$(u){var d={},_,E;for(E in u)_=u[E],d[E]=_&&_.bind?_.bind(u):_;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var m$=200;function g$(u,d){u.addEventListener("dblclick",d);var _=0,E;function M(j){if(j.detail!==1){E=j.detail;return}if(!(j.pointerType==="mouse"||j.sourceCapabilities&&!j.sourceCapabilities.firesTouchEvents)){var J=OT(j);if(!(J.some(function(pe){return pe instanceof HTMLLabelElement&&pe.attributes.for})&&!J.some(function(pe){return pe instanceof HTMLInputElement||pe instanceof HTMLSelectElement}))){var de=Date.now();de-_<=m$?(E++,E===2&&d(p$(j))):E=1,_=de}}}return u.addEventListener("click",M),{dblclick:d,simDblclick:M}}function v$(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var F_=Ch(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),fu=Ch(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ST=fu==="webkitTransition"||fu==="OTransition"?fu+"End":"transitionend";function CT(u){return typeof u=="string"?document.getElementById(u):u}function du(u,d){var _=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!_||_==="auto")&&document.defaultView){var E=document.defaultView.getComputedStyle(u,null);_=E?E[d]:null}return _==="auto"?null:_}function ht(u,d,_){var E=document.createElement(u);return E.className=d||"",_&&_.appendChild(E),E}function Ut(u){var d=u.parentNode;d&&d.removeChild(u)}function xh(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function bl(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function wl(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function $_(u,d){if(u.classList!==void 0)return u.classList.contains(d);var _=Sh(u);return _.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(_)}function Je(u,d){if(u.classList!==void 0)for(var _=g(d),E=0,M=_.length;E0?2*window.devicePixelRatio:1;function kT(u){return Ye.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/b$:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function K_(u,d){var _=d.relatedTarget;if(!_)return!0;try{for(;_&&_!==u;)_=_.parentNode}catch{return!1}return _!==u}var w$={__proto__:null,on:Xe,off:Et,stopPropagation:ua,disableScrollPropagation:Z_,disableClickPropagation:gu,preventDefault:jn,stop:fa,getPropagationPath:OT,getMousePosition:PT,getWheelDelta:kT,isExternalTarget:K_,addListener:Xe,removeListener:Et},MT=se.extend({run:function(u,d,_,E){this.stop(),this._el=u,this._inProgress=!0,this._duration=_||.25,this._easeOutPower=1/Math.max(E||.5,.2),this._startPos=ca(u),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Y(this._animate,this),this._step()},_step:function(u){var d=+new Date-this._startTime,_=this._duration*1e3;d<_?this._runFrame(this._easeOut(d/_),u):(this._runFrame(1),this._complete())},_runFrame:function(u,d){var _=this._startPos.add(this._offset.multiplyBy(u));d&&_._round(),un(this._el,_),this.fire("step")},_complete:function(){q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),at=se.extend({options:{crs:le,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,d){d=v(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(ae(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=fu&&Ye.any3d&&!Ye.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Xe(this._proxy,ST,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,d,_){if(d=d===void 0?this._zoom:this._limitZoom(d),u=this._limitCenter(ae(u),d,this.options.maxBounds),_=_||{},this._stop(),this._loaded&&!_.reset&&_!==!0){_.animate!==void 0&&(_.zoom=i({animate:_.animate},_.zoom),_.pan=i({animate:_.animate,duration:_.duration},_.pan));var E=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,d,_.zoom):this._tryAnimatedPan(u,_.pan);if(E)return clearTimeout(this._sizeTimer),this}return this._resetView(u,d,_.pan&&_.pan.noMoveStart),this},setZoom:function(u,d){return this._loaded?this.setView(this.getCenter(),u,{zoom:d}):(this._zoom=u,this)},zoomIn:function(u,d){return u=u||(Ye.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,d)},zoomOut:function(u,d){return u=u||(Ye.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,d)},setZoomAround:function(u,d,_){var E=this.getZoomScale(d),M=this.getSize().divideBy(2),j=u instanceof Z?u:this.latLngToContainerPoint(u),J=j.subtract(M).multiplyBy(1-1/E),de=this.containerPointToLatLng(M.add(J));return this.setView(de,d,{zoom:_})},_getBoundsCenterZoom:function(u,d){d=d||{},u=u.getBounds?u.getBounds():G(u);var _=I(d.paddingTopLeft||d.padding||[0,0]),E=I(d.paddingBottomRight||d.padding||[0,0]),M=this.getBoundsZoom(u,!1,_.add(E));if(M=typeof d.maxZoom=="number"?Math.min(d.maxZoom,M):M,M===1/0)return{center:u.getCenter(),zoom:M};var j=E.subtract(_).divideBy(2),J=this.project(u.getSouthWest(),M),de=this.project(u.getNorthEast(),M),pe=this.unproject(J.add(de).divideBy(2).add(j),M);return{center:pe,zoom:M}},fitBounds:function(u,d){if(u=G(u),!u.isValid())throw new Error("Bounds are not valid.");var _=this._getBoundsCenterZoom(u,d);return this.setView(_.center,_.zoom,d)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,d){return this.setView(u,this._zoom,{pan:d})},panBy:function(u,d){if(u=I(u).round(),d=d||{},!u.x&&!u.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new MT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){Je(this._mapPane,"leaflet-pan-anim");var _=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,_,d.duration||.25,d.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,d,_){if(_=_||{},_.animate===!1||!Ye.any3d)return this.setView(u,d,_);this._stop();var E=this.project(this.getCenter()),M=this.project(u),j=this.getSize(),J=this._zoom;u=ae(u),d=d===void 0?J:d;var de=Math.max(j.x,j.y),pe=de*this.getZoomScale(J,d),Ce=M.distanceTo(E)||1,Ie=1.42,Ge=Ie*Ie;function it(fn){var jh=fn?-1:1,c7=fn?pe:de,u7=pe*pe-de*de+jh*Ge*Ge*Ce*Ce,f7=2*c7*Ge*Ce,a0=u7/f7,uO=Math.sqrt(a0*a0+1)-a0,d7=uO<1e-9?-18:Math.log(uO);return d7}function Hr(fn){return(Math.exp(fn)-Math.exp(-fn))/2}function ha(fn){return(Math.exp(fn)+Math.exp(-fn))/2}function $h(fn){return Hr(fn)/ha(fn)}var Go=it(0);function s0(fn){return de*(ha(Go)/ha(Go+Ie*fn))}function o7(fn){return de*(ha(Go)*$h(Go+Ie*fn)-Hr(Go))/Ge}function s7(fn){return 1-Math.pow(1-fn,1.5)}var a7=Date.now(),lO=(it(1)-Go)/Ie,l7=_.duration?1e3*_.duration:1e3*lO*.8;function cO(){var fn=(Date.now()-a7)/l7,jh=s7(fn)*lO;fn<=1?(this._flyToFrame=Y(cO,this),this._move(this.unproject(E.add(M.subtract(E).multiplyBy(o7(jh)/Ce)),J),this.getScaleZoom(de/s0(jh),J),{flyTo:!0})):this._move(u,d)._moveEnd(!0)}return this._moveStart(!0,_.noMoveStart),cO.call(this),this},flyToBounds:function(u,d){var _=this._getBoundsCenterZoom(u,d);return this.flyTo(_.center,_.zoom,d)},setMaxBounds:function(u){return u=G(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var d=this.options.minZoom;return this.options.minZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,d){this._enforcingBounds=!0;var _=this.getCenter(),E=this._limitCenter(_,this._zoom,G(u));return _.equals(E)||this.panTo(E,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var _=I(d.paddingTopLeft||d.padding||[0,0]),E=I(d.paddingBottomRight||d.padding||[0,0]),M=this.project(this.getCenter()),j=this.project(u),J=this.getPixelBounds(),de=re([J.min.add(_),J.max.subtract(E)]),pe=de.getSize();if(!de.contains(j)){this._enforcingBounds=!0;var Ce=j.subtract(de.getCenter()),Ie=de.extend(j).getSize().subtract(pe);M.x+=Ce.x<0?-Ie.x:Ie.x,M.y+=Ce.y<0?-Ie.y:Ie.y,this.panTo(this.unproject(M),d),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},u===!0?{animate:!0}:u);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var _=this.getSize(),E=d.divideBy(2).round(),M=_.divideBy(2).round(),j=E.subtract(M);return!j.x&&!j.y?this:(u.animate&&u.pan?this.panBy(j):(u.pan&&this._rawPanBy(j),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:_}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=s(this._handleGeolocationResponse,this),_=s(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,_,u):navigator.geolocation.getCurrentPosition(d,_,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var d=u.code,_=u.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+_+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,_=u.coords.longitude,E=new ne(d,_),M=E.toBounds(u.coords.accuracy*2),j=this._locateOptions;if(j.setView){var J=this.getBoundsZoom(M);this.setView(E,j.maxZoom?Math.min(J,j.maxZoom):J)}var de={latlng:E,bounds:M,timestamp:u.timestamp};for(var pe in u.coords)typeof u.coords[pe]=="number"&&(de[pe]=u.coords[pe]);this.fire("locationfound",de)}},addHandler:function(u,d){if(!d)return this;var _=this[u]=new d(this);return this._handlers.push(_),this.options[u]&&_.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Ut(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var _="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),E=ht("div",_,d||this._mapPane);return u&&(this._panes[u]=E),E},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),d=this.unproject(u.getBottomLeft()),_=this.unproject(u.getTopRight());return new W(d,_)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,d,_){u=G(u),_=I(_||[0,0]);var E=this.getZoom()||0,M=this.getMinZoom(),j=this.getMaxZoom(),J=u.getNorthWest(),de=u.getSouthEast(),pe=this.getSize().subtract(_),Ce=re(this.project(de,E),this.project(J,E)).getSize(),Ie=Ye.any3d?this.options.zoomSnap:1,Ge=pe.x/Ce.x,it=pe.y/Ce.y,Hr=d?Math.max(Ge,it):Math.min(Ge,it);return E=this.getScaleZoom(Hr,E),Ie&&(E=Math.round(E/(Ie/100))*(Ie/100),E=d?Math.ceil(E/Ie)*Ie:Math.floor(E/Ie)*Ie),Math.max(M,Math.min(j,E))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var _=this._getTopLeftPoint(u,d);return new B(_,_.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,d){var _=this.options.crs;return d=d===void 0?this._zoom:d,_.scale(u)/_.scale(d)},getScaleZoom:function(u,d){var _=this.options.crs;d=d===void 0?this._zoom:d;var E=_.zoom(u*_.scale(d));return isNaN(E)?1/0:E},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(ae(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(I(u),d)},layerPointToLatLng:function(u){var d=I(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(ae(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(ae(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(G(u))},distance:function(u,d){return this.options.crs.distance(ae(u),ae(d))},containerPointToLayerPoint:function(u){return I(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return I(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(I(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ae(u)))},mouseEventToContainerPoint:function(u){return PT(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var d=this._container=CT(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Xe(d,"scroll",this._onScroll,this),this._containerId=l(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ye.any3d,Je(u,"leaflet-container"+(Ye.touch?" leaflet-touch":"")+(Ye.retina?" leaflet-retina":"")+(Ye.ielt9?" leaflet-oldie":"")+(Ye.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=du(u,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),un(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Je(u.markerPane,"leaflet-zoom-hide"),Je(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,d,_){un(this._mapPane,new Z(0,0));var E=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var M=this._zoom!==d;this._moveStart(M,_)._move(u,d)._moveEnd(M),this.fire("viewreset"),E&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,_,E){d===void 0&&(d=this._zoom);var M=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),E?_&&_.pinch&&this.fire("zoom",_):((M||_&&_.pinch)&&this.fire("zoom",_),this.fire("move",_)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){un(this._mapPane,this._getMapPanePos().subtract(u))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(u){this._targets={},this._targets[l(this._container)]=this;var d=u?Et:Xe;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),Ye.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=Y(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,d){for(var _=[],E,M=d==="mouseout"||d==="mouseover",j=u.target||u.srcElement,J=!1;j;){if(E=this._targets[l(j)],E&&(d==="click"||d==="preclick")&&this._draggableMoved(E)){J=!0;break}if(E&&E.listens(d,!0)&&(M&&!K_(j,u)||(_.push(E),M))||j===this._container)break;j=j.parentNode}return!_.length&&!J&&!M&&this.listens(d,!0)&&(_=[this]),_},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var d=u.target||u.srcElement;if(!(!this._loaded||d._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(d))){var _=u.type;_==="mousedown"&&H_(d),this._fireDOMEvent(u,_)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,_){if(u.type==="click"){var E=i({},u);E.type="preclick",this._fireDOMEvent(E,E.type,_)}var M=this._findEventTargets(u,d);if(_){for(var j=[],J=0;J<_.length;J++)_[J].listens(d,!0)&&j.push(_[J]);M=j.concat(M)}if(M.length){d==="contextmenu"&&jn(u);var de=M[0],pe={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var Ce=de.getLatLng&&(!de._radius||de._radius<=10);pe.containerPoint=Ce?this.latLngToContainerPoint(de.getLatLng()):this.mouseEventToContainerPoint(u),pe.layerPoint=this.containerPointToLayerPoint(pe.containerPoint),pe.latlng=Ce?de.getLatLng():this.layerPointToLatLng(pe.layerPoint)}for(J=0;J0?Math.round(u-d)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(d))},_limitZoom:function(u){var d=this.getMinZoom(),_=this.getMaxZoom(),E=Ye.any3d?this.options.zoomSnap:1;return E&&(u=Math.round(u/E)*E),Math.max(d,Math.min(_,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var _=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(_)?!1:(this.panBy(_,d),!0)},_createAnimProxy:function(){var u=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var _=F_,E=this._proxy.style[_];la(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),E===this._proxy.style[_]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ut(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();la(this._proxy,this.project(u,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,d,_){if(this._animatingZoom)return!0;if(_=_||{},!this._zoomAnimated||_.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var E=this.getZoomScale(d),M=this._getCenterOffset(u)._divideBy(1-1/E);return _.animate!==!0&&!this.getSize().contains(M)?!1:(Y(function(){this._moveStart(!0,!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,_,E){this._mapPane&&(_&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,Je(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:E}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function x$(u,d){return new at(u,d)}var ui=K.extend({options:{position:"topright"},initialize:function(u){v(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var d=this._map;return d&&d.removeControl(this),this.options.position=u,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var d=this._container=this.onAdd(u),_=this.getPosition(),E=u._controlCorners[_];return Je(d,"leaflet-control"),_.indexOf("bottom")!==-1?E.insertBefore(d,E.firstChild):E.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ut(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),vu=function(u){return new ui(u)};at.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",_=this._controlContainer=ht("div",d+"control-container",this._container);function E(M,j){var J=d+M+" "+d+j;u[M+j]=ht("div",J,_)}E("top","left"),E("top","right"),E("bottom","left"),E("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Ut(this._controlCorners[u]);Ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var RT=ui.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,_,E){return _1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=d&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var d=this._getLayer(l(u.target)),_=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;_&&this._map.fire(_,d)},_createRadioElement:function(u,d){var _='",E=document.createElement("div");return E.innerHTML=_,E.firstChild},_addItem:function(u){var d=document.createElement("label"),_=this._map.hasLayer(u.layer),E;u.overlay?(E=document.createElement("input"),E.type="checkbox",E.className="leaflet-control-layers-selector",E.defaultChecked=_):E=this._createRadioElement("leaflet-base-layers_"+l(this),_),this._layerControlInputs.push(E),E.layerId=l(u.layer),Xe(E,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+u.name;var j=document.createElement("span");d.appendChild(j),j.appendChild(E),j.appendChild(M);var J=u.overlay?this._overlaysList:this._baseLayersList;return J.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){var u=this._layerControlInputs,d,_,E=[],M=[];this._handlingClick=!0;for(var j=u.length-1;j>=0;j--)d=u[j],_=this._getLayer(d.layerId).layer,d.checked?E.push(_):d.checked||M.push(_);for(j=0;j=0;M--)d=u[M],_=this._getLayer(d.layerId).layer,d.disabled=_.options.minZoom!==void 0&&E<_.options.minZoom||_.options.maxZoom!==void 0&&E>_.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;Xe(u,"click",jn),this.expand(),setTimeout(function(){Et(u,"click",jn)})}}),S$=function(u,d,_){return new RT(u,d,_)},X_=ui.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",_=ht("div",d+" leaflet-bar"),E=this.options;return this._zoomInButton=this._createButton(E.zoomInText,E.zoomInTitle,d+"-in",_,this._zoomIn),this._zoomOutButton=this._createButton(E.zoomOutText,E.zoomOutTitle,d+"-out",_,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),_},onRemove:function(u){u.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(u){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,d,_,E,M){var j=ht("a",_,E);return j.innerHTML=u,j.href="#",j.title=d,j.setAttribute("role","button"),j.setAttribute("aria-label",d),gu(j),Xe(j,"click",fa),Xe(j,"click",M,this),Xe(j,"click",this._refocusOnMap,this),j},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";tn(this._zoomInButton,d),tn(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Je(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Je(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});at.mergeOptions({zoomControl:!0}),at.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new X_,this.addControl(this.zoomControl))});var C$=function(u){return new X_(u)},NT=ui.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",_=ht("div",d),E=this.options;return this._addScales(E,d+"-line",_),u.on(E.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),_},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,_){u.metric&&(this._mScale=ht("div",d,_)),u.imperial&&(this._iScale=ht("div",d,_))},_update:function(){var u=this._map,d=u.getSize().y/2,_=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(_)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var d=this._getRoundNum(u),_=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,_,d/u)},_updateImperial:function(u){var d=u*3.2808399,_,E,M;d>5280?(_=d/5280,E=this._getRoundNum(_),this._updateScale(this._iScale,E+" mi",E/_)):(M=this._getRoundNum(d),this._updateScale(this._iScale,M+" ft",M/d))},_updateScale:function(u,d,_){u.style.width=Math.round(this.options.maxWidth*_)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),_=u/d;return _=_>=10?10:_>=5?5:_>=3?3:_>=2?2:1,d*_}}),E$=function(u){return new NT(u)},T$='',Q_=ui.extend({options:{position:"bottomright",prefix:''+(Ye.inlineSvg?T$+" ":"")+"Leaflet"},initialize:function(u){v(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),gu(this._container);for(var d in u._layers)u._layers[d].getAttribution&&this.addAttribution(u._layers[d].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var d in this._attributions)this._attributions[d]&&u.push(d);var _=[];this.options.prefix&&_.push(this.options.prefix),u.length&&_.push(u.join(", ")),this._container.innerHTML=_.join(' ')}}});at.mergeOptions({attributionControl:!0}),at.addInitHook(function(){this.options.attributionControl&&new Q_().addTo(this)});var O$=function(u){return new Q_(u)};ui.Layers=RT,ui.Zoom=X_,ui.Scale=NT,ui.Attribution=Q_,vu.layers=S$,vu.zoom=C$,vu.scale=E$,vu.attribution=O$;var Ai=K.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ai.addTo=function(u,d){return u.addHandler(d,this),this};var P$={Events:oe},LT=Ye.touch?"touchstart mousedown":"mousedown",Yo=se.extend({options:{clickTolerance:3},initialize:function(u,d,_,E){v(this,E),this._element=u,this._dragStartTarget=d||u,this._preventOutline=_},enable:function(){this._enabled||(Xe(this._dragStartTarget,LT,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Yo._dragging===this&&this.finishDrag(!0),Et(this._dragStartTarget,LT,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!$_(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Yo._dragging===this&&this.finishDrag();return}if(!(Yo._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Yo._dragging=this,this._preventOutline&&H_(this._element),z_(),hu(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,_=ET(this._element);this._startPoint=new Z(d.clientX,d.clientY),this._startPos=ca(this._element),this._parentScale=W_(_);var E=u.type==="mousedown";Xe(document,E?"mousemove":"touchmove",this._onMove,this),Xe(document,E?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var d=u.touches&&u.touches.length===1?u.touches[0]:u,_=new Z(d.clientX,d.clientY)._subtract(this._startPoint);!_.x&&!_.y||Math.abs(_.x)+Math.abs(_.y)j&&(J=de,j=pe);j>_&&(d[J]=1,J_(u,d,_,E,J),J_(u,d,_,J,M))}function R$(u,d){for(var _=[u[0]],E=1,M=0,j=u.length;Ed&&(_.push(u[E]),M=E);return Md.max.x&&(_|=2),u.yd.max.y&&(_|=8),_}function N$(u,d){var _=d.x-u.x,E=d.y-u.y;return _*_+E*E}function yu(u,d,_,E){var M=d.x,j=d.y,J=_.x-M,de=_.y-j,pe=J*J+de*de,Ce;return pe>0&&(Ce=((u.x-M)*J+(u.y-j)*de)/pe,Ce>1?(M=_.x,j=_.y):Ce>0&&(M+=J*Ce,j+=de*Ce)),J=u.x-M,de=u.y-j,E?J*J+de*de:new Z(M,j)}function Vr(u){return!x(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function $T(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Vr(u)}function jT(u,d){var _,E,M,j,J,de,pe,Ce;if(!u||u.length===0)throw new Error("latlngs not passed");Vr(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ie=[];for(var Ge in u)Ie.push(d.project(ae(u[Ge])));var it=Ie.length;for(_=0,E=0;_E){pe=(j-E)/M,Ce=[de.x-pe*(de.x-J.x),de.y-pe*(de.y-J.y)];break}return d.unproject(I(Ce))}var L$={__proto__:null,simplify:DT,pointToSegmentDistance:AT,closestPointOnSegment:k$,clipSegment:FT,_getEdgeIntersection:Oh,_getBitCode:da,_sqClosestPointOnSegment:yu,isFlat:Vr,_flat:$T,polylineCenter:jT};function BT(u,d,_){var E,M=[1,4,2,8],j,J,de,pe,Ce,Ie,Ge,it;for(j=0,Ie=u.length;j1e-7;de++)Ce=M*Math.sin(J),Ce=Math.pow((1-Ce)/(1+Ce),M/2),pe=Math.PI/2-2*Math.atan(j*Ce)-J,J+=pe;return new ne(J*d,u.x*d/_)}},A$={__proto__:null,LonLat:e0,Mercator:t0,SphericalMercator:F},I$=i({},O,{code:"EPSG:3395",projection:t0,transformation:function(){var u=.5/(Math.PI*t0.R);return X(u,.5,-u,.5)}()}),UT=i({},O,{code:"EPSG:4326",projection:e0,transformation:X(1/180,1,-1/180,.5)}),F$=i({},me,{projection:e0,transformation:X(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,d){var _=d.lng-u.lng,E=d.lat-u.lat;return Math.sqrt(_*_+E*E)},infinite:!0});me.Earth=O,me.EPSG3395=I$,me.EPSG3857=le,me.EPSG900913=ve,me.EPSG4326=UT,me.Simple=F$;var fi=se.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[l(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[l(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var d=u.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var _=this.getEvents();d.on(_,this),this.once("remove",function(){d.off(_,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});at.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var d=l(u);return this._layers[d]?this:(this._layers[d]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var d=l(u);return this._layers[d]?(this._loaded&&u.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return l(u)in this._layers},eachLayer:function(u,d){for(var _ in this._layers)u.call(d,this._layers[_]);return this},_addLayers:function(u){u=u?x(u)?u:[u]:[];for(var d=0,_=u.length;d<_;d++)this.addLayer(u[d])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[l(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var d=l(u);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,d=-1/0,_=this._getZoomSpan();for(var E in this._zoomBoundLayers){var M=this._zoomBoundLayers[E].options;u=M.minZoom===void 0?u:Math.min(u,M.minZoom),d=M.maxZoom===void 0?d:Math.max(d,M.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=u===1/0?void 0:u,_!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&d[0]instanceof ne&&d[0].equals(d[_-1])&&d.pop(),d},_setLatLngs:function(u){ao.prototype._setLatLngs.call(this,u),Vr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Vr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,_=new Z(d,d);if(u=new B(u.min.subtract(_),u.max.add(_)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var E=0,M=this._rings.length,j;Eu.y!=M.y>u.y&&u.x<(M.x-E.x)*(u.y-E.y)/(M.y-E.y)+E.x&&(d=!d);return d||ao.prototype._containsPoint.call(this,u,!0)}});function W$(u,d){return new Cl(u,d)}var lo=so.extend({initialize:function(u,d){v(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=x(u)?u:u.features,_,E,M;if(d){for(_=0,E=d.length;_0?E:[d.src];return}x(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var j=0;jM?(d.height=M+"px",Je(u,j)):tn(u,j),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),_=this._getAnchor();un(this._container,d.add(_))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,d=parseInt(du(this._container,"marginBottom"),10)||0,_=this._container.offsetHeight+d,E=this._containerWidth,M=new Z(this._containerLeft,-_-this._containerBottom);M._add(ca(this._container));var j=u.layerPointToContainerPoint(M),J=I(this.options.autoPanPadding),de=I(this.options.autoPanPaddingTopLeft||J),pe=I(this.options.autoPanPaddingBottomRight||J),Ce=u.getSize(),Ie=0,Ge=0;j.x+E+pe.x>Ce.x&&(Ie=j.x+E-Ce.x+pe.x),j.x-Ie-de.x<0&&(Ie=j.x-de.x),j.y+_+pe.y>Ce.y&&(Ge=j.y+_-Ce.y+pe.y),j.y-Ge-de.y<0&&(Ge=j.y-de.y),(Ie||Ge)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Ie,Ge]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),K$=function(u,d){return new Ah(u,d)};at.mergeOptions({closePopupOnClick:!0}),at.include({openPopup:function(u,d,_){return this._initOverlay(Ah,u,d,_).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),fi.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Ah,this._popup,u,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(u){return this._popup&&(this instanceof so||(this._popup._source=this),this._popup._prepareOpen(u||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){fa(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof qo)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=d,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Ih=Ii.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Ii.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Ii.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Ii.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",d=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,_,E=this._map,M=this._container,j=E.latLngToContainerPoint(E.getCenter()),J=E.layerPointToContainerPoint(u),de=this.options.direction,pe=M.offsetWidth,Ce=M.offsetHeight,Ie=I(this.options.offset),Ge=this._getAnchor();de==="top"?(d=pe/2,_=Ce):de==="bottom"?(d=pe/2,_=0):de==="center"?(d=pe/2,_=Ce/2):de==="right"?(d=0,_=Ce/2):de==="left"?(d=pe,_=Ce/2):J.xthis.options.maxZoom||_E?this._retainParent(M,j,J,E):!1)},_retainChildren:function(u,d,_,E){for(var M=2*u;M<2*u+2;M++)for(var j=2*d;j<2*d+2;j++){var J=new Z(M,j);J.z=_+1;var de=this._tileCoordsToKey(J),pe=this._tiles[de];if(pe&&pe.active){pe.retain=!0;continue}else pe&&pe.loaded&&(pe.retain=!0);_+1this.options.maxZoom||this.options.minZoom!==void 0&&M1){this._setView(u,_);return}for(var Ge=M.min.y;Ge<=M.max.y;Ge++)for(var it=M.min.x;it<=M.max.x;it++){var Hr=new Z(it,Ge);if(Hr.z=this._tileZoom,!!this._isValidTile(Hr)){var ha=this._tiles[this._tileCoordsToKey(Hr)];ha?ha.current=!0:J.push(Hr)}}if(J.sort(function(Go,s0){return Go.distanceTo(j)-s0.distanceTo(j)}),J.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var $h=document.createDocumentFragment();for(it=0;it_.max.x)||!d.wrapLat&&(u.y<_.min.y||u.y>_.max.y))return!1}if(!this.options.bounds)return!0;var E=this._tileCoordsToBounds(u);return G(this.options.bounds).overlaps(E)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,_=this.getTileSize(),E=u.scaleBy(_),M=E.add(_),j=d.unproject(E,u.z),J=d.unproject(M,u.z);return[j,J]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),_=new W(d[0],d[1]);return this.options.noWrap||(_=this._map.wrapLatLngBounds(_)),_},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),_=new Z(+d[0],+d[1]);return _.z=+d[2],_},_removeTile:function(u){var d=this._tiles[u];d&&(Ut(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Je(u,"leaflet-tile");var d=this.getTileSize();u.style.width=d.x+"px",u.style.height=d.y+"px",u.onselectstart=h,u.onmousemove=h,Ye.ielt9&&this.options.opacity<1&&Ur(u,this.options.opacity)},_addTile:function(u,d){var _=this._getTilePos(u),E=this._tileCoordsToKey(u),M=this.createTile(this._wrapCoords(u),s(this._tileReady,this,u));this._initTile(M),this.createTile.length<2&&Y(s(this._tileReady,this,u,null,M)),un(M,_),this._tiles[E]={el:M,coords:u,current:!0},d.appendChild(M),this.fire("tileloadstart",{tile:M,coords:u})},_tileReady:function(u,d,_){d&&this.fire("tileerror",{error:d,tile:_,coords:u});var E=this._tileCoordsToKey(u);_=this._tiles[E],_&&(_.loaded=+new Date,this._map._fadeAnimated?(Ur(_.el,0),q(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this)):(_.active=!0,this._pruneTiles()),d||(Je(_.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:_.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ye.ielt9||!this._map._fadeAnimated?Y(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new Z(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return d.z=u.z,d},_pxBoundsToTileRange:function(u){var d=this.getTileSize();return new B(u.min.unscaleBy(d).floor(),u.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function J$(u){return new bu(u)}var Tl=bu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,d){this._url=u,d=v(this,d),d.detectRetina&&Ye.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,d){return this._url===u&&d===void 0&&(d=!0),this._url=u,d||this.redraw(),this},createTile:function(u,d){var _=document.createElement("img");return Xe(_,"load",s(this._tileOnLoad,this,d,_)),Xe(_,"error",s(this._tileOnError,this,d,_)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(_.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(_.referrerPolicy=this.options.referrerPolicy),_.alt="",_.src=this.getTileUrl(u),_},getTileUrl:function(u){var d={r:Ye.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var _=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=_),d["-y"]=_}return b(this._url,i(d,this.options))},_tileOnLoad:function(u,d){Ye.ielt9?setTimeout(s(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,_){var E=this.options.errorTileUrl;E&&d.getAttribute("src")!==E&&(d.src=E),u(_,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,_=this.options.zoomReverse,E=this.options.zoomOffset;return _&&(u=d-u),u+E},_getSubdomain:function(u){var d=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var u,d;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(d=this._tiles[u].el,d.onload=h,d.onerror=h,!d.complete)){d.src=P;var _=this._tiles[u].coords;Ut(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:_})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",P),bu.prototype._removeTile.call(this,u)},_tileReady:function(u,d,_){if(!(!this._map||_&&_.getAttribute("src")===P))return bu.prototype._tileReady.call(this,u,d,_)}});function ZT(u,d){return new Tl(u,d)}var KT=Tl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,d){this._url=u;var _=i({},this.defaultWmsParams);for(var E in d)E in this.options||(_[E]=d[E]);d=v(this,d);var M=d.detectRetina&&Ye.retina?2:1,j=this.getTileSize();_.width=j.x*M,_.height=j.y*M,this.wmsParams=_},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,Tl.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),_=this._crs,E=re(_.project(d[0]),_.project(d[1])),M=E.min,j=E.max,J=(this._wmsVersion>=1.3&&this._crs===UT?[M.y,M.x,j.y,j.x]:[M.x,M.y,j.x,j.y]).join(","),de=Tl.prototype.getTileUrl.call(this,u);return de+w(this.wmsParams,de,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+J},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function e7(u,d){return new KT(u,d)}Tl.WMS=KT,ZT.wms=e7;var co=fi.extend({options:{padding:.1},initialize:function(u){v(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Je(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,d){var _=this._map.getZoomScale(d,this._zoom),E=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,d),j=E.multiplyBy(-_).add(M).subtract(this._map._getNewPixelOrigin(u,d));Ye.any3d?la(this._container,j,_):un(this._container,j)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,d=this._map.getSize(),_=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new B(_,_.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),XT=co.extend({options:{tolerance:0},getEvents:function(){var u=co.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){co.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Xe(u,"mousemove",this._onMouseMove,this),Xe(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Xe(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,Ut(this._container),Et(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var d in this._layers)u=this._layers[d],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){co.prototype._update.call(this);var u=this._bounds,d=this._container,_=u.getSize(),E=Ye.retina?2:1;un(d,u.min),d.width=E*_.x,d.height=E*_.y,d.style.width=_.x+"px",d.style.height=_.y+"px",Ye.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){co.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var d=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var d=u._order,_=d.next,E=d.prev;_?_.prev=E:this._drawLast=E,E?E.next=_:this._drawFirst=_,delete u._order,delete this._layers[l(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var d=u.options.dashArray.split(/[, ]+/),_=[],E,M;for(M=0;M')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),t7={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(co.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=wu("shape");Je(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=wu("path"),d.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var d=u._container;this._container.appendChild(d),u.options.interactive&&u.addInteractiveTarget(d)},_removePath:function(u){var d=u._container;Ut(d),u.removeInteractiveTarget(d),delete this._layers[l(u)]},_updateStyle:function(u){var d=u._stroke,_=u._fill,E=u.options,M=u._container;M.stroked=!!E.stroke,M.filled=!!E.fill,E.stroke?(d||(d=u._stroke=wu("stroke")),M.appendChild(d),d.weight=E.weight+"px",d.color=E.color,d.opacity=E.opacity,E.dashArray?d.dashStyle=x(E.dashArray)?E.dashArray.join(" "):E.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=E.lineCap.replace("butt","flat"),d.joinstyle=E.lineJoin):d&&(M.removeChild(d),u._stroke=null),E.fill?(_||(_=u._fill=wu("fill")),M.appendChild(_),_.color=E.fillColor||E.color,_.opacity=E.fillOpacity):_&&(M.removeChild(_),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),_=Math.round(u._radius),E=Math.round(u._radiusY||_);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+_+","+E+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){bl(u._container)},_bringToBack:function(u){wl(u._container)}},Fh=Ye.vml?wu:De,xu=co.extend({_initContainer:function(){this._container=Fh("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Fh("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ut(this._container),Et(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){co.prototype._update.call(this);var u=this._bounds,d=u.getSize(),_=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,_.setAttribute("width",d.x),_.setAttribute("height",d.y)),un(_,u.min),_.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=Fh("path");u.options.className&&Je(d,u.options.className),u.options.interactive&&Je(d,"leaflet-interactive"),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Ut(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var d=u._path,_=u.options;d&&(_.stroke?(d.setAttribute("stroke",_.color),d.setAttribute("stroke-opacity",_.opacity),d.setAttribute("stroke-width",_.weight),d.setAttribute("stroke-linecap",_.lineCap),d.setAttribute("stroke-linejoin",_.lineJoin),_.dashArray?d.setAttribute("stroke-dasharray",_.dashArray):d.removeAttribute("stroke-dasharray"),_.dashOffset?d.setAttribute("stroke-dashoffset",_.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),_.fill?(d.setAttribute("fill",_.fillColor||_.color),d.setAttribute("fill-opacity",_.fillOpacity),d.setAttribute("fill-rule",_.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,fe(u._parts,d))},_updateCircle:function(u){var d=u._point,_=Math.max(Math.round(u._radius),1),E=Math.max(Math.round(u._radiusY),1)||_,M="a"+_+","+E+" 0 1,0 ",j=u._empty()?"M0 0":"M"+(d.x-_)+","+d.y+M+_*2+",0 "+M+-_*2+",0 ";this._setPath(u,j)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){bl(u._path)},_bringToBack:function(u){wl(u._path)}});Ye.vml&&xu.include(t7);function JT(u){return Ye.svg||Ye.vml?new xu(u):null}at.include({getRenderer:function(u){var d=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var d=this._paneRenderers[u];return d===void 0&&(d=this._createRenderer({pane:u}),this._paneRenderers[u]=d),d},_createRenderer:function(u){return this.options.preferCanvas&&QT(u)||JT(u)}});var eO=Cl.extend({initialize:function(u,d){Cl.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=G(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function n7(u,d){return new eO(u,d)}xu.create=Fh,xu.pointsToPath=fe,lo.geometryToLayer=Mh,lo.coordsToLatLng=r0,lo.coordsToLatLngs=Rh,lo.latLngToCoords=i0,lo.latLngsToCoords=Nh,lo.getFeature=El,lo.asFeature=Lh,at.mergeOptions({boxZoom:!0});var tO=Ai.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Xe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Et(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ut(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),hu(),z_(),this._startPoint=this._map.mouseEventToContainerPoint(u),Xe(document,{contextmenu:fa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),Je(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new B(this._point,this._startPoint),_=d.getSize();un(this._box,d.min),this._box.style.width=_.x+"px",this._box.style.height=_.y+"px"},_finish:function(){this._moved&&(Ut(this._box),tn(this._container,"leaflet-crosshair")),pu(),U_(),Et(document,{contextmenu:fa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var d=new W(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});at.addInitHook("addHandler","boxZoom",tO),at.mergeOptions({doubleClickZoom:!0});var nO=Ai.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var d=this._map,_=d.getZoom(),E=d.options.zoomDelta,M=u.originalEvent.shiftKey?_-E:_+E;d.options.doubleClickZoom==="center"?d.setZoom(M):d.setZoomAround(u.containerPoint,M)}});at.addInitHook("addHandler","doubleClickZoom",nO),at.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var rO=Ai.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Yo(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Je(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tn(this._map._container,"leaflet-grab"),tn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=G(this._map.options.maxBounds);this._offsetLimit=re(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var d=this._lastTime=+new Date,_=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(_),this._times.push(d),this._prunePositions(d)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,d){return u-(u-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;u.xd.max.x&&(u.x=this._viscousLimit(u.x,d.max.x)),u.y>d.max.y&&(u.y=this._viscousLimit(u.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,d=Math.round(u/2),_=this._initialWorldOffset,E=this._draggable._newPos.x,M=(E-d+_)%u+d-_,j=(E+d+_)%u-d-_,J=Math.abs(M+_)0?j:-j))-d;this._delta=0,this._startTime=null,J&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+J):u.setZoomAround(this._lastMousePos,d+J))}});at.addInitHook("addHandler","scrollWheelZoom",oO);var r7=600;at.mergeOptions({tapHold:Ye.touchNative&&Ye.safari&&Ye.mobile,tapTolerance:15});var sO=Ai.extend({addHooks:function(){Xe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Et(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var d=u.touches[0];this._startPos=this._newPos=new Z(d.clientX,d.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Xe(document,"touchend",jn),Xe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),r7),Xe(document,"touchend touchcancel contextmenu",this._cancel,this),Xe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){Et(document,"touchend",jn),Et(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),Et(document,"touchend touchcancel contextmenu",this._cancel,this),Et(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new Z(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var _=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});_._simulated=!0,d.target.dispatchEvent(_)}});at.addInitHook("addHandler","tapHold",sO),at.mergeOptions({touchZoom:Ye.touch,bounceAtZoomLimits:!0});var aO=Ai.extend({addHooks:function(){Je(this._map._container,"leaflet-touch-zoom"),Xe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tn(this._map._container,"leaflet-touch-zoom"),Et(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var d=this._map;if(!(!u.touches||u.touches.length!==2||d._animatingZoom||this._zooming)){var _=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(_.add(E)._divideBy(2))),this._startDist=_.distanceTo(E),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Xe(document,"touchmove",this._onTouchMove,this),Xe(document,"touchend touchcancel",this._onTouchEnd,this),jn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,_=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]),M=_.distanceTo(E)/this._startDist;if(this._zoom=d.getScaleZoom(M,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoomd.getMaxZoom()&&M>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var j=_._add(E)._divideBy(2)._subtract(this._centerPoint);if(M===1&&j.x===0&&j.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(j),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var J=s(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Y(J,this,!0),jn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),Et(document,"touchmove",this._onTouchMove,this),Et(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});at.addInitHook("addHandler","touchZoom",aO),at.BoxZoom=tO,at.DoubleClickZoom=nO,at.Drag=rO,at.Keyboard=iO,at.ScrollWheelZoom=oO,at.TapHold=sO,at.TouchZoom=aO,n.Bounds=B,n.Browser=Ye,n.CRS=me,n.Canvas=XT,n.Circle=n0,n.CircleMarker=kh,n.Class=K,n.Control=ui,n.DivIcon=GT,n.DivOverlay=Ii,n.DomEvent=w$,n.DomUtil=_$,n.Draggable=Yo,n.Evented=se,n.FeatureGroup=so,n.GeoJSON=lo,n.GridLayer=bu,n.Handler=Ai,n.Icon=Sl,n.ImageOverlay=Dh,n.LatLng=ne,n.LatLngBounds=W,n.Layer=fi,n.LayerGroup=xl,n.LineUtil=L$,n.Map=at,n.Marker=Ph,n.Mixin=P$,n.Path=qo,n.Point=Z,n.PolyUtil=D$,n.Polygon=Cl,n.Polyline=ao,n.Popup=Ah,n.PosAnimation=MT,n.Projection=A$,n.Rectangle=eO,n.Renderer=co,n.SVG=xu,n.SVGOverlay=qT,n.TileLayer=Tl,n.Tooltip=Ih,n.Transformation=Q,n.Util=ee,n.VideoOverlay=YT,n.bind=s,n.bounds=re,n.canvas=QT,n.circle=V$,n.circleMarker=U$,n.control=vu,n.divIcon=Q$,n.extend=i,n.featureGroup=j$,n.geoJSON=WT,n.geoJson=Y$,n.gridLayer=J$,n.icon=B$,n.imageOverlay=q$,n.latLng=ae,n.latLngBounds=G,n.layerGroup=$$,n.map=x$,n.marker=z$,n.point=I,n.polygon=W$,n.polyline=H$,n.popup=K$,n.rectangle=n7,n.setOptions=v,n.stamp=l,n.svg=JT,n.svgOverlay=Z$,n.tileLayer=ZT,n.tooltip=X$,n.transformation=X,n.version=r,n.videoOverlay=G$;var i7=window.L;n.noConflict=function(){return window.L=i7,this},window.L=n})})(H0e,qs);const NL=qs;function dT(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function hT(e,t){return t==null?function(r,i){const o=H.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=H.useRef();o.current||(o.current=e(r,i));const s=H.useRef(r),{instance:a}=o.current;return H.useEffect(function(){s.current!==r&&(t(a,r,s.current),s.current=r)},[a,r,i]),o}}function W0e(e,t){H.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function GF(e){return function(n){const r=YF(),i=e(fT(n,r),r);return VF(r.map,n.attribution),qF(i.current,n.eventHandlers),W0e(i.current,r),i}}function Y0e(e,t){const n=hT(e,t),r=GF(n);return B0e(r)}function q0e(e,t){const n=hT(e),r=V0e(n,t);return z0e(r)}function G0e(e,t){const n=hT(e,t),r=GF(n);return U0e(r)}function Z0e(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function Px(){return Px=Object.assign||function(e){for(var t=1;t(m==null?void 0:m.map)??null,[m]);const v=H.useCallback(y=>{if(y!==null&&m===null){const b=new qs.Map(y,f);n!=null&&c!=null?b.setView(n,c):e!=null&&b.fitBounds(e,t),l!=null&&b.whenReady(l),g($0e(b))}},[]);H.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const w=m?V.createElement(WF,{value:m},r):s??null;return V.createElement("div",Px({},p,{ref:v}),w)}const X0e=H.forwardRef(K0e),Q0e=Y0e(function({position:t,...n},r){const i=new qs.Marker(t,n);return dT(i,j0e(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),J0e=q0e(function(t,n){const r=new qs.Popup(t,n.overlayContainer);return dT(r,n)},function(t,n,{position:r},i){H.useEffect(function(){const{instance:s}=t;function a(c){c.popup===s&&(s.update(),i(!0))}function l(c){c.popup===s&&i(!1)}return n.map.on({popupopen:a,popupclose:l}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){var f;n.map.off({popupopen:a,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),e1e=G0e(function({url:t,...n},r){const i=new qs.TileLayer(t,fT(n,r));return dT(i,r)},function(t,n,r){Z0e(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)});const t1e=()=>C(e1e,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),n1e=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(ct("latLong"))};const[{latLong:t}]=e;return{zoom:10,center:t}},ZF=({toggle:e,isOpen:t,title:n,locations:r=[]})=>C(Ho,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:U(Ri,{className:"map-modal__modal-body",children:[U("h3",{className:"map-modal__modal-title",children:[n,C("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),U(X0e,{...n1e(r),children:[C(t1e,{}),r.map(({cityName:i,latLong:o,count:s},a)=>C(Q0e,{position:o,children:U(J0e,{children:[C("b",{children:s})," visit",s>1?"s":""," from ",C("b",{children:i})]})},a))]})]})});const r1e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=jt(),[s,a,l]=jt(),[c,f]=H.useState([]),h=S_(),p=v=>t?v.filter(({cityName:w})=>t==null?void 0:t.includes(w)):v,m=()=>{if(!t){f(n),i();return}l()},g=v=>()=>{f(v?p(n):n),i()};return U(We,{children:[C(mt,{color:"link",className:"open-map-modal-btn__btn",id:h,onClick:m,children:C(Fe,{icon:QI})}),C(Or,{placement:"left",target:h,children:"Show in map"}),C(ru,{isOpen:s,toggle:a,inNavbar:!0,children:U(ml,{end:!0,children:[C(Ve,{onClick:g(!1),children:"Show all locations"}),C(Ve,{onClick:g(!0),children:"Show locations in current page"})]})}),C(ZF,{toggle:o,isOpen:r,title:e,locations:c})]})},i1e=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,s=l=>({active:i===l,onClick:()=>e({...t,orphanVisitsType:l===(t==null?void 0:t.orphanVisitsType)?void 0:l})});return U(ia,{text:"Filters",dropdownClassName:n,className:"me-3",right:!0,minWidth:250,children:[C(Ve,{header:!0,children:"Bots:"}),C(Ve,{active:o,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude potential bots"}),r&&U(We,{children:[C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Orphan visits type:"}),C(Ve,{...s("base_url"),children:"Base URL"}),C(Ve,{...s("invalid_short_url"),children:"Invalid short URL"}),C(Ve,{...s("regular_404"),children:"Regular 404"})]}),C(Ve,{divider:!0}),C(Ve,{disabled:!yi(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:C("i",{children:"Clear filters"})})]})},KF=(e,t)=>!Bo(e)&&yi(e[t]),LL=e=>typeof e=="number"?e:e?parseFloat(e):0,o1e=(e,{os:t})=>{e[t]=(e[t]||0)+1},s1e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},a1e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},XF=e=>(t,n)=>{const i=KF(n,e)?n[e]:"Unknown";t[i]=(t[i]||0)+1},l1e=XF("country"),c1e=XF("city"),u1e=(e,t)=>{if(!KF(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[LL(r),LL(i)]};o.count+=1,e[n]=o},f1e=(e,t)=>{if(!K_e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},QF=e=>e.reduce((t,n)=>(o1e(t.os,n),s1e(t.browsers,n),a1e(t.referrers,n),l1e(t.countries,n),c1e(t.cities,n),u1e(t.citiesForMap,n),f1e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),JF=Hd(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,s={date:n,potentialBot:o,...v0e(t),referer:y0e(r),country:(i==null?void 0:i.countryName)||"Unknown",city:(i==null?void 0:i.cityName)||"Unknown",latitude:i==null?void 0:i.latitude,longitude:i==null?void 0:i.longitude};return aT(e)?{...s,type:e.type,visitedUrl:e.visitedUrl}:s}),d1e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:JF,processStatsFromVisits:QF},Symbol.toStringTag,{value:"Module"}));const of=20,h1e=({browser:e,os:t,referer:n,country:r,city:i,...o},s)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(s.toLowerCase()),p1e=(e,t)=>t.filter(n=>h1e(n,e)),m1e=(e,t)=>LI(t,e),g1e=(e,t,n)=>{const r=t?p1e(t,e):[...e],i=m1e(n,r),o=i.length;return{visitsGroups:dd(of,i),total:o}},v1e=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var k,N;const o="visits-table__header-cell visits-table__sticky",s=()=>r("(max-width: 767px)").matches,[a,l]=H.useState(s()),[c,f]=H.useState(void 0),[h,p]=H.useState({}),m=H.useMemo(()=>g1e(e,c,h),[c,h]),g=H.useRef(!0),[v,w]=H.useState(1),y=v*of,b=y-of,x=8+Number(i),T=D=>()=>p({field:D,dir:o_(D,h.field,h.dir)}),P=D=>C(Af,{currentOrder:h,field:D,className:"visits-table__header-icon"});return H.useEffect(()=>{const D=()=>l(s());return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]),H.useEffect(()=>{w(1),!g.current&&n([]),g.current=!1},[c]),C("div",{className:"table-responsive-md",children:U("table",{className:"table table-bordered table-hover table-sm visits-table",children:[U("thead",{className:"visits-table__header",children:[U("tr",{children:[C("th",{className:`${o} text-center`,onClick:()=>n(t.length0})})}),U("th",{className:`${o} text-center`,onClick:T("potentialBot"),children:[C(Fe,{icon:PM}),P("potentialBot")]}),U("th",{className:o,onClick:T("date"),children:["Date",P("date")]}),U("th",{className:o,onClick:T("country"),children:["Country",P("country")]}),U("th",{className:o,onClick:T("city"),children:["City",P("city")]}),U("th",{className:o,onClick:T("browser"),children:["Browser",P("browser")]}),U("th",{className:o,onClick:T("os"),children:["OS",P("os")]}),U("th",{className:o,onClick:T("referer"),children:["Referrer",P("referer")]}),i&&U("th",{className:o,onClick:T("visitedUrl"),children:["Visited URL",P("visitedUrl")]})]}),C("tr",{children:C("td",{colSpan:x,className:"p-0",children:C(ah,{noBorder:!0,large:!1,onChange:f})})})]}),U("tbody",{children:[!((k=m.visitsGroups[v-1])!=null&&k.length)&&C("tr",{children:C("td",{colSpan:x,className:"text-center",children:"No visits found with current filtering"})}),(N=m.visitsGroups[v-1])==null?void 0:N.map((D,z)=>{const A=t.includes(D);return U("tr",{style:{cursor:"pointer"},className:ge({"table-active":A}),onClick:()=>n(A?t.filter(Y=>Y!==D):[...t,D]),children:[C("td",{className:"text-center",children:A&&C(Fe,{icon:pd,className:"text-primary"})}),C("td",{className:"text-center",children:D.potentialBot&&U(We,{children:[C(Fe,{icon:PM,id:`botIcon${z}`}),C(Or,{placement:"right",target:`botIcon${z}`,children:"Potentially a visit from a bot or crawler"})]})}),C("td",{children:C(sy,{date:D.date})}),C("td",{children:D.country}),C("td",{children:D.city}),C("td",{children:D.browser}),C("td",{children:D.os}),C("td",{children:D.referer}),i&&C("td",{children:D.visitedUrl})]},z)})]}),m.total>of&&C("tfoot",{children:C("tr",{children:C("td",{colSpan:x,className:"visits-table__footer-cell visits-table__sticky",children:U("div",{className:"row",children:[C("div",{className:"col-md-6",children:C(tT,{pagesCount:Math.ceil(m.total/of),currentPage:v,setCurrentPage:w,centered:a})}),C("div",{className:ge("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:U("div",{children:["Visits ",C("b",{children:wn(b+1)})," to"," ",C("b",{children:wn(MI(y,m.total))})," of"," ",C("b",{children:wn(m.total)})]})})]})})})})]})})},Bl={byTime:{title:"By time",subPath:"by-time",icon:WX},byContext:{title:"By context",subPath:"by-context",icon:_C},byLocation:{title:"By location",subPath:"by-location",icon:QI},list:{title:"List",subPath:"list",icon:XI}};let zp;const vh=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,settings:i,exportCsv:o,isOrphanVisits:s=!1})=>{var W;const{visits:a,loading:l,loadingLarge:c,error:f,errorData:h,progress:p,fallbackInterval:m}=t,[{dateRange:g,visitsFilter:v},w]=I0e(),y=It(({startDate:G,endDate:ne})=>({dateRange:{startDate:G??void 0,endDate:ne??void 0}}),w),b=H.useRef(g??m??((W=i.visits)==null?void 0:W.defaultInterval)??"last30Days"),[x,T]=H.useState([]),[P,k]=H.useState(),N=H.useRef(!0),{search:D}=Mn(),z=G=>G?`${G}${D}`:D,A=H.useMemo(()=>JF(a),[a]),{os:Y,browsers:q,referrers:ee,countries:K,cities:te,citiesForMap:oe,visitedUrls:se}=H.useMemo(()=>QF(A),[A]),Z=H.useMemo(()=>{var G;return{...v,excludeBots:v.excludeBots??((G=i.visits)==null?void 0:G.excludeBots)}},[v]),$=eu(oe),I=G=>{zp=void 0,T(G)},B=G=>ne=>{const ae=`${G}_${ne}`;zp===ae?(T([]),k(void 0),zp=void 0):(T(A.filter(bZ(G,ne))),k(ne),zp=ae)};H.useEffect(()=>r,[]),H.useEffect(()=>{const G=N.current?g??tpe(b.current):g;n({dateRange:G,filter:Z},N.current),N.current=!1},[g,v]),H.useEffect(()=>{var G;m&&b.current===(((G=i.visits)==null?void 0:G.defaultInterval)??"last30Days")&&(b.current=m)},[m]);const re=()=>c?U(Eo,{loading:!0,children:["This is going to take a while... :S",C(oE,{value:p,striped:p===100,className:"mt-3"})]}):l?C(Eo,{loading:!0}):f?C(Dr,{type:"error",children:C(Ao,{errorData:h,fallbackMessage:"An error occurred while loading visits :("})}):qn(a)?C(Eo,{children:"There are no visits matching current filter"}):U(We,{children:[C($8,{fill:!0,children:Object.values(Bl).map(({title:G,icon:ne,subPath:ae},me)=>U(Lf,{to:z(ae),replace:!0,children:[C(Fe,{icon:ne}),C("span",{className:"ms-2 d-none d-sm-inline",children:G})]},me))}),C(er,{children:U(e_,{children:[C(yt,{path:Bl.byTime.subPath,element:C("div",{className:"col-12 mt-3",children:C(T0e,{title:"Visits during time",visits:A,highlightedVisits:x,highlightedLabel:P,setSelectedVisits:I})})}),C(yt,{path:Bl.byContext.subPath,element:U(We,{children:[C("div",{className:ge("mt-3 col-lg-6",{"col-xl-4":!s}),children:C(EL,{title:"Operating systems",stats:Y})}),C("div",{className:ge("mt-3 col-lg-6",{"col-xl-4":!s}),children:C(EL,{title:"Browsers",stats:q})}),C("div",{className:ge("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:C(Bp,{title:"Referrers",stats:ee,withPagination:!1,highlightedStats:$p(x,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:B("referer")})}),s&&C("div",{className:"mt-3 col-lg-6",children:C(Bp,{title:"Visited URLs",stats:se,highlightedLabel:P,highlightedStats:$p(x,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:B("visitedUrl")})})]})}),C(yt,{path:Bl.byLocation.subPath,element:U(We,{children:[C("div",{className:"col-lg-6 mt-3",children:C(Bp,{title:"Countries",stats:K,highlightedStats:$p(x,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:B("country")})}),C("div",{className:"col-lg-6 mt-3",children:C(Bp,{title:"Cities",stats:te,highlightedStats:$p(x,"city"),highlightedLabel:P,extraHeaderContent:G=>$.length>0&&C(r1e,{modalTitle:"Cities",locations:$,activeCities:G}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:B("city")})})]})}),C(yt,{path:Bl.list.subPath,element:C("div",{className:"col-12",children:C(v1e,{visits:A,selectedVisits:x,setSelectedVisits:I,isOrphanVisits:s})})}),C(yt,{path:"*",element:C(ZS,{replace:!0,to:z(Bl.byTime.subPath)})})]})})]});return U(We,{children:[e,C("section",{className:"mt-3",children:U("div",{className:"row flex-md-row-reverse",children:[C("div",{className:"col-lg-7 col-xl-6",children:U("div",{className:"d-md-flex",children:[C("div",{className:"flex-fill",children:C(dF,{updatable:!0,disabled:l,initialDateRange:b.current,defaultText:"All visits",onDatesChange:y})}),C(i1e,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,selected:Z,onChange:G=>w({visitsFilter:G})})]})}),a.length>0&&C("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:U("div",{className:"d-flex",children:[C(Y8,{className:"btn-md-block",amount:A.length,onClick:()=>o(A)}),U(mt,{outline:!0,disabled:x.length===0,className:"btn-md-block ms-2",onClick:()=>I([]),children:["Clear selection ",x.length>0&&U(We,{children:["(",wn(x.length),")"]})]})]})})]})}),C("section",{className:"mt-3",children:re()})]})},y1e=({exportVisits:e})=>oa(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r,settings:i})=>{const o=ra(),{domain:s=""}=Qs(),[a,l=a]=s.split("_");return C(vh,{getVisits:(h,p)=>t({domain:l,query:mh(h),doIntervalFallback:p}),cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:h=>e(`domain_${a}_visits.csv`,h),children:C(gh,{goBack:o,visits:n.visits,title:`"${a}" visits`})})},()=>[Jr.visits]),_1e=({exportVisits:e})=>oa(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r,settings:i})=>{const o=ra();return C(vh,{getVisits:(l,c)=>t({query:mh(l),doIntervalFallback:c}),cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:l=>e("non_orphan_visits.csv",l),children:C(gh,{title:"Non-orphan visits",goBack:o,visits:n.visits})})},()=>[Jr.visits]),b1e=({exportVisits:e})=>oa(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r,settings:i})=>{const o=ra();return C(vh,{getVisits:(l,c)=>{var f;return t({query:mh(l),orphanVisitsType:(f=l.filter)==null?void 0:f.orphanVisitsType,doIntervalFallback:c})},cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:l=>e("orphan_visits.csv",l),isOrphanVisits:!0,children:C(gh,{title:"Orphan visits",goBack:o,visits:n.visits})})},()=>[Jr.orphanVisits]),e$="shlink/orphanVisits",w1e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},x1e=e=>fh({typePrefix:`${e$}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1},r)=>{const{getNonOrphanVisits:i}=e(r),o=async(a,l)=>i({...t,page:a,itemsPerPage:l}),s=dh(n,i);return[o,s]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),S1e=e=>hh({name:e$,initialState:w1e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>lh(o.date,r,i))}}),t$="shlink/orphanVisits",C1e={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},E1e=(e,t)=>!t||t===e.type,T1e=e=>fh({typePrefix:`${t$}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getOrphanVisits:o}=e(i),s=async(l,c)=>o({...n,page:l,itemsPerPage:c}).then(f=>{const h=f.data.filter(p=>aT(p)&&E1e(p,t));return{...f,data:h}}),a=dh(r,o);return[s,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),O1e=e=>hh({name:t$,initialState:C1e,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:s})=>!s&&lh(o.date,r,i))}}),n$="shlink/shortUrlVisits",P1e={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},k1e=e=>fh({typePrefix:`${n$}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getShortUrlVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=dh(r,async l=>o(t,{...l,domain:n.domain}));return[s,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),M1e=e=>hh({name:n$,initialState:P1e,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:s}=r;return i.filter(({shortUrl:a,visit:l})=>a&&kf(a,t,n)&&lh(l.date,o,s))}}),r$="shlink/tagVisits",R1e={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},N1e=e=>fh({typePrefix:`${r$}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getTagVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=dh(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),L1e=e=>hh({name:r$,initialState:R1e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>(s==null?void 0:s.tags.includes(t))&&lh(a.date,i,o))}}),i$="shlink/visitsOverview",Up={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},DL=e=>e.filter(({visit:t})=>t.potentialBot).length,D1e=e=>or(`${i$}/loadVisitsOverview`,(t,{getState:n})=>e(n).getVisitsOverview().then(r=>{var i,o,s,a,l,c;return{nonOrphanVisits:{total:((i=r.nonOrphanVisits)==null?void 0:i.total)??r.visitsCount,nonBots:(o=r.nonOrphanVisits)==null?void 0:o.nonBots,bots:(s=r.nonOrphanVisits)==null?void 0:s.bots},orphanVisits:{total:((a=r.orphanVisits)==null?void 0:a.total)??r.orphanVisitsCount,nonBots:(l=r.orphanVisits)==null?void 0:l.nonBots,bots:(c=r.orphanVisits)==null?void 0:c.bots}}})),A1e=e=>Gn({name:i$,initialState:Up,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Up,loading:!0})),t.addCase(e.rejected,()=>({...Up,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Up,...r})),t.addCase(uh,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:s,orphanVisits:a}=X_e(o.createdVisits),l=s.length,c=DL(s),f=l-c,h=a.length,p=DL(a),m=h-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+f},orphanVisits:{total:r.total+h,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+m}}})}});const I1e=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,s=(r==null?void 0:r.shortUrl)??"",a=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title;return U(gh,{title:U(We,{children:["Visits for ",C(Ei,{href:s})]}),goBack:n,visits:o,shortUrl:r,children:[C("hr",{}),U("div",{children:["Created: ",(()=>r?U("span",{children:[C("b",{id:"created",className:"short-url-visits-header__created-at",children:C(sy,{date:r.dateCreated,relative:!0})}),C(Or,{placement:"bottom",target:"created",children:C(sy,{date:r.dateCreated})})]}):C("small",{children:"Loading..."}))()]}),U("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&C("small",{children:"Loading..."}),!i&&C(Ei,{href:a,children:l??a})]})]})},F1e=({exportVisits:e})=>oa(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o,settings:s})=>{const{shortCode:a=""}=Qs(),{search:l}=Mn(),c=ra(),{domain:f}=pl(l),h=(m,g)=>r({shortCode:gm(a),query:{...mh(m),domain:f},doIntervalFallback:g}),p=m=>{var g;return e(`short-url_${(g=n.shortUrl)==null?void 0:g.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,m)};return H.useEffect(()=>{i({shortCode:gm(a),domain:f})},[]),C(vh,{getVisits:h,cancelGetVisits:o,visitsInfo:t,settings:s,exportCsv:p,children:C(I1e,{shortUrlDetail:n,shortUrlVisits:t,goBack:c})})},(t,n)=>n.shortCode?[Jr.shortUrlVisits(gm(n.shortCode))]:[]),$1e=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e;return C(gh,{title:U("span",{className:"d-flex align-items-center justify-content-center",children:[C("span",{className:"me-2",children:"Visits for"}),C(qE,{text:i,colorGenerator:n})]}),goBack:t,visits:r})},j1e=(e,{exportVisits:t})=>oa(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i,settings:o})=>{const s=ra(),{tag:a=""}=Qs();return C(vh,{getVisits:(f,h)=>n({tag:a,query:mh(f),doIntervalFallback:h}),cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:f=>t(`tag_${a}_visits.csv`,f),children:C($1e,{tagVisits:r,goBack:s,colorGenerator:e})})},()=>[Jr.visits]),B1e=(e,t)=>{e.serviceFactory("MapModal",()=>ZF),e.serviceFactory("ShortUrlVisits",F1e,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo","settings"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",j1e,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo","settings"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",y1e,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo","settings"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",b1e,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo","settings"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",_1e,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo","settings"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>d1e),e.serviceFactory("getShortUrlVisits",k1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetShortUrlVisits",ct("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",N1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetTagVisits",ct("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",ope,"buildShlinkApiClient"),e.serviceFactory("cancelGetDomainVisits",ct("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",T1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetOrphanVisits",ct("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",x1e,"buildShlinkApiClient"),e.serviceFactory("cancelGetNonOrphanVisits",ct("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>uh),e.serviceFactory("loadVisitsOverview",D1e,"buildShlinkApiClient"),e.serviceFactory("visitsOverviewReducerCreator",A1e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",ct("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",spe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",ct("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",S1e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",ct("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",O1e,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",ct("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",M1e,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",ct("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",L1e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",ct("reducer"),"tagVisitsReducerCreator")},ai=new Pq,{container:pT}=ai,z1e=(e,t)=>(...n)=>e[t](...n),U1e=(e,t)=>({...e,[t]:z1e(pT,t)}),sa=(e,t=[])=>ZW(e?RI(e):null,t.reduce(U1e,{}));zse(ai,sa);Cae(ai,sa);UX(ai);Ive(ai,sa);fme(ai,sa);Rye(ai,sa);B1e(ai,sa);Z_e(ai);bpe(ai);Dme(ai,sa);vpe(ai,sa);var mT={},ly={},V1e={get exports(){return ly},set exports(e){ly=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var c=[],f=0;f$.length)&&(I=$.length);for(var B=0,re=Array(I);BL5({servers:nme,selectedServer:e.selectedServerReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlDetail:e.shortUrlDetailReducer,shortUrlVisits:e.shortUrlVisitsReducer,tagVisits:e.tagVisitsReducer,domainVisits:e.domainVisitsReducer,orphanVisits:e.orphanVisitsReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,mercureInfo:e.mercureInfoReducer,settings:Eme,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,appUpdated:Bse,sidebar:mae}),W1e=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},Y1e=!0,o$={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},q1e=W1e(mT.load(o$)),G1e=e=>use({devTools:!Y1e,reducer:H1e(e),preloadedState:q1e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).prepend(e.selectServerListener.middleware).concat(mT.save(o$))}),Z1e=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function K1e(e){if("serviceWorker"in navigator){if(new URL(Wg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Wg.homepage}/service-worker.js`;Z1e?(X1e(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):s$(n,e)})}}function s$(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function X1e(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):s$(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const Q1e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",J1e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",ebe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",tbe=()=>{delete NL.Icon.Default.prototype._getIconUrl,NL.Icon.Default.mergeOptions({iconRetinaUrl:J1e,iconUrl:Q1e,shadowUrl:ebe})};tbe();const a$=G1e(pT),{App:nbe,ScrollToTop:rbe,ErrorHandler:ibe,appUpdateAvailable:obe}=pT;U4(document.getElementById("root")).render(C(KW,{store:a$,children:C(QY,{basename:Wg.homepage,children:C(ibe,{children:C(rbe,{children:C(nbe,{})})})})}));K1e({onUpdate(){a$.dispatch(obe())}}); diff --git a/develop/assets/index-8981c306.js b/develop/assets/index-8981c306.js deleted file mode 100644 index 97f432f9..00000000 --- a/develop/assets/index-8981c306.js +++ /dev/null @@ -1,1009 +0,0 @@ -var f7=Object.defineProperty;var d7=(e,t,n)=>t in e?f7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Se=(e,t,n)=>(d7(e,typeof t!="symbol"?t+"":t,n),n);function h7(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function NL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Lf={},m7={get exports(){return Lf},set exports(e){Lf=e}},cy={},H={},g7={get exports(){return H},set exports(e){H=e}},st={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Rd=Symbol.for("react.element"),v7=Symbol.for("react.portal"),y7=Symbol.for("react.fragment"),_7=Symbol.for("react.strict_mode"),b7=Symbol.for("react.profiler"),w7=Symbol.for("react.provider"),x7=Symbol.for("react.context"),S7=Symbol.for("react.forward_ref"),C7=Symbol.for("react.suspense"),E7=Symbol.for("react.memo"),T7=Symbol.for("react.lazy"),fO=Symbol.iterator;function O7(e){return e===null||typeof e!="object"?null:(e=fO&&e[fO]||e["@@iterator"],typeof e=="function"?e:null)}var LL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},DL=Object.assign,AL={};function Vc(e,t,n){this.props=e,this.context=t,this.refs=AL,this.updater=n||LL}Vc.prototype.isReactComponent={};Vc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Vc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function IL(){}IL.prototype=Vc.prototype;function kx(e,t,n){this.props=e,this.context=t,this.refs=AL,this.updater=n||LL}var Mx=kx.prototype=new IL;Mx.constructor=kx;DL(Mx,Vc.prototype);Mx.isPureReactComponent=!0;var dO=Array.isArray,FL=Object.prototype.hasOwnProperty,Rx={current:null},$L={key:!0,ref:!0,__self:!0,__source:!0};function jL(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)FL.call(t,r)&&!$L.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,ie=K[B];if(0>>1;Bi(re,I))sei(me,re)?(K[B]=me,K[se]=I,B=se):(K[B]=re,K[G]=I,B=G);else if(sei(me,I))K[B]=me,K[se]=I,B=se;else break e}}return $}function i(K,$){var I=K.sortIndex-$.sortIndex;return I!==0?I:K.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],f=1,h=null,p=3,m=!1,g=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(K){for(var $=n(c);$!==null;){if($.callback===null)r(c);else if($.startTime<=K)r(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(c)}}function E(K){if(v=!1,x(K),!g)if(n(l)!==null)g=!0,ne(P);else{var $=n(c);$!==null&&le(E,$.startTime-K)}}function P(K,$){g=!1,v&&(v=!1,_(D),D=-1),m=!0;var I=p;try{for(x($),h=n(l);h!==null&&(!(h.expirationTime>$)||K&&!Y());){var B=h.callback;if(typeof B=="function"){h.callback=null,p=h.priorityLevel;var ie=B(h.expirationTime<=$);$=e.unstable_now(),typeof ie=="function"?h.callback=ie:h===n(l)&&r(l),x($)}else r(l);h=n(l)}if(h!==null)var W=!0;else{var G=n(c);G!==null&&le(E,G.startTime-$),W=!1}return W}finally{h=null,p=I,m=!1}}var k=!1,N=null,D=-1,U=5,A=-1;function Y(){return!(e.unstable_now()-AK||125B?(K.sortIndex=I,t(c,K),n(l)===null&&K===n(c)&&(v?(_(D),D=-1):v=!0,le(E,I-B))):(K.sortIndex=ie,t(l,K),g||m||(g=!0,ne(P))),K},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(K){var $=p;return function(){var I=p;p=$;try{return K.apply(this,arguments)}finally{p=I}}}})(zL);(function(e){e.exports=zL})(j7);/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var UL=H,Dr=Qb;function Te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jb=Object.prototype.hasOwnProperty,B7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pO={},mO={};function z7(e){return Jb.call(mO,e)?!0:Jb.call(pO,e)?!1:B7.test(e)?mO[e]=!0:(pO[e]=!0,!1)}function U7(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function V7(e,t,n,r){if(t===null||typeof t>"u"||U7(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hr(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new hr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lx=/[\-:]([a-z])/g;function Dx(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Lx,Dx);Yn[t]=new hr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Lx,Dx);Yn[t]=new hr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Lx,Dx);Yn[t]=new hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new hr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ax(e,t,n,r){var i=Yn.hasOwnProperty(t)?Yn[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{f0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ju(e):""}function H7(e){switch(e.tag){case 5:return ju(e.type);case 16:return ju("Lazy");case 13:return ju("Suspense");case 19:return ju("SuspenseList");case 0:case 2:case 15:return e=d0(e.type,!1),e;case 11:return e=d0(e.type.render,!1),e;case 1:return e=d0(e.type,!0),e;default:return""}}function r1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ul:return"Fragment";case zl:return"Portal";case e1:return"Profiler";case Ix:return"StrictMode";case t1:return"Suspense";case n1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WL:return(e.displayName||"Context")+".Consumer";case HL:return(e._context.displayName||"Context")+".Provider";case Fx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $x:return t=e.displayName||null,t!==null?t:r1(e.type)||"Memo";case Qo:t=e._payload,e=e._init;try{return r1(e(t))}catch{}}return null}function W7(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return r1(t);case 8:return t===Ix?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ls(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y7(e){var t=qL(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zh(e){e._valueTracker||(e._valueTracker=Y7(e))}function GL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qL(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ag(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function i1(e,t){var n=t.checked;return Yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vO(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ls(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ZL(e,t){t=t.checked,t!=null&&Ax(e,"checked",t,!1)}function o1(e,t){ZL(e,t);var n=Ls(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?s1(e,t.type,n):t.hasOwnProperty("defaultValue")&&s1(e,t.type,Ls(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yO(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function s1(e,t,n){(t!=="number"||ag(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bu=Array.isArray;function rc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Uh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Af(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},q7=["Webkit","ms","Moz","O"];Object.keys(tf).forEach(function(e){q7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tf[t]=tf[e]})});function JL(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||tf.hasOwnProperty(e)&&tf[e]?(""+t).trim():t+"px"}function eD(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=JL(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var G7=Yt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function c1(e,t){if(t){if(G7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function u1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var f1=null;function jx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var d1=null,ic=null,oc=null;function wO(e){if(e=Dd(e)){if(typeof d1!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=py(t),d1(e.stateNode,e.type,t))}}function tD(e){ic?oc?oc.push(e):oc=[e]:ic=e}function nD(){if(ic){var e=ic,t=oc;if(oc=ic=null,wO(e),t)for(e=0;e>>=0,e===0?32:31-(oj(e)/sj|0)|0}var Vh=64,Hh=4194304;function zu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=zu(a):(o&=s,o!==0&&(r=zu(o)))}else s=n&~i,s!==0?r=zu(s):o!==0&&(r=zu(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Nd(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xi(t),e[t]=n}function uj(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=rf),MO=String.fromCharCode(32),RO=!1;function xD(e,t){switch(e){case"keyup":return $j.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vl=!1;function Bj(e,t){switch(e){case"compositionend":return SD(t);case"keypress":return t.which!==32?null:(RO=!0,MO);case"textInput":return e=t.data,e===MO&&RO?null:e;default:return null}}function zj(e,t){if(Vl)return e==="compositionend"||!qx&&xD(e,t)?(e=bD(),qp=Hx=ss=null,Vl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=AO(n)}}function OD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?OD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PD(){for(var e=window,t=ag();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ag(e.document)}return t}function Gx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Kj(e){var t=PD(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&OD(n.ownerDocument.documentElement,n)){if(r!==null&&Gx(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=IO(n,o);var s=IO(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Hl=null,y1=null,sf=null,_1=!1;function FO(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_1||Hl==null||Hl!==ag(r)||(r=Hl,"selectionStart"in r&&Gx(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),sf&&zf(sf,r)||(sf=r,r=pg(y1,"onSelect"),0ql||(e.current=E1[ql],E1[ql]=null,ql--)}function Ot(e,t){ql++,E1[ql]=e.current,e.current=t}var Ds={},tr=qs(Ds),_r=qs(!1),Wa=Ds;function bc(e,t){var n=e.type.contextTypes;if(!n)return Ds;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function br(e){return e=e.childContextTypes,e!=null}function gg(){Nt(_r),Nt(tr)}function HO(e,t,n){if(tr.current!==Ds)throw Error(Te(168));Ot(tr,t),Ot(_r,n)}function FD(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Te(108,W7(e)||"Unknown",i));return Yt({},n,r)}function vg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ds,Wa=tr.current,Ot(tr,e),Ot(_r,_r.current),!0}function WO(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=FD(e,t,Wa),r.__reactInternalMemoizedMergedChildContext=e,Nt(_r),Nt(tr),Ot(tr,e)):Nt(_r),Ot(_r,n)}var ho=null,my=!1,T0=!1;function $D(e){ho===null?ho=[e]:ho.push(e)}function lB(e){my=!0,$D(e)}function Gs(){if(!T0&&ho!==null){T0=!0;var e=0,t=wt;try{var n=ho;for(wt=1;e>=s,i-=s,yo=1<<32-xi(t)+i|n<D?(U=N,N=null):U=N.sibling;var A=p(_,N,x[D],E);if(A===null){N===null&&(N=U);break}e&&N&&A.alternate===null&&t(_,N),b=o(A,b,D),k===null?P=A:k.sibling=A,k=A,N=U}if(D===x.length)return n(_,N),$t&&ba(_,D),P;if(N===null){for(;DD?(U=N,N=null):U=N.sibling;var Y=p(_,N,A.value,E);if(Y===null){N===null&&(N=U);break}e&&N&&Y.alternate===null&&t(_,N),b=o(Y,b,D),k===null?P=Y:k.sibling=Y,k=Y,N=U}if(A.done)return n(_,N),$t&&ba(_,D),P;if(N===null){for(;!A.done;D++,A=x.next())A=h(_,A.value,E),A!==null&&(b=o(A,b,D),k===null?P=A:k.sibling=A,k=A);return $t&&ba(_,D),P}for(N=r(_,N);!A.done;D++,A=x.next())A=m(N,_,D,A.value,E),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?D:A.key),b=o(A,b,D),k===null?P=A:k.sibling=A,k=A);return e&&N.forEach(function(q){return t(_,q)}),$t&&ba(_,D),P}function w(_,b,x,E){if(typeof x=="object"&&x!==null&&x.type===Ul&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Bh:e:{for(var P=x.key,k=b;k!==null;){if(k.key===P){if(P=x.type,P===Ul){if(k.tag===7){n(_,k.sibling),b=i(k,x.props.children),b.return=_,_=b;break e}}else if(k.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Qo&&QO(P)===k.type){n(_,k.sibling),b=i(k,x.props),b.ref=Cu(_,k,x),b.return=_,_=b;break e}n(_,k);break}else t(_,k);k=k.sibling}x.type===Ul?(b=Ia(x.props.children,_.mode,E,x.key),b.return=_,_=b):(E=tm(x.type,x.key,x.props,null,_.mode,E),E.ref=Cu(_,b,x),E.return=_,_=E)}return s(_);case zl:e:{for(k=x.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(_,b.sibling),b=i(b,x.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=D0(x,_.mode,E),b.return=_,_=b}return s(_);case Qo:return k=x._init,w(_,b,k(x._payload),E)}if(Bu(x))return g(_,b,x,E);if(_u(x))return v(_,b,x,E);Xh(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,x),b.return=_,_=b):(n(_,b),b=L0(x,_.mode,E),b.return=_,_=b),s(_)):n(_,b)}return w}var xc=YD(!0),qD=YD(!1),Ad={},Gi=qs(Ad),Wf=qs(Ad),Yf=qs(Ad);function Na(e){if(e===Ad)throw Error(Te(174));return e}function rS(e,t){switch(Ot(Yf,t),Ot(Wf,e),Ot(Gi,Ad),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:l1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=l1(t,e)}Nt(Gi),Ot(Gi,t)}function Sc(){Nt(Gi),Nt(Wf),Nt(Yf)}function GD(e){Na(Yf.current);var t=Na(Gi.current),n=l1(t,e.type);t!==n&&(Ot(Wf,e),Ot(Gi,n))}function iS(e){Wf.current===e&&(Nt(Gi),Nt(Wf))}var Vt=qs(0);function Sg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var O0=[];function oS(){for(var e=0;en?n:4,e(!0);var r=P0.transition;P0.transition={};try{e(!1),t()}finally{wt=n,P0.transition=r}}function u4(){return ti().memoizedState}function dB(e,t,n){var r=Cs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},f4(e))d4(t,n);else if(n=UD(e,t,n,r),n!==null){var i=fr();Si(n,e,r,i),h4(n,t,r)}}function hB(e,t,n){var r=Cs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(f4(e))d4(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Pi(a,s)){var l=t.interleaved;l===null?(i.next=i,tS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=UD(e,t,i,r),n!==null&&(i=fr(),Si(n,e,r,i),h4(n,t,r))}}function f4(e){var t=e.alternate;return e===Wt||t!==null&&t===Wt}function d4(e,t){af=Cg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function h4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zx(e,n)}}var Eg={readContext:ei,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useInsertionEffect:Zn,useLayoutEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useMutableSource:Zn,useSyncExternalStore:Zn,useId:Zn,unstable_isNewReconciler:!1},pB={readContext:ei,useCallback:function(e,t){return ji().memoizedState=[e,t===void 0?null:t],e},useContext:ei,useEffect:eP,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xp(4194308,4,o4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xp(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xp(4,2,e,t)},useMemo:function(e,t){var n=ji();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ji();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dB.bind(null,Wt,e),[r.memoizedState,e]},useRef:function(e){var t=ji();return e={current:e},t.memoizedState=e},useState:JO,useDebugValue:uS,useDeferredValue:function(e){return ji().memoizedState=e},useTransition:function(){var e=JO(!1),t=e[0];return e=fB.bind(null,e[1]),ji().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Wt,i=ji();if($t){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),Pn===null)throw Error(Te(349));qa&30||XD(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,eP(JD.bind(null,r,o,e),[e]),r.flags|=2048,Zf(9,QD.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ji(),t=Pn.identifierPrefix;if($t){var n=_o,r=yo;n=(r&~(1<<32-xi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ui]=t,e[Hf]=r,x4(e,t,!1,!1),t.stateNode=e;e:{switch(s=u1(n,r),n){case"dialog":Pt("cancel",e),Pt("close",e),i=r;break;case"iframe":case"object":case"embed":Pt("load",e),i=r;break;case"video":case"audio":for(i=0;iEc&&(t.flags|=128,r=!0,Eu(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sg(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Eu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!$t)return Kn(t),null}else 2*rn()-o.renderingStartTime>Ec&&n!==1073741824&&(t.flags|=128,r=!0,Eu(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=rn(),t.sibling=null,n=Vt.current,Ot(Vt,r?n&1|2:n&1),t):(Kn(t),null);case 22:case 23:return gS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Or&1073741824&&(Kn(t),t.subtreeFlags&6&&(t.flags|=8192)):Kn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function xB(e,t){switch(Kx(t),t.tag){case 1:return br(t.type)&&gg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sc(),Nt(_r),Nt(tr),oS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iS(t),null;case 13:if(Nt(Vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));wc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nt(Vt),null;case 4:return Sc(),null;case 10:return eS(t.type._context),null;case 22:case 23:return gS(),null;case 24:return null;default:return null}}var Jh=!1,Jn=!1,SB=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function Xl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function F1(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var cP=!1;function CB(e,t){if(b1=dg,e=PD(),Gx(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(l=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===e)break t;if(p===n&&++c===i&&(a=s),p===o&&++f===r&&(l=s),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(w1={focusedElem:e,selectionRange:n},dg=!1,Ue=t;Ue!==null;)if(t=Ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ue=e;else for(;Ue!==null;){t=Ue;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,w=g.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?v:hi(t.type,v),w);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(E){Gt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Ue=e;break}Ue=t.return}return g=cP,cP=!1,g}function lf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&F1(t,n,o)}i=i.next}while(i!==r)}}function yy(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function $1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function E4(e){var t=e.alternate;t!==null&&(e.alternate=null,E4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ui],delete t[Hf],delete t[C1],delete t[sB],delete t[aB])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function T4(e){return e.tag===5||e.tag===3||e.tag===4}function uP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||T4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function j1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mg));else if(r!==4&&(e=e.child,e!==null))for(j1(e,t,n),e=e.sibling;e!==null;)j1(e,t,n),e=e.sibling}function B1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(B1(e,t,n),e=e.sibling;e!==null;)B1(e,t,n),e=e.sibling}var Un=null,pi=!1;function qo(e,t,n){for(n=n.child;n!==null;)O4(e,t,n),n=n.sibling}function O4(e,t,n){if(qi&&typeof qi.onCommitFiberUnmount=="function")try{qi.onCommitFiberUnmount(uy,n)}catch{}switch(n.tag){case 5:Jn||Xl(n,t);case 6:var r=Un,i=pi;Un=null,qo(e,t,n),Un=r,pi=i,Un!==null&&(pi?(e=Un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Un.removeChild(n.stateNode));break;case 18:Un!==null&&(pi?(e=Un,n=n.stateNode,e.nodeType===8?E0(e.parentNode,n):e.nodeType===1&&E0(e,n),jf(e)):E0(Un,n.stateNode));break;case 4:r=Un,i=pi,Un=n.stateNode.containerInfo,pi=!0,qo(e,t,n),Un=r,pi=i;break;case 0:case 11:case 14:case 15:if(!Jn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&F1(n,t,s),i=i.next}while(i!==r)}qo(e,t,n);break;case 1:if(!Jn&&(Xl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Gt(n,t,a)}qo(e,t,n);break;case 21:qo(e,t,n);break;case 22:n.mode&1?(Jn=(r=Jn)||n.memoizedState!==null,qo(e,t,n),Jn=r):qo(e,t,n);break;default:qo(e,t,n)}}function fP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new SB),t.forEach(function(r){var i=LB.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function di(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*TB(r/1960))-r,10e?16:e,as===null)var r=!1;else{if(e=as,as=null,Pg=0,ft&6)throw Error(Te(331));var i=ft;for(ft|=4,Ue=e.current;Ue!==null;){var o=Ue,s=o.child;if(Ue.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lrn()-pS?Aa(e,0):hS|=n),wr(e,t)}function A4(e,t){t===0&&(e.mode&1?(t=Hh,Hh<<=1,!(Hh&130023424)&&(Hh=4194304)):t=1);var n=fr();e=To(e,t),e!==null&&(Nd(e,t,n),wr(e,n))}function NB(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),A4(e,n)}function LB(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),A4(e,n)}var I4;I4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_r.current)yr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yr=!1,bB(e,t,n);yr=!!(e.flags&131072)}else yr=!1,$t&&t.flags&1048576&&jD(t,_g,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qp(e,t),e=t.pendingProps;var i=bc(t,tr.current);ac(t,n),i=aS(null,t,r,e,i,n);var o=lS();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,br(r)?(o=!0,vg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,nS(t),i.updater=gy,t.stateNode=i,i._reactInternals=t,M1(t,r,e,n),t=L1(null,t,r,!0,o,n)):(t.tag=0,$t&&o&&Zx(t),lr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qp(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=AB(r),e=hi(r,e),i){case 0:t=N1(null,t,r,e,n);break e;case 1:t=sP(null,t,r,e,n);break e;case 11:t=iP(null,t,r,e,n);break e;case 14:t=oP(null,t,r,hi(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),N1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),sP(e,t,r,i,n);case 3:e:{if(_4(t),e===null)throw Error(Te(387));r=t.pendingProps,o=t.memoizedState,i=o.element,VD(e,t),xg(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Cc(Error(Te(423)),t),t=aP(e,t,r,n,i);break e}else if(r!==i){i=Cc(Error(Te(424)),t),t=aP(e,t,r,n,i);break e}else for(kr=ws(t.stateNode.containerInfo.firstChild),Rr=t,$t=!0,gi=null,n=qD(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wc(),r===i){t=Oo(e,t,n);break e}lr(e,t,r,n)}t=t.child}return t;case 5:return GD(t),e===null&&O1(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,x1(r,i)?s=null:o!==null&&x1(r,o)&&(t.flags|=32),y4(e,t),lr(e,t,s,n),t.child;case 6:return e===null&&O1(t),null;case 13:return b4(e,t,n);case 4:return rS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xc(t,null,r,n):lr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),iP(e,t,r,i,n);case 7:return lr(e,t,t.pendingProps,n),t.child;case 8:return lr(e,t,t.pendingProps.children,n),t.child;case 12:return lr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ot(bg,r._currentValue),r._currentValue=s,o!==null)if(Pi(o.value,s)){if(o.children===i.children&&!_r.current){t=Oo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=xo(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),P1(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Te(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),P1(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}lr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ac(t,n),i=ei(i),r=r(i),t.flags|=1,lr(e,t,r,n),t.child;case 14:return r=t.type,i=hi(r,t.pendingProps),i=hi(r.type,i),oP(e,t,r,i,n);case 15:return g4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),Qp(e,t),t.tag=1,br(r)?(e=!0,vg(t)):e=!1,ac(t,n),WD(t,r,i),M1(t,r,i,n),L1(null,t,r,!0,e,n);case 19:return w4(e,t,n);case 22:return v4(e,t,n)}throw Error(Te(156,t.tag))};function F4(e,t){return cD(e,t)}function DB(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(e,t,n,r){return new DB(e,t,n,r)}function yS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function AB(e){if(typeof e=="function")return yS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fx)return 11;if(e===$x)return 14}return 2}function Es(e,t){var n=e.alternate;return n===null?(n=Gr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function tm(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")yS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ul:return Ia(n.children,i,o,t);case Ix:s=8,i|=8;break;case e1:return e=Gr(12,n,t,i|2),e.elementType=e1,e.lanes=o,e;case t1:return e=Gr(13,n,t,i),e.elementType=t1,e.lanes=o,e;case n1:return e=Gr(19,n,t,i),e.elementType=n1,e.lanes=o,e;case YL:return by(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case HL:s=10;break e;case WL:s=9;break e;case Fx:s=11;break e;case $x:s=14;break e;case Qo:s=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=Gr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ia(e,t,n,r){return e=Gr(7,e,r,t),e.lanes=n,e}function by(e,t,n,r){return e=Gr(22,e,r,t),e.elementType=YL,e.lanes=n,e.stateNode={isHidden:!1},e}function L0(e,t,n){return e=Gr(6,e,null,t),e.lanes=n,e}function D0(e,t,n){return t=Gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function IB(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=p0(0),this.expirationTimes=p0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=p0(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _S(e,t,n,r,i,o,s,a,l){return e=new IB(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Gr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nS(o),e}function FB(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Ir})($7);const Fa=NL(Ha);var z4,_P=Ha;z4=_P.createRoot,_P.hydrateRoot;var Rg={},UB={get exports(){return Rg},set exports(e){Rg=e}},U4={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Tc=H;function VB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var HB=typeof Object.is=="function"?Object.is:VB,WB=Tc.useState,YB=Tc.useEffect,qB=Tc.useLayoutEffect,GB=Tc.useDebugValue;function ZB(e,t){var n=t(),r=WB({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return qB(function(){i.value=n,i.getSnapshot=t,A0(i)&&o({inst:i})},[e,n,t]),YB(function(){return A0(i)&&o({inst:i}),e(function(){A0(i)&&o({inst:i})})},[e]),GB(n),n}function A0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!HB(e,n)}catch{return!0}}function KB(e,t){return t()}var XB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?KB:ZB;U4.useSyncExternalStore=Tc.useSyncExternalStore!==void 0?Tc.useSyncExternalStore:XB;(function(e){e.exports=U4})(UB);var bP={},QB={get exports(){return bP},set exports(e){bP=e}},V4={};/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ey=H,JB=Rg;function e9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var t9=typeof Object.is=="function"?Object.is:e9,n9=JB.useSyncExternalStore,r9=Ey.useRef,i9=Ey.useEffect,o9=Ey.useMemo,s9=Ey.useDebugValue;V4.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=r9(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=o9(function(){function l(m){if(!c){if(c=!0,f=m,m=r(m),i!==void 0&&s.hasValue){var g=s.value;if(i(g,m))return h=g}return h=m}if(g=h,t9(f,m))return g;var v=r(m);return i!==void 0&&i(g,v)?g:(f=m,h=v)}var c=!1,f,h,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var a=n9(e,o[0],o[1]);return i9(function(){s.hasValue=!0,s.value=a},[a]),s9(a),a};(function(e){e.exports=V4})(QB);function a9(e){e()}let H4=a9;const l9=e=>H4=e,c9=()=>H4,W4=H.createContext(null),u9=()=>{throw new Error("uSES not initialized!")};function cc(){return cc=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var W1={},f9={get exports(){return W1},set exports(e){W1=e}},xt={};/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var kn=typeof Symbol=="function"&&Symbol.for,CS=kn?Symbol.for("react.element"):60103,ES=kn?Symbol.for("react.portal"):60106,Ty=kn?Symbol.for("react.fragment"):60107,Oy=kn?Symbol.for("react.strict_mode"):60108,Py=kn?Symbol.for("react.profiler"):60114,ky=kn?Symbol.for("react.provider"):60109,My=kn?Symbol.for("react.context"):60110,TS=kn?Symbol.for("react.async_mode"):60111,Ry=kn?Symbol.for("react.concurrent_mode"):60111,Ny=kn?Symbol.for("react.forward_ref"):60112,Ly=kn?Symbol.for("react.suspense"):60113,d9=kn?Symbol.for("react.suspense_list"):60120,Dy=kn?Symbol.for("react.memo"):60115,Ay=kn?Symbol.for("react.lazy"):60116,h9=kn?Symbol.for("react.block"):60121,p9=kn?Symbol.for("react.fundamental"):60117,m9=kn?Symbol.for("react.responder"):60118,g9=kn?Symbol.for("react.scope"):60119;function $r(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case CS:switch(e=e.type,e){case TS:case Ry:case Ty:case Py:case Oy:case Ly:return e;default:switch(e=e&&e.$$typeof,e){case My:case Ny:case Ay:case Dy:case ky:return e;default:return t}}case ES:return t}}}function Y4(e){return $r(e)===Ry}xt.AsyncMode=TS;xt.ConcurrentMode=Ry;xt.ContextConsumer=My;xt.ContextProvider=ky;xt.Element=CS;xt.ForwardRef=Ny;xt.Fragment=Ty;xt.Lazy=Ay;xt.Memo=Dy;xt.Portal=ES;xt.Profiler=Py;xt.StrictMode=Oy;xt.Suspense=Ly;xt.isAsyncMode=function(e){return Y4(e)||$r(e)===TS};xt.isConcurrentMode=Y4;xt.isContextConsumer=function(e){return $r(e)===My};xt.isContextProvider=function(e){return $r(e)===ky};xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===CS};xt.isForwardRef=function(e){return $r(e)===Ny};xt.isFragment=function(e){return $r(e)===Ty};xt.isLazy=function(e){return $r(e)===Ay};xt.isMemo=function(e){return $r(e)===Dy};xt.isPortal=function(e){return $r(e)===ES};xt.isProfiler=function(e){return $r(e)===Py};xt.isStrictMode=function(e){return $r(e)===Oy};xt.isSuspense=function(e){return $r(e)===Ly};xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ty||e===Ry||e===Py||e===Oy||e===Ly||e===d9||typeof e=="object"&&e!==null&&(e.$$typeof===Ay||e.$$typeof===Dy||e.$$typeof===ky||e.$$typeof===My||e.$$typeof===Ny||e.$$typeof===p9||e.$$typeof===m9||e.$$typeof===g9||e.$$typeof===h9)};xt.typeOf=$r;(function(e){e.exports=xt})(f9);var OS=W1,v9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},y9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_9={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},q4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},PS={};PS[OS.ForwardRef]=_9;PS[OS.Memo]=q4;function wP(e){return OS.isMemo(e)?q4:PS[e.$$typeof]||v9}var b9=Object.defineProperty,w9=Object.getOwnPropertyNames,xP=Object.getOwnPropertySymbols,x9=Object.getOwnPropertyDescriptor,S9=Object.getPrototypeOf,SP=Object.prototype;function G4(e,t,n){if(typeof t!="string"){if(SP){var r=S9(t);r&&r!==SP&&G4(e,r,n)}var i=w9(t);xP&&(i=i.concat(xP(t)));for(var o=wP(e),s=wP(t),a=0;at(i(...o)))}return n}function q1(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function EP(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):e.length!==1}function Z4(e,t){return function(r,{displayName:i}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=e,o.dependsOnOwnProps=EP(e);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=EP(c),c=o(a,l)),c},o}}function RS(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function N9(e){return e&&typeof e=="object"?q1(t=>R9(e,t)):e?typeof e=="function"?Z4(e):RS(e,"mapDispatchToProps"):q1(t=>({dispatch:t}))}function L9(e){return e?typeof e=="function"?Z4(e):RS(e,"mapStateToProps"):q1(()=>({}))}function D9(e,t,n){return cc({},n,e,t)}function A9(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(l,c,f){const h=e(l,c,f);return o?i(h,s)||(s=h):(o=!0,s=h),s}}}function I9(e){return e?typeof e=="function"?A9(e):RS(e,"mergeProps"):()=>D9}function F9(){const e=c9();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const TP={notify(){},get:()=>[]};function K4(e,t){let n,r=TP;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function s(){f.onStateChange&&f.onStateChange()}function a(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=F9())}function c(){n&&(n(),n=void 0,r.clear(),r=TP)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const $9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ng=$9?H.useLayoutEffect:H.useEffect;function OP(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function I0(e,t){if(OP(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i{X4=e},z9=[null,null];function U9(e,t,n){Ng(()=>e(...t),n)}function V9(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function H9(e,t,n,r,i,o,s,a,l,c,f){if(!e)return()=>{};let h=!1,p=null;const m=()=>{if(h||!a.current)return;const v=t.getState();let w,_;try{w=r(v,i.current)}catch(b){_=b,p=b}_||(p=null),w===o.current?s.current||c():(o.current=w,l.current=w,s.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function W9(e,t){return e===t}function Y9(e,t,n,{pure:r,areStatesEqual:i=W9,areOwnPropsEqual:o=I0,areStatePropsEqual:s=I0,areMergedPropsEqual:a=I0,forwardRef:l=!1,context:c=W4}={}){const f=c,h=L9(e),p=N9(t),m=I9(n),g=Boolean(e);return w=>{const _=w.displayName||w.name||"Component",b=`Connect(${_})`,x={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:_,WrappedComponent:w,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function E(N){const[D,U,A]=H.useMemo(()=>{const{reactReduxForwardedRef:X}=N,ae=SS(N,j9);return[N.context,X,ae]},[N]),Y=H.useMemo(()=>D&&D.Consumer&&Y1.isContextConsumer(z.createElement(D.Consumer,null))?D:f,[D,f]),q=H.useContext(Y),ee=Boolean(N.store)&&Boolean(N.store.getState)&&Boolean(N.store.dispatch),Z=Boolean(q)&&Boolean(q.store),te=ee?N.store:q.store,ne=Z?q.getServerState:te.getState,le=H.useMemo(()=>M9(te.dispatch,x),[te]),[K,$]=H.useMemo(()=>{if(!g)return z9;const X=K4(te,ee?void 0:q.subscription),ae=X.notifyNestedSubs.bind(X);return[X,ae]},[te,ee,q]),I=H.useMemo(()=>ee?q:cc({},q,{subscription:K}),[ee,q,K]),B=H.useRef(),ie=H.useRef(A),W=H.useRef(),G=H.useRef(!1);H.useRef(!1);const re=H.useRef(!1),se=H.useRef();Ng(()=>(re.current=!0,()=>{re.current=!1}),[]);const me=H.useMemo(()=>()=>W.current&&A===ie.current?W.current:le(te.getState(),A),[te,A]),O=H.useMemo(()=>ae=>K?H9(g,te,K,le,ie,B,G,re,W,$,ae):()=>{},[K]);U9(V9,[ie,B,G,A,W,$]);let R;try{R=X4(O,me,ne?()=>le(ne(),A):me)}catch(X){throw se.current&&(X.message+=` -The error may be correlated with this previous error: -${se.current.stack} - -`),X}Ng(()=>{se.current=void 0,W.current=void 0,B.current=R});const F=H.useMemo(()=>z.createElement(w,cc({},R,{ref:U})),[U,w,R]);return H.useMemo(()=>g?z.createElement(Y.Provider,{value:I},F):F,[Y,F,I])}const k=z.memo(E);if(k.WrappedComponent=w,k.displayName=E.displayName=b,l){const D=z.forwardRef(function(A,Y){return z.createElement(k,cc({},A,{reactReduxForwardedRef:Y}))});return D.displayName=b,D.WrappedComponent=w,CP(D,w)}return CP(k,w)}}function q9({store:e,context:t,children:n,serverState:r}){const i=H.useMemo(()=>{const a=K4(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0}},[e,r]),o=H.useMemo(()=>e.getState(),[e]);Ng(()=>{const{subscription:a}=i;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),o!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[i,o]);const s=t||W4;return z.createElement(s.Provider,{value:i},n)}B9(Rg.useSyncExternalStore);l9(Ha.unstable_batchedUpdates);/** - * @remix-run/router v1.2.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Lg(){return Lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Z9(){return Math.random().toString(36).substr(2,8)}function kP(e){return{usr:e.state,key:e.key}}function G1(e,t,n,r){return n===void 0&&(n=null),Lg({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yc(t):t,{state:n,key:t&&t.key||r||Z9()})}function Xf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function K9(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:Xf(e);return hn(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function X9(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=ls.Pop,l=null;function c(){a=ls.Pop,l&&l({action:a,location:p.location})}function f(m,g){a=ls.Push;let v=G1(p.location,m,g);n&&n(v,m);let w=kP(v),_=p.createHref(v);try{s.pushState(w,"",_)}catch{i.location.assign(_)}o&&l&&l({action:a,location:p.location})}function h(m,g){a=ls.Replace;let v=G1(p.location,m,g);n&&n(v,m);let w=kP(v),_=p.createHref(v);s.replaceState(w,"",_),o&&l&&l({action:a,location:p.location})}let p={get action(){return a},get location(){return e(i,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(PP,c),l=m,()=>{i.removeEventListener(PP,c),l=null}},createHref(m){return t(i,m)},encodeLocation(m){let g=K9(typeof m=="string"?m:Xf(m));return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(m){return s.go(m)}};return p}var MP;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(MP||(MP={}));function Q9(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yc(t):t,i=eA(r.pathname||"/",n);if(i==null)return null;let o=Q4(e);J9(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(hn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ts([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(hn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Q4(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:sz(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of J4(o.path))i(o,s,l)}),t}function J4(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=J4(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function J9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:az(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ez=/^:\w+$/,tz=3,nz=2,rz=1,iz=10,oz=-2,RP=e=>e==="*";function sz(e,t){let n=e.split("/"),r=n.length;return n.some(RP)&&(r+=oz),t&&(r+=nz),n.filter(i=>!RP(i)).reduce((i,o)=>i+(ez.test(o)?tz:o===""?rz:iz),r)}function az(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function lz(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{if(f==="*"){let p=a[h]||"";s=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=dz(a[h]||"",f),c},{}),pathname:o,pathnameBase:s,pattern:e}}function uz(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),NS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function fz(e){try{return decodeURI(e)}catch(t){return NS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function dz(e,t){try{return decodeURIComponent(e)}catch(n){return NS(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function eA(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function NS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hz(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Yc(e):e;return{pathname:n?n.startsWith("/")?n:pz(n,t):t,search:gz(r),hash:vz(i)}}function pz(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function F0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function tA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nA(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Yc(e):(i=Lg({},e),hn(!i.pathname||!i.pathname.includes("?"),F0("?","pathname","search",i)),hn(!i.pathname||!i.pathname.includes("#"),F0("#","pathname","hash",i)),hn(!i.search||!i.search.includes("#"),F0("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}a=h>=0?t[h]:"/"}let l=hz(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Ts=e=>e.join("/").replace(/\/\/+/g,"/"),mz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class yz{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function _z(e){return e instanceof yz}const bz=["post","put","patch","delete"];[...bz];/** - * React Router v6.6.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Z1(){return Z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,$0(i)&&o({inst:i})},[e,r,t]),Cz(()=>($0(i)&&o({inst:i}),e(()=>{$0(i)&&o({inst:i})})),[e]),Tz(r),r}function $0(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!xz(n,r)}catch{return!0}}function Pz(e,t,n){return t()}const kz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mz=!kz,Rz=Mz?Pz:Oz;"useSyncExternalStore"in Xb&&(e=>e.useSyncExternalStore)(Xb);const Nz=H.createContext(null),Lz=H.createContext(null),Yy=H.createContext(null),Id=H.createContext(null),qy=H.createContext(null),ul=H.createContext({outlet:null,matches:[]}),rA=H.createContext(null);function Dz(e,t){let{relative:n}=t===void 0?{}:t;qc()||hn(!1);let{basename:r,navigator:i}=H.useContext(Id),{hash:o,pathname:s,search:a}=LS(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Ts([r,s])),i.createHref({pathname:l,search:a,hash:o})}function qc(){return H.useContext(qy)!=null}function Mn(){return qc()||hn(!1),H.useContext(qy).location}function Io(){qc()||hn(!1);let{basename:e,navigator:t}=H.useContext(Id),{matches:n}=H.useContext(ul),{pathname:r}=Mn(),i=JSON.stringify(tA(n).map(a=>a.pathnameBase)),o=H.useRef(!1);return H.useEffect(()=>{o.current=!0}),H.useCallback(function(a,l){if(l===void 0&&(l={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let c=nA(a,JSON.parse(i),r,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:Ts([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,i,r])}function Zs(){let{matches:e}=H.useContext(ul),t=e[e.length-1];return t?t.params:{}}function LS(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=H.useContext(ul),{pathname:i}=Mn(),o=JSON.stringify(tA(r).map(s=>s.pathnameBase));return H.useMemo(()=>nA(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Az(e,t){qc()||hn(!1);let{navigator:n}=H.useContext(Id),r=H.useContext(Yy),{matches:i}=H.useContext(ul),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Mn(),c;if(t){var f;let v=typeof t=="string"?Yc(t):t;a==="/"||(f=v.pathname)!=null&&f.startsWith(a)||hn(!1),c=v}else c=l;let h=c.pathname||"/",p=a==="/"?h:h.slice(a.length)||"/",m=Q9(e,{pathname:p}),g=jz(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Ts([a,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:Ts([a,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r||void 0);return t&&g?H.createElement(qy.Provider,{value:{location:Z1({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ls.Pop}},g):g}function Iz(){let e=Vz(),t=_z(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return H.createElement(H.Fragment,null,H.createElement("h2",null,"Unhandled Thrown Error!"),H.createElement("h3",{style:{fontStyle:"italic"}},t),n?H.createElement("pre",{style:i},n):null,H.createElement("p",null,"💿 Hey developer 👋"),H.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H.createElement("code",{style:o},"errorElement")," props on ",H.createElement("code",{style:o},"")))}class Fz extends H.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?H.createElement(ul.Provider,{value:this.props.routeContext},H.createElement(rA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $z(e){let{routeContext:t,match:n,children:r}=e,i=H.useContext(Nz);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),H.createElement(ul.Provider,{value:t},r)}function jz(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));o>=0||hn(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,s,a)=>{let l=s.route.id?i==null?void 0:i[s.route.id]:null,c=n?s.route.errorElement||H.createElement(Iz,null):null,f=t.concat(r.slice(0,a+1)),h=()=>H.createElement($z,{match:s,routeContext:{outlet:o,matches:f}},l?c:s.route.element!==void 0?s.route.element:o);return n&&(s.route.errorElement||a===0)?H.createElement(Fz,{location:n.location,component:c,error:l,children:h(),routeContext:{outlet:null,matches:f}}):h()},null)}var NP;(function(e){e.UseRevalidator="useRevalidator"})(NP||(NP={}));var Dg;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Dg||(Dg={}));function Bz(e){let t=H.useContext(Yy);return t||hn(!1),t}function zz(e){let t=H.useContext(ul);return t||hn(!1),t}function Uz(e){let t=zz(),n=t.matches[t.matches.length-1];return n.route.id||hn(!1),n.route.id}function Vz(){var e;let t=H.useContext(rA),n=Bz(Dg.UseRouteError),r=Uz(Dg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function DS(e){let{to:t,replace:n,state:r,relative:i}=e;qc()||hn(!1);let o=H.useContext(Yy),s=Io();return H.useEffect(()=>{o&&o.navigation.state!=="idle"||s(t,{replace:n,state:r,relative:i})}),null}function yt(e){hn(!1)}function Hz(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ls.Pop,navigator:o,static:s=!1}=e;qc()&&hn(!1);let a=t.replace(/^\/*/,"/"),l=H.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Yc(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,g=H.useMemo(()=>{let v=eA(c,a);return v==null?null:{pathname:v,search:f,hash:h,state:p,key:m}},[a,c,f,h,p,m]);return g==null?null:H.createElement(Id.Provider,{value:l},H.createElement(qy.Provider,{children:n,value:{location:g,navigationType:i}}))}function Gy(e){let{children:t,location:n}=e,r=H.useContext(Lz),i=r&&!t?r.router.routes:K1(t);return Az(i,n)}var LP;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(LP||(LP={}));new Promise(()=>{});function K1(e,t){t===void 0&&(t=[]);let n=[];return H.Children.forEach(e,(r,i)=>{if(!H.isValidElement(r))return;if(r.type===H.Fragment){n.push.apply(n,K1(r.props.children,t));return}r.type!==yt&&hn(!1),!r.props.index||!r.props.children||hn(!1);let o=[...t,i],s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(s.children=K1(r.props.children,o)),n.push(s)}),n}/** - * React Router DOM v6.6.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Ag(){return Ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Wz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Yz(e,t){return e.button===0&&(!t||t==="_self")&&!Wz(e)}const qz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Gz=["aria-current","caseSensitive","className","end","style","to","children"];function Zz(e){let{basename:t,children:n,window:r}=e,i=H.useRef();i.current==null&&(i.current=G9({window:r,v5Compat:!0}));let o=i.current,[s,a]=H.useState({action:o.action,location:o.location});return H.useLayoutEffect(()=>o.listen(a),[o]),H.createElement(Hz,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o})}const At=H.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f}=t,h=iA(t,qz),p=Dz(c,{relative:i}),m=Kz(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i});function g(v){r&&r(v),v.defaultPrevented||m(v)}return H.createElement("a",Ag({},h,{href:p,onClick:o?r:g,ref:n,target:l}))}),oA=H.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,children:c}=t,f=iA(t,Gz),h=LS(l,{relative:f.relative}),p=Mn(),m=H.useContext(Yy),{navigator:g}=H.useContext(Id),v=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,w=p.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(w=w.toLowerCase(),_=_?_.toLowerCase():null,v=v.toLowerCase());let b=w===v||!s&&w.startsWith(v)&&w.charAt(v.length)==="/",x=_!=null&&(_===v||!s&&_.startsWith(v)&&_.charAt(v.length)==="/"),E=b?r:void 0,P;typeof o=="function"?P=o({isActive:b,isPending:x}):P=[o,b?"active":null,x?"pending":null].filter(Boolean).join(" ");let k=typeof a=="function"?a({isActive:b,isPending:x}):a;return H.createElement(At,Ag({},f,{"aria-current":E,className:P,ref:n,style:k,to:l}),typeof c=="function"?c({isActive:b,isPending:x}):c)});var DP;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(DP||(DP={}));var AP;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(AP||(AP={}));function Kz(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=Io(),l=Mn(),c=LS(e,{relative:s});return H.useCallback(f=>{if(Yz(f,n)){f.preventDefault();let h=r!==void 0?r:Xf(l)===Xf(c);a(e,{replace:h,state:i,preventScrollReset:o,relative:s})}},[l,a,c,r,i,n,e,o,s])}const Xz="shlink-web-client",Qz="A React-based progressive web application for shlink",Jz="/shlink-web-client/develop",eU="https://github.com/shlinkio/shlink-web-client",tU="MIT",nU={lint:"npm run lint:css && npm run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint --ext .js,.ts,.tsx src test","lint:fix":"npm run lint:css:fix && npm run lint:js:fix","lint:css:fix":"npm run lint:css -- --fix","lint:js:fix":"npm run lint:js -- --fix",start:"vite serve --host=0.0.0.0",build:"tsc --noEmit && vite build && node scripts/replace-version.mjs","build:dist":"npm run build && node scripts/create-dist-file.mjs","build:serve":"serve -p 5000 ./build",test:"jest --env=jsdom --colors","test:coverage":"npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary","test:ci":"npm run test:coverage -- --coverageReporters=clover --ci","test:pretty":"npm run test:coverage -- --coverageReporters=html","test:verbose":"npm run test -- --verbose",mutate:"./node_modules/.bin/stryker run --concurrency 4 --ignoreStatic"},rU={"@babel/preset-env":"^7.20.2","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.18.6","@fortawesome/fontawesome-free":"^6.2.1","@fortawesome/fontawesome-svg-core":"^6.2.1","@fortawesome/free-regular-svg-icons":"^6.2.1","@fortawesome/free-solid-svg-icons":"^6.2.1","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^6.1.2","@reduxjs/toolkit":"^1.9.1",bootstrap:"^5.2.3",bottlejs:"^2.0.1",bowser:"^2.11.0","chart.js":"^4.1.1",classnames:"^2.3.2","compare-versions":"^5.0.3",csvtojson:"^2.0.10","date-fns":"^2.29.3","event-source-polyfill":"^1.0.31",history:"^5.3.0",leaflet:"^1.9.3",qs:"^6.11.0",ramda:"^0.27.2",react:"^18.2.0","react-chartjs-2":"^5.1.0","react-colorful":"^5.6.1","react-copy-to-clipboard":"^5.1.0","react-datepicker":"^4.8.0","react-dom":"^18.2.0","react-external-link":"^2.0.0","react-leaflet":"^4.2.0","react-redux":"^8.0.5","react-router-dom":"^6.6.1","react-swipeable":"^7.0.0","react-tag-autocomplete":"^6.3.0",reactstrap:"^9.1.5",redux:"^4.2.0","redux-localstorage-simple":"^2.5.1","redux-thunk":"^2.4.2",uuid:"^8.3.2","workbox-core":"^6.5.4","workbox-expiration":"^6.5.4","workbox-precaching":"^6.5.4","workbox-routing":"^6.5.4","workbox-strategies":"^6.5.4"},iU={"@shlinkio/eslint-config-js-coding-standard":"~2.0.2","@shlinkio/stylelint-config-css-coding-standard":"~1.0.1","@stryker-mutator/core":"^6.3.1","@stryker-mutator/jest-runner":"^6.3.1","@stryker-mutator/typescript-checker":"^6.3.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@testing-library/user-event":"^14.4.3","@types/jest":"^29.2.4","@types/json2csv":"^5.0.3","@types/leaflet":"^1.9.0","@types/qs":"^6.9.7","@types/ramda":"^0.28.15","@types/react":"^18.0.26","@types/react-color":"^3.0.6","@types/react-copy-to-clipboard":"^5.0.4","@types/react-datepicker":"^4.8.0","@types/react-dom":"^18.0.10","@types/react-tag-autocomplete":"^6.3.0","@types/uuid":"^8.3.4","@vitejs/plugin-react":"^3.0.0","adm-zip":"^0.5.10","babel-jest":"^29.3.1",chalk:"^5.2.0",eslint:"^8.30.0","identity-obj-proxy":"^3.0.0",jest:"^29.3.1","jest-canvas-mock":"^2.4.0","jest-environment-jsdom":"^29.3.1","resize-observer-polyfill":"^1.5.1",sass:"^1.57.1",serve:"^14.1.2","stryker-cli":"^1.0.2",stylelint:"^14.16.0","ts-mockery":"^1.2.0",typescript:"^4.9.4",vite:"^4.0.3","vite-plugin-pwa":"^0.14.0"},oU=[">0.2%","not dead","not ie <= 11","not op_mini all"],Ig={name:Xz,description:Qz,private:!1,homepage:Jz,repository:eU,license:tU,scripts:nU,dependencies:rU,devDependencies:iU,browserslist:oU};var ki,Qi=".",sA="function",aA="string",lA="__global__",AS="Provider",sU=0,IS=Array.prototype.slice,aU=function(t,n){var r=t[n];if(r===void 0&&ki.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Zy=function(t){var n;return this.nested[t]||(n=ki.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},cA=function(t){return t.split(Qi).reduce(aU,this)},lU=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var a=0,l=function(f){if(f)throw f;t[a]&&t[a++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},cU=function(t,n){var r,i;return typeof t===sA&&(n=t,t=lA),r=t.split(Qi),i=r.shift(),r.length?Zy.call(this,i).middleware(r.join(Qi),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},uU=function(t,n){return n(t)},IP=function(t,n){return(t[n]||[]).concat(t.__global__||[])},fU=function(t,n){var r,i,o,s,a;return this.id,o=this.container,s=this.decorators,a=this.middlewares,r=t+AS,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete o[r],o[r]=c,c}},i[t]={configurable:!0,enumerable:!0,get:function(){var c=o[r],f;return c&&(f=IP(s,t).reduce(uU,c.$get(o)),delete o[r],delete o[t]),f===void 0?f:lU(IP(a,t),t,f,o)}},Object.defineProperties(o,i),this},uA=function(t,n){var r,i;return r=t.split(Qi),this.providerMap[t]&&r.length===1&&!this.container[t+AS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Zy.call(this,i).provider(r.join(Qi),n),this):fU.call(this,i,n))},FS=function(t,n){return uA.call(this,t,function(){this.$get=n})},fA=function(t,n,r){var i=arguments.length>3?IS.call(arguments,3):[],o=this;return FS.call(this,t,function(){var a=n,l=i.map(cA,o.container);return r?new(n.bind.apply(n,[null].concat(l))):a.apply(null,l)})},dU=function(t,n){return fA.apply(this,[t,n,!0].concat(IS.call(arguments,2)))},hU=function(t,n){return fA.apply(this,[t,n,!1].concat(IS.call(arguments,2)))},dA=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},hA=function(t,n){var r=t[n];return r||(r={},dA.call(t,n,r)),r},pU=function(t,n){var r;return r=t.split(Qi),t=r.pop(),dA.call(r.reduce(hA,this.container),t,n),this},mU=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},gU=function(t,n){var r=t.split(Qi);return t=r.pop(),mU.call(r.reduce(hA,this.container),t,n),this},pA=function(t,n){var r,i;return typeof t===sA&&(n=t,t=lA),r=t.split(Qi),i=r.shift(),r.length?Zy.call(this,i).decorator(r.join(Qi),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},vU=function(t){return this.deferred.push(t),this},yU=function(t){return(t||[]).map(cA,this.container)},_U=function(t,n){return FS.call(this,t,function(i){return{instance:n.bind(n,i)}})},bU=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},$S=function(t){return Object.keys(t||this.container||{}).filter(bU)},Fg={},wU=function(t){var n;return typeof t===aA?(n=Fg[t],n||(Fg[t]=n=new ki,n.constant("BOTTLE_NAME",t)),n):new ki},xU=function(t){typeof t===aA?delete Fg[t]:Fg={}},mA=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},FP=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+AS]},SU=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var s=o.split(Qi);s.length>1&&s.forEach(FP,Zy.call(this,s[0])),FP.call(this,o),this.provider(o,n[o])}},this)},CU=function(t){return this.deferred.forEach(function(r){r(t)}),this};ki=function e(t){if(!(this instanceof e))return e.pop(t);this.id=sU++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:pA.bind(this),$register:mA.bind(this),$list:$S.bind(this)}};ki.prototype={constant:gU,decorator:pA,defer:vU,digest:yU,factory:FS,instanceFactory:_U,list:$S,middleware:cU,provider:uA,resetProviders:SU,register:mA,resolve:CU,service:dU,serviceFactory:hU,value:pU};ki.pop=wU;ki.clear=xU;ki.list=$S;ki.config={strict:!1};const EU=ki;var TU=function(){return!0};const jS=TU;function kt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function bt(e){return function t(n){return arguments.length===0||kt(n)?t:e.apply(this,arguments)}}function ut(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return kt(n)?t:bt(function(i){return e(n,i)});default:return kt(n)&&kt(r)?t:kt(n)?bt(function(i){return e(i,r)}):kt(r)?bt(function(i){return e(n,i)}):e(n,r)}}}function OU(e,t){e=e||[],t=t||[];var n,r=e.length,i=t.length,o=[];for(n=0;n=arguments.length)?a=t[s]:(a=arguments[i],i+=1),r[s]=a,kt(a)||(o-=1),s+=1}return o<=0?n.apply(this,r):Gc(o,Ky(e,r,n))}}var PU=ut(function(t,n){return t===1?bt(n):Gc(t,Ky(t,[],n))});const $g=PU;function Ks(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return kt(n)?t:ut(function(o,s){return e(n,o,s)});case 2:return kt(n)&&kt(r)?t:kt(n)?ut(function(o,s){return e(o,r,s)}):kt(r)?ut(function(o,s){return e(n,o,s)}):bt(function(o){return e(n,r,o)});default:return kt(n)&&kt(r)&&kt(i)?t:kt(n)&&kt(r)?ut(function(o,s){return e(o,s,i)}):kt(n)&&kt(i)?ut(function(o,s){return e(o,r,s)}):kt(r)&&kt(i)?ut(function(o,s){return e(n,o,s)}):kt(n)?bt(function(o){return e(o,r,i)}):kt(r)?bt(function(o){return e(n,o,i)}):kt(i)?bt(function(o){return e(n,r,o)}):e(n,r,i)}}}const Fd=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function kU(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function BS(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!Fd(i)){for(var o=0;ot?n:t});const gA=MU;function nm(e,t){for(var n=0,r=t.length,i=Array(r);n0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const vA=RU;var NU=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},e}();function LU(e){return new NU(e)}var DU=ut(function(t,n){return Gc(t.length,function(){return t.apply(n,arguments)})});const AU=DU;function IU(e,t,n){for(var r=0,i=n.length;r=0;)n=UP[r],Mr(n,t)&&!UU(i,n)&&(i[i.length]=n),r-=1;return i});const Ji=VU;var HU=ut(BS(["fantasy-land/map","map"],jU,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return $g(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Zc(function(r,i){return r[i]=t(n[i]),r},{},Ji(n));default:return nm(t,n)}}));const $d=HU,X1=Number.isInteger||function(t){return t<<0===t};var WU=ut(function(t,n){var r=t<0?n.length+t:t;return Xy(n)?n.charAt(r):n[r]});const _A=WU;var YU=ut(function(t,n){return t.map(function(r){for(var i=n,o=0,s;o1){var o=!Fo(r)&&Mr(i,r)?r[i]:X1(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(X1(i)&&Fd(r)){var s=[].concat(r);return s[i]=n,s}else return Jf(i,n,r)});const El=iV;function oV(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var sV=ut(function(t,n){var r=$g(t,n);return $g(t,function(){return Zc(eV,$d(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const aV=sV;var lV=bt(function(t){return aV(t.length,t)});const cV=lV;function uV(e){return function t(n){for(var r,i,o,s=[],a=0,l=n.length;a=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:YP(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:YP(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=Ji(e);if(s.length!==Ji(t).length)return!1;var a=n.concat([e]),l=r.concat([t]);for(o=s.length-1;o>=0;){var c=s[o];if(!(Mr(c,t)&&HS(t[c],e[c],a,l)))return!1;o-=1}return!0}var TV=ut(function(t,n){return HS(t,n,[],[])});const WS=TV;function OV(e,t,n){var r,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(r=1/t;n=0}function z0(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var Ou=function(t){return(t<10?"0":"")+t},kV=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Ou(t.getUTCMonth()+1)+"-"+Ou(t.getUTCDate())+"T"+Ou(t.getUTCHours())+":"+Ou(t.getUTCMinutes())+":"+Ou(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const MV=kV;function RV(e){return function(){return!e.apply(this,arguments)}}function NV(e,t){for(var n=0,r=t.length,i=[];n":SA(s,a)},r=function(o,s){return nm(function(a){return z0(a)+": "+n(o[a])},s.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+nm(n,e).join(", ")+"))";case"[object Array]":return"["+nm(n,e).concat(r(e,jd(function(o){return/^\d+$/.test(o)},Ji(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):z0(MV(e)))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+n(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object String]":return typeof e=="object"?"new String("+n(e.valueOf())+")":z0(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+r(e,Ji(e)).join(", ")+"}"}}var $V=bt(function(t){return SA(t,[])});const jV=$V;var BV=bt(function(t){var n=zS(gA,0,$d(function(r){return r[0].length},t));return Gc(n,function(){for(var r=0;rs?1:0})});const xH=wH;var SH=ut(function(t,n){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],i=0;i!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Os=e=>!!(e!=null&&e.id),Jy=e=>!!(e!=null&&e.version),NH=e=>!!(e!=null&&e.serverNotFound),Bd=e=>Os(e)?e.id:"",LH=e=>pH(["id","autoConnect"],e),e_=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",RA=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),NA=e=>e.dir?`${e.field}-${e.dir}`:void 0,DH=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};var t_=(e=>(e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.INVALID_SHORT_URL_DELETION="INVALID_SHORT_URL_DELETION",e.DOMAIN_NOT_FOUND="DOMAIN_NOT_FOUND",e.FORBIDDEN_OPERATION="FORBIDDEN_OPERATION",e.INVALID_URL="INVALID_URL",e.INVALID_SLUG="INVALID_SLUG",e.INVALID_SHORTCODE="INVALID_SHORTCODE",e.TAG_CONFLICT="TAG_CONFLICT",e.TAG_NOT_FOUND="TAG_NOT_FOUND",e.MERCURE_NOT_CONFIGURED="MERCURE_NOT_CONFIGURED",e.INVALID_AUTHORIZATION="INVALID_AUTHORIZATION",e.INVALID_API_KEY="INVALID_API_KEY",e.NOT_FOUND="NOT_FOUND",e))(t_||{}),n_=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e))(n_||{});const AH=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),no=e=>AH(e)?e:void 0,IH=e=>(e==null?void 0:e.type)===t_.INVALID_ARGUMENT||(e==null?void 0:e.type)===n_.INVALID_ARGUMENT,FH=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===t_.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===n_.INVALID_SHORT_URL_DELETION,$H=e=>((e==null?void 0:e.type)===t_.NOT_FOUND||(e==null?void 0:e.type)===n_.NOT_FOUND)&&(e==null?void 0:e.status)===404;var jH=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0},GP=typeof Symbol<"u"&&Symbol,BH=jH,zH=function(){return typeof GP!="function"||typeof Symbol!="function"||typeof GP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:BH()},UH="Function.prototype.bind called on incompatible ",U0=Array.prototype.slice,VH=Object.prototype.toString,HH="[object Function]",WH=function(t){var n=this;if(typeof n!="function"||VH.call(n)!==HH)throw new TypeError(UH+n);for(var r=U0.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(U0.call(arguments)));return Object(f)===f?f:this}else return n.apply(t,r.concat(U0.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],l=0;l"u"?lt:es(Uint8Array),fc={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":Tl?es([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":$l,"%AsyncGenerator%":$l,"%AsyncGeneratorFunction%":$l,"%AsyncIteratorPrototype%":$l,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":LA,"%GeneratorFunction%":$l,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Tl?es(es([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Tl?lt:es(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Tl?lt:es(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Tl?es(""[Symbol.iterator]()):lt,"%Symbol%":Tl?Symbol:lt,"%SyntaxError%":td,"%ThrowTypeError%":ZH,"%TypedArray%":KH,"%TypeError%":uc,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet},XH=function e(t){var n;if(t==="%AsyncFunction%")n=V0("async function () {}");else if(t==="%GeneratorFunction%")n=V0("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=V0("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(n=es(i.prototype))}return fc[t]=n,n},ZP={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},r_=GS,Ug=GH,QH=r_.call(Function.call,Array.prototype.concat),JH=r_.call(Function.apply,Array.prototype.splice),KP=r_.call(Function.call,String.prototype.replace),Vg=r_.call(Function.call,String.prototype.slice),eW=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tW=/\\(\\)?/g,nW=function(t){var n=Vg(t,0,1),r=Vg(t,-1);if(n==="%"&&r!=="%")throw new td("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new td("invalid intrinsic syntax, expected opening `%`");var i=[];return KP(t,eW,function(o,s,a,l){i[i.length]=a?KP(l,tW,"$1"):s||o}),i},rW=function(t,n){var r=t,i;if(Ug(ZP,r)&&(i=ZP[r],r="%"+i[0]+"%"),Ug(fc,r)){var o=fc[r];if(o===$l&&(o=XH(r)),typeof o>"u"&&!n)throw new uc("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new td("intrinsic "+t+" does not exist!")},ZS=function(t,n){if(typeof t!="string"||t.length===0)throw new uc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new uc('"allowMissing" argument must be a boolean');var r=nW(t),i=r.length>0?r[0]:"",o=rW("%"+i+"%",n),s=o.name,a=o.value,l=!1,c=o.alias;c&&(i=c[0],JH(r,QH([0,1],c)));for(var f=1,h=!0;f=r.length){var v=$a(a,p);h=!!v,h&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[p]}else h=Ug(a,p),a=a[p];h&&!l&&(fc[s]=a)}}return a},J1={},iW={get exports(){return J1},set exports(e){J1=e}};(function(e){var t=GS,n=ZS,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var m=s(p,"length");m.configurable&&a(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:c}):e.exports.apply=c})(iW);var DA=ZS,AA=J1,oW=AA(DA("String.prototype.indexOf")),sW=function(t,n){var r=DA(t,!!n);return typeof r=="function"&&oW(t,".prototype.")>-1?AA(r):r};const aW={},lW=Object.freeze(Object.defineProperty({__proto__:null,default:aW},Symbol.toStringTag,{value:"Module"})),cW=p7(lW);var KS=typeof Map=="function"&&Map.prototype,W0=Object.getOwnPropertyDescriptor&&KS?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hg=KS&&W0&&typeof W0.get=="function"?W0.get:null,uW=KS&&Map.prototype.forEach,XS=typeof Set=="function"&&Set.prototype,Y0=Object.getOwnPropertyDescriptor&&XS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Wg=XS&&Y0&&typeof Y0.get=="function"?Y0.get:null,fW=XS&&Set.prototype.forEach,dW=typeof WeakMap=="function"&&WeakMap.prototype,ff=dW?WeakMap.prototype.has:null,hW=typeof WeakSet=="function"&&WeakSet.prototype,df=hW?WeakSet.prototype.has:null,pW=typeof WeakRef=="function"&&WeakRef.prototype,XP=pW?WeakRef.prototype.deref:null,mW=Boolean.prototype.valueOf,gW=Object.prototype.toString,vW=Function.prototype.toString,yW=String.prototype.match,QS=String.prototype.slice,cs=String.prototype.replace,_W=String.prototype.toUpperCase,QP=String.prototype.toLowerCase,IA=RegExp.prototype.test,JP=Array.prototype.concat,zi=Array.prototype.join,bW=Array.prototype.slice,ek=Math.floor,ew=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q0=Object.getOwnPropertySymbols,tw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="object",nr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oc||"symbol")?Symbol.toStringTag:null,FA=Object.prototype.propertyIsEnumerable,tk=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function nk(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||IA.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-ek(-e):ek(e);if(r!==e){var i=String(r),o=QS.call(t,i.length+1);return cs.call(i,n,"$&_")+"."+cs.call(cs.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return cs.call(t,n,"$&_")}var G0=cW.custom,Z0=G0&&jA(G0)?G0:null,wW=function e(t,n,r,i){var o=n||{};if(ts(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ts(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ts(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ts(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ts(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return zA(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?nk(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return a?nk(t,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return nw(t)?"[Array]":"[Object]";var h=BW(o,r);if(typeof i>"u")i=[];else if(BA(i,t)>=0)return"[Circular]";function p(ee,Z,te){if(Z&&(i=bW.call(i),i.push(Z)),te){var ne={depth:o.depth};return ts(o,"quoteStyle")&&(ne.quoteStyle=o.quoteStyle),e(ee,ne,r+1,i)}return e(ee,o,r+1,i)}if(typeof t=="function"){var m=RW(t),g=np(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(g.length>0?" { "+zi.call(g,", ")+" }":"")}if(jA(t)){var v=Oc?cs.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):tw.call(t);return typeof t=="object"&&!Oc?ku(v):v}if(FW(t)){for(var w="<"+QP.call(String(t.nodeName)),_=t.attributes||[],b=0;b<_.length;b++)w+=" "+_[b].name+"="+$A(xW(_[b].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="",w}if(nw(t)){if(t.length===0)return"[]";var x=np(t,p);return h&&!jW(x)?"["+rw(x,h)+"]":"[ "+zi.call(x,", ")+" ]"}if(EW(t)){var E=np(t,p);return"cause"in t&&!FA.call(t,"cause")?"{ ["+String(t)+"] "+zi.call(JP.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+zi.call(E,", ")+" }"}if(typeof t=="object"&&s){if(Z0&&typeof t[Z0]=="function")return t[Z0]();if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(NW(t)){var P=[];return uW.call(t,function(ee,Z){P.push(p(Z,t,!0)+" => "+p(ee,t))}),rk("Map",Hg.call(t),P,h)}if(AW(t)){var k=[];return fW.call(t,function(ee){k.push(p(ee,t))}),rk("Set",Wg.call(t),k,h)}if(LW(t))return K0("WeakMap");if(IW(t))return K0("WeakSet");if(DW(t))return K0("WeakRef");if(OW(t))return ku(p(Number(t)));if(kW(t))return ku(p(ew.call(t)));if(PW(t))return ku(mW.call(t));if(TW(t))return ku(p(String(t)));if(!SW(t)&&!CW(t)){var N=np(t,p),D=tk?tk(t)===Object.prototype:t instanceof Object||t.constructor===Object,U=t instanceof Object?"":"null prototype",A=!D&&nr&&Object(t)===t&&nr in t?QS.call(Xs(t),8,-1):U?"Object":"",Y=D||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",q=Y+(A||U?"["+zi.call(JP.call([],A||[],U||[]),": ")+"] ":"");return N.length===0?q+"{}":h?q+"{"+rw(N,h)+"}":q+"{ "+zi.call(N,", ")+" }"}return String(t)};function $A(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function xW(e){return cs.call(String(e),/"/g,""")}function nw(e){return Xs(e)==="[object Array]"&&(!nr||!(typeof e=="object"&&nr in e))}function SW(e){return Xs(e)==="[object Date]"&&(!nr||!(typeof e=="object"&&nr in e))}function CW(e){return Xs(e)==="[object RegExp]"&&(!nr||!(typeof e=="object"&&nr in e))}function EW(e){return Xs(e)==="[object Error]"&&(!nr||!(typeof e=="object"&&nr in e))}function TW(e){return Xs(e)==="[object String]"&&(!nr||!(typeof e=="object"&&nr in e))}function OW(e){return Xs(e)==="[object Number]"&&(!nr||!(typeof e=="object"&&nr in e))}function PW(e){return Xs(e)==="[object Boolean]"&&(!nr||!(typeof e=="object"&&nr in e))}function jA(e){if(Oc)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!tw)return!1;try{return tw.call(e),!0}catch{}return!1}function kW(e){if(!e||typeof e!="object"||!ew)return!1;try{return ew.call(e),!0}catch{}return!1}var MW=Object.prototype.hasOwnProperty||function(e){return e in this};function ts(e,t){return MW.call(e,t)}function Xs(e){return gW.call(e)}function RW(e){if(e.name)return e.name;var t=yW.call(vW.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function BA(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return zA(QS.call(e,0,t.maxStringLength),t)+r}var i=cs.call(cs.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$W);return $A(i,"single",t)}function $W(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+_W.call(t.toString(16))}function ku(e){return"Object("+e+")"}function K0(e){return e+" { ? }"}function rk(e,t,n,r){var i=r?rw(n,r):zi.call(n,", ");return e+" ("+t+") {"+i+"}"}function jW(e){for(var t=0;t=0)return!1;return!0}function BW(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=zi.call(Array(e.indent+1)," ");else return null;return{base:n,prev:zi.call(Array(t+1),n)}}function rw(e,t){if(e.length===0)return"";var n=` -`+t.prev+t.base;return n+zi.call(e,","+n)+` -`+t.prev}function np(e,t){var n=nw(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(Pa(r)){for(var i=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===tY.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Fi[c];continue}if(c<2048){a=a+(Fi[192|c>>6]+Fi[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Fi[224|c>>12]+Fi[128|c>>6&63]+Fi[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|s.charCodeAt(l)&1023),a+=Fi[240|c>>18]+Fi[128|c>>12&63]+Fi[128|c>>6&63]+Fi[128|c&63]}return a},aY=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(x=0)}if(typeof l=="function"?_=l(n,_):_ instanceof Date?_=h(_):r==="comma"&&po(_)&&(_=iw.maybeMap(_,function($){return $ instanceof Date?h($):$})),_===null){if(o)return a&&!g?a(n,zn.encoder,v,"key",p):n;_=""}if(gY(_)||iw.isBuffer(_)){if(a){var k=g?n:a(n,zn.encoder,v,"key",p);if(r==="comma"&&g){for(var N=hY.call(String(_),","),D="",U=0;U"u")return A;var Y;if(r==="comma"&&po(_))Y=[{value:_.length>0?_.join(",")||null:void 0}];else if(po(l))Y=l;else{var q=Object.keys(_);Y=c?q.sort(c):q}for(var ee=i&&po(_)&&_.length===1?n+"[]":n,Z=0;Z"u"?zn.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:zn.charsetSentinel,delimiter:typeof t.delimiter>"u"?zn.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:zn.encode,encoder:typeof t.encoder=="function"?t.encoder:zn.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:zn.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:zn.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:zn.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:zn.strictNullHandling}},_Y=function(e,t){var n=e,r=yY(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):po(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in ik?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var l=ik[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=HA(),h=0;h0?g+m:""},Pc=VA,ow=Object.prototype.hasOwnProperty,bY=Array.isArray,En={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Pc.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},wY=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},YA=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},xY="utf8=%26%2310003%3B",SY="utf8=%E2%9C%93",CY=function(t,n){var r={},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(g=bY(g)?[g]:g),ow.call(r,m)?r[m]=Pc.combine(r[m],g):r[m]=g}return r},EY=function(e,t,n,r){for(var i=r?t:YA(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(l,10);!n.parseArrays&&l===""?s={0:i}:!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=i):l!=="__proto__"&&(s[l]=i)}i=s}return i},TY=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&ow.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=a.exec(o))!==null&&h"u"?En.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?En.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:En.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:En.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:En.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:En.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:En.comma,decoder:typeof t.decoder=="function"?t.decoder:En.decoder,delimiter:typeof t.delimiter=="string"||Pc.isRegExp(t.delimiter)?t.delimiter:En.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:En.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:En.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:En.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:En.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:En.strictNullHandling}},PY=function(e,t){var n=OY(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?CY(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;sqA.parse(e,{ignoreQueryPrefix:!0}),zd=e=>qA.stringify(e,{arrayFormat:"brackets"}),NY=(e,t)=>`${e}/rest/v${t}`,LY=jd(Fo),DY=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:NA(e)});class AY{constructor(t,n,r){Se(this,"apiVersion");Se(this,"listShortUrls",async(t={})=>this.performRequest("/short-urls","GET",DY(t)).then(({shortUrls:n})=>n));Se(this,"createShortUrl",async t=>{const n=jd(r=>qn(r)||Fo(r),t);return this.performRequest("/short-urls","POST",{},n)});Se(this,"getShortUrlVisits",async(t,n)=>this.performRequest(`/short-urls/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getTagVisits",async(t,n)=>this.performRequest(`/tags/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getDomainVisits",async(t,n)=>this.performRequest(`/domains/${t}/visits`,"GET",n).then(({visits:r})=>r));Se(this,"getOrphanVisits",async t=>this.performRequest("/visits/orphan","GET",t).then(({visits:n})=>n));Se(this,"getNonOrphanVisits",async t=>this.performRequest("/visits/non-orphan","GET",t).then(({visits:n})=>n));Se(this,"getVisitsOverview",async()=>this.performRequest("/visits").then(({visits:t})=>t));Se(this,"getShortUrl",async(t,n)=>this.performRequest(`/short-urls/${t}`,"GET",{domain:n}));Se(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest(`/short-urls/${t}`,"DELETE",{domain:n}));Se(this,"updateShortUrl",async(t,n,r)=>this.performRequest(`/short-urls/${t}`,"PATCH",{domain:n},r));Se(this,"listTags",async()=>this.performRequest("/tags","GET",{withStats:"true"}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));Se(this,"deleteTags",async t=>this.performEmptyRequest("/tags","DELETE",{tags:t}).then(()=>({tags:t})));Se(this,"editTag",async(t,n)=>this.performEmptyRequest("/tags","PUT",{},{oldName:t,newName:n}).then(()=>({oldName:t,newName:n})));Se(this,"health",async()=>this.performRequest("/health","GET"));Se(this,"mercureInfo",async()=>this.performRequest("/mercure-info","GET"));Se(this,"listDomains",async()=>this.performRequest("/domains").then(({domains:t})=>t));Se(this,"editDomainRedirects",async t=>this.performRequest("/domains/redirects","PATCH",{},t));Se(this,"performRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t,n,r,i)))));Se(this,"performEmptyRequest",async(t,n="GET",r={},i)=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t,n,r,i)))));Se(this,"toFetchParams",(t,n,r={},i)=>{const o=zd(LY(r)),s=qn(o)?"":`?${o}`;return[`${NY(this.baseUrl,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});Se(this,"handleFetchError",t=>n=>{if(!$H(no(n)))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const eb={},IY=e=>typeof e=="function",FY=e=>{const{selectedServer:t}=e();if(!qS(t))throw new Error("There's no selected server or it is not found");return t},$Y=e=>t=>{const{url:n,apiKey:r}=IY(t)?FY(t):t,i=`${n}_${r}`;return eb[i]||(eb[i]=new AY(e,n,r)),eb[i]},jY=e=>{e.serviceFactory("buildShlinkApiClient",$Y,"HttpClient")},BY=({children:e})=>{const t=Mn();return H.useEffect(()=>{scrollTo(0,0)},[t]),C(Ye,{children:e})};var zY={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},UY=zY,VY={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},nC=VY,HY={prefix:"fas",iconName:"file-csv",icon:[384,512,[],"f6dd","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM80 224H96c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H80c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8H96c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H80c-22.1 0-40-17.9-40-40V264c0-22.1 17.9-40 40-40zm72 46.4c0-25.6 20.8-46.4 46.4-46.4H216c8.8 0 16 7.2 16 16s-7.2 16-16 16H198.4c-7.9 0-14.4 6.4-14.4 14.4c0 5.2 2.8 9.9 7.2 12.5l25.4 14.5c14.4 8.3 23.4 23.6 23.4 40.3c0 25.6-20.8 46.4-46.4 46.4H168c-8.8 0-16-7.2-16-16s7.2-16 16-16h25.6c7.9 0 14.4-6.4 14.4-14.4c0-5.2-2.8-9.9-7.2-12.5l-25.4-14.5C160.9 302.4 152 287 152 270.4zM280 240v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V240c0-8.8 7.2-16 16-16s16 7.2 16 16v31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6V240c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},WY={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},YY=WY,GA={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},qY={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},ZA={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},GY={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zm0-160c-53 0-96-43-96-96s43-96 96-96s96 43 96 96s-43 96-96 96z"]},ZY=GY,KY={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.8 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},rC=KY,XY={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},QY={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 21 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},JY={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256z"]},sk={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},eq={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31V408z"]},tq=eq,nq={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40z"]},KA=nq,rq={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},iq={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zm0-96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zm96 96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32z"]},oq={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},sq=oq,iC={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},XA={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5V80C0 53.5 21.5 32 48 32H197.5c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},aq={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},ak={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},lq={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},QA={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},cq={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},uq=cq,fq={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 96c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},dq={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},oC=dq,hq={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},pq=hq,mq={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},gq={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zm0-160c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zM120 96c0 30.9-25.1 56-56 56S8 126.9 8 96S33.1 40 64 40s56 25.1 56 56z"]},vq=gq,yq={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},_q=yq,bq={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},wq=bq,xq={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},JA=xq,Sq={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM352 256c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zm32 0c0-70.7-57.3-128-128-128s-128 57.3-128 128s57.3 128 128 128s128-57.3 128-128z"]},Cq={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},Eq={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},Tq=Eq,Oq={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},sC={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},Pq={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},sw=Pq,kq={prefix:"fas",iconName:"chevron-right",icon:[384,512,[9002],"f054","M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Mq={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},Rq=Mq,lk={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H480c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H160c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256c0-22.1-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40s40-17.9 40-40zm152 40c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},Nq={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.7 8.4 166.9 8 160 8s-13.7 .4-20.4 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM208 176c0 26.5-21.5 48-48 48s-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 400c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"]},Lq=Nq,Dq={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M48 32C21.5 32 0 53.5 0 80v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm80 64v64H64V96h64zM48 288c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V336c0-26.5-21.5-48-48-48H48zm80 64v64H64V352h64zM256 80v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H304c-26.5 0-48 21.5-48 48zm64 16h64v64H320V96zm32 352v32h32V448H352zm96 0H416v32h32V448zM416 288v32H352V288H256v96 96h64V384h32v32h96V352 320 288H416z"]},Aq={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},Iq={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},nd={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function ck(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ze(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return Lt.head.insertBefore(t,r),e}}var aG="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function ad(){for(var e=12,t="";e-- >0;)t+=aG[Math.random()*62|0];return t}function Qc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function dC(e){return e.classList?Qc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function fI(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function lG(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(fI(e[n]),'" ')},"").trim()}function i_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function hC(e){return e.size!==Yi.size||e.x!==Yi.x||e.y!==Yi.y||e.rotate!==Yi.rotate||e.flipX||e.flipY}function cG(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function uG(e){var t=e.transform,n=e.width,r=n===void 0?lw:n,i=e.height,o=i===void 0?lw:i,s=e.startCentered,a=s===void 0?!1:s,l="";return a&&iI?l+="translate(".concat(t.x/Go-r/2,"em, ").concat(t.y/Go-o/2,"em) "):a?l+="translate(calc(-50% + ".concat(t.x/Go,"em), calc(-50% + ").concat(t.y/Go,"em)) "):l+="translate(".concat(t.x/Go,"em, ").concat(t.y/Go,"em) "),l+="scale(".concat(t.size/Go*(t.flipX?-1:1),", ").concat(t.size/Go*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var fG=`:root, :host { - --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; - --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; - --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; - --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; - --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; - --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; - --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; -} - -svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { - overflow: visible; - box-sizing: content-box; -} - -.svg-inline--fa { - display: var(--fa-display, inline-block); - height: 1em; - overflow: visible; - vertical-align: -0.125em; -} -.svg-inline--fa.fa-2xs { - vertical-align: 0.1em; -} -.svg-inline--fa.fa-xs { - vertical-align: 0em; -} -.svg-inline--fa.fa-sm { - vertical-align: -0.0714285705em; -} -.svg-inline--fa.fa-lg { - vertical-align: -0.2em; -} -.svg-inline--fa.fa-xl { - vertical-align: -0.25em; -} -.svg-inline--fa.fa-2xl { - vertical-align: -0.3125em; -} -.svg-inline--fa.fa-pull-left { - margin-right: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-pull-right { - margin-left: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-li { - width: var(--fa-li-width, 2em); - top: 0.25em; -} -.svg-inline--fa.fa-fw { - width: var(--fa-fw-width, 1.25em); -} - -.fa-layers svg.svg-inline--fa { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; -} - -.fa-layers-counter, .fa-layers-text { - display: inline-block; - position: absolute; - text-align: center; -} - -.fa-layers { - display: inline-block; - height: 1em; - position: relative; - text-align: center; - vertical-align: -0.125em; - width: 1em; -} -.fa-layers svg.svg-inline--fa { - -webkit-transform-origin: center center; - transform-origin: center center; -} - -.fa-layers-text { - left: 50%; - top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - -webkit-transform-origin: center center; - transform-origin: center center; -} - -.fa-layers-counter { - background-color: var(--fa-counter-background-color, #ff253a); - border-radius: var(--fa-counter-border-radius, 1em); - box-sizing: border-box; - color: var(--fa-inverse, #fff); - line-height: var(--fa-counter-line-height, 1); - max-width: var(--fa-counter-max-width, 5em); - min-width: var(--fa-counter-min-width, 1.5em); - overflow: hidden; - padding: var(--fa-counter-padding, 0.25em 0.5em); - right: var(--fa-right, 0); - text-overflow: ellipsis; - top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-counter-scale, 0.25)); - transform: scale(var(--fa-counter-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; -} - -.fa-layers-bottom-right { - bottom: var(--fa-bottom, 0); - right: var(--fa-right, 0); - top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom right; - transform-origin: bottom right; -} - -.fa-layers-bottom-left { - bottom: var(--fa-bottom, 0); - left: var(--fa-left, 0); - right: auto; - top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom left; - transform-origin: bottom left; -} - -.fa-layers-top-right { - top: var(--fa-top, 0); - right: var(--fa-right, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; -} - -.fa-layers-top-left { - left: var(--fa-left, 0); - right: auto; - top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top left; - transform-origin: top left; -} - -.fa-1x { - font-size: 1em; -} - -.fa-2x { - font-size: 2em; -} - -.fa-3x { - font-size: 3em; -} - -.fa-4x { - font-size: 4em; -} - -.fa-5x { - font-size: 5em; -} - -.fa-6x { - font-size: 6em; -} - -.fa-7x { - font-size: 7em; -} - -.fa-8x { - font-size: 8em; -} - -.fa-9x { - font-size: 9em; -} - -.fa-10x { - font-size: 10em; -} - -.fa-2xs { - font-size: 0.625em; - line-height: 0.1em; - vertical-align: 0.225em; -} - -.fa-xs { - font-size: 0.75em; - line-height: 0.0833333337em; - vertical-align: 0.125em; -} - -.fa-sm { - font-size: 0.875em; - line-height: 0.0714285718em; - vertical-align: 0.0535714295em; -} - -.fa-lg { - font-size: 1.25em; - line-height: 0.05em; - vertical-align: -0.075em; -} - -.fa-xl { - font-size: 1.5em; - line-height: 0.0416666682em; - vertical-align: -0.125em; -} - -.fa-2xl { - font-size: 2em; - line-height: 0.03125em; - vertical-align: -0.1875em; -} - -.fa-fw { - text-align: center; - width: 1.25em; -} - -.fa-ul { - list-style-type: none; - margin-left: var(--fa-li-margin, 2.5em); - padding-left: 0; -} -.fa-ul > li { - position: relative; -} - -.fa-li { - left: calc(var(--fa-li-width, 2em) * -1); - position: absolute; - text-align: center; - width: var(--fa-li-width, 2em); - line-height: inherit; -} - -.fa-border { - border-color: var(--fa-border-color, #eee); - border-radius: var(--fa-border-radius, 0.1em); - border-style: var(--fa-border-style, solid); - border-width: var(--fa-border-width, 0.08em); - padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); -} - -.fa-pull-left { - float: left; - margin-right: var(--fa-pull-margin, 0.3em); -} - -.fa-pull-right { - float: right; - margin-left: var(--fa-pull-margin, 0.3em); -} - -.fa-beat { - -webkit-animation-name: fa-beat; - animation-name: fa-beat; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-bounce { - -webkit-animation-name: fa-bounce; - animation-name: fa-bounce; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); -} - -.fa-fade { - -webkit-animation-name: fa-fade; - animation-name: fa-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-beat-fade { - -webkit-animation-name: fa-beat-fade; - animation-name: fa-beat-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-flip { - -webkit-animation-name: fa-flip; - animation-name: fa-flip; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-shake { - -webkit-animation-name: fa-shake; - animation-name: fa-shake; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 2s); - animation-duration: var(--fa-animation-duration, 2s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-reverse { - --fa-animation-direction: reverse; -} - -.fa-pulse, -.fa-spin-pulse { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); - animation-timing-function: var(--fa-animation-timing, steps(8)); -} - -@media (prefers-reduced-motion: reduce) { - .fa-beat, -.fa-bounce, -.fa-fade, -.fa-beat-fade, -.fa-flip, -.fa-pulse, -.fa-shake, -.fa-spin, -.fa-spin-pulse { - -webkit-animation-delay: -1ms; - animation-delay: -1ms; - -webkit-animation-duration: 1ms; - animation-duration: 1ms; - -webkit-animation-iteration-count: 1; - animation-iteration-count: 1; - transition-delay: 0s; - transition-duration: 0s; - } -} -@-webkit-keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@-webkit-keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@-webkit-keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@-webkit-keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@-webkit-keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@-webkit-keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -@keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -.fa-rotate-90 { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); -} - -.fa-rotate-180 { - -webkit-transform: rotate(180deg); - transform: rotate(180deg); -} - -.fa-rotate-270 { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); -} - -.fa-flip-horizontal { - -webkit-transform: scale(-1, 1); - transform: scale(-1, 1); -} - -.fa-flip-vertical { - -webkit-transform: scale(1, -1); - transform: scale(1, -1); -} - -.fa-flip-both, -.fa-flip-horizontal.fa-flip-vertical { - -webkit-transform: scale(-1, -1); - transform: scale(-1, -1); -} - -.fa-rotate-by { - -webkit-transform: rotate(var(--fa-rotate-angle, none)); - transform: rotate(var(--fa-rotate-angle, none)); -} - -.fa-stack { - display: inline-block; - vertical-align: middle; - height: 2em; - position: relative; - width: 2.5em; -} - -.fa-stack-1x, -.fa-stack-2x { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; - z-index: var(--fa-stack-z-index, auto); -} - -.svg-inline--fa.fa-stack-1x { - height: 1em; - width: 1.25em; -} -.svg-inline--fa.fa-stack-2x { - height: 2em; - width: 2.5em; -} - -.fa-inverse { - color: var(--fa-inverse, #fff); -} - -.sr-only, -.fa-sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.sr-only-focusable:not(:focus), -.fa-sr-only-focusable:not(:focus) { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.svg-inline--fa .fa-primary { - fill: var(--fa-primary-color, currentColor); - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa .fa-secondary { - fill: var(--fa-secondary-color, currentColor); - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-primary { - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-secondary { - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa mask .fa-primary, -.svg-inline--fa mask .fa-secondary { - fill: black; -} - -.fad.fa-inverse, -.fa-duotone.fa-inverse { - color: var(--fa-inverse, #fff); -}`;function dI(){var e=oI,t=sI,n=He.cssPrefix,r=He.replacementClass,i=fG;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}var gk=!1;function tb(){He.autoAddCss&&!gk&&(sG(dI()),gk=!0)}var dG={mixout:function(){return{dom:{css:dI,insertCss:tb}}},hooks:function(){return{beforeDOMElementCreation:function(){tb()},beforeI2svg:function(){tb()}}}},ko=As||{};ko[Po]||(ko[Po]={});ko[Po].styles||(ko[Po].styles={});ko[Po].hooks||(ko[Po].hooks={});ko[Po].shims||(ko[Po].shims=[]);var _i=ko[Po],hI=[],hG=function e(){Lt.removeEventListener("DOMContentLoaded",e),qg=1,hI.map(function(t){return t()})},qg=!1;$o&&(qg=(Lt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Lt.readyState),qg||Lt.addEventListener("DOMContentLoaded",hG));function pG(e){$o&&(qg?setTimeout(e,0):hI.push(e))}function Hd(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?fI(e):"<".concat(t," ").concat(lG(r),">").concat(o.map(Hd).join(""),"")}function vk(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var mG=function(t,n){return function(r,i,o,s){return t.call(n,r,i,o,s)}},nb=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=i!==void 0?mG(n,i):n,l,c,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function yk(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function fw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=yk(t);typeof _i.hooks.addPack=="function"&&!i?_i.hooks.addPack(e,yk(t)):_i.styles[e]=ze(ze({},_i.styles[e]||{}),o),e==="fas"&&fw("fa",t)}var fp,dp,hp,Jl=_i.styles,yG=_i.shims,_G=(fp={},xn(fp,Mt,Object.values(od[Mt])),xn(fp,Zt,Object.values(od[Zt])),fp),pC=null,pI={},mI={},gI={},vI={},yI={},bG=(dp={},xn(dp,Mt,Object.keys(rd[Mt])),xn(dp,Zt,Object.keys(rd[Zt])),dp);function wG(e){return~tG.indexOf(e)}function xG(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!wG(i)?i:null}var _I=function(){var t=function(o){return nb(Jl,function(s,a,l){return s[l]=nb(a,o,{}),s},{})};pI=t(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var a=o[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){i[l.toString(16)]=s})}return i}),mI=t(function(i,o,s){if(i[s]=s,o[2]){var a=o[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){i[l]=s})}return i}),yI=t(function(i,o,s){var a=o[2];return i[s]=s,a.forEach(function(l){i[l]=s}),i});var n="far"in Jl||He.autoFetchSvg,r=nb(yG,function(i,o){var s=o[0],a=o[1],l=o[2];return a==="far"&&!n&&(a="fas"),typeof s=="string"&&(i.names[s]={prefix:a,iconName:l}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:a,iconName:l}),i},{names:{},unicodes:{}});gI=r.names,vI=r.unicodes,pC=o_(He.styleDefault,{family:He.familyDefault})};oG(function(e){pC=o_(e.styleDefault,{family:He.familyDefault})});_I();function mC(e,t){return(pI[e]||{})[t]}function SG(e,t){return(mI[e]||{})[t]}function Da(e,t){return(yI[e]||{})[t]}function bI(e){return gI[e]||{prefix:null,iconName:null}}function CG(e){var t=vI[e],n=mC("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Is(){return pC}var gC=function(){return{prefix:null,iconName:null,rest:[]}};function o_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Mt:n,i=rd[r][e],o=id[r][e]||id[r][i],s=e in _i.styles?e:null;return o||s||null}var _k=(hp={},xn(hp,Mt,Object.keys(od[Mt])),xn(hp,Zt,Object.keys(od[Zt])),hp);function s_(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},xn(t,Mt,"".concat(He.cssPrefix,"-").concat(Mt)),xn(t,Zt,"".concat(He.cssPrefix,"-").concat(Zt)),t),s=null,a=Mt;(e.includes(o[Mt])||e.some(function(c){return _k[Mt].includes(c)}))&&(a=Mt),(e.includes(o[Zt])||e.some(function(c){return _k[Zt].includes(c)}))&&(a=Zt);var l=e.reduce(function(c,f){var h=xG(He.cssPrefix,f);if(Jl[f]?(f=_G[a].includes(f)?Zq[a][f]:f,s=f,c.prefix=f):bG[a].indexOf(f)>-1?(s=f,c.prefix=o_(f,{family:a})):h?c.iconName=h:f!==He.replacementClass&&f!==o[Mt]&&f!==o[Zt]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=s==="fa"?bI(c.iconName):{},m=Da(c.prefix,c.iconName);p.prefix&&(s=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Jl.far&&Jl.fas&&!He.autoFetchSvg&&(c.prefix="fas")}return c},gC());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===Zt&&(Jl.fass||He.autoFetchSvg)&&(l.prefix="fass",l.iconName=Da(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=Is()||"fas"),l}var EG=function(){function e(){Fq(this,e),this.definitions={}}return $q(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&f.forEach(function(h){typeof h=="string"&&(n[a][h]=c)}),n[a][l]=c}),n}}]),e}(),bk=[],ec={},dc={},TG=Object.keys(dc);function OG(e,t){var n=t.mixoutsTo;return bk=e,ec={},Object.keys(dc).forEach(function(r){TG.indexOf(r)===-1&&delete dc[r]}),bk.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),Yg(i[s])==="object"&&Object.keys(i[s]).forEach(function(a){n[s]||(n[s]={}),n[s][a]=i[s][a]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){ec[s]||(ec[s]=[]),ec[s].push(o[s])})}r.provides&&r.provides(dc)}),n}function dw(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return $o?(Xa("beforeI2svg",t),Mo("pseudoElements2svg",t),Mo("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;He.autoReplaceSvg===!1&&(He.autoReplaceSvg=!0),He.observeMutations=!0,pG(function(){RG({autoReplaceSvgRoot:n}),Xa("watch",t)})}},MG={icon:function(t){if(t===null)return null;if(Yg(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Da(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=o_(t[0]);return{prefix:r,iconName:Da(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(He.cssPrefix,"-"))>-1||t.match(Kq))){var i=s_(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Is(),iconName:Da(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=Is();return{prefix:o,iconName:Da(o,t)||t}}}},jr={noAuto:PG,config:He,dom:kG,parse:MG,library:wI,findIconDefinition:hw,toHtml:Hd},RG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Lt:n;(Object.keys(_i.styles).length>0||He.autoFetchSvg)&&$o&&He.autoReplaceSvg&&jr.dom.i2svg({node:r})};function a_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Hd(r)})}}),Object.defineProperty(e,"node",{get:function(){if($o){var r=Lt.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function NG(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(hC(s)&&n.found&&!r.found){var a=n.width,l=n.height,c={x:a/l/2,y:.5};i.style=i_(ze(ze({},o),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function LG(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(He.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ze(ze({},i),{},{id:s}),children:r}]}]}function vC(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,c=e.maskId,f=e.titleId,h=e.extra,p=e.watchable,m=p===void 0?!1:p,g=r.found?r:n,v=g.width,w=g.height,_=i==="fak",b=[He.replacementClass,o?"".concat(He.cssPrefix,"-").concat(o):""].filter(function(U){return h.classes.indexOf(U)===-1}).filter(function(U){return U!==""||!!U}).concat(h.classes).join(" "),x={children:[],attributes:ze(ze({},h.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(w)})},E=_&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/w*16*.0625,"em")}:{};m&&(x.attributes[Ka]=""),l&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||ad())},children:[l]}),delete x.attributes.title);var P=ze(ze({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:ze(ze({},E),h.styles)}),k=r.found&&n.found?Mo("generateAbstractMask",P)||{children:[],attributes:{}}:Mo("generateAbstractIcon",P)||{children:[],attributes:{}},N=k.children,D=k.attributes;return P.children=N,P.attributes=D,a?LG(P):NG(P)}function wk(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,s=e.extra,a=e.watchable,l=a===void 0?!1:a,c=ze(ze(ze({},s.attributes),o?{title:o}:{}),{},{class:s.classes.join(" ")});l&&(c[Ka]="");var f=ze({},s.styles);hC(i)&&(f.transform=uG({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=i_(f);h.length>0&&(c.style=h);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function DG(e){var t=e.content,n=e.title,r=e.extra,i=ze(ze(ze({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=i_(r.styles);o.length>0&&(i.style=o);var s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var rb=_i.styles;function pw(e){var t=e[0],n=e[1],r=e.slice(4),i=aC(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(He.cssPrefix,"-").concat(La.GROUP)},children:[{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(La.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(He.cssPrefix,"-").concat(La.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var AG={found:!1,width:512,height:512};function IG(e,t){!aI&&!He.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function mw(e,t){var n=t;return t==="fa"&&He.styleDefault!==null&&(t=Is()),new Promise(function(r,i){if(Mo("missingIconAbstract"),n==="fa"){var o=bI(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&rb[t]&&rb[t][e]){var s=rb[t][e];return r(pw(s))}IG(e,t),r(ze(ze({},AG),{},{icon:He.showMissingIcons&&e?Mo("missingIconAbstract")||{}:{}}))})}var xk=function(){},gw=He.measurePerformance&&op&&op.mark&&op.measure?op:{mark:xk,measure:xk},Hu='FA "6.2.1"',FG=function(t){return gw.mark("".concat(Hu," ").concat(t," begins")),function(){return xI(t)}},xI=function(t){gw.mark("".concat(Hu," ").concat(t," ends")),gw.measure("".concat(Hu," ").concat(t),"".concat(Hu," ").concat(t," begins"),"".concat(Hu," ").concat(t," ends"))},yC={begin:FG,end:xI},rm=function(){};function Sk(e){var t=e.getAttribute?e.getAttribute(Ka):null;return typeof t=="string"}function $G(e){var t=e.getAttribute?e.getAttribute(cC):null,n=e.getAttribute?e.getAttribute(uC):null;return t&&n}function jG(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(He.replacementClass)}function BG(){if(He.autoReplaceSvg===!0)return im.replace;var e=im[He.autoReplaceSvg];return e||im.replace}function zG(e){return Lt.createElementNS("http://www.w3.org/2000/svg",e)}function UG(e){return Lt.createElement(e)}function SI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?zG:UG:n;if(typeof e=="string")return Lt.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var o=e.children||[];return o.forEach(function(s){i.appendChild(SI(s,{ceFn:r}))}),i}function VG(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var im={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(SI(i),n)}),n.getAttribute(Ka)===null&&He.keepOriginalSource){var r=Lt.createComment(VG(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~dC(n).indexOf(He.replacementClass))return im.replace(t);var i=new RegExp("".concat(He.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(a,l){return l===He.replacementClass||l.match(i)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(a){return Hd(a)}).join(` -`);n.setAttribute(Ka,""),n.innerHTML=s}};function Ck(e){e()}function CI(e,t){var n=typeof t=="function"?t:rm;if(e.length===0)n();else{var r=Ck;He.mutateApproach===qq&&(r=As.requestAnimationFrame||Ck),r(function(){var i=BG(),o=yC.begin("mutate");e.map(i),o(),n()})}}var _C=!1;function EI(){_C=!0}function vw(){_C=!1}var Gg=null;function Ek(e){if(pk&&He.observeMutations){var t=e.treeCallback,n=t===void 0?rm:t,r=e.nodeCallback,i=r===void 0?rm:r,o=e.pseudoElementsCallback,s=o===void 0?rm:o,a=e.observeMutationsRoot,l=a===void 0?Lt:a;Gg=new pk(function(c){if(!_C){var f=Is();Qc(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!Sk(h.addedNodes[0])&&(He.searchPseudoElements&&s(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&He.searchPseudoElements&&s(h.target.parentNode),h.type==="attributes"&&Sk(h.target)&&~eG.indexOf(h.attributeName))if(h.attributeName==="class"&&$G(h.target)){var p=s_(dC(h.target)),m=p.prefix,g=p.iconName;h.target.setAttribute(cC,m||f),g&&h.target.setAttribute(uC,g)}else jG(h.target)&&i(h.target)})}}),$o&&Gg.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function HG(){Gg&&Gg.disconnect()}function WG(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],a=o.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function YG(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=s_(dC(e));return i.prefix||(i.prefix=Is()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=SG(i.prefix,e.innerText)||mC(i.prefix,uw(e.innerText))),!i.iconName&&He.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function qG(e){var t=Qc(e.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return He.autoA11y&&(n?t["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(r||ad()):(t["aria-hidden"]="true",t.focusable="false")),t}function GG(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Yi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Tk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=YG(e),r=n.iconName,i=n.prefix,o=n.rest,s=qG(e),a=dw("parseNodeAttributes",{},e),l=t.styleParser?WG(e):[];return ze({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Yi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:s}},a)}var ZG=_i.styles;function TI(e){var t=He.autoReplaceSvg==="nest"?Tk(e,{styleParser:!1}):Tk(e);return~t.extra.classes.indexOf(lI)?Mo("generateLayersText",e,t):Mo("generateSvgReplacementMutation",e,t)}var Fs=new Set;fC.map(function(e){Fs.add("fa-".concat(e))});Object.keys(rd[Mt]).map(Fs.add.bind(Fs));Object.keys(rd[Zt]).map(Fs.add.bind(Fs));Fs=Ud(Fs);function Ok(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!$o)return Promise.resolve();var n=Lt.documentElement.classList,r=function(h){return n.add("".concat(mk,"-").concat(h))},i=function(h){return n.remove("".concat(mk,"-").concat(h))},o=He.autoFetchSvg?Fs:fC.map(function(f){return"fa-".concat(f)}).concat(Object.keys(ZG));o.includes("fa")||o.push("fa");var s=[".".concat(lI,":not([").concat(Ka,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Ka,"])")})).join(", ");if(s.length===0)return Promise.resolve();var a=[];try{a=Qc(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();var l=yC.begin("onTree"),c=a.reduce(function(f,h){try{var p=TI(h);p&&f.push(p)}catch(m){aI||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){CI(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(function(p){l(),h(p)})})}function KG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;TI(e).then(function(n){n&&CI([n],t)})}function XG(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:hw(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:hw(i||{})),e(r,ze(ze({},n),{},{mask:i}))}}var QG=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Yi:r,o=n.symbol,s=o===void 0?!1:o,a=n.mask,l=a===void 0?null:a,c=n.maskId,f=c===void 0?null:c,h=n.title,p=h===void 0?null:h,m=n.titleId,g=m===void 0?null:m,v=n.classes,w=v===void 0?[]:v,_=n.attributes,b=_===void 0?{}:_,x=n.styles,E=x===void 0?{}:x;if(t){var P=t.prefix,k=t.iconName,N=t.icon;return a_(ze({type:"icon"},t),function(){return Xa("beforeDOMElementCreation",{iconDefinition:t,params:n}),He.autoA11y&&(p?b["aria-labelledby"]="".concat(He.replacementClass,"-title-").concat(g||ad()):(b["aria-hidden"]="true",b.focusable="false")),vC({icons:{main:pw(N),mask:l?pw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:k,transform:ze(ze({},Yi),i),symbol:s,title:p,maskId:f,titleId:g,extra:{attributes:b,styles:E,classes:w}})})}},JG={mixout:function(){return{icon:XG(QG)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Ok,n.nodeCallback=KG,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Lt:r,o=n.callback,s=o===void 0?function(){}:o;return Ok(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,s=r.titleId,a=r.prefix,l=r.transform,c=r.symbol,f=r.mask,h=r.maskId,p=r.extra;return new Promise(function(m,g){Promise.all([mw(i,a),f.iconName?mw(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(v){var w=aC(v,2),_=w[0],b=w[1];m([n,vC({icons:{main:_,mask:b},prefix:a,iconName:i,transform:l,symbol:c,maskId:h,title:o,titleId:s,extra:p,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,a=n.styles,l=i_(a);l.length>0&&(i.style=l);var c;return hC(s)&&(c=Mo("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},eZ={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return a_({type:"layer"},function(){Xa("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(a){Array.isArray(a)?a.map(function(l){s=s.concat(l.abstract)}):s=s.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(He.cssPrefix,"-layers")].concat(Ud(o)).join(" ")},children:s}]})}}}},tZ={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,s=r.classes,a=s===void 0?[]:s,l=r.attributes,c=l===void 0?{}:l,f=r.styles,h=f===void 0?{}:f;return a_({type:"counter",content:n},function(){return Xa("beforeDOMElementCreation",{content:n,params:r}),DG({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(He.cssPrefix,"-layers-counter")].concat(Ud(a))}})})}}}},nZ={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Yi:i,s=r.title,a=s===void 0?null:s,l=r.classes,c=l===void 0?[]:l,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return a_({type:"text",content:n},function(){return Xa("beforeDOMElementCreation",{content:n,params:r}),wk({content:n,transform:ze(ze({},Yi),o),title:a,extra:{attributes:h,styles:m,classes:["".concat(He.cssPrefix,"-layers-text")].concat(Ud(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,s=r.extra,a=null,l=null;if(iI){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();a=f.width/c,l=f.height/c}return He.autoA11y&&!i&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,wk({content:n.innerHTML,width:a,height:l,transform:o,title:i,extra:s,watchable:!0})])}}},rZ=new RegExp('"',"ug"),Pk=[1105920,1112319];function iZ(e){var t=e.replace(rZ,""),n=vG(t,0),r=n>=Pk[0]&&n<=Pk[1],i=t.length===2?t[0]===t[1]:!1;return{value:uw(i?t[0]:t),isSecondary:r||i}}function kk(e,t){var n="".concat(Yq).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Qc(e.children),s=o.filter(function(N){return N.getAttribute(cw)===t})[0],a=As.getComputedStyle(e,t),l=a.getPropertyValue("font-family").match(Xq),c=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&f!=="none"&&f!==""){var h=a.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Zt:Mt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?id[p][l[2].toLowerCase()]:Qq[p][c],g=iZ(h),v=g.value,w=g.isSecondary,_=l[0].startsWith("FontAwesome"),b=mC(m,v),x=b;if(_){var E=CG(v);E.iconName&&E.prefix&&(b=E.iconName,m=E.prefix)}if(b&&!w&&(!s||s.getAttribute(cC)!==m||s.getAttribute(uC)!==x)){e.setAttribute(n,x),s&&e.removeChild(s);var P=GG(),k=P.extra;k.attributes[cw]=t,mw(b,m).then(function(N){var D=vC(ze(ze({},P),{},{icons:{main:N,mask:gC()},prefix:m,iconName:x,extra:k,watchable:!0})),U=Lt.createElement("svg");t==="::before"?e.insertBefore(U,e.firstChild):e.appendChild(U),U.outerHTML=D.map(function(A){return Hd(A)}).join(` -`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function oZ(e){return Promise.all([kk(e,"::before"),kk(e,"::after")])}function sZ(e){return e.parentNode!==document.head&&!~Gq.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(cw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Mk(e){if($o)return new Promise(function(t,n){var r=Qc(e.querySelectorAll("*")).filter(sZ).map(oZ),i=yC.begin("searchPseudoElements");EI(),Promise.all(r).then(function(){i(),vw(),t()}).catch(function(){i(),vw(),n()})})}var aZ={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Mk,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Lt:r;He.searchPseudoElements&&Mk(i)}}},Rk=!1,lZ={mixout:function(){return{dom:{unwatch:function(){EI(),Rk=!0}}}},hooks:function(){return{bootstrap:function(){Ek(dw("mutationObserverCallbacks",{}))},noAuto:function(){HG()},watch:function(n){var r=n.observeMutationsRoot;Rk?vw():Ek(dw("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Nk=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),s=o[0],a=o.slice(1).join("-");if(s&&a==="h")return r.flipX=!0,r;if(s&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(s){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},n)},cZ={mixout:function(){return{parse:{transform:function(n){return Nk(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=Nk(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,a={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),h={transform:"".concat(l," ").concat(c," ").concat(f)},p={transform:"translate(".concat(s/2*-1," -256)")},m={outer:a,inner:h,path:p};return{tag:"g",attributes:ze({},m.outer),children:[{tag:"g",attributes:ze({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ze(ze({},r.icon.attributes),m.path)}]}]}}}},ib={x:0,y:0,width:"100%",height:"100%"};function Lk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function uZ(e){return e.tag==="g"?e.children:[e]}var fZ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?s_(i.split(" ").map(function(s){return s.trim()})):gC();return o.prefix||(o.prefix=Is()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.mask,a=n.maskId,l=n.transform,c=o.width,f=o.icon,h=s.width,p=s.icon,m=cG({transform:l,containerWidth:h,iconWidth:c}),g={tag:"rect",attributes:ze(ze({},ib),{},{fill:"white"})},v=f.children?{children:f.children.map(Lk)}:{},w={tag:"g",attributes:ze({},m.inner),children:[Lk(ze({tag:f.tag,attributes:ze(ze({},f.attributes),m.path)},v))]},_={tag:"g",attributes:ze({},m.outer),children:[w]},b="mask-".concat(a||ad()),x="clip-".concat(a||ad()),E={tag:"mask",attributes:ze(ze({},ib),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,_]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:uZ(p)},E]};return r.push(P,{tag:"rect",attributes:ze({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(b,")")},ib)}),{children:r,attributes:i}}}},dZ={provides:function(t){var n=!1;As.matchMedia&&(n=As.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:ze(ze({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=ze(ze({},o),{},{attributeName:"opacity"}),a={tag:"circle",attributes:ze(ze({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||a.children.push({tag:"animate",attributes:ze(ze({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ze(ze({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:ze(ze({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ze(ze({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ze(ze({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ze(ze({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},hZ={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},pZ=[dG,JG,eZ,tZ,nZ,aZ,lZ,cZ,fZ,dZ,hZ];OG(pZ,{mixoutsTo:jr});jr.noAuto;jr.config;jr.library;jr.dom;var yw=jr.parse;jr.findIconDefinition;jr.toHtml;var mZ=jr.icon;jr.layer;jr.text;jr.counter;var S={},gZ={get exports(){return S},set exports(e){S=e}},vZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yZ=vZ,_Z=yZ;function OI(){}function PI(){}PI.resetWarningCache=OI;var bZ=function(){function e(r,i,o,s,a,l){if(l!==_Z){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:PI,resetWarningCache:OI};return n.PropTypes=n,n};gZ.exports=bZ();function Dk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function us(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function xZ(e,t){if(e==null)return{};var n=wZ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _w(e){return SZ(e)||CZ(e)||EZ(e)||TZ()}function SZ(e){if(Array.isArray(e))return bw(e)}function CZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EZ(e,t){if(e){if(typeof e=="string")return bw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bw(e,t)}}function bw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return MI(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var f=t.attributes[c];switch(c){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=RZ(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[kI(c)]=f}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=xZ(n,kZ);return i.attrs.style=us(us({},i.attrs.style),s),e.apply(void 0,[t.tag,us(us({},i.attrs),a)].concat(_w(r)))}var RI=!1;try{RI=!0}catch{}function NZ(){if(!RI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ak(e){if(e&&Zg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(yw.icon)return yw.icon(e);if(e===null)return null;if(e&&Zg(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function ob(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?tc({},e,t):{}}var je=z.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,s=e.title,a=e.titleId,l=e.maskId,c=Ak(n),f=ob("classes",[].concat(_w(OZ(e)),_w(o.split(" ")))),h=ob("transform",typeof e.transform=="string"?yw.transform(e.transform):e.transform),p=ob("mask",Ak(r)),m=mZ(c,us(us(us(us({},f),h),p),{},{symbol:i,title:s,titleId:a,maskId:l}));if(!m)return NZ("Could not find icon",c),null;var g=m.abstract,v={ref:t};return Object.keys(e).forEach(function(w){je.defaultProps.hasOwnProperty(w)||(v[w]=e[w])}),LZ(g[0],v)});je.displayName="FontAwesomeIcon";je.propTypes={beat:S.bool,border:S.bool,beatFade:S.bool,bounce:S.bool,className:S.string,fade:S.bool,flash:S.bool,mask:S.oneOfType([S.object,S.array,S.string]),maskId:S.string,fixedWidth:S.bool,inverse:S.bool,flip:S.oneOf([!0,!1,"horizontal","vertical","both"]),icon:S.oneOfType([S.object,S.array,S.string]),listItem:S.bool,pull:S.oneOf(["right","left"]),pulse:S.bool,rotation:S.oneOf([0,90,180,270]),shake:S.bool,size:S.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:S.bool,spinPulse:S.bool,spinReverse:S.bool,symbol:S.oneOfType([S.bool,S.string]),title:S.string,titleId:S.string,transform:S.oneOfType([S.string,S.object]),swapOpacity:S.bool};je.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var LZ=MI.bind(null,z.createElement),ww={},DZ={get exports(){return ww},set exports(e){ww=e}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i1?n-1:0),i=1;i"u")return!1;var t=si(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qZ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Qr(o)||!eo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function GZ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Qr(i)||!eo(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const ZZ={name:"applyStyles",enabled:!0,phase:"write",fn:qZ,effect:GZ,requires:["computeStyles"]};function Zi(e){return e.split("-")[0]}var ja=Math.max,Kg=Math.min,Rc=Math.round;function Sw(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function $I(){return!/^((?!chrome|android).)*safari/i.test(Sw())}function Nc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Qr(e)&&(i=e.offsetWidth>0&&Rc(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Rc(r.height)/e.offsetHeight||1);var s=Qa(e)?si(e):window,a=s.visualViewport,l=!$I()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,f=(r.top+(l&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function xC(e){var t=Nc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function jI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wC(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ro(e){return si(e).getComputedStyle(e)}function KZ(e){return["table","td","th"].indexOf(eo(e))>=0}function Qs(e){return((Qa(e)?e.ownerDocument:e.document)||window.document).documentElement}function l_(e){return eo(e)==="html"?e:e.assignedSlot||e.parentNode||(wC(e)?e.host:null)||Qs(e)}function Bk(e){return!Qr(e)||Ro(e).position==="fixed"?null:e.offsetParent}function XZ(e){var t=/firefox/i.test(Sw()),n=/Trident/i.test(Sw());if(n&&Qr(e)){var r=Ro(e);if(r.position==="fixed")return null}var i=l_(e);for(wC(i)&&(i=i.host);Qr(i)&&["html","body"].indexOf(eo(i))<0;){var o=Ro(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Yd(e){for(var t=si(e),n=Bk(e);n&&KZ(n)&&Ro(n).position==="static";)n=Bk(n);return n&&(eo(n)==="html"||eo(n)==="body"&&Ro(n).position==="static")?t:n||XZ(e)||t}function SC(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gf(e,t,n){return ja(e,Kg(t,n))}function QZ(e,t,n){var r=gf(e,t,n);return r>n?n:r}function BI(){return{top:0,right:0,bottom:0,left:0}}function zI(e){return Object.assign({},BI(),e)}function UI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var JZ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,zI(typeof t!="number"?t:UI(t,Wd))};function eK(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Zi(n.placement),l=SC(a),c=[Sr,ri].indexOf(a)>=0,f=c?"height":"width";if(!(!o||!s)){var h=JZ(i.padding,n),p=xC(o),m=l==="y"?xr:Sr,g=l==="y"?ni:ri,v=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],w=s[l]-n.rects.reference[l],_=Yd(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,x=v/2-w/2,E=h[m],P=b-p[f]-h[g],k=b/2-p[f]/2+x,N=gf(E,k,P),D=l;n.modifiersData[r]=(t={},t[D]=N,t.centerOffset=N-k,t)}}function tK(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||jI(t.elements.popper,i)&&(t.elements.arrow=i))}const nK={name:"arrow",enabled:!0,phase:"main",fn:eK,effect:tK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Lc(e){return e.split("-")[1]}var rK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iK(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Rc(t*i)/i||0,y:Rc(n*i)/i||0}}function zk(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,m=p===void 0?0:p,g=s.y,v=g===void 0?0:g,w=typeof f=="function"?f({x:m,y:v}):{x:m,y:v};m=w.x,v=w.y;var _=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=Sr,E=xr,P=window;if(c){var k=Yd(n),N="clientHeight",D="clientWidth";if(k===si(n)&&(k=Qs(n),Ro(k).position!=="static"&&a==="absolute"&&(N="scrollHeight",D="scrollWidth")),k=k,i===xr||(i===Sr||i===ri)&&o===ld){E=ni;var U=h&&k===P&&P.visualViewport?P.visualViewport.height:k[N];v-=U-r.height,v*=l?1:-1}if(i===Sr||(i===xr||i===ni)&&o===ld){x=ri;var A=h&&k===P&&P.visualViewport?P.visualViewport.width:k[D];m-=A-r.width,m*=l?1:-1}}var Y=Object.assign({position:a},c&&rK),q=f===!0?iK({x:m,y:v}):{x:m,y:v};if(m=q.x,v=q.y,l){var ee;return Object.assign({},Y,(ee={},ee[E]=b?"0":"",ee[x]=_?"0":"",ee.transform=(P.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",ee))}return Object.assign({},Y,(t={},t[E]=b?v+"px":"",t[x]=_?m+"px":"",t.transform="",t))}function oK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Zi(t.placement),variation:Lc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zk(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zk(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const sK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oK,data:{}};var pp={passive:!0};function aK(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=si(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,pp)}),a&&l.addEventListener("resize",n.update,pp),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,pp)}),a&&l.removeEventListener("resize",n.update,pp)}}const lK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aK,data:{}};var cK={left:"right",right:"left",bottom:"top",top:"bottom"};function om(e){return e.replace(/left|right|bottom|top/g,function(t){return cK[t]})}var uK={start:"end",end:"start"};function Uk(e){return e.replace(/start|end/g,function(t){return uK[t]})}function CC(e){var t=si(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function EC(e){return Nc(Qs(e)).left+CC(e).scrollLeft}function fK(e,t){var n=si(e),r=Qs(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=$I();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+EC(e),y:l}}function dK(e){var t,n=Qs(e),r=CC(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ja(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=ja(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+EC(e),l=-r.scrollTop;return Ro(i||n).direction==="rtl"&&(a+=ja(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function TC(e){var t=Ro(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function VI(e){return["html","body","#document"].indexOf(eo(e))>=0?e.ownerDocument.body:Qr(e)&&TC(e)?e:VI(l_(e))}function vf(e,t){var n;t===void 0&&(t=[]);var r=VI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=si(r),s=i?[o].concat(o.visualViewport||[],TC(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(vf(l_(s)))}function Cw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hK(e,t){var n=Nc(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vk(e,t,n){return t===II?Cw(fK(e,n)):Qa(t)?hK(t,n):Cw(dK(Qs(e)))}function pK(e){var t=vf(l_(e)),n=["absolute","fixed"].indexOf(Ro(e).position)>=0,r=n&&Qr(e)?Yd(e):e;return Qa(r)?t.filter(function(i){return Qa(i)&&jI(i,r)&&eo(i)!=="body"}):[]}function mK(e,t,n,r){var i=t==="clippingParents"?pK(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var f=Vk(e,c,r);return l.top=ja(f.top,l.top),l.right=Kg(f.right,l.right),l.bottom=Kg(f.bottom,l.bottom),l.left=ja(f.left,l.left),l},Vk(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function HI(e){var t=e.reference,n=e.element,r=e.placement,i=r?Zi(r):null,o=r?Lc(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case xr:l={x:s,y:t.y-n.height};break;case ni:l={x:s,y:t.y+t.height};break;case ri:l={x:t.x+t.width,y:a};break;case Sr:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?SC(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case Mc:l[c]=l[c]-(t[f]/2-n[f]/2);break;case ld:l[c]=l[c]+(t[f]/2-n[f]/2);break}}return l}function cd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?AZ:a,c=n.rootBoundary,f=c===void 0?II:c,h=n.elementContext,p=h===void 0?Mu:h,m=n.altBoundary,g=m===void 0?!1:m,v=n.padding,w=v===void 0?0:v,_=zI(typeof w!="number"?w:UI(w,Wd)),b=p===Mu?IZ:Mu,x=e.rects.popper,E=e.elements[g?b:p],P=mK(Qa(E)?E:E.contextElement||Qs(e.elements.popper),l,f,s),k=Nc(e.elements.reference),N=HI({reference:k,element:x,strategy:"absolute",placement:i}),D=Cw(Object.assign({},x,N)),U=p===Mu?D:k,A={top:P.top-U.top+_.top,bottom:U.bottom-P.bottom+_.bottom,left:P.left-U.left+_.left,right:U.right-P.right+_.right},Y=e.modifiersData.offset;if(p===Mu&&Y){var q=Y[i];Object.keys(A).forEach(function(ee){var Z=[ri,ni].indexOf(ee)>=0?1:-1,te=[xr,ni].indexOf(ee)>=0?"y":"x";A[ee]+=q[te]*Z})}return A}function gK(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?FI:l,f=Lc(r),h=f?a?jk:jk.filter(function(g){return Lc(g)===f}):Wd,p=h.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=h);var m=p.reduce(function(g,v){return g[v]=cd(e,{placement:v,boundary:i,rootBoundary:o,padding:s})[Zi(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function vK(e){if(Zi(e)===bC)return[];var t=om(e);return[Uk(e),t,Uk(t)]}function yK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,v=n.allowedAutoPlacements,w=t.options.placement,_=Zi(w),b=_===w,x=l||(b||!g?[om(w)]:vK(w)),E=[w].concat(x).reduce(function(G,re){return G.concat(Zi(re)===bC?gK(t,{placement:re,boundary:f,rootBoundary:h,padding:c,flipVariations:g,allowedAutoPlacements:v}):re)},[]),P=t.rects.reference,k=t.rects.popper,N=new Map,D=!0,U=E[0],A=0;A=0,te=Z?"width":"height",ne=cd(t,{placement:Y,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),le=Z?ee?ri:Sr:ee?ni:xr;P[te]>k[te]&&(le=om(le));var K=om(le),$=[];if(o&&$.push(ne[q]<=0),a&&$.push(ne[le]<=0,ne[K]<=0),$.every(function(G){return G})){U=Y,D=!1;break}N.set(Y,$)}if(D)for(var I=g?3:1,B=function(re){var se=E.find(function(me){var O=N.get(me);if(O)return O.slice(0,re).every(function(R){return R})});if(se)return U=se,"break"},ie=I;ie>0;ie--){var W=B(ie);if(W==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const _K={name:"flip",enabled:!0,phase:"main",fn:yK,requiresIfExists:["offset"],data:{_skip:!1}};function Hk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wk(e){return[xr,ri,ni,Sr].some(function(t){return e[t]>=0})}function bK(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=cd(t,{elementContext:"reference"}),a=cd(t,{altBoundary:!0}),l=Hk(s,r),c=Hk(a,i,o),f=Wk(l),h=Wk(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const wK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bK};function xK(e,t,n){var r=Zi(e),i=[Sr,xr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Sr,ri].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function SK(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=FI.reduce(function(f,h){return f[h]=xK(h,t.rects,o),f},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const CK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SK};function EK(e){var t=e.state,n=e.name;t.modifiersData[n]=HI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const TK={name:"popperOffsets",enabled:!0,phase:"read",fn:EK,data:{}};function OK(e){return e==="x"?"y":"x"}function PK(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=p===void 0?!0:p,g=n.tetherOffset,v=g===void 0?0:g,w=cd(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),_=Zi(t.placement),b=Lc(t.placement),x=!b,E=SC(_),P=OK(E),k=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,U=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(k){if(o){var ee,Z=E==="y"?xr:Sr,te=E==="y"?ni:ri,ne=E==="y"?"height":"width",le=k[E],K=le+w[Z],$=le-w[te],I=m?-D[ne]/2:0,B=b===Mc?N[ne]:D[ne],ie=b===Mc?-D[ne]:-N[ne],W=t.elements.arrow,G=m&&W?xC(W):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:BI(),se=re[Z],me=re[te],O=gf(0,N[ne],G[ne]),R=x?N[ne]/2-I-O-se-A.mainAxis:B-O-se-A.mainAxis,F=x?-N[ne]/2+I+O+me+A.mainAxis:ie+O+me+A.mainAxis,Q=t.elements.arrow&&Yd(t.elements.arrow),X=Q?E==="y"?Q.clientTop||0:Q.clientLeft||0:0,ae=(ee=Y==null?void 0:Y[E])!=null?ee:0,ve=le+R-ae-X,De=le+F-ae,fe=gf(m?Kg(K,ve):K,le,m?ja($,De):$);k[E]=fe,q[E]=fe-le}if(a){var ye,be=E==="x"?xr:Sr,Oe=E==="x"?ni:ri,Ae=k[P],Ne=P==="y"?"height":"width",Le=Ae+w[be],ue=Ae-w[Oe],he=[xr,Sr].indexOf(_)!==-1,we=(ye=Y==null?void 0:Y[P])!=null?ye:0,_e=he?Le:Ae-N[Ne]-D[Ne]-we+A.altAxis,Ee=he?Ae+N[Ne]+D[Ne]-we-A.altAxis:ue,Me=m&&he?QZ(_e,Ae,Ee):gf(m?_e:Le,Ae,m?Ee:ue);k[P]=Me,q[P]=Me-Ae}t.modifiersData[r]=q}}const kK={name:"preventOverflow",enabled:!0,phase:"main",fn:PK,requiresIfExists:["offset"]};function MK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RK(e){return e===si(e)||!Qr(e)?CC(e):MK(e)}function NK(e){var t=e.getBoundingClientRect(),n=Rc(t.width)/e.offsetWidth||1,r=Rc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function LK(e,t,n){n===void 0&&(n=!1);var r=Qr(t),i=Qr(t)&&NK(t),o=Qs(t),s=Nc(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((eo(t)!=="body"||TC(o))&&(a=RK(t)),Qr(t)?(l=Nc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=EC(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function DK(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function AK(e){var t=DK(e);return YZ.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function IK(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function FK(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Yk={placement:"bottom",modifiers:[],strategy:"absolute"};function qk(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}function Ze(e,t){if(e==null)return{};var n=QK(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JK(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function OC(e){document.body.style.paddingRight=e>0?`${e}px`:null}function eX(){return document.body.clientWidtht[n]||n).join(" "):e}function Er(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function XI(e,t){const n=Array.isArray(t)?t:[t];let{length:r}=n,i;const o={};for(;r>0;)r-=1,i=n[r],o[i]=e[i];return o}let Kk={};function Ow(e){Kk[e]||(typeof console<"u"&&console.error(e),Kk[e]=!0)}function QI(e,t){return function(r,i,o,...s){return r[i]!==null&&typeof r[i]<"u"&&Ow(`"${i}" property of "${o}" has been deprecated. -${t}`),e(r,i,o,...s)}}const nX=typeof window=="object"&&window.Element||function(){};function PC(e,t,n){if(!(e[t]instanceof nX))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}const $s=S.oneOfType([S.string,S.func,PC,S.shape({current:S.any})]),ke=S.oneOfType([S.func,S.string,S.shape({$$typeof:S.symbol,render:S.func}),S.arrayOf(S.oneOfType([S.func,S.string,S.shape({$$typeof:S.symbol,render:S.func})]))]),Ja={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Xg=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],go={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},vt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},rX=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],kC=!!(typeof window<"u"&&window.document&&window.document.createElement);function iX(e){return e&&typeof e=="object"?"current"in e:!1}function JI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Qg(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}function Xk(e){const t=typeof e,n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&JI(e)==="[object Symbol]")return n;if(Qg(e)){const i=typeof e.valueOf=="function"?e.valueOf():e;e=Qg(i)?`${i}`:i}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");const r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function oX(e){if(!Qg(e))return!1;const t=JI(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function e6(e){if(iX(e))return e.current;if(oX(e))return e();if(typeof e=="string"&&kC){let t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll(`#${e}`)),!t.length)throw new Error(`The target '${e}' could not be identified in the dom, tip: check spelling`);return t}return e}function Jg(e){return e===null?!1:Array.isArray(e)||kC&&typeof e.length=="number"}function Dc(e,t){const n=e6(e);return t?Jg(n)?n:n===null?[]:[n]:Jg(n)?n[0]:n}const sX=["touchstart","click"];function aX(e,t,n,r){let i=e;Jg(i)||(i=[i]);let o=n;if(typeof o=="string"&&(o=o.split(/\s+/)),!Jg(i)||typeof t!="function"||!Array.isArray(o))throw new Error(` - The first argument of this function must be DOM node or an array on DOM nodes or NodeList. - The second must be a function. - The third is a string or an array of strings that represents DOM events - `);return Array.prototype.forEach.call(o,s=>{Array.prototype.forEach.call(i,a=>{a.addEventListener(s,t,r)})}),function(){Array.prototype.forEach.call(o,a=>{Array.prototype.forEach.call(i,l=>{l.removeEventListener(a,t,r)})})}}const t6=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];S.oneOfType([S.bool,S.string]),S.string,S.object;const lX=["className","cssModule","noGutters","tag","widths"],cX=["xs","sm","md","lg","xl","xxl"],Pl=S.oneOfType([S.number,S.string]),uX={tag:ke,noGutters:QI(S.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:S.string,cssModule:S.object,xs:Pl,sm:Pl,md:Pl,lg:Pl,xl:Pl,xxl:Pl,widths:S.array},fX={tag:"div",widths:cX};function ur(e){const{className:t,cssModule:n,noGutters:r,tag:i,widths:o}=e,s=Ze(e,lX),a=[];o.forEach((c,f)=>{let h=e[c];if(delete s[c],!h)return;const p=!f;a.push(p?`row-cols-${h}`:`row-cols-${c}-${h}`)});const l=$e(ge(t,r?"gx-0":null,"row",a),n);return z.createElement(i,Be({},s,{className:l}))}ur.propTypes=uX;ur.defaultProps=fX;const dX=["className","cssModule","widths","tag"],n6=["xs","sm","md","lg","xl","xxl"],Qk=S.oneOfType([S.number,S.string]),kl=S.oneOfType([S.bool,S.number,S.string,S.shape({size:S.oneOfType([S.bool,S.number,S.string]),order:Qk,offset:Qk})]),hX={tag:ke,xs:kl,sm:kl,md:kl,lg:kl,xl:kl,xxl:kl,className:S.string,cssModule:S.object,widths:S.array},pX={tag:"div",widths:n6},Jk=(e,t,n)=>n===!0||n===""?e?"col":`col-${t}`:n==="auto"?e?"col-auto":`col-${t}-auto`:e?`col-${n}`:`col-${t}-${n}`,mX=(e,t,n=n6)=>{const r=e,i=[];return n.forEach((o,s)=>{let a=r[o];if(delete r[o],!a&&a!=="")return;const l=!s;if(Qg(a)){const c=l?"-":`-${o}-`,f=Jk(l,o,a.size);i.push($e(ge({[f]:a.size||a.size==="",[`order${c}${a.order}`]:a.order||a.order===0,[`offset${c}${a.offset}`]:a.offset||a.offset===0}),t))}else{const c=Jk(l,o,a);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function MC(e){const{className:t,cssModule:n,widths:r,tag:i}=e,o=Ze(e,dX);let{modifiedAttributes:s,colClasses:a}=mX(o,n,r);a.length||a.push("col");const l=$e(ge(t,a),n);return z.createElement(i,Be({},s,{className:l}))}MC.propTypes=hX;MC.defaultProps=pX;const gX=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],vX={children:S.node,className:S.string,color:S.string,container:S.oneOfType([S.bool,S.string]),cssModule:S.object,dark:S.bool,expand:S.oneOfType([S.bool,S.string]),fixed:S.string,full:S.bool,light:S.bool,role:S.string,sticky:S.string,tag:ke},yX={tag:"nav",expand:!1,container:"fluid"},_X=e=>e===!1?!1:e===!0||e==="xs"?"navbar-expand":`navbar-expand-${e}`;function RC(e){const{expand:t,className:n,cssModule:r,light:i,dark:o,fixed:s,sticky:a,color:l,container:c,tag:f,children:h}=e,p=Ze(e,gX),m=$e(ge(n,"navbar",_X(t),{"navbar-light":i,"navbar-dark":o,[`bg-${l}`]:l,[`fixed-${s}`]:s,[`sticky-${a}`]:a}),r),g=c&&c===!0?"container":`container-${c}`;return z.createElement(f,Be({},p,{className:m}),c?z.createElement("div",{className:g},h):h)}RC.propTypes=vX;RC.defaultProps=yX;const bX=["className","cssModule","tag"],wX={className:S.string,cssModule:S.object,tag:ke},xX={tag:"a"};function NC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,bX),o=$e(ge(t,"navbar-brand"),n);return z.createElement(r,Be({},i,{className:o}))}NC.propTypes=wX;NC.defaultProps=xX;S.string,S.object,S.bool;const SX=["className","cssModule","children","tag"],CX={className:S.string,cssModule:S.object,tag:ke,type:S.string,children:S.node},EX={tag:"button",type:"button"};function LC(e){const{className:t,cssModule:n,children:r,tag:i}=e,o=Ze(e,SX),s=$e(ge(t,"navbar-toggler"),n);return z.createElement(i,Be({"aria-label":"Toggle navigation"},o,{className:s}),r||z.createElement("span",{className:$e("navbar-toggler-icon",n)}))}LC.propTypes=CX;LC.defaultProps=EX;const TX=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],OX={card:S.bool,className:S.string,cssModule:S.object,fill:S.bool,horizontal:S.oneOf(["center","end"]),justified:S.bool,navbar:S.bool,pills:S.bool,tabs:S.bool,tag:ke,vertical:S.oneOfType([S.bool,S.string])},PX={tag:"ul",vertical:!1},kX=e=>e===!1?!1:e===!0||e==="xs"?"flex-column":`flex-${e}-column`;function c_(e){const{className:t,cssModule:n,tabs:r,pills:i,vertical:o,horizontal:s,justified:a,fill:l,navbar:c,card:f,tag:h}=e,p=Ze(e,TX),m=$e(ge(t,c?"navbar-nav":"nav",s?`justify-content-${s}`:!1,kX(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":a,"nav-fill":l}),n);return z.createElement(h,Be({},p,{className:m}))}c_.propTypes=OX;c_.defaultProps=PX;const MX=["className","cssModule","active","tag"],RX={active:S.bool,className:S.string,cssModule:S.object,tag:ke},NX={tag:"li"};function DC(e){const{className:t,cssModule:n,active:r,tag:i}=e,o=Ze(e,MX),s=$e(ge(t,"nav-item",r?"active":!1),n);return z.createElement(i,Be({},o,{className:s}))}DC.propTypes=RX;DC.defaultProps=NX;const LX=["className","cssModule","active","tag","innerRef"],DX={active:S.bool,className:S.string,cssModule:S.object,disabled:S.bool,href:S.any,innerRef:S.oneOfType([S.object,S.func,S.string]),onClick:S.func,tag:ke},AX={tag:"a"};class AC extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled){t.preventDefault();return}this.props.href==="#"&&t.preventDefault(),this.props.onClick&&this.props.onClick(t)}render(){let t=this.props,{className:n,cssModule:r,active:i,tag:o,innerRef:s}=t,a=Ze(t,LX);const l=$e(ge(n,"nav-link",{disabled:a.disabled,active:i}),r);return z.createElement(o,Be({},a,{ref:s,onClick:this.onClick,className:l}))}}AC.propTypes=DX;AC.defaultProps=AX;var r6=AC;S.string,S.node,S.string,S.object,S.string;S.bool,S.string,S.object;const IX=["className","cssModule","variant","innerRef"],FX={active:S.bool,"aria-label":S.string,onClick:S.func,variant:S.oneOf(["white"]),className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func])},$X={"aria-label":"close"};function IC(e){const{className:t,cssModule:n,variant:r,innerRef:i}=e,o=Ze(e,IX),s=$e(ge(t,"btn-close",r&&`btn-close-${r}`));return z.createElement("button",Be({ref:i,type:"button",className:s},o))}IC.propTypes=FX;IC.defaultProps=$X;const jX=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],BX={active:S.bool,"aria-label":S.string,block:S.bool,children:S.node,className:S.string,cssModule:S.object,close:S.bool,color:S.string,disabled:S.bool,innerRef:S.oneOfType([S.object,S.func,S.string]),onClick:S.func,outline:S.bool,size:S.string,tag:ke},zX={color:"secondary",tag:"button"};function mt(e){const t=H.useCallback(w=>{if(e.disabled){w.preventDefault();return}if(e.onClick)return e.onClick(w)},[e.onClick,e.disabled]);let{active:n,"aria-label":r,block:i,className:o,close:s,cssModule:a,color:l,outline:c,size:f,tag:h,innerRef:p}=e,m=Ze(e,jX);if(s)return z.createElement(IC,m);const g=`btn${c?"-outline":""}-${l}`,v=$e(ge(o,"btn",g,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),a);return m.href&&h==="button"&&(h="a"),z.createElement(h,Be({type:h==="button"&&m.onClick?"button":void 0},m,{className:v,ref:p,onClick:t,"aria-label":r}))}mt.propTypes=BX;mt.defaultProps=zX;S.func,S.func,S.func,S.bool,S.string,S.object;const ud=z.createContext({}),i6=z.createContext({}),UX=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],VX={a11y:S.bool,disabled:S.bool,direction:S.oneOf(["up","down","start","end","left","right"]),group:S.bool,isOpen:S.bool,nav:S.bool,active:S.bool,size:S.string,tag:ke,toggle:S.func,children:S.node,className:S.string,cssModule:S.object,dropup:S.bool,inNavbar:S.bool,setActiveFromChild:S.bool,menuRole:S.oneOf(["listbox","menu"])},HX={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},WX=[vt.space,vt.enter,vt.up,vt.down,vt.end,vt.home];class u_ extends z.Component{constructor(t){super(t),this.addEvents=this.addEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.removeEvents=this.removeEvents.bind(this),this.toggle=this.toggle.bind(this),this.handleMenuRef=this.handleMenuRef.bind(this),this.handleToggleRef=this.handleToggleRef.bind(this),this.containerRef=z.createRef(),this.menuRef=z.createRef(),this.toggleRef=z.createRef()}componentDidMount(){this.handleProps()}componentDidUpdate(t){this.props.isOpen!==t.isOpen&&this.handleProps()}componentWillUnmount(){this.removeEvents()}handleMenuRef(t){this.menuRef.current=t}handleToggleRef(t){this.toggleRef.current=t}handleDocumentClick(t){if(t&&(t.which===3||t.type==="keyup"&&t.which!==vt.tab))return;const n=this.getContainer(),r=this.getMenu(),i=this.getToggle(),o=t.target===i,s=r&&r.contains(t.target)&&r!==t.target;let a=!1;n&&(a=n.classList.contains("input-group")&&n.classList.contains("dropdown")&&t.target.tagName==="INPUT"),!((o&&!a||s)&&(t.type!=="keyup"||t.which===vt.tab))&&this.toggle(t)}handleKeyDown(t){const n=t.target.getAttribute("role")==="menuitem"||t.target.getAttribute("role")==="option",r=this.getMenuCtrl()===t.target,i=vt.tab===t.which;if(!(/input|textarea/i.test(t.target.tagName)||i&&!this.props.a11y||i&&!(n||r))&&((WX.indexOf(t.which)!==-1||t.which>=48&&t.which<=90)&&t.preventDefault(),!this.props.disabled&&(r&&([vt.space,vt.enter,vt.up,vt.down].indexOf(t.which)>-1?(this.props.isOpen||this.toggle(t),setTimeout(()=>this.getMenuItems()[0].focus())):this.props.isOpen&&i?(t.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&t.which===vt.esc&&this.toggle(t)),this.props.isOpen&&n))){if([vt.tab,vt.esc].indexOf(t.which)>-1)this.toggle(t),this.getMenuCtrl().focus();else if([vt.space,vt.enter].indexOf(t.which)>-1)t.target.click(),this.getMenuCtrl().focus();else if([vt.down,vt.up].indexOf(t.which)>-1||[vt.n,vt.p].indexOf(t.which)>-1&&t.ctrlKey){const o=this.getMenuItems();let s=o.indexOf(t.target);vt.up===t.which||vt.p===t.which&&t.ctrlKey?s=s!==0?s-1:o.length-1:(vt.down===t.which||vt.n===t.which&&t.ctrlKey)&&(s=s===o.length-1?0:s+1),o[s].focus()}else if(vt.end===t.which){const o=this.getMenuItems();o[o.length-1].focus()}else if(vt.home===t.which)this.getMenuItems()[0].focus();else if(t.which>=48&&t.which<=90){const o=this.getMenuItems(),s=String.fromCharCode(t.which).toLowerCase();for(let a=0;adocument.addEventListener(t,this.handleDocumentClick,!0))}removeEvents(){["click","touchstart","keyup"].forEach(t=>document.removeEventListener(t,this.handleDocumentClick,!0))}toggle(t){return this.props.disabled?t&&t.preventDefault():this.props.toggle(t)}render(){const t=Er(this.props,["toggle","disabled","inNavbar","a11y"]),{className:n,cssModule:r,direction:i,isOpen:o,group:s,size:a,nav:l,setActiveFromChild:c,active:f,tag:h,menuRole:p}=t,m=Ze(t,UX),g=h||(l?"li":"div");let v=!1;c&&z.Children.map(this.props.children[1].props.children,_=>{_&&_.props.active&&(v=!0)});const w=$e(ge(n,l&&f?"active":!1,c&&v?"active":!1,{"btn-group":s,[`btn-group-${a}`]:!!a,dropdown:!s,dropup:i==="up",dropstart:i==="start"||i==="left",dropend:i==="end"||i==="right",show:o,"nav-item":l}),r);return this.context.insideInputGroup?z.createElement(ud.Provider,{value:this.getContextValue()},z.createElement(Ik,null,z.Children.map(this.props.children,_=>z.cloneElement(_,{onKeyDown:this.handleKeyDown})))):z.createElement(ud.Provider,{value:this.getContextValue()},z.createElement(Ik,null,z.createElement(g,Be({},m,{[typeof g=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:w}))))}}u_.propTypes=VX;u_.defaultProps=HX;u_.contextType=i6;var Jc=u_;const YX={children:S.node};function f_(e){return z.createElement(Jc,Be({group:!0},e))}f_.propTypes=YX;S.string,S.string,S.object,S.string,S.string,S.bool;S.string,S.string,S.object,S.string;const qX=["className","cssModule","divider","tag","header","active","text"],GX={children:S.node,active:S.bool,disabled:S.bool,divider:S.bool,tag:ke,header:S.bool,onClick:S.func,className:S.string,cssModule:S.object,toggle:S.bool,text:S.bool},ZX={tag:"button",toggle:!0};class d_ extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this),this.getTabIndex=this.getTabIndex.bind(this)}onClick(t){const{disabled:n,header:r,divider:i,text:o}=this.props;if(n||r||i||o){t.preventDefault();return}this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t)}getRole(){return this.context.menuRole==="listbox"?"option":"menuitem"}getTabIndex(){const{disabled:t,header:n,divider:r,text:i}=this.props;return t||n||r||i?"-1":"0"}render(){const t=this.getTabIndex(),n=t>-1?this.getRole():void 0;let r=Er(this.props,["toggle"]),{className:i,cssModule:o,divider:s,tag:a,header:l,active:c,text:f}=r,h=Ze(r,qX);const p=$e(ge(i,{disabled:h.disabled,"dropdown-item":!s&&!l&&!f,active:c,"dropdown-header":l,"dropdown-divider":s,"dropdown-item-text":f}),o);return a==="button"&&(l?a="h6":s?a="div":h.href?a="a":f&&(a="span")),z.createElement(a,Be({type:a==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:t,role:n,className:p,onClick:this.onClick}))}}d_.propTypes=GX;d_.defaultProps=ZX;d_.contextType=ud;var Ve=d_;const KX=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],XX={tag:ke,children:S.node.isRequired,dark:S.bool,end:S.bool,flip:S.bool,modifiers:S.array,className:S.string,cssModule:S.object,style:S.object,persist:S.bool,strategy:S.string,container:$s,updateOnSelect:S.bool,right:QI(S.bool,'Please use "end" instead.')},QX={tag:"div",flip:!0,modifiers:[]},JX={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class h_ extends z.Component{getRole(){return this.context.menuRole==="listbox"?"listbox":"menu"}render(){const t=this.props,{className:n,cssModule:r,dark:i,end:o,right:s,tag:a,flip:l,modifiers:c,persist:f,strategy:h,container:p,updateOnSelect:m}=t,g=Ze(t,KX),v=$e(ge(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":o||s,show:this.context.isOpen}),r),w=a;if(f||this.context.isOpen&&!this.context.inNavbar){const E=`${JX[this.context.direction]||"bottom"}-${o||s?"end":"start"}`,P=[...c,{name:"flip",enabled:!!l}],k=z.createElement(qI,{placement:E,modifiers:P,strategy:h},({ref:N,style:D,placement:U,update:A})=>{let Y=qe(qe({},this.props.style),D);const q=ee=>{N(ee);const{onMenuRef:Z}=this.context;Z&&Z(ee)};return z.createElement(w,Be({tabIndex:"-1",role:this.getRole(),ref:q},g,{style:Y,"aria-hidden":!this.context.isOpen,className:v,"data-popper-placement":U,onClick:()=>m&&A()}))});return p?Fa.createPortal(k,Dc(p)):k}const{onMenuRef:_}=this.context;return z.createElement(w,Be({tabIndex:"-1",role:this.getRole()},g,{ref:_,"aria-hidden":!this.context.isOpen,className:v,"data-popper-placement":g.placement}))}}h_.propTypes=XX;h_.defaultProps=QX;h_.contextType=ud;var dl=h_;const eQ=["className","color","cssModule","caret","split","nav","tag","innerRef"],tQ={caret:S.bool,color:S.string,children:S.node,className:S.string,cssModule:S.object,disabled:S.bool,onClick:S.func,"aria-haspopup":S.bool,split:S.bool,tag:ke,nav:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func])},nQ={color:"secondary","aria-haspopup":!0};class p_ extends z.Component{constructor(t){super(t),this.onClick=this.onClick.bind(this)}onClick(t){if(this.props.disabled||this.context.disabled){t.preventDefault();return}this.props.nav&&!this.props.tag&&t.preventDefault(),this.props.onClick&&this.props.onClick(t),this.context.toggle(t)}getRole(){return this.context.menuRole||this.props["aria-haspopup"]}render(){const t=this.props,{className:n,color:r,cssModule:i,caret:o,split:s,nav:a,tag:l,innerRef:c}=t,f=Ze(t,eQ),h=f["aria-label"]||"Toggle Dropdown",p=$e(ge(n,{"dropdown-toggle":o||s,"dropdown-toggle-split":s,"nav-link":a}),i),m=typeof f.children<"u"?f.children:z.createElement("span",{className:"visually-hidden"},h);let g;return a&&!l?(g="a",f.href="#"):l?g=l:(g=mt,f.color=r,f.cssModule=i),this.context.inNavbar?z.createElement(g,Be({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m})):z.createElement(ZK,{innerRef:c},({ref:v})=>{const w=_=>{v(_);const{onToggleRef:b}=this.context;b&&b(_)};return z.createElement(g,Be({},f,{[typeof g=="string"?"ref":"innerRef"]:w,className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m}))})}}p_.propTypes=tQ;p_.defaultProps=nQ;p_.contextType=ud;var eu=p_;const rQ=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],iQ=qe(qe({},Bo.propTypes),{},{children:S.oneOfType([S.arrayOf(S.node),S.node]),tag:ke,baseClass:S.string,baseClassActive:S.string,className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func])}),oQ=qe(qe({},Bo.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:Ja.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Kt(e){const{tag:t,baseClass:n,baseClassActive:r,className:i,cssModule:o,children:s,innerRef:a}=e,l=Ze(e,rQ),c=XI(l,Xg),f=Er(l,Xg);return z.createElement(Bo,c,h=>{const m=$e(ge(i,n,h==="entered"&&r),o);return z.createElement(t,Be({className:m},f,{ref:a}),s)})}Kt.propTypes=iQ;Kt.defaultProps=oQ;z.createContext({});S.node,S.string,S.object,S.bool,S.oneOfType([S.object,S.string,S.func]),S.oneOfType([S.array,S.string]).isRequired,S.func.isRequired;S.string,S.object,S.oneOfType([S.object,S.string,S.func]),S.node,S.oneOfType([S.array,S.string]),S.bool;S.node,S.string,S.object,S.oneOfType([S.object,S.string,S.func]),S.string.isRequired;S.node,S.string,S.object,S.oneOfType([S.object,S.string,S.func]);const sQ=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],aQ=qe(qe({},Bo.propTypes),{},{horizontal:S.bool,isOpen:S.bool,children:S.oneOfType([S.arrayOf(S.node),S.node]),tag:ke,className:S.node,navbar:S.bool,cssModule:S.object,innerRef:S.shape({current:S.object})}),lQ=qe(qe({},Bo.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Ja.Collapse}),cQ={[go.ENTERING]:"collapsing",[go.ENTERED]:"collapse show",[go.EXITING]:"collapsing",[go.EXITED]:"collapse"};function uQ(e){return cQ[e]||"collapse"}class FC extends H.Component{constructor(t){super(t),this.state={dimension:null},this.nodeRef=t.innerRef||z.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(n=>{this[n]=this[n].bind(this)})}onEntering(t,n){const r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onEntering(r,n)}onEntered(t,n){const r=this.getNode();this.setState({dimension:null}),this.props.onEntered(r,n)}onExit(){const t=this.getNode();this.setState({dimension:this.getDimension(t)}),this.props.onExit(t)}onExiting(){const t=this.getNode();this.getDimension(t),this.setState({dimension:0}),this.props.onExiting(t)}onExited(){const t=this.getNode();this.setState({dimension:null}),this.props.onExited(t)}getNode(){return this.nodeRef.current}getDimension(t){return this.props.horizontal?t.scrollWidth:t.scrollHeight}render(){const t=this.props,{tag:n,horizontal:r,isOpen:i,className:o,navbar:s,cssModule:a,children:l,innerRef:c}=t,f=Ze(t,sQ),{dimension:h}=this.state,p=XI(f,Xg),m=Er(f,Xg);return z.createElement(Bo,Be({},p,{in:i,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),g=>{let v=uQ(g);const w=$e(ge(o,r&&"collapse-horizontal",v,s&&"navbar-collapse"),a),_=h===null?null:{[r?"width":"height"]:h};return z.createElement(n,Be({},m,{style:qe(qe({},m.style),_),className:w,ref:this.nodeRef}),l)})}}FC.propTypes=aQ;FC.defaultProps=lQ;var o6=FC;S.string.isRequired,S.string,S.node,S.object,S.oneOfType([S.object,S.string,S.func]);S.node,S.string,S.string,S.object,S.oneOfType([S.object,S.func,S.string]),S.bool;const fQ=["className","cssModule","color","body","inverse","outline","tag","innerRef"],dQ={body:S.bool,className:S.string,color:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func]),inverse:S.bool,outline:S.bool,tag:ke},hQ={tag:"div"};function Cr(e){const{className:t,cssModule:n,color:r,body:i,inverse:o,outline:s,tag:a,innerRef:l}=e,c=Ze(e,fQ),f=$e(ge(t,"card",o?"text-white":!1,i?"card-body":!1,r?`${s?"border":"bg"}-${r}`:!1),n);return z.createElement(a,Be({},c,{className:f,ref:l}))}Cr.propTypes=dQ;Cr.defaultProps=hQ;S.string,S.object;S.string,S.object;S.string,S.object;const pQ=["className","cssModule","innerRef","tag"],mQ={className:S.string,cssModule:S.object,innerRef:S.oneOfType([S.object,S.string,S.func]),tag:ke},gQ={tag:"div"};function el(e){const{className:t,cssModule:n,innerRef:r,tag:i}=e,o=Ze(e,pQ),s=$e(ge(t,"card-body"),n);return z.createElement(i,Be({},o,{className:s,ref:r}))}el.propTypes=mQ;el.defaultProps=gQ;S.oneOfType([S.object,S.func,S.string]),S.string,S.object;const vQ=["className","cssModule","tag"],yQ={className:S.string,cssModule:S.object,tag:ke},_Q={tag:"div"};function $C(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,vQ),o=$e(ge(t,"card-footer"),n);return z.createElement(r,Be({},i,{className:o}))}$C.propTypes=yQ;$C.defaultProps=_Q;const bQ=["className","cssModule","tag"],wQ={className:S.string,cssModule:S.object,tag:ke},xQ={tag:"div"};function tl(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,bQ),o=$e(ge(t,"card-header"),n);return z.createElement(r,Be({},i,{className:o}))}tl.propTypes=wQ;tl.defaultProps=xQ;S.bool,S.string,S.object,S.bool;S.string,S.object;const am=z.createContext({}),SQ=["in","children","cssModule","slide","tag","className"];class m_ extends z.Component{constructor(t){super(t),this.state={startAnimation:!1},this.onEnter=this.onEnter.bind(this),this.onEntering=this.onEntering.bind(this),this.onExit=this.onExit.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onEnter(t,n){this.setState({startAnimation:!1}),this.props.onEnter(t,n)}onEntering(t,n){const{offsetHeight:r}=t;return this.setState({startAnimation:!0}),this.props.onEntering(t,n),r}onExit(t){this.setState({startAnimation:!1}),this.props.onExit(t)}onExiting(t){this.setState({startAnimation:!0}),t.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(t)}onExited(t){t.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(t)}render(){const t=this.props,{in:n,children:r,cssModule:i,slide:o,tag:s,className:a}=t,l=Ze(t,SQ);return z.createElement(Bo,Be({},l,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),c=>{const{direction:f}=this.context,h=c===go.ENTERED||c===go.EXITING,p=(c===go.ENTERING||c===go.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),m=c===go.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),g=$e(ge(a,"carousel-item",h&&"active",p,m),i);return z.createElement(s,{className:g},r)})}}m_.propTypes=qe(qe({},Bo.propTypes),{},{tag:ke,in:S.bool,cssModule:S.object,children:S.node,slide:S.bool,className:S.string});m_.defaultProps=qe(qe({},Bo.defaultProps),{},{tag:"div",timeout:Ja.Carousel,slide:!0});m_.contextType=am;var s6=m_;const CQ=40,a6={activeIndex:S.number,next:S.func.isRequired,previous:S.func.isRequired,keyboard:S.bool,pause:S.oneOf(["hover",!1]),ride:S.oneOf(["carousel"]),interval:S.oneOfType([S.number,S.string,S.bool]),children:S.array,mouseEnter:S.func,mouseLeave:S.func,slide:S.bool,dark:S.bool,fade:S.bool,cssModule:S.object,className:S.string,enableTouch:S.bool},EQ=Object.keys(a6),TQ={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class jC extends z.Component{constructor(t){super(t),this.handleKeyPress=this.handleKeyPress.bind(this),this.renderItems=this.renderItems.bind(this),this.hoverStart=this.hoverStart.bind(this),this.hoverEnd=this.hoverEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.touchStartX=0,this.touchStartY=0,this.state={activeIndex:this.props.activeIndex,direction:"end",indicatorClicked:!1}}componentDidMount(){this.props.ride==="carousel"&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}static getDerivedStateFromProps(t,n){let r=null,{activeIndex:i,direction:o,indicatorClicked:s}=n;return t.activeIndex!==i&&(t.activeIndex===i+1?o="end":t.activeIndex===i-1?o="start":t.activeIndex{this.props.next()},parseInt(this.props.interval,10)))}clearInterval(){clearInterval(this.cycleInterval)}hoverStart(...t){this.props.pause==="hover"&&this.clearInterval(),this.props.mouseEnter&&this.props.mouseEnter(...t)}hoverEnd(...t){this.props.pause==="hover"&&this.setInterval(),this.props.mouseLeave&&this.props.mouseLeave(...t)}renderItems(t,n){const{slide:r}=this.props;return z.createElement("div",{className:n},t.map((i,o)=>{const s=o===this.state.activeIndex;return z.cloneElement(i,{in:s,slide:r})}))}render(){const{cssModule:t,slide:n,className:r,dark:i,fade:o}=this.props,s=Er(this.props,EQ),a=$e(ge(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),t),l=$e(ge("carousel-inner"),t),c=this.props.children.filter(_=>_!=null&&typeof _!="boolean");if(c.every(_=>_.type===s6))return z.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),z.createElement(am.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const _=c[0],b=c[1],x=c[2];return z.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),z.createElement(am.Provider,{value:this.getContextValue()},this.renderItems(_,l),b,x))}const h=c[0],p=_=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(_))},m=z.cloneElement(h,{onClickHandler:p}),g=c[1],v=c[2],w=c[3];return z.createElement("div",Be({},s,{className:a,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),z.createElement(am.Provider,{value:this.getContextValue()},m,this.renderItems(g,l),v,w))}}jC.propTypes=a6;jC.defaultProps=TQ;var OQ=jC;const PQ=["direction","onClickHandler","cssModule","directionText","className"];function Pw(e){const{direction:t,onClickHandler:n,cssModule:r,directionText:i,className:o}=e,s=Ze(e,PQ),a=$e(ge(o,`carousel-control-${t}`),r),l=$e(ge(`carousel-control-${t}-icon`),r),c=$e(ge("visually-hidden"),r);return z.createElement("a",Be({},s,{className:a,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),z.createElement("span",{className:l,"aria-hidden":"true"}),z.createElement("span",{className:c},i||t))}Pw.propTypes={direction:S.oneOf(["prev","next"]).isRequired,onClickHandler:S.func.isRequired,cssModule:S.object,directionText:S.string,className:S.string};const kQ=["items","activeIndex","cssModule","onClickHandler","className"];function l6(e){const{items:t,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=e,s=Ze(e,kQ),a=$e(ge(o,"carousel-indicators"),r),l=t.map((c,f)=>{const h=$e(ge({active:n===f}),r);return z.createElement("button",{"aria-label":c.caption,"data-bs-target":!0,type:"button",key:`${c.key||Object.values(c).join("")}`,onClick:p=>{p.preventDefault(),i(f)},className:h})});return z.createElement("div",Be({className:a},s),l)}l6.propTypes={activeIndex:S.number.isRequired,className:S.string,cssModule:S.object,items:S.array.isRequired,onClickHandler:S.func.isRequired};function c6(e){const{captionHeader:t,captionText:n,cssModule:r,className:i}=e,o=$e(ge(i,"carousel-caption","d-none","d-md-block"),r);return z.createElement("div",{className:o},z.createElement("h3",null,t),z.createElement("p",null,n))}c6.propTypes={captionHeader:S.node,captionText:S.node.isRequired,className:S.string,cssModule:S.object};const MQ=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],RQ={items:S.array.isRequired,indicators:S.bool,controls:S.bool,autoPlay:S.bool,defaultActiveIndex:S.number,activeIndex:S.number,next:S.func,previous:S.func,goToIndex:S.func};class u6 extends H.Component{constructor(t){super(t),this.animating=!1,this.state={activeIndex:t.defaultActiveIndex||0},this.next=this.next.bind(this),this.previous=this.previous.bind(this),this.goToIndex=this.goToIndex.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onExiting(){this.animating=!0}onExited(){this.animating=!1}next(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===this.props.items.length-1?0:t.activeIndex+1}))}previous(){this.animating||this.setState(t=>({activeIndex:t.activeIndex===0?this.props.items.length-1:t.activeIndex-1}))}goToIndex(t){this.animating||this.setState({activeIndex:t})}render(){const t=this.props,{defaultActiveIndex:n,autoPlay:r,indicators:i,controls:o,items:s,goToIndex:a}=t,l=Ze(t,MQ),{activeIndex:c}=this.state,f=s.map(h=>{const p=h.key||h.src;return z.createElement(s6,{onExiting:this.onExiting,onExited:this.onExited,key:p},z.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),z.createElement(c6,{captionText:h.caption,captionHeader:h.header||h.caption}))});return z.createElement(OQ,Be({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&z.createElement(l6,{items:s,activeIndex:l.activeIndex||c,onClickHandler:a||this.goToIndex}),f,o&&z.createElement(Pw,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&z.createElement(Pw,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}u6.propTypes=RQ;u6.defaultProps={controls:!0,indicators:!0,autoPlay:!0};S.string,S.object;const NQ=["className","cssModule","tag"],LQ={className:S.string,cssModule:S.object,tag:ke},DQ={tag:"p"};function BC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,NQ),o=$e(ge(t,"card-text"),n);return z.createElement(r,Be({},i,{className:o}))}BC.propTypes=LQ;BC.defaultProps=DQ;const AQ=["className","cssModule","tag"],IQ={className:S.string,cssModule:S.object,tag:ke},FQ={tag:"div"};function zC(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,AQ),o=$e(ge(t,"card-title"),n);return z.createElement(r,Be({},i,{className:o}))}zC.propTypes=IQ;zC.defaultProps=FQ;const $Q=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function jQ(){}const BQ={children:S.oneOfType([S.node,S.func]).isRequired,popperClassName:S.string,placement:S.string,placementPrefix:S.string,arrowClassName:S.string,hideArrow:S.bool,tag:ke,isOpen:S.bool,cssModule:S.object,offset:S.arrayOf(S.number),fallbackPlacements:S.array,flip:S.bool,container:$s,target:$s.isRequired,modifiers:S.array,strategy:S.string,boundariesElement:S.oneOfType([S.string,PC]),onClosed:S.func,fade:S.bool,transition:S.shape(Kt.propTypes)},zQ={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:jQ,fade:!0,transition:qe({},Kt.defaultProps)};class UC extends z.Component{constructor(t){super(t),this.setTargetNode=this.setTargetNode.bind(this),this.getTargetNode=this.getTargetNode.bind(this),this.getRef=this.getRef.bind(this),this.onClosed=this.onClosed.bind(this),this.state={isOpen:t.isOpen}}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}componentDidUpdate(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}onClosed(){this.props.onClosed(),this.setState({isOpen:!1})}getTargetNode(){return this.targetNode}getContainerNode(){return Dc(this.props.container)}getRef(t){this._element=t}setTargetNode(t){this.targetNode=typeof t=="string"?Dc(t):t}renderChildren(){const t=this.props,{cssModule:n,children:r,isOpen:i,flip:o,target:s,offset:a,fallbackPlacements:l,placementPrefix:c,arrowClassName:f,hideArrow:h,popperClassName:p,tag:m,container:g,modifiers:v,strategy:w,boundariesElement:_,onClosed:b,fade:x,transition:E,placement:P}=t,k=Ze(t,$Q),N=$e(ge("arrow",f),n),D=$e(ge(p,c?`${c}-auto`:""),this.props.cssModule),U=v.map(ee=>ee.name),Y=[...[{name:"offset",options:{offset:a}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:_}}].filter(ee=>!U.includes(ee.name)),...v],q=qe(qe(qe({},Kt.defaultProps),E),{},{baseClass:x?E.baseClass:"",timeout:x?E.timeout:0});return z.createElement(Kt,Be({},q,k,{in:i,onExited:this.onClosed,tag:m}),z.createElement(qI,{referenceElement:this.targetNode,modifiers:Y,placement:P,strategy:w},({ref:ee,style:Z,placement:te,isReferenceHidden:ne,arrowProps:le,update:K})=>z.createElement("div",{ref:ee,style:Z,className:D,"data-popper-placement":te,"data-popper-reference-hidden":ne?"true":void 0},typeof r=="function"?r({update:K}):r,!h&&z.createElement("span",{ref:le.ref,className:N,style:le.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Fa.createPortal(z.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}UC.propTypes=BQ;UC.defaultProps=zQ;var UQ=UC;S.object.isRequired;$s.isRequired;const g_={children:S.oneOfType([S.node,S.func]),placement:S.oneOf(rX),target:$s.isRequired,container:$s,isOpen:S.bool,disabled:S.bool,hideArrow:S.bool,boundariesElement:S.oneOfType([S.string,PC]),className:S.string,innerClassName:S.string,arrowClassName:S.string,popperClassName:S.string,cssModule:S.object,toggle:S.func,autohide:S.bool,placementPrefix:S.string,delay:S.oneOfType([S.shape({show:S.number,hide:S.number}),S.number]),modifiers:S.array,strategy:S.string,offset:S.arrayOf(S.number),innerRef:S.oneOfType([S.func,S.string,S.object]),trigger:S.string,fade:S.bool,flip:S.bool},f6={show:0,hide:50},VQ={isOpen:!1,hideArrow:!1,autohide:!1,delay:f6,toggle:function(){},trigger:"click",fade:!0};function d6(e,t){return t&&(e===t||t.contains(e))}function e3(e,t=[]){return t&&t.length&&t.filter(n=>d6(e,n))[0]}class VC extends z.Component{constructor(t){super(t),this._targets=[],this.currentTargetElement=null,this.addTargetEvents=this.addTargetEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.removeTargetEvents=this.removeTargetEvents.bind(this),this.toggle=this.toggle.bind(this),this.showWithDelay=this.showWithDelay.bind(this),this.hideWithDelay=this.hideWithDelay.bind(this),this.onMouseOverTooltipContent=this.onMouseOverTooltipContent.bind(this),this.onMouseLeaveTooltipContent=this.onMouseLeaveTooltipContent.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.onEscKeyDown=this.onEscKeyDown.bind(this),this.getRef=this.getRef.bind(this),this.state={isOpen:t.isOpen},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.updateTarget()}componentWillUnmount(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}static getDerivedStateFromProps(t,n){return t.isOpen&&!n.isOpen?{isOpen:t.isOpen}:null}handleDocumentClick(t){const n=this.props.trigger.split(" ");n.indexOf("legacy")>-1&&(this.props.isOpen||e3(t.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!d6(t.target,this._popover)?this.hideWithDelay(t):this.props.isOpen||this.showWithDelay(t)):n.indexOf("click")>-1&&e3(t.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(t):this.showWithDelay(t))}onMouseOverTooltipContent(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}onMouseLeaveTooltipContent(t){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),t.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide")))}onEscKeyDown(t){t.key==="Escape"&&this.hide(t)}getRef(t){const{innerRef:n}=this.props;n&&(typeof n=="function"?n(t):typeof n=="object"&&(n.current=t)),this._popover=t}getDelay(t){const{delay:n}=this.props;return typeof n=="object"?isNaN(n[t])?f6[t]:n[t]:n}getCurrentTarget(t){if(!t)return null;const n=this._targets.indexOf(t);return n>=0?this._targets[n]:this.getCurrentTarget(t.parentElement)}show(t){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=t?t.currentTarget||this.getCurrentTarget(t.target):null,t&&t.composedPath&&typeof t.composedPath=="function"){const n=t.composedPath();this.currentTargetElement=n&&n[0]||this.currentTargetElement}this.toggle(t)}}showWithDelay(t){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,t),this.getDelay("show"))}hide(t){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(t))}hideWithDelay(t){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,t),this.getDelay("hide"))}clearShowTimeout(){clearTimeout(this._showTimeout),this._showTimeout=void 0}clearHideTimeout(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}addEventOnTargets(t,n,r){this._targets.forEach(i=>{i.addEventListener(t,n,r)})}removeEventOnTargets(t,n,r){this._targets.forEach(i=>{i.removeEventListener(t,n,r)})}addTargetEvents(){if(this.props.trigger){let t=this.props.trigger.split(" ");t.indexOf("manual")===-1&&((t.indexOf("click")>-1||t.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(t.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),t.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}removeTargetEvents(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}updateTarget(){const t=Dc(this.props.target,!0);t!==this._targets&&(this.removeTargetEvents(),this._targets=t?Array.from(t):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}toggle(t){return this.props.disabled||!this._isMounted?t&&t.preventDefault():this.props.toggle(t)}render(){this.props.isOpen&&this.updateTarget();const t=this.currentTargetElement||this._targets[0];if(!t)return null;const{className:n,cssModule:r,innerClassName:i,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:h,container:p,modifiers:m,strategy:g,offset:v,fade:w,flip:_,children:b}=this.props,x=Er(this.props,Object.keys(g_)),E=$e(h,r),P=$e(i,r);return z.createElement(UQ,{className:n,target:t,isOpen:o,hideArrow:s,boundariesElement:a,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:E,container:p,modifiers:m,strategy:g,offset:v,cssModule:r,fade:w,flip:_},({update:k})=>z.createElement("div",Be({},x,{ref:this.getRef,className:P,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown}),typeof b=="function"?b({update:k}):b))}}VC.propTypes=g_;VC.defaultProps=VQ;var h6=VC;const HQ={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function qd(e){const t=ge("popover","show",e.popperClassName),n=ge("popover-inner",e.innerClassName);return z.createElement(h6,Be({},e,{arrowClassName:"popover-arrow",popperClassName:t,innerClassName:n}))}qd.propTypes=g_;qd.defaultProps=HQ;const WQ=["defaultOpen"];class YQ extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(qd,Be({isOpen:this.state.isOpen,toggle:this.toggle},Er(this.props,WQ)))}}YQ.propTypes=qe({defaultOpen:S.bool},qd.propTypes);S.string,S.object;S.string,S.object;const qQ=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],GQ={animated:S.bool,bar:S.bool,barAriaLabelledBy:S.string,barAriaValueText:S.string,barClassName:S.string,barStyle:S.object,children:S.node,className:S.string,cssModule:S.object,color:S.string,max:S.oneOfType([S.string,S.number]),min:S.oneOfType([S.string,S.number]),multi:S.bool,striped:S.bool,style:S.object,tag:ke,value:S.oneOfType([S.string,S.number])},ZQ={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function HC(e){const{children:t,className:n,barClassName:r,cssModule:i,value:o,min:s,max:a,animated:l,striped:c,color:f,bar:h,multi:p,tag:m,style:g,barStyle:v,barAriaValueText:w,barAriaLabelledBy:_}=e,b=Ze(e,qQ),x=Xk(o)/Xk(a)*100,E=$e(ge(n,"progress"),i),k={className:$e(ge("progress-bar",h&&n||r,l?"progress-bar-animated":null,f?`bg-${f}`:null,c||l?"progress-bar-striped":null),i),style:qe(qe(qe({},h?g:{}),v),{},{width:`${x}%`}),role:"progressbar","aria-valuenow":o,"aria-valuemin":s,"aria-valuemax":a,"aria-valuetext":w,"aria-labelledby":_,children:t};return h?z.createElement(m,Be({},b,k)):z.createElement(m,Be({},b,{style:g,className:E}),p?t:z.createElement("div",k))}HC.propTypes=GQ;HC.defaultProps=ZQ;const KQ={children:S.node.isRequired,node:S.any};class p6 extends z.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return kC?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Fa.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}p6.propTypes=KQ;var m6=p6;function ev(){}const t3=S.shape(Kt.propTypes),g6={autoFocus:S.bool,backdrop:S.oneOfType([S.bool,S.oneOf(["static"])]),backdropClassName:S.string,backdropTransition:t3,centered:S.bool,children:S.node,contentClassName:S.string,className:S.string,container:$s,cssModule:S.object,external:S.node,fade:S.bool,fullscreen:S.oneOfType([S.bool,S.oneOf(["sm","md","lg","xl"])]),innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,keyboard:S.bool,labelledBy:S.string,modalClassName:S.string,modalTransition:t3,onClosed:S.func,onEnter:S.func,onExit:S.func,onOpened:S.func,returnFocusAfterClose:S.bool,role:S.string,scrollable:S.bool,size:S.string,toggle:S.func,trapFocus:S.bool,unmountOnClose:S.bool,wrapClassName:S.string,zIndex:S.oneOfType([S.number,S.string])},XQ=Object.keys(g6),QQ={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:ev,onClosed:ev,modalTransition:{timeout:Ja.Modal},backdropTransition:{mountOnEnter:!0,timeout:Ja.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class Vn extends z.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleStaticBackdropAnimation=this.handleStaticBackdropAnimation.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1,showStaticBackdropAnimation:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._dialog?this._dialog.parentNode:null;if(n&&t.target===n&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.modalIndex{this.setState({showStaticBackdropAnimation:!1})},100)}onOpened(t,n){this.props.onOpened(),(this.props.modalTransition.onEntered||ev)(t,n)}onClosed(t){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||ev)(t),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}getFocusableChildren(){return this._element.querySelectorAll(t6.join(", "))}getFocusedChild(){let t;const n=this.getFocusableChildren();try{t=document.activeElement}catch{t=n[0]}return t}trapFocus(t){if(!this.props.trapFocus||!this._element||this._dialog&&this._dialog.parentNode===t.target||this.modalIndex0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Dc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=ZI(),Vn.openCount<1&&(Vn.originalBodyOverflow=window.getComputedStyle(document.body).overflow),KI(),Vn.openCount===0&&(document.body.className=ge(document.body.className,$e("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=Vn.openCount,Vn.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){if(Vn.openCount<=1){const t=$e("modal-open",this.props.cssModule),n=new RegExp(`(^| )${t}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=Vn.originalBodyOverflow}this.manageFocusAfterClose(),Vn.openCount=Math.max(0,Vn.openCount-1),OC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const t=Er(this.props,XQ),n="modal-dialog";return z.createElement("div",Be({},t,{className:$e(ge(n,this.props.className,{[`modal-${this.props.size}`]:this.props.size,[`${n}-centered`]:this.props.centered,[`${n}-scrollable`]:this.props.scrollable,"modal-fullscreen":this.props.fullscreen===!0,[`modal-fullscreen-${this.props.fullscreen}-down`]:typeof this.props.fullscreen=="string"}),this.props.cssModule),role:"document",ref:r=>{this._dialog=r}}),z.createElement("div",{className:$e(ge("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}render(){const{unmountOnClose:t}=this.props;if(this._element&&(this.state.isOpen||!t)){const n=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=n?"none":"block";const{wrapClassName:r,modalClassName:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,external:h,innerRef:p}=this.props,m={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},g=this.props.fade,v=qe(qe(qe({},Kt.defaultProps),this.props.modalTransition),{},{baseClass:g?this.props.modalTransition.baseClass:"",timeout:g?this.props.modalTransition.timeout:0}),w=qe(qe(qe({},Kt.defaultProps),this.props.backdropTransition),{},{baseClass:g?this.props.backdropTransition.baseClass:"",timeout:g?this.props.backdropTransition.timeout:0}),_=l&&(g?z.createElement(Kt,Be({},w,{in:a&&!!l,cssModule:s,className:$e(ge("modal-backdrop",o),s)})):z.createElement("div",{className:$e(ge("modal-backdrop","show",o),s)}));return z.createElement(m6,{node:this._element},z.createElement("div",{className:$e(r)},z.createElement(Kt,Be({},m,v,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:$e(ge("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:p}),h,this.renderModalDialog()),_))}return null}}Vn.propTypes=g6;Vn.defaultProps=QQ;Vn.openCount=0;Vn.originalBodyOverflow=null;var zo=Vn;const JQ=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],eJ={children:S.node,className:S.string,close:S.object,closeAriaLabel:S.string,cssModule:S.object,tag:ke,toggle:S.func,wrapTag:ke},tJ={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function ro(e){let t;const{className:n,cssModule:r,children:i,toggle:o,tag:s,wrapTag:a,closeAriaLabel:l,close:c}=e,f=Ze(e,JQ),h=$e(ge(n,"modal-header"),r);return!c&&o&&(t=z.createElement("button",{type:"button",onClick:o,className:$e("btn-close",r),"aria-label":l})),z.createElement(a,Be({},f,{className:h}),z.createElement(s,{className:$e("modal-title",r)},i),c||t)}ro.propTypes=eJ;ro.defaultProps=tJ;const nJ=["className","cssModule","tag"],rJ={className:S.string,cssModule:S.object,tag:ke},iJ={tag:"div"};function Mi(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,nJ),o=$e(ge(t,"modal-body"),n);return z.createElement(r,Be({},i,{className:o}))}Mi.propTypes=rJ;Mi.defaultProps=iJ;const oJ=["className","cssModule","tag"],sJ={className:S.string,cssModule:S.object,tag:ke},aJ={tag:"div"};function Js(e){const{className:t,cssModule:n,tag:r}=e,i=Ze(e,oJ),o=$e(ge(t,"modal-footer"),n);return z.createElement(r,Be({},i,{className:o}))}Js.propTypes=sJ;Js.defaultProps=aJ;const lJ={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Gd(e){const t=ge("tooltip","show",e.popperClassName),n=ge("tooltip-inner",e.innerClassName);return z.createElement(h6,Be({},e,{arrowClassName:"tooltip-arrow",popperClassName:t,innerClassName:n}))}Gd.propTypes=g_;Gd.defaultProps=lJ;S.bool,S.bool,S.string,S.object,S.bool,S.bool,S.oneOfType([S.func,S.string,S.object]),S.oneOfType([S.bool,S.string]),S.string,S.bool;const cJ=["className","cssModule","tag","flush","horizontal","numbered"],uJ={className:S.string,cssModule:S.object,flush:S.bool,horizontal:S.oneOfType([S.bool,S.string]),numbered:S.bool,tag:ke},fJ={tag:"ul",horizontal:!1,numbered:!1},dJ=e=>e===!1?!1:e===!0||e==="xs"?"list-group-horizontal":`list-group-horizontal-${e}`;function WC(e){const{className:t,cssModule:n,tag:r,flush:i,horizontal:o,numbered:s}=e,a=Ze(e,cJ),l=$e(ge(t,"list-group",i?"list-group-flush":dJ(o),{"list-group-numbered":s}),n);return z.createElement(r,Be({},a,{className:l}))}WC.propTypes=uJ;WC.defaultProps=fJ;const hJ=["className","cssModule","tag","innerRef"],pJ={children:S.node,tag:ke,innerRef:S.oneOfType([S.object,S.func,S.string]),className:S.string,cssModule:S.object},mJ={tag:"form"};class v6 extends H.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.submit=this.submit.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}submit(){this.ref&&this.ref.submit()}render(){const t=this.props,{className:n,cssModule:r,tag:i,innerRef:o}=t,s=Ze(t,hJ),a=$e(n,r);return z.createElement(i,Be({},s,{ref:o,className:a}))}}v6.propTypes=pJ;v6.defaultProps=mJ;S.node,S.string,S.object,S.bool,S.bool;const gJ=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],vJ={children:S.node,row:S.bool,check:S.bool,switch:S.bool,inline:S.bool,floating:S.bool,disabled:S.bool,tag:ke,className:S.string,cssModule:S.object},yJ={tag:"div"};function Zr(e){const{className:t,cssModule:n,row:r,disabled:i,check:o,inline:s,floating:a,tag:l,switch:c}=e,f=Ze(e,gJ),h=o||c,p=$e(ge(t,r?"row":!1,h?"form-check":"mb-3",c?"form-switch":!1,h&&s?"form-check-inline":!1,h&&i?"disabled":!1,a&&"form-floating"),n);return l==="fieldset"&&(f.disabled=i),z.createElement(l,Be({},f,{className:p}))}Zr.propTypes=vJ;Zr.defaultProps=yJ;S.node,S.bool,S.string,S.string,S.object;const _J=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],bJ={children:S.node,type:S.string,size:S.oneOfType([S.number,S.string]),bsSize:S.string,valid:S.bool,invalid:S.bool,tag:ke,innerRef:S.oneOfType([S.object,S.func,S.string]),plaintext:S.bool,addon:S.bool,className:S.string,cssModule:S.object},wJ={type:"text"};let YC=class extends z.Component{constructor(t){super(t),this.getRef=this.getRef.bind(this),this.focus=this.focus.bind(this)}getRef(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t}focus(){this.ref&&this.ref.focus()}render(){let t=this.props,{className:n,cssModule:r,type:i,bsSize:o,valid:s,invalid:a,tag:l,addon:c,plaintext:f,innerRef:h}=t,p=Ze(t,_J);const m=["switch","radio","checkbox"].indexOf(i)>-1,g=/\D/g,v=i==="textarea",w=i==="select",_=i==="range";let b=l||(w||v?i:"input"),x="form-control";f?(x=`${x}-plaintext`,b=l||"input"):_?x="form-range":w?x="form-select":m&&(c?x=null:x="form-check-input"),p.size&&g.test(p.size)&&(Ow(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const E=$e(ge(n,a&&"is-invalid",s&&"is-valid",o?w?`form-select-${o}`:`form-control-${o}`:!1,x),r);return(b==="input"||l&&typeof l=="function")&&(p.type=i==="switch"?"checkbox":i),p.children&&!(f||i==="select"||typeof b!="string"||b==="select")&&(Ow(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),z.createElement(b,Be({},p,{ref:h,className:E,"aria-invalid":a}))}};YC.propTypes=bJ;YC.defaultProps=wJ;var fd=YC;const xJ=["className","cssModule","tag","type","size"],SJ={className:S.string,cssModule:S.object,size:S.string,tag:ke,type:S.string},CJ={tag:"div"};function Zd(e){const{className:t,cssModule:n,tag:r,type:i,size:o}=e,s=Ze(e,xJ),a=$e(ge(t,"input-group",o?`input-group-${o}`:null),n);return e.type==="dropdown"?z.createElement(Jc,Be({},s,{className:a})):z.createElement(i6.Provider,{value:{insideInputGroup:!0}},z.createElement(r,Be({},s,{className:a})))}Zd.propTypes=SJ;Zd.defaultProps=CJ;S.string,S.object;const sb=S.oneOfType([S.number,S.string]),Ml=S.oneOfType([S.bool,S.string,S.number,S.shape({size:sb,order:sb,offset:sb})]);S.node,S.bool,S.bool,S.string,S.string,S.string,S.object,S.array;S.bool,S.bool,S.node,S.string,S.object,S.bool,S.bool,S.bool,S.bool,S.bool,S.bool,S.bool;function tv(){}const n3=S.shape(Kt.propTypes),y6={autoFocus:S.bool,backdrop:S.bool,backdropClassName:S.string,backdropTransition:n3,children:S.node,className:S.string,container:$s,cssModule:S.object,direction:S.oneOf(["start","end","bottom","top"]),fade:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,keyboard:S.bool,labelledBy:S.string,offcanvasTransition:n3,onClosed:S.func,onEnter:S.func,onExit:S.func,style:S.object,onOpened:S.func,returnFocusAfterClose:S.bool,role:S.string,scrollable:S.bool,toggle:S.func,trapFocus:S.bool,unmountOnClose:S.bool,zIndex:S.oneOfType([S.number,S.string])},EJ=Object.keys(y6),TJ={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:tv,onClosed:tv,offcanvasTransition:{timeout:Ja.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:Ja.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class mi extends z.Component{constructor(t){super(t),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1}}componentDidMount(){const{isOpen:t,autoFocus:n,onEnter:r}=this.props;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(t,n){if(this.props.isOpen&&!t.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}handleBackdropClick(t){if(t.target===this._mouseDownElement){t.stopPropagation();const n=this._backdrop;if(!this.props.isOpen||this.props.backdrop!==!0)return;n&&t.target===n&&this.props.toggle&&this.props.toggle(t)}}handleTab(t){if(t.which!==9||this.offcanvasIndex0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}init(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Dc(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=ZI(),KI(),mi.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=mi.openCount,mi.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:t}=this.props;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){this.manageFocusAfterClose(),mi.openCount=Math.max(0,mi.openCount-1),document.body.style.overflow=null,OC(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}render(){const{direction:t,unmountOnClose:n}=this.props;if(this._element&&(this.state.isOpen||!n)){const r=!!this._element&&!this.state.isOpen&&!n;this._element.style.display=r?"none":"block";const{className:i,backdropClassName:o,cssModule:s,isOpen:a,backdrop:l,role:c,labelledBy:f,style:h}=this.props,p={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":f,role:c,tabIndex:"-1"},m=this.props.fade,g=qe(qe(qe({},Kt.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),v=qe(qe(qe({},Kt.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),w=l&&(m?z.createElement(Kt,Be({},v,{in:a&&!!l,innerRef:b=>{this._backdrop=b},cssModule:s,className:$e(ge("offcanvas-backdrop",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):z.createElement("div",{className:$e(ge("offcanvas-backdrop","show",o),s),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),_=Er(this.props,EJ);return z.createElement(m6,{node:this._element},z.createElement(Kt,Be({},_,p,g,{in:a,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:$e(ge("offcanvas",i,`offcanvas-${t}`),s),innerRef:b=>{this._dialog=b},style:qe(qe({},h),{},{visibility:a?"visible":"hidden"})}),this.props.children),w)}return null}}mi.propTypes=y6;mi.defaultProps=TJ;mi.openCount=0;S.string,S.object;S.node,S.string,S.object,S.string,S.object,S.func;const OJ=["className","listClassName","cssModule","size","tag","listTag","aria-label"],PJ={children:S.node,className:S.string,listClassName:S.string,cssModule:S.object,size:S.string,tag:ke,listTag:ke,"aria-label":S.string},kJ={tag:"nav",listTag:"ul","aria-label":"pagination"};function v_(e){const{className:t,listClassName:n,cssModule:r,size:i,tag:o,listTag:s,"aria-label":a}=e,l=Ze(e,OJ),c=$e(ge(t),r),f=$e(ge(n,"pagination",{[`pagination-${i}`]:!!i}),r);return z.createElement(o,{className:c,"aria-label":a},z.createElement(s,Be({},l,{className:f})))}v_.propTypes=PJ;v_.defaultProps=kJ;const MJ=["active","className","cssModule","disabled","tag"],RJ={active:S.bool,children:S.node,className:S.string,cssModule:S.object,disabled:S.bool,tag:ke},NJ={tag:"li"};function Ps(e){const{active:t,className:n,cssModule:r,disabled:i,tag:o}=e,s=Ze(e,MJ),a=$e(ge(n,"page-item",{active:t,disabled:i}),r);return z.createElement(o,Be({},s,{className:a}))}Ps.propTypes=RJ;Ps.defaultProps=NJ;const LJ=["className","cssModule","next","previous","first","last","tag"],DJ={"aria-label":S.string,children:S.node,className:S.string,cssModule:S.object,next:S.bool,previous:S.bool,first:S.bool,last:S.bool,tag:ke},AJ={tag:"a"};function ks(e){let{className:t,cssModule:n,next:r,previous:i,first:o,last:s,tag:a}=e,l=Ze(e,LJ);const c=$e(ge(t,"page-link"),n);let f;i?f="Previous":r?f="Next":o?f="First":s&&(f="Last");const h=e["aria-label"]||f;let p;i?p="‹":r?p="›":o?p="«":s&&(p="»");let{children:m}=e;return m&&Array.isArray(m)&&m.length===0&&(m=null),!l.href&&a==="a"&&(a="button"),(i||r||o||s)&&(m=[z.createElement("span",{"aria-hidden":"true",key:"caret"},m||p),z.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),z.createElement(a,Be({},l,{className:c,"aria-label":h}),m)}ks.propTypes=DJ;ks.defaultProps=AJ;const IJ=z.createContext({}),_6={tag:ke,activeTab:S.any,className:S.string,cssModule:S.object},FJ={tag:"div"};class b6 extends H.Component{static getDerivedStateFromProps(t,n){return n.activeTab!==t.activeTab?{activeTab:t.activeTab}:null}constructor(t){super(t),this.state={activeTab:this.props.activeTab}}render(){const{className:t,cssModule:n,tag:r}=this.props,i=Er(this.props,Object.keys(_6)),o=$e(ge("tab-content",t),n);return z.createElement(IJ.Provider,{value:{activeTabId:this.state.activeTab}},z.createElement(r,Be({},i,{className:o})))}}b6.propTypes=_6;b6.defaultProps=FJ;S.string,S.object,S.any;const $J=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],jJ={children:S.node,className:S.string,closeClassName:S.string,closeAriaLabel:S.string,color:S.string,cssModule:S.object,fade:S.bool,innerRef:S.oneOfType([S.object,S.string,S.func]),isOpen:S.bool,tag:ke,toggle:S.func,transition:S.shape(Kt.propTypes)},BJ={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:qe(qe({},Kt.defaultProps),{},{unmountOnExit:!0})};function qC(e){const{className:t,closeClassName:n,closeAriaLabel:r,cssModule:i,tag:o,color:s,isOpen:a,toggle:l,children:c,transition:f,fade:h,innerRef:p}=e,m=Ze(e,$J),g=$e(ge(t,"alert",`alert-${s}`,{"alert-dismissible":l}),i),v=$e(ge("btn-close",n),i),w=qe(qe(qe({},Kt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return z.createElement(Kt,Be({},m,w,{tag:o,className:g,in:a,role:"alert",innerRef:p}),l?z.createElement("button",{type:"button",className:v,"aria-label":r,onClick:l}):null,c)}qC.propTypes=jJ;qC.defaultProps=BJ;S.node,S.string,S.object,S.bool,S.bool,S.shape(Kt.propTypes),S.oneOfType([S.object,S.string,S.func]);qe(qe({},Kt.defaultProps),{},{unmountOnExit:!0});S.string,S.object,S.oneOfType([S.object,S.string,S.func]);S.oneOfType([S.string,S.node]),S.func,S.string,S.object,S.node,S.string,S.oneOfType([S.string,S.number]),S.object,S.string;const zJ=["className","cssModule","tag","active","disabled","action","color"],UJ={action:S.bool,active:S.bool,className:S.string,cssModule:S.object,color:S.string,disabled:S.bool,tag:ke},VJ={tag:"li"},HJ=e=>{e.preventDefault()};function GC(e){const{className:t,cssModule:n,tag:r,active:i,disabled:o,action:s,color:a}=e,l=Ze(e,zJ),c=$e(ge(t,i?"active":!1,o?"disabled":!1,s?"list-group-item-action":!1,a?`list-group-item-${a}`:!1,"list-group-item"),n);return o&&(l.onClick=HJ),z.createElement(r,Be({},l,{className:c}))}GC.propTypes=UJ;GC.defaultProps=VJ;S.string,S.object;S.string,S.object;const WJ=["className","cssModule","tag","type"],YJ={className:S.string,cssModule:S.object,tag:ke,type:S.string},qJ={tag:"ul"},ZC=H.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i,type:o}=e,s=Ze(e,WJ),a=$e(ge(n,o?`list-${o}`:!1),r);return z.createElement(i,Be({},s,{className:a,ref:t}))});ZC.name="List";ZC.propTypes=YJ;ZC.defaultProps=qJ;const GJ=["className","cssModule","tag"],ZJ={className:S.string,cssModule:S.object,tag:ke},KJ={tag:"li"},KC=H.forwardRef((e,t)=>{const{className:n,cssModule:r,tag:i}=e,o=Ze(e,GJ),s=$e(ge(n,"list-inline-item"),r);return z.createElement(i,Be({},o,{className:s,ref:t}))});KC.name="ListInlineItem";KC.propTypes=ZJ;KC.defaultProps=KJ;const XJ=["defaultOpen"];class QJ extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(f_,Be({isOpen:this.state.isOpen,toggle:this.toggle},Er(this.props,XJ)))}}QJ.propTypes=qe({defaultOpen:S.bool},f_.propTypes);const JJ=["toggleEvents","defaultOpen"],eee={defaultOpen:S.bool,toggler:S.string.isRequired,toggleEvents:S.arrayOf(S.string)},tee={toggleEvents:sX};class w6 extends H.Component{constructor(t){super(t),this.togglers=null,this.removeEventListeners=null,this.toggle=this.toggle.bind(this),this.state={isOpen:t.defaultOpen||!1}}componentDidMount(){this.togglers=e6(this.props.toggler),this.togglers.length&&(this.removeEventListeners=aX(this.togglers,this.toggle,this.props.toggleEvents))}componentWillUnmount(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}toggle(t){this.setState(({isOpen:n})=>({isOpen:!n})),t.preventDefault()}render(){return z.createElement(o6,Be({isOpen:this.state.isOpen},Er(this.props,JJ)))}}w6.propTypes=eee;w6.defaultProps=tee;const nee=["defaultOpen"];class Kd extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(t){this.setState(n=>({isOpen:!n.isOpen}),()=>{this.props.onToggle&&this.props.onToggle(t,this.state.isOpen)})}render(){return z.createElement(Jc,Be({isOpen:this.state.isOpen,toggle:this.toggle},Er(this.props,nee)))}}Kd.propTypes=qe({defaultOpen:S.bool,onToggle:S.func},Jc.propTypes);const ree=["defaultOpen"];class Br extends H.Component{constructor(t){super(t),this.state={isOpen:t.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(t=>({isOpen:!t.isOpen}))}render(){return z.createElement(Gd,Be({isOpen:this.state.isOpen,toggle:this.toggle},Er(this.props,ree)))}}Br.propTypes=qe({defaultOpen:S.bool},Gd.propTypes);S.oneOf(["border","grow"]),S.oneOf(["sm"]),S.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),S.string,S.object,S.string;qe(qe({},MC.propTypes),{},{color:S.string,tag:ke,animation:S.oneOf(["glow","wave"]),innerRef:S.oneOfType([S.object,S.func,S.string]),size:S.oneOf(["lg","sm","xs"])});S.string,S.string,S.bool,S.string,S.object;(()=>{if(typeof window!="object"||typeof window.CustomEvent=="function")return;const e=(t,n)=>{n=n||{bubbles:!1,cancelable:!1,detail:null};let r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};window.CustomEvent=e})();(()=>{if(typeof Object.values=="function")return;Object.values=t=>Object.keys(t).map(n=>t[n])})();const iee="Left",oee="Right",see="Up",aee="Down",nc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},kw={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},r3="mousemove",i3="mouseup",lee="touchend",cee="touchmove",uee="touchstart";function fee(e,t,n,r){return e>t?n>0?oee:iee:r>0?aee:see}function o3(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function dee(e,t){const n=f=>{const h="touches"in f;h&&f.touches.length>1||e((p,m)=>{m.trackMouse&&!h&&(document.addEventListener(r3,r),document.addEventListener(i3,s));const{clientX:g,clientY:v}=h?f.touches[0]:f,w=o3([g,v],m.rotationAngle);return m.onTouchStartOrOnMouseDown&&m.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),kw),{initial:w.slice(),xy:w,start:f.timeStamp||0})})},r=f=>{e((h,p)=>{const m="touches"in f;if(m&&f.touches.length>1)return h;if(f.timeStamp-h.start>p.swipeDuration)return h.swiping?Object.assign(Object.assign({},h),{swiping:!1}):h;const{clientX:g,clientY:v}=m?f.touches[0]:f,[w,_]=o3([g,v],p.rotationAngle),b=w-h.xy[0],x=_-h.xy[1],E=Math.abs(b),P=Math.abs(x),k=(f.timeStamp||0)-h.start,N=Math.sqrt(E*E+P*P)/(k||1),D=[b/(k||1),x/(k||1)],U=fee(E,P,b,x),A=typeof p.delta=="number"?p.delta:p.delta[U.toLowerCase()]||nc.delta;if(E{e((h,p)=>{let m;if(h.swiping&&h.eventData){if(f.timeStamp-h.start{document.removeEventListener(r3,r),document.removeEventListener(i3,s)},s=f=>{o(),i(f)},a=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const m=Object.assign(Object.assign({},nc.touchEventOptions),h.touchEventOptions),g=[[uee,n,m],[cee,r,Object.assign(Object.assign({},m),h.preventScrollOnSwipe?{passive:!1}:{})],[lee,i,m]];g.forEach(([v,w,_])=>f.addEventListener(v,w,_)),p=()=>g.forEach(([v,w])=>f.removeEventListener(v,w))}return p},c={ref:f=>{f!==null&&e((h,p)=>{if(h.el===f)return h;const m={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),m.cleanUpTouch=void 0),p.trackTouch&&f&&(m.cleanUpTouch=a(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),m)})}};return t.trackMouse&&(c.onMouseDown=n),[c,a]}function hee(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function pee(e){const{trackMouse:t}=e,n=H.useRef(Object.assign({},kw)),r=H.useRef(Object.assign({},nc)),i=H.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},nc),e);let o;for(o in nc)r.current[o]===void 0&&(r.current[o]=nc[o]);const[s,a]=H.useMemo(()=>dee(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=hee(n.current,r.current,i.current,a),s}var mp,mee=new Uint8Array(16);function gee(){if(!mp&&(mp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!mp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mp(mee)}const vee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function yee(e){return typeof e=="string"&&vee.test(e)}var Bn=[];for(var ab=0;ab<256;++ab)Bn.push((ab+256).toString(16).substr(1));function _ee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Bn[e[t+0]]+Bn[e[t+1]]+Bn[e[t+2]]+Bn[e[t+3]]+"-"+Bn[e[t+4]]+Bn[e[t+5]]+"-"+Bn[e[t+6]]+Bn[e[t+7]]+"-"+Bn[e[t+8]]+Bn[e[t+9]]+"-"+Bn[e[t+10]]+Bn[e[t+11]]+Bn[e[t+12]]+Bn[e[t+13]]+Bn[e[t+14]]+Bn[e[t+15]]).toLowerCase();if(!yee(n))throw TypeError("Stringified UUID is invalid");return n}function XC(e,t,n){e=e||{};var r=e.random||(e.rng||gee)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return _ee(r)}const bee=2e3,wee=(e,t)=>(n=!1,r=bee)=>{const[i,o]=H.useState(n),s=H.useRef(void 0);return[i,()=>{o(!n),s.current&&t(s.current),s.current=e(()=>o(n),r)}]},jt=(e=!1)=>{const[t,n]=H.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},xee=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:s})=>s==null?void 0:s.contains("visits-table"))||document.querySelector(".modal")||r()};return pee({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},See=(e,t)=>{const[n,r]=H.useState(t);return[n,o=>{const{location:s,history:a}=window,l=fl(s.search);l[e]=o,a.pushState(null,"",`${s.pathname}?${zd(l)}`),r(o)}]},Cee=(e,t)=>{const n=H.useRef(!0);H.useEffect(()=>{!n.current&&e(),n.current=!1},t)},ea=()=>{const e=Io();return()=>e(-1)},Eee=()=>{const{search:e}=Mn();return fl(e)},y_=()=>{const{current:e}=H.useRef(`dom-${XC()}`);return e},QC="#4696e5",Tee="rgba(70, 150, 229, 0.4)",x6="#f77f28",Oee="rgba(247, 127, 40, 0.4)",Pee="white",kee="#161b22",S6=e=>{var t,n;return(n=(t=document.getElementsByTagName("html"))==null?void 0:t[0])==null?void 0:n.setAttribute("data-theme",e)},Mee=()=>{var e,t;return((t=(e=document.getElementsByTagName("html"))==null?void 0:e[0])==null?void 0:t.getAttribute("data-theme"))==="dark"},C6=({color:e=QC,className:t})=>C("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:V("g",{fill:e,children:[C("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),C("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),C("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),C("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})});const Ree=e=>()=>{const[t,n,,r]=jt(),i=Mn(),{pathname:o}=i;H.useEffect(r,[i]);const s="/settings",a=ge("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return V(RC,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[V(NC,{tag:At,to:"/",children:[C(C6,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),C(LC,{onClick:n,children:C(je,{icon:Oq,className:a})}),C(o6,{navbar:!0,isOpen:t,children:V(c_,{navbar:!0,className:"ms-auto",children:[C(DC,{children:V(r6,{tag:At,to:s,active:o.startsWith(s),children:[C(je,{icon:Lq}),"  Settings"]})}),C(e,{})]})})]})};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Mw=function(){return Mw=Object.assign||function(t){for(var n,r=1,i=arguments.length;rV(GC,{tag:At,to:`/server/${e}`,className:"servers-list__server-item",children:[t,C(je,{icon:kq,className:"servers-list__server-item-icon"})]}),E6=({servers:e,children:t,embedded:n=!1})=>V(Ye,{children:[t&&C("h5",{className:"mb-md-3",children:t}),e.length>0&&C(WC,{className:ge("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>C(Lee,{id:r,name:i},r))})]});const Dee=({servers:e})=>{const t=Io(),n=Kc(e),r=!qn(n);return H.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),C("div",{className:"home",children:C(Cr,{className:"home__main-card",children:V(ur,{className:"g-0",children:[C("div",{className:"col-md-5 d-none d-md-block",children:C("div",{className:"home__logo-wrapper",children:C("div",{className:"home__logo",children:C(C6,{})})})}),V("div",{className:"col-md-7 home__servers-container",children:[C("div",{className:"home__title-wrapper",children:C("h1",{className:"home__title",children:"Welcome!"})}),C(E6,{embedded:!0,servers:n,children:!r&&V("div",{className:"p-4 text-center",children:[C("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),C("p",{children:V(At,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[C(je,{icon:sC})," ",C("span",{className:"ms-1",children:"Add a server"})]})}),C("p",{className:"mb-0 mt-5",children:C(Ci,{href:"https://shlink.io/documentation",children:V("small",{children:[C("span",{className:"me-1",children:"Learn more about Shlink"})," ",C(je,{icon:uq})]})})})]})})]})]})})})},Aee=e=>({error:"border-danger",default:""})[e],Iee=e=>({error:"text-danger",default:"text-muted"})[e],So=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=ge({"col-md-12":i,"col-md-10 offset-md-1":!i});return C(ur,{className:ge("g-0",e),children:C("div",{className:o,children:C(Cr,{className:Aee(r),body:!0,children:V("h3",{className:ge("text-center mb-0",Iee(r)),children:[n&&C(je,{icon:GA,spin:!0}),n&&C("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})};const tu=({children:e})=>C("div",{className:"no-menu-wrapper container-xl",children:e});function T6(e,t){return n=>{const r=Zs(),{selectServer:i,selectedServer:o}=n;return H.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?NH(o)?C(t,{}):C(e,{...n}):C(tu,{children:C(So,{loading:!0})})}}const Fee=(e,t)=>{const n=s3(e),r=s3(t),i=n.pop(),o=r.pop(),s=c3(n,r);return s!==0?s:i&&o?c3(i.split("."),o.split(".")):i||o?i?-1:1:0},Rw=(e,t,n)=>{zee(n);const r=Fee(e,t);return O6[n].includes(r)},$ee=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,s3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match($ee);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},a3=e=>e==="*"||e==="x"||e==="X",l3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},jee=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Bee=(e,t)=>{if(a3(e)||a3(t))return 0;const[n,r]=jee(l3(e),l3(t));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},u3=Object.keys(O6),zee=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(u3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${u3.join("|")}`)},JC=(e,t,n=1)=>YS(n,e+1).map(t),vi=e=>!Fo(e)&&!qn(e),Xd=e=>It(t=>t.preventDefault(),e),lb=e=>qn(e)?null:e,da=e=>t=>e===t,P6=e=>e?"true":"false",cb=e=>e===void 0?void 0:P6(e),Uee=(e,{maxVersion:t,minVersion:n})=>{if(!vi(e))return!1;const r=!n||Rw(e,n,">=");return(!t||Rw(e,t,"<="))&&r},k6=TA(VS,e=>{try{return Rw(e,e,"=")}catch{return!1}}),M6=e=>k6(e)?`v${e}`:e,R6=(e="latest")=>t=>k6(t)?t:e,Qd=e=>t=>Jy(t)&&Uee(t.version,{minVersion:e}),N6=Qd("2.9.0"),Vee=N6,Hee=Qd("2.10.0"),eE=Qd("3.0.0"),Wee=eE,L6=Qd("3.1.0"),D6=Qd("3.4.0"),Yee=D6,vn=({title:e,children:t,bodyClassName:n,...r})=>V(Cr,{...r,children:[e&&C(tl,{role:"heading",children:e}),C(el,{className:n,children:t})]}),A6=({to:e="/",children:t="Home"})=>C("div",{className:"home",children:V(vn,{className:"p-4",children:[C("h2",{children:"Oops! We could not find requested route."}),C("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),C("br",{}),C(At,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});const qee=(e,t,n,r,i,o,s,a,l,c,f,h,p)=>T6(({selectedServer:m,sidebarNotPresent:g,sidebarPresent:v})=>{const w=Mn(),[_,b,x,E]=jt(),P=Jy(m);if(H.useEffect(()=>E(),[w]),H.useEffect(()=>(P&&v(),()=>g()),[]),!P)return C(c,{});const k=eE(m),N=L6(m),D=ge("menu-layout__burger-icon",{"menu-layout__burger-icon--active":_}),U=xee(x,E);return V(Ye,{children:[C(je,{icon:qY,className:D,onClick:b}),C("div",{...U,className:"menu-layout__swipeable",children:V("div",{className:"menu-layout__swipeable-inner",children:[C(n,{selectedServer:m,showOnMobile:_}),C("div",{className:"menu-layout__container",onClick:()=>E(),children:C("div",{className:"container-xl",children:V(Gy,{children:[C(yt,{index:!0,element:C(DS,{replace:!0,to:"overview"})}),C(yt,{path:"/overview",element:C(f,{})}),C(yt,{path:"/list-short-urls/:page",element:C(t,{})}),C(yt,{path:"/create-short-url",element:C(r,{})}),C(yt,{path:"/short-code/:shortCode/visits/*",element:C(i,{})}),C(yt,{path:"/short-code/:shortCode/edit",element:C(h,{})}),C(yt,{path:"/tag/:tag/visits/*",element:C(o,{})}),N&&C(yt,{path:"/domain/:domain/visits/*",element:C(s,{})}),C(yt,{path:"/orphan-visits/*",element:C(a,{})}),k&&C(yt,{path:"/non-orphan-visits/*",element:C(l,{})}),C(yt,{path:"/manage-tags",element:C(e,{})}),C(yt,{path:"/manage-domains",element:C(p,{})}),C(yt,{path:"*",element:C(A6,{to:`/server/${m.id}/list-short-urls/1`,children:"List short URLs"})})]})})})]})})]})},c);const Rl=({children:e,to:t,className:n,...r})=>C(oA,{className:({isActive:i})=>ge("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Gee=e=>({selectedServer:t,showOnMobile:n=!1})=>{const r=Os(t),i=r?t.id:"",{pathname:o}=Mn(),s=ge("aside-menu",{"aside-menu--hidden":!n}),a=l=>`/server/${i}${l}`;return C("aside",{className:s,children:V("nav",{className:"nav flex-column aside-menu__nav",children:[V(Rl,{to:a("/overview"),children:[C(je,{fixedWidth:!0,icon:_q}),C("span",{className:"aside-menu__item-text",children:"Overview"})]}),V(Rl,{to:a("/list-short-urls/1"),className:ge({"aside-menu__item--selected":o.match("/list-short-urls")!==null}),children:[C(je,{fixedWidth:!0,icon:ZA}),C("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),V(Rl,{to:a("/create-short-url"),children:[C(je,{fixedWidth:!0,icon:Cq,flip:"horizontal"}),C("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),V(Rl,{to:a("/manage-tags"),children:[C(je,{fixedWidth:!0,icon:XA}),C("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),V(Rl,{to:a("/manage-domains"),children:[C(je,{fixedWidth:!0,icon:QY}),C("span",{className:"aside-menu__item-text",children:"Manage domains"})]}),V(Rl,{to:a("/edit"),className:"aside-menu__item--push",children:[C(je,{fixedWidth:!0,icon:aq}),C("span",{className:"aside-menu__item-text",children:"Edit this server"})]}),r&&C(e,{className:"aside-menu__item aside-menu__item--danger",textClassName:"aside-menu__item-text",server:t})]})})},Zee=({location:e},{error:t})=>class extends H.Component{constructor(n){super(n),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){t(n)}render(){const{hasError:n}=this.state;if(n)return C("div",{className:"home",children:V(vn,{className:"p-4",children:[C("h1",{children:"Oops! This is awkward :S"}),C("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),C("br",{}),C(mt,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}},Kee="%_VERSION_%",Xee=It(R6(),M6),f3=({project:e,version:t})=>C(Ci,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:C("b",{children:t})}),Qee=({selectedServer:e,clientVersion:t=Kee})=>{const n=Xee(t);return V("small",{className:"text-muted",children:[Jy(e)&&V(Ye,{children:["Server: ",C(f3,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",C(f3,{project:"shlink-web-client",version:n})]})};const Jee=({selectedServer:e,sidebar:t})=>{const n=ge("text-center",{"shlink-versions-container--with-sidebar":t.sidebarPresent});return C("div",{className:n,children:C(Qee,{selectedServer:e})})};function nv(e){return t=>{const{resetSelectedServer:n}=t;return H.useEffect(()=>{n()},[]),C(e,{...t})}}function yi(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:tE(e)?2:nE(e)?3:0}function hc(e,t){return nu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ete(e,t){return nu(e)===2?e.get(t):e[t]}function I6(e,t,n){var r=nu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function F6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function tE(e){return ste&&e instanceof Map}function nE(e){return ate&&e instanceof Set}function Ca(e){return e.o||e.t}function rE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=j6(e);delete t[Ft];for(var n=pc(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=tte),Object.freeze(e),t&&nl(e,function(n,r){return iE(r,!0)},!0)),e}function tte(){yi(2)}function oE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ki(e){var t=Aw[e];return t||yi(18,e),t}function nte(e,t){Aw[e]||(Aw[e]=t)}function Nw(){return dd}function ub(e,t){t&&(Ki("Patches"),e.u=[],e.s=[],e.v=t)}function rv(e){Lw(e),e.p.forEach(rte),e.p=null}function Lw(e){e===dd&&(dd=e.l)}function d3(e){return dd={p:[],l:dd,h:e,m:!0,_:0}}function rte(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.O=!0}function fb(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Ki("ES5").S(t,e,r),r?(n[Ft].P&&(rv(t),yi(4)),No(e)&&(e=iv(t,e),t.l||ov(t,e)),t.u&&Ki("Patches").M(n[Ft].t,e,t.u,t.s)):e=iv(t,n,[]),rv(t),t.u&&t.v(t.u,t.s),e!==$6?e:void 0}function iv(e,t,n){if(oE(t))return t;var r=t[Ft];if(!r)return nl(t,function(o,s){return h3(e,r,t,o,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return ov(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=rE(r.k):r.o;nl(r.i===3?new Set(i):i,function(o,s){return h3(e,r,i,o,s,n)}),ov(e,i,!1),n&&e.u&&Ki("Patches").R(r,n,e.u,e.s)}return r.o}function h3(e,t,n,r,i,o){if(js(i)){var s=iv(e,i,o&&t&&t.i!==3&&!hc(t.D,r)?o.concat(r):void 0);if(I6(n,r,s),!js(s))return;e.m=!1}if(No(i)&&!oE(i)){if(!e.h.F&&e._<1)return;iv(e,i),t&&t.A.l||ov(e,i)}}function ov(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&iE(t,n)}function db(e,t){var n=e[Ft];return(n?Ca(n):e)[t]}function p3(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function os(e){e.P||(e.P=!0,e.l&&os(e.l))}function hb(e){e.o||(e.o=rE(e.t))}function Dw(e,t,n){var r=tE(t)?Ki("MapSet").N(t,n):nE(t)?Ki("MapSet").T(t,n):e.g?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:Nw(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,c=hd;s&&(l=[a],c=Yu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return a.k=p,a.j=h,p}(t,n):Ki("ES5").J(t,n);return(n?n.A:Nw()).p.push(r),r}function ite(e){return js(e)||yi(22,e),function t(n){if(!No(n))return n;var r,i=n[Ft],o=nu(n);if(i){if(!i.P&&(i.i<4||!Ki("ES5").K(i)))return i.t;i.I=!0,r=m3(n,o),i.I=!1}else r=m3(n,o);return nl(r,function(s,a){i&&ete(i.t,s)===a||I6(r,s,t(a))}),o===3?new Set(r):r}(e)}function m3(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return rE(e)}function ote(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[Ft];return hd.get(l,o)},set:function(l){var c=this[Ft];hd.set(c,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][Ft];if(!a.P)switch(a.i){case 5:r(a)&&os(a);break;case 4:n(a)&&os(a)}}}function n(o){for(var s=o.t,a=o.k,l=pc(a),c=l.length-1;c>=0;c--){var f=l[c];if(f!==Ft){var h=s[f];if(h===void 0&&!hc(s,f))return!0;var p=a[f],m=p&&p[Ft];if(m?m.t!==h:!F6(p,h))return!0}}var g=!!s[Ft];return l.length!==pc(s).length+(g?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l1?_-1:0),x=1;x<_;x++)b[x-1]=arguments[x];return l.produce(v,function(E){var P;return(P=o).call.apply(P,[w,E].concat(b))})}}var c;if(typeof o!="function"&&yi(6),s!==void 0&&typeof s!="function"&&yi(7),No(i)){var f=d3(r),h=Dw(r,i,void 0),p=!0;try{c=o(h),p=!1}finally{p?rv(f):Lw(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(v){return ub(f,s),fb(v,f)},function(v){throw rv(f),v}):(ub(f,s),fb(c,f))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===$6&&(c=void 0),r.F&&iE(c,!0),s){var m=[],g=[];Ki("Patches").M(i,c,m,g),s(m,g)}return c}yi(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var s=Ki("Patches").$;return js(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),Ar=new cte,B6=Ar.produce;Ar.produceWithPatches.bind(Ar);Ar.setAutoFreeze.bind(Ar);Ar.setUseProxies.bind(Ar);Ar.applyPatches.bind(Ar);Ar.createDraft.bind(Ar);Ar.finishDraft.bind(Ar);function ute(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function b3(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Xn(1));return n(z6)(e,t)}if(typeof e!="function")throw new Error(Xn(2));var i=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function f(){if(l)throw new Error(Xn(3));return o}function h(v){if(typeof v!="function")throw new Error(Xn(4));if(l)throw new Error(Xn(5));var w=!0;return c(),a.push(v),function(){if(w){if(l)throw new Error(Xn(6));w=!1,c();var b=a.indexOf(v);a.splice(b,1),s=null}}}function p(v){if(!fte(v))throw new Error(Xn(7));if(typeof v.type>"u")throw new Error(Xn(8));if(l)throw new Error(Xn(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var w=s=a,_=0;_"u")throw new Error(Xn(12));if(typeof n(void 0,{type:sv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Xn(13))})}function U6(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(Xn(14));h[m]=w,f=f||w!==v}return f=f||o.length!==Object.keys(l).length,f?h:l}}function av(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0)for(var x=m.getState(),E=Array.from(n.values()),P=0,k=E;P({sidebarPresent:!0}),sidebarNotPresent:()=>({sidebarPresent:!1})}}),{sidebarPresent:nne,sidebarNotPresent:rne}=ene,ine=tne,e5=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},t5=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);e5(e,i,n)};class one{constructor(t,n){this.httpClient=t,this.window=n}async saveImage(t,n){const r=await this.httpClient.fetchBlob(t),i=URL.createObjectURL(r);e5(this.window,i,n)}}class sne{constructor(t,n){Se(this,"exportVisits",(t,n)=>{n.length&&this.exportCsv(t,n)});Se(this,"exportShortUrls",t=>{t.length&&this.exportCsv("short_urls.csv",t)});Se(this,"exportCsv",(t,n)=>{const r=this.jsonToCsv(n);t5(this.window,r,t)});this.window=t,this.jsonToCsv=n}}const k3={"Content-Type":"application/json"},M3=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...k3}}:{headers:k3}:e;class ane{constructor(t){Se(this,"fetchJson",(t,n)=>this.fetch(t,M3(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));Se(this,"fetchEmpty",(t,n)=>this.fetch(t,M3(n)).then(async r=>{if(!r.ok)throw await r.json()}));Se(this,"fetchBlob",t=>this.fetch(t).then(n=>n.blob()));this.fetch=t}}const lne=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",ane,"fetch"),e.service("ImageDownloader",one,"HttpClient","window"),e.service("ReportExporter",sne,"window","jsonToCsv"),e.serviceFactory("ScrollToTop",()=>BY),e.serviceFactory("MainHeader",Ree,"ServersDropdown"),e.serviceFactory("Home",()=>Dee),e.decorator("Home",nv),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("MenuLayout",qee,"TagsList","ShortUrlsList","AsideMenu","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","ServerError","Overview","EditShortUrl","ManageDomains"),e.decorator("MenuLayout",t(["selectedServer"],["selectServer","sidebarPresent","sidebarNotPresent"])),e.serviceFactory("AsideMenu",Gee,"DeleteServerButton"),e.serviceFactory("ShlinkVersionsContainer",()=>Jee),e.decorator("ShlinkVersionsContainer",t(["selectedServer","sidebar"])),e.serviceFactory("ErrorHandler",Zee,"window","console"),e.serviceFactory("sidebarPresent",()=>nne),e.serviceFactory("sidebarNotPresent",()=>rne)};const cne=500;let gp;const nh=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i=""})=>{const[o,s]=H.useState(i),a=()=>{gp&&clearTimeout(gp),gp=null},l=(c,f=cne)=>{s(c),a(),gp=setTimeout(()=>{e(c),a()},f)};return V("div",{className:ge("search-field",t),children:[C("input",{type:"text",className:ge("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:o,onChange:c=>l(c.target.value)}),C(je,{icon:Tq,className:"search-field__icon"}),C("div",{className:"close search-field__close btn-close",hidden:o==="",id:"search-field__close",onClick:()=>l("",0)})]})};const ta=({text:e,disabled:t=!1,className:n="",children:r,dropdownClassName:i,right:o=!1,minWidth:s})=>{const[a,l]=jt(),c=`dropdown-btn__toggle btn-block ${n}`,f={minWidth:s&&`${s}px`};return V(Jc,{isOpen:a,toggle:l,disabled:t,className:i,children:[C(eu,{caret:!0,className:c,color:"primary",children:e}),C(dl,{className:"w-100",end:o,style:f,children:r})]})};function et(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Pe(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function lm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lm=function(n){return typeof n}:lm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lm(e)}function Re(e){Pe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||lm(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function hl(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function to(e,t){Pe(2,arguments);var n=Re(e),r=et(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cm=function(n){return typeof n}:cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cm(e)}function une(e,t){if(Pe(2,arguments),!t||cm(t)!=="object")return new Date(NaN);var n=t.years?et(t.years):0,r=t.months?et(t.months):0,i=t.weeks?et(t.weeks):0,o=t.days?et(t.days):0,s=t.hours?et(t.hours):0,a=t.minutes?et(t.minutes):0,l=t.seconds?et(t.seconds):0,c=Re(e),f=r||n?to(c,r+n*12):c,h=o||i?hl(f,o+i*7):f,p=a+s*60,m=l+p*60,g=m*1e3,v=new Date(h.getTime()+g);return v}function uE(e,t){Pe(2,arguments);var n=Re(e).getTime(),r=et(t);return new Date(n+r)}var fne=36e5;function dne(e,t){Pe(2,arguments);var n=et(t);return uE(e,n*fne)}var hne={};function Uo(){return hne}function n5(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Uo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Re(e),m=p.getDay(),g=(m=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function mne(e){Pe(1,arguments);var t=pne(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=md(n);return r}function Ac(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Nr(e){Pe(1,arguments);var t=Re(e);return t.setHours(0,0,0,0),t}var gne=864e5;function gd(e,t){Pe(2,arguments);var n=Nr(e),r=Nr(t),i=n.getTime()-Ac(n),o=r.getTime()-Ac(r);return Math.round((i-o)/gne)}var vne=6e4;function $w(e,t){Pe(2,arguments);var n=et(t);return uE(e,n*vne)}function fE(e,t){Pe(2,arguments);var n=et(t),r=n*7;return hl(e,r)}function Ic(e,t){Pe(2,arguments);var n=et(t);return to(e,n*12)}function um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?um=function(n){return typeof n}:um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},um(e)}function R3(e){Pe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(um(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=Re(r);(n===void 0||ni||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function dm(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var dE=6e4,b_=36e5,yne=1e3;function _ne(e,t){Pe(2,arguments);var n=Nr(e),r=Nr(t);return n.getTime()===r.getTime()}function hm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hm=function(n){return typeof n}:hm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hm(e)}function hE(e){return Pe(1,arguments),e instanceof Date||hm(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function r5(e){if(Pe(1,arguments),!hE(e)&&typeof e!="number")return!1;var t=Re(e);return!isNaN(Number(t))}function vd(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function jw(e){Pe(1,arguments);var t=Re(e),n=Math.floor(t.getMonth()/3)+1;return n}function cv(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()-r.getFullYear()}function L3(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function pE(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=L3(n,r),o=Math.abs(gd(n,r));n.setDate(n.getDate()-i*o);var s=Number(L3(n,r)===-i),a=i*(o-s);return a===0?0:a}function i5(e,t){return Pe(2,arguments),Re(e).getTime()-Re(t).getTime()}var D3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},bne="trunc";function mE(e){return e?D3[e]:D3[bne]}function wne(e,t,n){Pe(2,arguments);var r=i5(e,t)/b_;return mE(n==null?void 0:n.roundingMethod)(r)}function rl(e){Pe(1,arguments);var t=Re(e);return t.setHours(23,59,59,999),t}function xne(e){Pe(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Sne(e){Pe(1,arguments);var t=Re(e);return rl(t).getTime()===xne(t).getTime()}function uv(e,t){Pe(2,arguments);var n=Re(e),r=Re(t),i=dm(n,r),o=Math.abs(vd(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var a=dm(n,r)===-i;Sne(Re(e))&&o===1&&dm(e,r)===1&&(a=!1),s=i*(o-Number(a))}return s===0?0:s}function Cne(e,t,n){Pe(2,arguments);var r=i5(e,t)/1e3;return mE(n==null?void 0:n.roundingMethod)(r)}function Ene(e,t,n){Pe(2,arguments);var r=pE(e,t)/7;return mE(n==null?void 0:n.roundingMethod)(r)}function Bw(e){Pe(1,arguments);var t=Re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Tne(e){Pe(1,arguments);var t=Re(e);return t.setDate(1),t.setHours(0,0,0,0),t}function One(e){Pe(1,arguments);var t=Re(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Pne(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Uo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Re(e),m=p.getDay(),g=(m=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Nne(e){Pe(1,arguments);var t=s5(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Fc(n);return r}var Lne=6048e5;function a5(e){Pe(1,arguments);var t=Re(e),n=Fc(t).getTime()-Nne(t).getTime();return Math.round(n/Lne)+1}function il(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Uo(),h=et((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Re(e),m=p.getUTCDay(),g=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(h+1,0,m),g.setUTCHours(0,0,0,0);var v=il(g,t),w=new Date(0);w.setUTCFullYear(h,0,m),w.setUTCHours(0,0,0,0);var _=il(w,t);return f.getTime()>=v.getTime()?h+1:f.getTime()>=_.getTime()?h:h-1}function Dne(e,t){var n,r,i,o,s,a,l,c;Pe(1,arguments);var f=Uo(),h=et((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=gE(e,t),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var g=il(m,t);return g}var Ane=6048e5;function l5(e,t){Pe(1,arguments);var n=Re(e),r=il(n,t).getTime()-Dne(n,t).getTime();return Math.round(r/Ane)+1}function rt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return rt(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):rt(r+1,2)},d:function(t,n){return rt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return rt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return rt(t.getUTCHours(),n.length)},m:function(t,n){return rt(t.getUTCMinutes(),n.length)},s:function(t,n){return rt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return rt(o,n.length)}};const Zo=Ine;var Nl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fne={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Zo.y(t,n)},Y:function(t,n,r,i){var o=gE(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return rt(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):rt(s,n.length)},R:function(t,n){var r=s5(t);return rt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return rt(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return rt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return rt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Zo.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return rt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=l5(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):rt(o,n.length)},I:function(t,n,r){var i=a5(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):rt(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Zo.d(t,n)},D:function(t,n,r){var i=Rne(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):rt(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return rt(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return rt(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return rt(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Nl.noon:i===0?o=Nl.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Nl.evening:i>=12?o=Nl.afternoon:i>=4?o=Nl.morning:o=Nl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Zo.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Zo.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):rt(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):rt(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Zo.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Zo.s(t,n)},S:function(t,n){return Zo.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return I3(s);case"XXXX":case"XX":return Ea(s);case"XXXXX":case"XXX":default:return Ea(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return I3(s);case"xxxx":case"xx":return Ea(s);case"xxxxx":case"xxx":default:return Ea(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+A3(s,":");case"OOOO":default:return"GMT"+Ea(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+A3(s,":");case"zzzz":default:return"GMT"+Ea(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return rt(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return rt(s,n.length)}};function A3(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t||"";return n+String(i)+s+rt(o,2)}function I3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+rt(Math.abs(e)/60,2)}return Ea(e,t)}function Ea(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=rt(Math.floor(i/60),2),s=rt(i%60,2);return r+o+n+s}const $ne=Fne;var F3=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},c5=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},jne=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return F3(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",F3(i,n)).replace("{{time}}",c5(o,n))},Bne={p:c5,P:jne};const zw=Bne;var zne=["D","DD"],Une=["YY","YYYY"];function u5(e){return zne.indexOf(e)!==-1}function f5(e){return Une.indexOf(e)!==-1}function fv(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Vne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Hne=function(t,n,r){var i,o=Vne[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Wne=Hne;function vb(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Yne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},qne={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zne={date:vb({formats:Yne,defaultWidth:"full"}),time:vb({formats:qne,defaultWidth:"full"}),dateTime:vb({formats:Gne,defaultWidth:"full"})};const Kne=Zne;var Xne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Qne=function(t,n,r,i){return Xne[t]};const Jne=Qne;function Ru(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var ere={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tre={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nre={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rre={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ire={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ore={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sre=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},are={ordinalNumber:sre,era:Ru({values:ere,defaultWidth:"wide"}),quarter:Ru({values:tre,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ru({values:nre,defaultWidth:"wide"}),day:Ru({values:rre,defaultWidth:"wide"}),dayPeriod:Ru({values:ire,defaultWidth:"wide",formattingValues:ore,defaultFormattingWidth:"wide"})};const lre=are;function Nu(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?ure(a,function(h){return h.test(s)}):cre(a,function(h){return h.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function cre(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ure(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var dre=/^(\d+)(th|st|nd|rd)?/i,hre=/\d+/i,pre={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},mre={any:[/^b/i,/^(a|c)/i]},gre={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vre={any:[/1/i,/2/i,/3/i,/4/i]},yre={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_re={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},bre={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wre={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xre={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Sre={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cre={ordinalNumber:fre({matchPattern:dre,parsePattern:hre,valueCallback:function(t){return parseInt(t,10)}}),era:Nu({matchPatterns:pre,defaultMatchWidth:"wide",parsePatterns:mre,defaultParseWidth:"any"}),quarter:Nu({matchPatterns:gre,defaultMatchWidth:"wide",parsePatterns:vre,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Nu({matchPatterns:yre,defaultMatchWidth:"wide",parsePatterns:_re,defaultParseWidth:"any"}),day:Nu({matchPatterns:bre,defaultMatchWidth:"wide",parsePatterns:wre,defaultParseWidth:"any"}),dayPeriod:Nu({matchPatterns:xre,defaultMatchWidth:"any",parsePatterns:Sre,defaultParseWidth:"any"})};const Ere=Cre;var Tre={code:"en-US",formatDistance:Wne,formatLong:Kne,formatRelative:Jne,localize:lre,match:Ere,options:{weekStartsOn:0,firstWeekContainsDate:1}};const vE=Tre;var Ore=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pre=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kre=/^'([^]*?)'?$/,Mre=/''/g,Rre=/[a-zA-Z]/;function vo(e,t,n){var r,i,o,s,a,l,c,f,h,p,m,g,v,w,_,b,x,E;Pe(2,arguments);var P=String(t),k=Uo(),N=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:vE,D=et((o=(s=(a=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:k.firstWeekContainsDate)!==null&&s!==void 0?s:(h=k.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=et((m=(g=(v=(w=n==null?void 0:n.weekStartsOn)!==null&&w!==void 0?w:n==null||(_=n.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&g!==void 0?g:(x=k.locale)===null||x===void 0||(E=x.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:0);if(!(U>=0&&U<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var A=Re(e);if(!r5(A))throw new RangeError("Invalid time value");var Y=Ac(A),q=o5(A,Y),ee={firstWeekContainsDate:D,weekStartsOn:U,locale:N,_originalDate:A},Z=P.match(Pre).map(function(te){var ne=te[0];if(ne==="p"||ne==="P"){var le=zw[ne];return le(te,N.formatLong)}return te}).join("").match(Ore).map(function(te){if(te==="''")return"'";var ne=te[0];if(ne==="'")return Nre(te);var le=$ne[ne];if(le)return!(n!=null&&n.useAdditionalWeekYearTokens)&&f5(te)&&fv(te,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&u5(te)&&fv(te,t,String(e)),le(q,te,N.localize,ee);if(ne.match(Rre))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");return te}).join("");return Z}function Nre(e){var t=e.match(kre);return t?t[1].replace(Mre,"'"):e}function yE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Lre(e){return yE({},e)}var $3=1440,Dre=2520,yb=43200,Are=86400;function Ire(e,t,n){var r,i;Pe(2,arguments);var o=Uo(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:vE;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=dm(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var l=yE(Lre(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:a}),c,f;a>0?(c=Re(t),f=Re(e)):(c=Re(e),f=Re(t));var h=Cne(f,c),p=(Ac(f)-Ac(c))/1e3,m=Math.round((h-p)/60),g;if(m<2)return n!=null&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,l):h<10?s.formatDistance("lessThanXSeconds",10,l):h<20?s.formatDistance("lessThanXSeconds",20,l):h<40?s.formatDistance("halfAMinute",0,l):h<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):m===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",m,l);if(m<45)return s.formatDistance("xMinutes",m,l);if(m<90)return s.formatDistance("aboutXHours",1,l);if(m<$3){var v=Math.round(m/60);return s.formatDistance("aboutXHours",v,l)}else{if(mr.getTime()}function Kr(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getTime()"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hv(e)}function _E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pv(e){return pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pv(e)}function V3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rie=function(e){Jre(n,e);var t=eie(n);function n(){var r;Xre(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,s=Math.floor(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function y5(e){return e%400===0||e%4===0&&e%100!==0}function gm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gm=function(n){return typeof n}:gm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gm(e)}function iie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gv(e){return gv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gv(e)}function W3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uie=function(e){sie(n,e);var t=aie(n);function n(){var r;iie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s){var a=i.getUTCFullYear();if(s.isTwoDigitYear){var l=v5(s.year,a);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vm=function(n){return typeof n}:vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vm(e)}function fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vv(e)}function q3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vie=function(e){hie(n,e);var t=pie(n);function n(){var r;fie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0}},{key:"set",value:function(i,o,s,a){var l=gE(i,a);if(s.isTwoDigitYear){var c=v5(s.year,l);return i.setUTCFullYear(c,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),il(i,a)}var f=!("era"in o)||o.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,a.firstWeekContainsDate),i.setUTCHours(0,0,0,0),il(i,a)}}]),n}(gt);function ym(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ym=function(n){return typeof n}:ym=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ym(e)}function yie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G3(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yv(e){return yv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yv(e)}function Z3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cie=function(e){bie(n,e);var t=wie(n);function n(){var r;yie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _v(e){return _v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_v(e)}function X3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rie=function(e){Oie(n,e);var t=Pie(n);function n(){var r;Eie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bv(e)}function J3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $ie=function(e){Die(n,e);var t=Aie(n);function n(){var r;Nie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function wm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wm=function(n){return typeof n}:wm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wm(e)}function jie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wv(e){return wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wv(e)}function tM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wie=function(e){zie(n,e);var t=Uie(n);function n(){var r;jie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=4}},{key:"set",value:function(i,o,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function xm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xm=function(n){return typeof n}:xm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xm(e)}function Yie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xv(e){return xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xv(e)}function rM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qie=function(e){Gie(n,e);var t=Zie(n);function n(){var r;Yie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Sm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sm=function(n){return typeof n}:Sm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function Jie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function oM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ooe=function(e){toe(n,e);var t=noe(n);function n(){var r;Jie(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function soe(e,t,n){Pe(2,arguments);var r=Re(e),i=et(t),o=l5(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function Cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cm=function(n){return typeof n}:Cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function aoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}function aM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hoe=function(e){coe(n,e);var t=uoe(n);function n(){var r;aoe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s,a){return il(soe(i,s,a),a)}}]),n}(gt);function poe(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=a5(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function moe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var woe=function(e){voe(n,e);var t=yoe(n);function n(){var r;moe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=53}},{key:"set",value:function(i,o,s){return Fc(poe(i,s))}}]),n}(gt);function Tm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tm=function(n){return typeof n}:Tm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tm(e)}function xoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}function _b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Poe=[31,28,31,30,31,30,31,31,30,31,30,31],koe=[31,29,31,30,31,30,31,31,30,31,30,31],Moe=function(e){Coe(n,e);var t=Eoe(n);function n(){var r;xoe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=koe[l]:o>=1&&o<=Poe[l]}},{key:"set",value:function(i,o,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Pm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pm=function(n){return typeof n}:Pm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pm(e)}function Roe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ov(e){return Ov=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ov(e)}function bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Foe=function(e){Loe(n,e);var t=Doe(n);function n(){var r;Roe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function xE(e,t,n){var r,i,o,s,a,l,c,f;Pe(2,arguments);var h=Uo(),p=et((r=(i=(o=(s=n==null?void 0:n.weekStartsOn)!==null&&s!==void 0?s:n==null||(a=n.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Re(e),g=et(t),v=m.getUTCDay(),w=g%7,_=(w+7)%7,b=(_"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pv(e)}function hM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hoe=function(e){Boe(n,e);var t=zoe(n);function n(){var r;$oe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=xE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Rm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rm=function(n){return typeof n}:Rm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rm(e)}function Woe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function mM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xoe=function(e){qoe(n,e);var t=Goe(n);function n(){var r;Woe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=xE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Nm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nm=function(n){return typeof n}:Nm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nm(e)}function Qoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}function vM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ise=function(e){ese(n,e);var t=tse(n);function n(){var r;Qoe(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=6}},{key:"set",value:function(i,o,s,a){return i=xE(i,s,a),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function ose(e,t){Pe(2,arguments);var n=et(t);n%7===0&&(n=n-7);var r=1,i=Re(e),o=i.getUTCDay(),s=n%7,a=(s+7)%7,l=(a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rv(e)}function _M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dse=function(e){lse(n,e);var t=cse(n);function n(){var r;sse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=7}},{key:"set",value:function(i,o,s){return i=ose(i,s),i.setUTCHours(0,0,0,0),i}}]),n}(gt);function Dm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dm=function(n){return typeof n}:Dm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dm(e)}function hse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nv(e)}function wM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _se=function(e){mse(n,e);var t=gse(n);function n(){var r;hse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lv(e)}function SM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tse=function(e){xse(n,e);var t=Sse(n);function n(){var r;bse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dv(e){return Dv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dv(e)}function EM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lse=function(e){kse(n,e);var t=Mse(n);function n(){var r;Ose(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Av(e){return Av=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}function OM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bse=function(e){Ise(n,e);var t=Fse(n);function n(){var r;Dse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=12}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):!a&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(gt);function $m(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$m=function(n){return typeof n}:$m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$m(e)}function zse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Iv(e){return Iv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Iv(e)}function kM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qse=function(e){Vse(n,e);var t=Hse(n);function n(){var r;zse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=23}},{key:"set",value:function(i,o,s){return i.setUTCHours(s,0,0,0),i}}]),n}(gt);function jm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jm=function(n){return typeof n}:jm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jm(e)}function Gse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Fv(e)}function RM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eae=function(e){Kse(n,e);var t=Xse(n);function n(){var r;Gse(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=11}},{key:"set",value:function(i,o,s){var a=i.getUTCHours()>=12;return a&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),n}(gt);function Bm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bm=function(n){return typeof n}:Bm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bm(e)}function tae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $v(e){return $v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$v(e)}function LM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aae=function(e){rae(n,e);var t=iae(n);function n(){var r;tae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=1&&o<=24}},{key:"set",value:function(i,o,s){var a=s<=24?s%24:s;return i.setUTCHours(a,0,0,0),i}}]),n}(gt);function zm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zm=function(n){return typeof n}:zm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zm(e)}function lae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jv(e){return jv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(e)}function AM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pae=function(e){uae(n,e);var t=fae(n);function n(){var r;lae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCMinutes(s,0,0),i}}]),n}(gt);function Um(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Um=function(n){return typeof n}:Um=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Um(e)}function mae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IM(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bv(e){return Bv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Bv(e)}function FM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wae=function(e){vae(n,e);var t=yae(n);function n(){var r;mae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=0&&o<=59}},{key:"set",value:function(i,o,s){return i.setUTCSeconds(s,0),i}}]),n}(gt);function Vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vm=function(n){return typeof n}:Vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vm(e)}function xae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $M(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zv(e)}function jM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pae=function(e){Cae(n,e);var t=Eae(n);function n(){var r;xae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uv(e)}function zM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aae=function(e){Rae(n,e);var t=Nae(n);function n(){var r;kae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vv(e)}function VM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uae=function(e){$ae(n,e);var t=jae(n);function n(){var r;Iae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Hv(e)}function WM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zae=function(e){Wae(n,e);var t=Yae(n);function n(){var r;Vae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wv(e){return Wv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Wv(e)}function qM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nle=function(e){Qae(n,e);var t=Jae(n);function n(){var r;Kae(this,n);for(var i=arguments.length,o=new Array(i),s=0;s"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=ile(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function ile(e,t){if(e){if(typeof e=="string")return ZM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZM(e,t)}}function ZM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=et((g=(v=(w=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(b=r.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&w!==void 0?w:D.weekStartsOn)!==null&&v!==void 0?v:(E=D.locale)===null||E===void 0||(P=E.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&g!==void 0?g:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(N==="")return k===""?Re(n):new Date(NaN);var q={firstWeekContainsDate:A,weekStartsOn:Y,locale:U},ee=[new Gre],Z=N.match(sle).map(function(O){var R=O[0];if(R in zw){var F=zw[R];return F(O,U.formatLong)}return O}).join("").match(ole),te=[],ne=GM(Z),le;try{var K=function(){var R=le.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&f5(R)&&fv(R,N,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&u5(R)&&fv(R,N,e);var F=R[0],Q=rle[F];if(Q){var X=Q.incompatibleTokens;if(Array.isArray(X)){var ae=te.find(function(De){return X.includes(De.token)||De.token===F});if(ae)throw new RangeError("The format string mustn't contain `".concat(ae.fullToken,"` and `").concat(R,"` at the same time"))}else if(Q.incompatibleTokens==="*"&&te.length>0)throw new RangeError("The format string mustn't contain `".concat(R,"` and any other token at the same time"));te.push({token:F,fullToken:R});var ve=Q.run(k,R,U.match,q);if(!ve)return{v:new Date(NaN)};ee.push(ve.setter),k=ve.rest}else{if(F.match(ule))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");if(R==="''"?R="'":F==="'"&&(R=fle(R)),k.indexOf(R)===0)k=k.slice(R.length);else return{v:new Date(NaN)}}};for(ne.s();!(le=ne.n()).done;){var $=K();if(Gm($)==="object")return $.v}}catch(O){ne.e(O)}finally{ne.f()}if(k.length>0&&cle.test(k))return new Date(NaN);var I=ee.map(function(O){return O.priority}).sort(function(O,R){return R-O}).filter(function(O,R,F){return F.indexOf(O)===R}).map(function(O){return ee.filter(function(R){return R.priority===O}).sort(function(R,F){return F.subPriority-R.subPriority})}).map(function(O){return O[0]}),B=Re(n);if(isNaN(B.getTime()))return new Date(NaN);var ie=o5(B,Ac(B)),W={},G=GM(I),re;try{for(G.s();!(re=G.n()).done;){var se=re.value;if(!se.validate(ie,q))return new Date(NaN);var me=se.set(ie,W,q);Array.isArray(me)?(ie=me[0],yE(W,me[1])):ie=me}}catch(O){G.e(O)}finally{G.f()}return ie}function fle(e){return e.match(ale)[1].replace(lle,"'")}function dle(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function hle(e,t){Pe(2,arguments);var n=Bw(e),r=Bw(t);return n.getTime()===r.getTime()}function ple(e,t){Pe(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()===r.getFullYear()}function $c(e,t){Pe(2,arguments);var n=Re(e).getTime(),r=Re(t.start).getTime(),i=Re(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function SE(e,t){Pe(2,arguments);var n=et(t);return hl(e,-n)}function Lo(e,t){var n;Pe(1,arguments);var r=et((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=yle(e),o;if(i.date){var s=_le(i.date,r);o=ble(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a=o.getTime(),l=0,c;if(i.time&&(l=wle(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=xle(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(a+l),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(a+l+c)}var vp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},mle=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,gle=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,vle=/^([+-])(\d{2})(?::?(\d{2}))?$/;function yle(e){var t={},n=e.split(vp.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],vp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(vp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=vp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function _le(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function ble(e,t){if(t===null)return new Date(NaN);var n=e.match(mle);if(!n)return new Date(NaN);var r=!!n[4],i=Lu(n[1]),o=Lu(n[2])-1,s=Lu(n[3]),a=Lu(n[4]),l=Lu(n[5])-1;if(r)return Ole(t,a,l)?Sle(t,a,l):new Date(NaN);var c=new Date(0);return!Ele(t,o,s)||!Tle(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,s)),c)}function Lu(e){return e?parseInt(e):1}function wle(e){var t=e.match(gle);if(!t)return NaN;var n=xb(t[1]),r=xb(t[2]),i=xb(t[3]);return Ple(n,r,i)?n*b_+r*dE+i*1e3:NaN}function xb(e){return e&&parseFloat(e.replace(",","."))||0}function xle(e){if(e==="Z")return 0;var t=e.match(vle);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return kle(r,i)?n*(r*b_+i*dE):NaN}function Sle(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var Cle=[31,null,31,30,31,30,31,31,30,31,30,31];function _5(e){return e%400===0||e%4===0&&e%100!==0}function Ele(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Cle[t]||(_5(e)?29:28))}function Tle(e,t){return t>=1&&t<=(_5(e)?366:365)}function Ole(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Ple(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function kle(e,t){return t>=0&&t<=59}function Wi(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var a=jre(s);return n.setMonth(r,Math.min(o,a)),n}function yf(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setHours(r),n}function _f(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setMinutes(r),n}function qu(e,t){Pe(2,arguments);var n=Re(e),r=et(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return Wi(n,n.getMonth()+o*3)}function Mle(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return n.setSeconds(r),n}function Yv(e,t){Pe(2,arguments);var n=Re(e),r=et(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function yd(e,t){Pe(2,arguments);var n=et(t);return to(e,-n)}function Rle(e,t){Pe(2,arguments);var n=et(t);return fE(e,-n)}function _d(e,t){Pe(2,arguments);var n=et(t);return Ic(e,-n)}const bf="yyyy-MM-dd",CE="yyyy-MM-dd HH:mm",zs=()=>new Date,EE=e=>typeof e!="string",b5=(e,t)=>!e||!EE(e)?e:t?vo(e,t):Fre(e),w5=(e=bf)=>t=>b5(t,e),Us=e=>b5(e,void 0),yp=w5(),qv=w5(CE),bi=e=>EE(e)?e:Lo(e),KM=e=>e?bi(e):null,rh=(e,t,n)=>{try{return $c(bi(e),{start:bi(t??e),end:bi(n??e)})}catch{return!1}},ha=(e,t)=>d5(e,t)||Kr(e,t),ih="all",x5={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[ih]:void 0},S5=Object.keys(x5),C5=e=>e===void 0||qn(xA(Boolean,e)),Gv=e=>typeof e=="string"&&S5.includes(e),Nle=S5.filter(e=>e!==ih),E5=(e,t)=>({startDate:KM(e),endDate:KM(t)}),Lle=e=>{if(!(!e||C5(e)))return e.startDate&&!e.endDate?`Since ${yp(e.startDate)}`:!e.startDate&&e.endDate?`Until ${yp(e.endDate)}`:`${yp(e.startDate)} - ${yp(e.endDate)}`},TE=e=>{if(!(!e||e===ih))return Gv(e)?x5[e]:Lle(e)},qr=e=>Nr(SE(zs(),e)),Ll=e=>({startDate:e,endDate:rl(zs())}),T5=Qy([[da("today"),()=>Ll(Nr(zs()))],[da("yesterday"),()=>({startDate:qr(1),endDate:rl(SE(zs(),1))})],[da("last7Days"),()=>Ll(qr(7))],[da("last30Days"),()=>Ll(qr(30))],[da("last90Days"),()=>Ll(qr(90))],[da("last180Days"),()=>Ll(qr(180))],[da("last365Days"),()=>Ll(qr(365))],[jS,()=>({})]]),Dle=e=>{const t=bi(e);return Qy([[()=>ha(Nr(zs()),t),()=>"today"],[()=>ha(qr(1),t),()=>"yesterday"],[()=>ha(qr(7),t),()=>"last7Days"],[()=>ha(qr(30),t),()=>"last30Days"],[()=>ha(qr(90),t),()=>"last90Days"],[()=>ha(qr(180),t),()=>"last180Days"],[()=>ha(qr(365),t),()=>"last365Days"],[jS,()=>ih]])()},Ale=e=>Gv(e)?T5(e):e;function Ile(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,X2(e,t)}function X2(e,t){return X2=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},X2(e,t)}function Fle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function XM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $le(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function jle(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&$le(e,t,n))return!0;e=e.parentNode||e.host}return e}function Ble(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var zle=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function Ule(e){return e===void 0&&(e=0),function(){return++e}}var Vle=Ule(),Q2,_p={},Sb={},Hle=["touchstart","touchmove"],Wle="ignore-react-onclickoutside";function QM(e,t){var n=null,r=Hle.indexOf(t)!==-1;return r&&Q2&&(n={passive:!e.props.preventDefault}),n}function w_(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){Ile(s,o);function s(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(f){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(f);return}var h=c.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(f);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var f=c.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():Ha.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Sb[c._uid])){typeof Q2>"u"&&(Q2=zle()),Sb[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),_p[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&Ble(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;jle(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,_p[c._uid],QM(XM(c),h))})}},c.disableOnClickOutside=function(){delete Sb[c._uid];var f=_p[c._uid];if(f&&typeof document<"u"){var h=c.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(p){return document.removeEventListener(p,f,QM(XM(c),p))}),delete _p[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=Vle(),c}var a=s.prototype;return a.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},a.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var c=this.props;c.excludeScrollbar;var f=Fle(c,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?f.ref=this.getRef:f.wrappedRef=this.getRef,f.disableOnClickOutside=this.disableOnClickOutside,f.enableOnClickOutside=this.enableOnClickOutside,H.createElement(e,f)},s}(H.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:Wle,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var O5=H.createContext(),P5=H.createContext();function Yle(e){var t=e.children,n=H.useState(null),r=n[0],i=n[1],o=H.useRef(!1);H.useEffect(function(){return function(){o.current=!0}},[]);var s=H.useCallback(function(a){o.current||i(a)},[]);return H.createElement(O5.Provider,{value:r},H.createElement(P5.Provider,{value:s},t))}var k5=function(t){return Array.isArray(t)?t[0]:t},M5=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var n,r=ex(e);if(t){var i=ex(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ece(this,n)}}function L5(e){return function(t){if(Array.isArray(t))return Cb(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return Cb(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cb(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Cb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(o=wb(e,t.slice(0,e.length),new Date)),ns(o)||(o=new Date(e))),ns(o)&&a?o:null)}function ns(e,t){return t=t||new Date("1/1/1000"),r5(e)&&!Kr(e,t)}function an(e,t,n){if(n==="en")return vo(e,t,{awareOfUnicodeTokens:!0});var r=Rs(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&za()&&Rs(za())&&(r=Rs(za())),vo(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function Eb(e,t){var n=t.dateFormat,r=t.locale;return e&&an(e,Array.isArray(n)?n[0]:n,r)||""}function sR(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,s=t.second;return yf(_f(Mle(e,s===void 0?0:s),o),r)}function ice(e,t){var n=t&&Rs(t)||za()&&Rs(za());return zre(e,n?{locale:n}:null)}function oce(e,t){return an(e,"ddd",t)}function sce(e){return Nr(e)}function OE(e,t,n){var r=Rs(t||za());return n5(e,{locale:r,weekStartsOn:n})}function Ba(e){return Tne(e)}function Gu(e){return One(e)}function ace(e){return Bw(e)}function D5(e,t){return e&&t?ple(e,t):!e&&!t}function fs(e,t){return e&&t?dle(e,t):!e&&!t}function Zv(e,t){return e&&t?hle(e,t):!e&&!t}function gr(e,t){return e&&t?_ne(e,t):!e&&!t}function ds(e,t){return e&&t?d5(e,t):!e&&!t}function Zm(e,t,n){var r,i=Nr(t),o=rl(n);try{r=$c(e,{start:i,end:o})}catch{r=!1}return r}function za(){return(typeof window<"u"?window:globalThis).__localeId__}function Rs(e){if(typeof e=="string"){var t=typeof window<"u"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function A5(e,t){return an(Wi(pn(),e),"LLLL",t)}function I5(e,t){return an(Wi(pn(),e),"LLL",t)}function lce(e,t){return an(qu(pn(),e),"QQQ",t)}function S_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,s=t.includeDates,a=t.includeDateIntervals,l=t.filterDate;return C_(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return gr(e,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return $c(e,{start:f,end:h})})||s&&!s.some(function(c){return gr(e,c)})||a&&!a.some(function(c){var f=c.start,h=c.end;return $c(e,{start:f,end:h})})||l&&!l(pn(e))||!1}function PE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,s=i.end;return $c(e,{start:o,end:s})}):n&&n.some(function(i){return gr(e,i)})||!1}function cce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return C_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return fs(e,a)})||o&&!o.some(function(a){return fs(e,a)})||s&&!s(pn(e))||!1}function uce(e,t,n,r){var i=pt(e),o=cr(e),s=pt(t),a=cr(t),l=pt(r);return i===s&&i===l?o<=n&&n<=a:i=n||li:void 0}function fce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,s=t.filterDate;return C_(e,{minDate:n,maxDate:r})||i&&i.some(function(a){return Zv(e,a)})||o&&!o.some(function(a){return Zv(e,a)})||s&&!s(pn(e))||!1}function dce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=new Date(e,0,1);return C_(i,{minDate:n,maxDate:r})||!1}function hce(e,t,n,r){var i=pt(e),o=jw(e),s=pt(t),a=jw(t),l=pt(r);return i===s&&i===l?o<=n&&n<=a:i=n||li:void 0}function C_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&gd(e,n)<0||r&&gd(e,r)>0}function aR(e,t){return t.some(function(n){return Ei(n)===Ei(e)&&Ti(n)===Ti(e)})}function lR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&aR(e,n)||r&&!aR(e,r)||i&&!i(e)||!1}function cR(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=pn(),s=yf(_f(o,Ti(e)),Ei(e)),a=yf(_f(o,Ti(n)),Ei(n)),l=yf(_f(o,Ti(r)),Ei(r));try{i=!$c(s,{start:a,end:l})}catch{i=!1}return i}function uR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=yd(e,1);return n&&vd(n,i)>0||r&&r.every(function(o){return vd(o,i)>0})||!1}function fR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=to(e,1);return n&&vd(i,n)>0||r&&r.every(function(o){return vd(i,o)>0})||!1}function dR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=_d(e,1);return n&&cv(n,i)>0||r&&r.every(function(o){return cv(o,i)>0})||!1}function hR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Ic(e,1);return n&&cv(i,n)>0||r&&r.every(function(o){return cv(i,o)>0})||!1}function F5(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return gd(i,t)>=0});return N3(r)}return n?N3(n):t}function $5(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return gd(i,t)<=0});return R3(r)}return n?R3(n):t}function pR(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(pt(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function mce(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var s=e+t-o,a=!0;n&&(a=pt(n)<=s),r&&a&&(a=pt(r)>=s),a&&i.push(s)}return i}var gce=w_(function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;Rn(this,n),oe(ce(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return z.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(ce(i),p),"aria-selected":l===p?"true":void 0},l===p?z.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?pt(i.props.minDate):null,h=i.props.maxDate?pt(i.props.maxDate):null;return h&&i.state.yearsList.find(function(p){return p===h})||c.unshift(z.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},z.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||c.push(z.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},z.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),oe(ce(i),"onChange",function(l){i.props.onChange(l)}),oe(ce(i),"handleClickOutside",function(){i.props.onCancel()}),oe(ce(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),oe(ce(i),"incrementYears",function(){return i.shiftYears(1)}),oe(ce(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,s=r.scrollableYearDropdown,a=o||(s?10:5);return i.state={yearsList:mce(i.props.year,a,i.props.minDate,i.props.maxDate)},i.dropdownRef=H.createRef(),i}return Nn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;r&&(r.scrollTop=r.scrollHeight/2-r.clientHeight/2)}},{key:"render",value:function(){var r=ge({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return z.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),vce=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!a.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0)),l&&r.dayEl.current.focus({preventScroll:!0})}),oe(ce(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(j3(r.props.day),r.props.day):j3(r.props.day)}),oe(ce(r),"render",function(){return z.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()},r.renderDayContents())}),r}return Nn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),Cce=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s=6,m=!l&&!r.isWeekInMonth(h);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return a}),oe(ce(r),"onMonthClick",function(a,l){r.handleDayClick(Ba(Wi(r.props.day,l)),a)}),oe(ce(r),"handleMonthNavigation",function(a,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[a].current&&r.MONTH_REFS[a].current.focus())}),oe(ce(r),"onMonthKeyDown",function(a,l){var c=a.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onMonthClick(a,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,to(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,yd(r.props.preSelection,1))}}),oe(ce(r),"onQuarterClick",function(a,l){r.handleDayClick(ace(qu(r.props.day,l)),a)}),oe(ce(r),"getMonthClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,g=l.maxDate,v=l.preSelection,w=l.monthClassName,_=w?w(c):void 0;return ge("react-datepicker__month-text","react-datepicker__month-".concat(a),_,{"react-datepicker__month--disabled":(m||g)&&cce(Wi(c,a),r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,a,p),"react-datepicker__month-text--keyboard-selected":cr(v)===a,"react-datepicker__month--in-range":uce(f,h,a,c),"react-datepicker__month--range-start":r.isRangeStartMonth(a),"react-datepicker__month--range-end":r.isRangeEndMonth(a),"react-datepicker__month-text--today":r.isCurrentMonth(c,a)})}),oe(ce(r),"getTabIndex",function(a){var l=cr(r.props.preSelection);return r.props.disabledKeyboardNavigation||a!==l?"-1":"0"}),oe(ce(r),"getAriaLabel",function(a){var l=r.props,c=l.chooseDayAriaLabelPrefix,f=c===void 0?"Choose":c,h=l.disabledDayAriaLabelPrefix,p=h===void 0?"Not available":h,m=l.day,g=Wi(m,a),v=r.isDisabled(g)||r.isExcluded(g)?p:f;return"".concat(v," ").concat(an(g,"MMMM yyyy"))}),oe(ce(r),"getQuarterClassNames",function(a){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,g=l.maxDate;return ge("react-datepicker__quarter-text","react-datepicker__quarter-".concat(a),{"react-datepicker__quarter--disabled":(m||g)&&fce(qu(c,a),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,a,p),"react-datepicker__quarter--in-range":hce(f,h,a,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(a),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(a)})}),oe(ce(r),"renderMonths",function(){var a=r.props,l=a.showFullMonthYearPicker,c=a.showTwoColumnMonthYearPicker,f=a.showFourColumnMonthYearPicker,h=a.locale,p=a.day,m=a.selected;return(f?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:c?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(g,v){return z.createElement("div",{className:"react-datepicker__month-wrapper",key:v},g.map(function(w,_){return z.createElement("div",{ref:r.MONTH_REFS[w],key:_,onClick:function(b){r.onMonthClick(b,w)},onKeyDown:function(b){r.onMonthKeyDown(b,w)},tabIndex:r.getTabIndex(w),className:r.getMonthClassNames(w),role:"option","aria-label":r.getAriaLabel(w),"aria-current":r.isCurrentMonth(p,w)?"date":void 0,"aria-selected":r.isSelectedMonth(p,w,m)},l?A5(w,h):I5(w,h))}))})}),oe(ce(r),"renderQuarters",function(){var a=r.props,l=a.day,c=a.selected;return z.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return z.createElement("div",{key:h,role:"option",onClick:function(p){r.onQuarterClick(p,f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c)},lce(f,r.props.locale))}))}),oe(ce(r),"getClassNames",function(){var a=r.props;a.day;var l=a.selectingDate,c=a.selectsStart,f=a.selectsEnd,h=a.showMonthYearPicker,p=a.showQuarterYearPicker;return ge("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||f)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":p})}),r}return Nn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,s=r.day,a=r.ariaLabelPrefix,l=a===void 0?"month ":a;return z.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(an(s,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),j5=function(e){Ln(n,z.Component);var t=Dn(n);function n(){var r;Rn(this,n);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return Mce.some(function(a){return s.indexOf(a)>=0})})(o.target)&&i.props.onDropdownFocus()}),oe(ce(i),"getDateInView",function(){var o=i.props,s=o.preSelection,a=o.selected,l=o.openToDate,c=F5(i.props),f=$5(i.props),h=pn(),p=l||a||s;return p||(c&&Kr(h,c)?c:f&&Bs(h,f)?f:h)}),oe(ce(i),"increaseMonth",function(){i.setState(function(o){var s=o.date;return{date:to(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),oe(ce(i),"decreaseMonth",function(){i.setState(function(o){var s=o.date;return{date:yd(s,1)}},function(){return i.handleMonthChange(i.state.date)})}),oe(ce(i),"handleDayClick",function(o,s,a){i.props.onSelect(o,s,a),i.props.setPreSelection&&i.props.setPreSelection(o)}),oe(ce(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),oe(ce(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),oe(ce(i),"handleYearChange",function(o){i.props.onYearChange&&i.props.onYearChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),oe(ce(i),"handleMonthChange",function(o){i.props.onMonthChange&&i.props.onMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),oe(ce(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),oe(ce(i),"changeYear",function(o){i.setState(function(s){var a=s.date;return{date:Yv(a,o)}},function(){return i.handleYearChange(i.state.date)})}),oe(ce(i),"changeMonth",function(o){i.setState(function(s){var a=s.date;return{date:Wi(a,o)}},function(){return i.handleMonthChange(i.state.date)})}),oe(ce(i),"changeMonthYear",function(o){i.setState(function(s){var a=s.date;return{date:Yv(Wi(a,cr(o)),pt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),oe(ce(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=OE(o,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(z.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(l){var c=hl(s,l),f=i.formatWeekday(c,i.props.locale),h=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return z.createElement("div",{key:l,className:ge("react-datepicker__day-name",h)},f)}))}),oe(ce(i),"formatWeekday",function(o,s){return i.props.formatWeekDay?function(a,l,c){return l(an(a,"EEEE",c))}(o,i.props.formatWeekDay,s):i.props.useWeekdaysShort?function(a,l){return an(a,"EEE",l)}(o,s):function(a,l){return an(a,"EEEEEE",l)}(o,s)}),oe(ce(i),"decreaseYear",function(){i.setState(function(o){var s=o.date;return{date:_d(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),oe(ce(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=dR(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=b.minDate,E=b.yearItemNumber,P=E===void 0?12:E,k=wf(Gu(_d(_,P)),P).endPeriod,N=x&&pt(x);return N&&N>k||!1}(i.state.date,i.props);break;default:o=uR(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var s=["react-datepicker__navigation","react-datepicker__navigation--previous"],a=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(a=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),a=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,g=m===void 0?typeof f=="string"?f:"Previous Month":m,v=p.previousYearAriaLabel,w=v===void 0?typeof h=="string"?h:"Previous Year":v;return z.createElement("button",{type:"button",className:s.join(" "),onClick:a,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?w:g},z.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),oe(ce(i),"increaseYear",function(){i.setState(function(o){var s=o.date;return{date:Ic(s,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),oe(ce(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=hR(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=b.maxDate,E=b.yearItemNumber,P=E===void 0?12:E,k=wf(Ic(_,P),P).startPeriod,N=x&&pt(x);return N&&N0&&arguments[0]!==void 0?arguments[0]:i.state.date,s=["react-datepicker__current-month"];return i.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),z.createElement("div",{className:s.join(" ")},an(o,i.props.dateFormat,i.props.locale))}),oe(ce(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return z.createElement(vce,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:pt(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),oe(ce(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return z.createElement(_ce,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:cr(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),oe(ce(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return z.createElement(xce,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),oe(ce(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return z.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.props.onSelect(Nr(pn()),o)}},i.props.todayButton)}),oe(ce(i),"renderDefaultHeader",function(o){var s=o.monthDate,a=o.i;return z.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(s),z.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(a!==0),i.renderMonthYearDropdown(a!==0),i.renderYearDropdown(a!==0)),z.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),oe(ce(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=o.monthDate,a=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=uR(i.state.date,i.props),c=fR(i.state.date,i.props),f=dR(i.state.date,i.props),h=hR(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return z.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(nR(nR({},i.state),{},{customHeaderCount:a,monthDate:s,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:h})),p&&z.createElement("div",{className:"react-datepicker__day-names"},i.header(s)))}),oe(ce(i),"renderYearHeader",function(){var o=i.state.date,s=i.props,a=s.showYearPicker,l=wf(o,s.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return z.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(c," - ").concat(f):pt(o))}),oe(ce(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),oe(ce(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],s=i.props.showPreviousMonths?i.props.monthsShown-1:0,a=yd(i.state.date,s),l=0;l0;o.push(z.createElement("div",{key:h,ref:function(g){i.monthContainer=g},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),z.createElement(Tce,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:f,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return o}}),oe(ce(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?z.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),z.createElement(Oce,x_({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),oe(ce(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return z.createElement(j5,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),oe(ce(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),s=ns(o)&&Boolean(i.props.selected)?"".concat(mR(o.getHours()),":").concat(mR(o.getMinutes())):"";if(i.props.showTimeInput)return z.createElement(Pce,{date:o,timeString:s,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),i.containerRef=z.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null},i}return Nn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){this.props.preSelection&&!gr(this.props.preSelection,r.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!gr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||kce;return z.createElement("div",{ref:this.containerRef},z.createElement(r,{className:ge("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),B5=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return Nn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return Fa.createPortal(this.props.children,this.el)}}]),n}(),Nce=function(e){return!e.disabled&&e.tabIndex!==-1},Lce=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),oe(ce(i=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Nce)}),oe(ce(i),"handleFocusStart",function(o){var s=i.getTabChildren();s&&s.length>1&&s[s.length-1].focus()}),oe(ce(i),"handleFocusEnd",function(o){var s=i.getTabChildren();s&&s.length>1&&s[0].focus()}),i.tabLoopRef=z.createRef(),i}return Nn(n,[{key:"render",value:function(){return this.props.enableTabLoop?z.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},z.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,z.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),Dce=function(e){Ln(n,z.Component);var t=Dn(n);function n(){return Rn(this,n),t.apply(this,arguments)}return Nn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,s=i.wrapperClassName,a=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,f=i.popperPlacement,h=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,g=i.popperOnKeyDown,v=i.portalId,w=i.portalHost;if(!a){var _=ge("react-datepicker-popper",o);r=z.createElement(Qle,x_({modifiers:c,placement:f},h),function(x){var E=x.ref,P=x.style,k=x.placement,N=x.arrowProps;return z.createElement(Lce,{enableTabLoop:m},z.createElement("div",{ref:E,style:P,className:_,"data-placement":k,onKeyDown:g},z.cloneElement(l,{arrowProps:N})))})}this.props.popperContainer&&(r=z.createElement(this.props.popperContainer,{},r)),v&&!a&&(r=z.createElement(B5,{portalId:v,portalHost:w},r));var b=ge("react-datepicker-wrapper",s);return z.createElement(Yle,{className:"react-datepicker-manager"},z.createElement(Jle,null,function(x){var E=x.ref;return z.createElement("div",{ref:E,className:b},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),Ace=w_(Rce),Ice=function(e){Ln(n,z.Component);var t=Dn(n);function n(r){var i;return Rn(this,n),oe(ce(i=t.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:pn()}),oe(ce(i),"calcInitialState",function(){var o,s=i.getPreSelection(),a=F5(i.props),l=$5(i.props),c=a&&Kr(s,Nr(a))?a:l&&Bs(s,rl(l))?l:s;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:pR(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),oe(ce(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),oe(ce(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),oe(ce(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),oe(ce(i),"setOpen",function(o){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:Tb},function(){o||i.setState(function(a){return{focused:!!s&&a.focused}},function(){!s&&i.setBlur(),i.setState({inputValue:null})})})}),oe(ce(i),"inputOk",function(){return hE(i.state.preSelection)}),oe(ce(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),oe(ce(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),oe(ce(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),oe(ce(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),oe(ce(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),oe(ce(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),oe(ce(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),oe(ce(i),"handleChange",function(){for(var o=arguments.length,s=new Array(o),a=0;a{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||Fo(r),s=H.useRef();return V("div",{className:"date-input-container",children:[C(Ice,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??bf,className:ge("date-input-container__input form-control",t),ref:s}),o&&C(je,{icon:jce,className:"date-input-container__icon",onClick:()=>{var a;return(a=s.current)==null?void 0:a.input.focus()}})]})},Vce=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>V("div",{className:"row",children:[C("div",{className:"col-md-6",children:C(tx,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),C("div",{className:"col-md-6",children:C(tx,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&rl(o))})})]}),U5=({active:e,allText:t,onChange:n})=>V(Ye,{children:[C(Ve,{active:e==="all",onClick:()=>n("all"),children:t}),C(Ve,{divider:!0}),Nle.map(r=>C(Ve,{active:e===r,onClick:()=>n(r),children:TE(r)},r))]}),V5=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=Gv(t),[s,a]=H.useState(o?t:void 0),[l,c]=H.useState(o?void 0:t),f=p=>{a(C5(p)?ih:void 0),c(p),e(p)},h=p=>{a(p),c(void 0),e(T5(p))};return i&&Cee(()=>{const p=Gv(t);p&&h(t),t&&!p&&f(t)},[t]),V(ta,{disabled:r,text:TE(s??l)??n,children:[C(U5,{allText:n,active:s,onChange:h}),C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Custom:"}),C(Ve,{text:!0,children:C(Vce,{...l,onStartDateChange:p=>f({...l,startDate:p}),onEndDateChange:p=>f({...l,endDate:p})})})]})};function oh({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const s=a=>()=>{const l=e_(a,t.field,t.dir);n(l?a:void 0,l)};return V(Kd,{children:[V(eu,{caret:!0,color:r?"primary":"link",className:ge({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&C(Ye,{children:"Order by"}),r&&!t.field&&C("i",{children:"Order by..."}),r&&t.field&&V(Ye,{children:[o&&"Order by: ",e[t.field]," - ",C("small",{children:t.dir??"DESC"})]})]}),V(dl,{end:i,className:ge("w-100",{"ordering-dropdown__menu--link":!r}),children:[zg(e).map(([a,l])=>V(Ve,{active:t.field===a,onClick:s(a),children:[l,t.field===a&&C(je,{icon:t.dir==="ASC"?wq:sq,className:"ordering-dropdown__sort-icon"})]},a)),C(Ve,{divider:!0}),C(Ve,{disabled:!t.field,onClick:()=>n(),children:C("i",{children:"Clear selection"})})]})]})}const E_=()=>{const e=Io(),{search:t}=Mn(),{serverId:n=""}=Zs(),r=H.useMemo(It(()=>fl(t),({orderBy:o,tags:s,excludeBots:a,excludeMaxVisitsReached:l,excludePastValidUntil:c,...f})=>{const h=o?DH(o):void 0,p=(s==null?void 0:s.split(","))??[];return{...f,orderBy:h,tags:p,excludeBots:a!==void 0?a==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}}),[t]);return[r,o=>{const s={...r,...o},{orderBy:a,tags:l,excludeBots:c,excludeMaxVisitsReached:f,excludePastValidUntil:h,...p}=s,m={...p,orderBy:a&&NA(a),tags:l.length>0?l.join(","):void 0,excludeBots:cb(c),excludeMaxVisitsReached:cb(f),excludePastValidUntil:cb(h)},g=zd(m),v=qn(g)?"":`?${g}`;e(`/server/${n}/list-short-urls/1${v}`)}]},H5={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Hce=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:s=!1}=t,a=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return V(ta,{text:"Filters",dropdownClassName:n,className:"me-3",right:!0,minWidth:250,children:[C(Ve,{header:!0,children:"Visits:"}),C(Ve,{active:i,onClick:a("excludeBots"),children:"Ignore visits from bots"}),r&&V(Ye,{children:[C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Short URLs:"}),C(Ve,{active:o,onClick:a("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),C(Ve,{active:s,onClick:a("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),C(Ve,{divider:!0}),C(Ve,{disabled:!vi(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:C("i",{children:"Clear filters"})})]})};const Wce=(e,t)=>({selectedServer:n,className:r,shortUrlsAmount:i,order:o,handleOrderBy:s,settings:a})=>{var D;const[l,c]=E_(),{search:f,tags:h,startDate:p,endDate:m,excludeBots:g,excludeMaxVisitsReached:v,excludePastValidUntil:w,tagsMode:_="any"}=l,b=Yee(n),x=It(({startDate:U,endDate:A})=>({startDate:Us(U)??void 0,endDate:Us(A)??void 0}),c),E=It(U=>qn(U)?void 0:U,U=>c({search:U})),P=U=>c({tags:U}),k=Wee(n),N=It(()=>_==="any"?"all":"any",U=>c({tagsMode:U}));return V("div",{className:ge("short-urls-filtering-bar-container",r),children:[C(nh,{initialValue:f,onChange:E}),V(Zd,{className:"mt-3",children:[C(t,{allowNew:!1,placeholder:"With tags...",selectedTags:h,onChange:P}),k&&h.length>1&&V(Ye,{children:[C(mt,{outline:!0,color:"secondary",onClick:N,id:"tagsModeBtn","aria-label":"Change tags mode",children:C(je,{className:"short-urls-filtering-bar__tags-icon",icon:_==="all"?XA:fq})}),C(Br,{target:"tagsModeBtn",placement:"left",children:_==="all"?"With all the tags.":"With any of the tags."})]})]}),V(ur,{className:"flex-lg-row-reverse",children:[C("div",{className:"col-lg-8 col-xl-6 mt-3",children:V("div",{className:"d-md-flex",children:[C("div",{className:"flex-fill",children:C(V5,{defaultText:"All short URLs",initialDateRange:E5(p,m),onDatesChange:x})}),C(Hce,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:g??((D=a.visits)==null?void 0:D.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:w},onChange:c,supportsDisabledFiltering:b})]})}),C("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:C(e,{amount:i})}),C("div",{className:"col-6 d-lg-none mt-3",children:C(oh,{prefixed:!1,items:H5,order:o,onChange:s})})]})]})};var Kv={},Yce={get exports(){return Kv},set exports(e){Kv=e}};/** @license - * eventsource.js - * Available under MIT License (MIT) - * https://github.com/Yaffle/EventSource/ - */(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,a=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,h=n.fetch,p=n.Response,m=n.TextDecoder,g=n.TextEncoder,v=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(fe){c.readyState="complete"},!1)),o==null&&a!=null&&(o=function(){return new a("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(fe){function ye(){}return ye.prototype=fe,new ye}),Date.now||(Date.now=function(){return new Date().getTime()}),v==null){var w=h;h=function(fe,ye){var be=ye.signal;return w(fe,{headers:ye.headers,credentials:ye.credentials,cache:ye.cache}).then(function(Oe){var Ae=Oe.body.getReader();return be._reader=Ae,be._aborted&&be._reader.cancel(),{status:Oe.status,statusText:Oe.statusText,headers:Oe.headers,body:{getReader:function(){return Ae}}}})},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(fe){function ye(we,_e,Ee){if(Ee===1)return we>=128>>_e&&we<<_e<=2047;if(Ee===2)return we>=2048>>_e&&we<<_e<=55295||we>=57344>>_e&&we<<_e<=65535;if(Ee===3)return we>=65536>>_e&&we<<_e<=1114111;throw new Error}function be(we,_e){if(we===6*1)return _e>>6>15?3:_e>31?2:1;if(we===6*2)return _e>15?3:2;if(we===6*3)return 3;throw new Error}for(var Oe=65533,Ae="",Ne=this.bitsNeeded,Le=this.codePoint,ue=0;ue191||!ye(Le<<6|he&63,Ne-6,be(Ne,Le)))&&(Ne=0,Le=Oe,Ae+=String.fromCharCode(Le)),Ne===0?(he>=0&&he<=127?(Ne=0,Le=he):he>=192&&he<=223?(Ne=6*1,Le=he&31):he>=224&&he<=239?(Ne=6*2,Le=he&15):he>=240&&he<=247?(Ne=6*3,Le=he&7):(Ne=0,Le=Oe),Ne!==0&&!ye(Le,Ne,be(Ne,Le))&&(Ne=0,Le=Oe)):(Ne-=6,Le=Le<<6|he&63),Ne===0&&(Le<=65535?Ae+=String.fromCharCode(Le):(Ae+=String.fromCharCode(55296+(Le-65535-1>>10)),Ae+=String.fromCharCode(56320+(Le-65535-1&1023))))}return this.bitsNeeded=Ne,this.codePoint=Le,Ae};var b=function(){try{return new m().decode(new g().encode("test"),{stream:!0})==="test"}catch(fe){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+fe)}return!1};(m==null||g==null||!b())&&(m=_);var x=function(){};function E(fe){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=x,this.onload=x,this.onerror=x,this.onreadystatechange=x,this._contentType="",this._xhr=fe,this._sendTimeout=0,this._abort=x}E.prototype.open=function(fe,ye){this._abort(!0);var be=this,Oe=this._xhr,Ae=1,Ne=0;this._abort=function(Ee){be._sendTimeout!==0&&(i(be._sendTimeout),be._sendTimeout=0),(Ae===1||Ae===2||Ae===3)&&(Ae=4,Oe.onload=x,Oe.onerror=x,Oe.onabort=x,Oe.onprogress=x,Oe.onreadystatechange=x,Oe.abort(),Ne!==0&&(i(Ne),Ne=0),Ee||(be.readyState=4,be.onabort(null),be.onreadystatechange())),Ae=0};var Le=function(){if(Ae===1){var Ee=0,Me="",Fe=void 0;if("contentType"in Oe)Ee=200,Me="OK",Fe=Oe.contentType;else try{Ee=Oe.status,Me=Oe.statusText,Fe=Oe.getResponseHeader("Content-Type")}catch{Ee=0,Me="",Fe=void 0}Ee!==0&&(Ae=2,be.readyState=2,be.status=Ee,be.statusText=Me,be._contentType=Fe,be.onreadystatechange())}},ue=function(){if(Le(),Ae===2||Ae===3){Ae=3;var Ee="";try{Ee=Oe.responseText}catch{}be.readyState=3,be.responseText=Ee,be.onprogress()}},he=function(Ee,Me){if((Me==null||Me.preventDefault==null)&&(Me={preventDefault:x}),ue(),Ae===1||Ae===2||Ae===3){if(Ae=4,Ne!==0&&(i(Ne),Ne=0),be.readyState=4,Ee==="load")be.onload(Me);else if(Ee==="error")be.onerror(Me);else if(Ee==="abort")be.onabort(Me);else throw new TypeError;be.onreadystatechange()}},we=function(Ee){Oe!=null&&(Oe.readyState===4?(!("onload"in Oe)||!("onerror"in Oe)||!("onabort"in Oe))&&he(Oe.responseText===""?"error":"load",Ee):Oe.readyState===3?"onprogress"in Oe||ue():Oe.readyState===2&&Le())},_e=function(){Ne=r(function(){_e()},500),Oe.readyState===3&&ue()};"onload"in Oe&&(Oe.onload=function(Ee){he("load",Ee)}),"onerror"in Oe&&(Oe.onerror=function(Ee){he("error",Ee)}),"onabort"in Oe&&(Oe.onabort=function(Ee){he("abort",Ee)}),"onprogress"in Oe&&(Oe.onprogress=ue),"onreadystatechange"in Oe&&(Oe.onreadystatechange=function(Ee){we(Ee)}),("contentType"in Oe||!("ontimeout"in o.prototype))&&(ye+=(ye.indexOf("?")===-1?"?":"&")+"padding=true"),Oe.open(fe,ye,!0),"readyState"in Oe&&(Ne=r(function(){_e()},0))},E.prototype.abort=function(){this._abort(!1)},E.prototype.getResponseHeader=function(fe){return this._contentType},E.prototype.setRequestHeader=function(fe,ye){var be=this._xhr;"setRequestHeader"in be&&be.setRequestHeader(fe,ye)},E.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},E.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var fe=this;fe._sendTimeout=r(function(){fe._sendTimeout=0,fe.send()},4);return}var ye=this._xhr;"withCredentials"in ye&&(ye.withCredentials=this.withCredentials);try{ye.send(void 0)}catch(be){throw be}};function P(fe){return fe.replace(/[A-Z]/g,function(ye){return String.fromCharCode(ye.charCodeAt(0)+32)})}function k(fe){for(var ye=Object.create(null),be=fe.split(`\r -`),Oe=0;Oe"u"?typeof window<"u"?window:typeof self<"u"?self:Bl:globalThis)})(Yce,Kv);const qce=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:a}=e;if(s||a||!i)return;const l=({data:h})=>n(JSON.parse(h)),c=({status:h})=>h===401&&r(),f=t.map(h=>{const p=new URL(i);p.searchParams.append("topic",h);const m=new Kv.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=c,m});return()=>f.forEach(h=>h.close())};function na(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,{interval:a}=s,l=Zs();return H.useEffect(()=>{const c=m=>a?n.add(m):i([m]),f=t(r,l),h=qce(s,f,c,o);if(!a)return h;const p=setInterval(()=>{i([...n]),n.clear()},a*1e3*60);return It(()=>clearInterval(p),()=>h==null?void 0:h())},[s]),C(e,{...r})}}class Jr{}Se(Jr,"visits","https://shlink.io/new-visit"),Se(Jr,"orphanVisits","https://shlink.io/new-orphan-visit"),Se(Jr,"shortUrlVisits",t=>`https://shlink.io/new-visit/${t}`);function xf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:C(je,{icon:e.dir==="ASC"?rq:mq,className:n})}const kE={field:"dateCreated",dir:"DESC"},Gce={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:kE}},Zce=(e,{payload:t})=>OA(e,t),pa=e=>({reducer:Zce,prepare:e}),ma=e=>({payload:e}),{reducer:Kce,actions:Xce}=Gn({name:"shlink/settings",initialState:Gce,reducers:{toggleRealTimeUpdates:pa(e=>ma({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:pa(e=>ma({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:pa(e=>ma({shortUrlCreation:e})),setShortUrlsListSettings:pa(e=>ma({shortUrlsList:e})),setUiSettings:pa(e=>ma({ui:e})),setVisitsSettings:pa(e=>ma({visits:e})),setTagsSettings:pa(e=>ma({tags:e}))}}),{toggleRealTimeUpdates:Qce,setRealTimeUpdatesInterval:Jce,setShortUrlCreationSettings:eue,setShortUrlsListSettings:tue,setUiSettings:nue,setVisitsSettings:rue,setTagsSettings:iue}=Xce,oue=Kce,gR=10,{ceil:sue}=Math,aue=new Intl.NumberFormat("en-US"),_n=e=>aue.format(Number(e)),lue=e=>sue(e/gR)*gR,Dl=2,nx="...",W5=(e,t)=>{const n=YS(gA(Dl,e-Dl),PA(t-1,e+Dl)+1);return e-Dl>Dl&&n.unshift(nx),e+Dle===nx,Y5=e=>bd(e)?e:_n(e),q5=(e,t)=>bd(e)?`${e}_${t}`:`${e}`,cue=({paginator:e,serverId:t,currentQueryString:n=""})=>{const{currentPage:r=0,pagesCount:i=0}=e??{},o=a=>`/server/${t}/list-short-urls/${a}${n}`;if(i<=1)return C("div",{className:"pb-3"});const s=()=>W5(r,i).map((a,l)=>C(Ps,{disabled:bd(a),active:r===a,children:C(ks,{tag:At,to:o(a),children:Y5(a)})},q5(a,l)));return V(v_,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[C(Ps,{disabled:r===1,children:C(ks,{previous:!0,tag:At,to:o(r-1)})}),s(),C(Ps,{disabled:r>=i,children:C(ks,{next:!0,tag:At,to:o(r+1)})})]})},uue=(e,t)=>na(({listShortUrls:n,shortUrlsList:r,selectedServer:i,settings:o})=>{var ee,Z,te;const s=Bd(i),{page:a}=Zs(),l=Mn(),[c,f]=E_(),{tags:h,search:p,startDate:m,endDate:g,orderBy:v,tagsMode:w,excludeBots:_,excludePastValidUntil:b,excludeMaxVisitsReached:x}=c,[E,P]=H.useState(v??((ee=o.shortUrlsList)==null?void 0:ee.defaultOrdering)??kE),{pagination:k}=(r==null?void 0:r.shortUrls)??{},N=_??((Z=o.visits)==null?void 0:Z.excludeBots),D=(ne,le)=>{f({orderBy:{field:ne,dir:le}}),P({field:ne,dir:le})},U=ne=>()=>D(ne,e_(ne,E.field,E.dir)),A=ne=>C(xf,{currentOrder:E,field:ne}),Y=It(ne=>[...new Set([...h,ne])],ne=>f({tags:ne})),q=({field:ne,dir:le})=>D6(i)&&N&&ne==="visits"?{field:"nonBotVisits",dir:le}:{field:ne,dir:le};return H.useEffect(()=>{n({page:a,searchTerm:p,tags:h,startDate:m,endDate:g,orderBy:q(E),tagsMode:w,excludePastValidUntil:b,excludeMaxVisitsReached:x})},[a,p,h,m,g,E.field,E.dir,w,b,x]),V(Ye,{children:[C(t,{selectedServer:i,shortUrlsAmount:(te=r.shortUrls)==null?void 0:te.pagination.totalItems,order:E,handleOrderBy:D,settings:o,className:"mb-3"}),V(Cr,{body:!0,className:"pb-0",children:[C(e,{selectedServer:i,shortUrlsList:r,orderByColumn:U,renderOrderIcon:A,onTagClick:Y}),C(cue,{paginator:k,serverId:s,currentQueryString:l.search})]})]})},()=>[Jr.visits]);var T_={},fue=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=vR[t.format]||vR.default;window.clipboardData.setData(h,e)}else f.clipboardData.clearData(),f.clipboardData.setData(t.format,e);t.onCopy&&(f.preventDefault(),t.onCopy(f.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=pue("message"in t?t.message:hue),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var gue=mue;function rx(e){return rx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rx(e)}Object.defineProperty(T_,"__esModule",{value:!0});T_.CopyToClipboard=void 0;var bp=G5(H),vue=G5(gue),yue=["text","onCopy","options","children"];function G5(e){return e&&e.__esModule?e:{default:e}}function yR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _R(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bue(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function wue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bR(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xv(e){return Xv=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xv(e)}function ME(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K5=function(e){Sue(n,e);var t=Cue(n);function n(){var r;wue(this,n);for(var i=arguments.length,o=new Array(i),s=0;sC(X5,{text:e,onCopy:t,children:C(je,{icon:z5,className:"ms-2 copy-to-clipboard-icon"})}),Qv=({date:e,format:t=CE,relative:n=!1})=>{const r=EE(e)?e:Lo(e);return C("time",{dateTime:`${Vre(r)}000`,children:n?`${Ire(zs(),r)} ago`:vo(r,t)})},rr=(e,t)=>Dte(e,t,{serializeError:VS}),sh=wn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),wR=5e3,xR=4,SR=2,Pue=({currentPage:e,pagesCount:t})=>e>=t,kue=(e,t)=>t*100/e,ah=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=wn(`${e}/progressChanged`),o=wn(`${e}/large`),s=wn(`${e}/fallbackToInterval`),a=rr(e,async(l,{getState:c,dispatch:f})=>{const[h,p]=t(l,c),m=async b=>Promise.all(b.map(async x=>h(x,wR).then(ct("data")))).then(JV),g=async(b,x=0)=>{if(r(c))return[];const E=await m(b[x]);return f(i(kue(b.length,x+SR))),x{const{pagination:x,data:E}=await h(b,wR);if(!x||Pue(x))return E;const P=YS(SR,x.pagesCount+1),k=ed(xR,P);return x.pagesCount-1>xR&&f(o()),E.concat(await g(k))},[w,_]=await Promise.all([v(),p()]);return!w.length&&_&&f(s(Dle(_.date))),{...n(l),visits:w}});return Object.assign(a,{progressChanged:i,large:o,fallbackToInterval:s})},lh=(e,t)=>e?async()=>t({page:1,itemsPerPage:1}).then(({data:n})=>n[0]):async()=>Promise.resolve(void 0),ch=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:s,large:a,progressChanged:l,fallbackToInterval:c}=t,{reducer:f,actions:h}=Gn({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(o,(g,{error:v})=>({...n,error:!0,errorData:no(v)})),m.addCase(s,(g,{payload:v})=>({...g,...v,loading:!1,loadingLarge:!1,error:!1})),m.addCase(a,g=>({...g,loadingLarge:!0})),m.addCase(l,(g,{payload:v})=>({...g,progress:v})),m.addCase(c,(g,{payload:v})=>({...g,fallbackInterval:v})),m.addCase(sh,(g,{payload:v})=>{const{visits:w}=g,_=r(g,v.createdVisits).map(({visit:b})=>b);return _.length?{...g,visits:[..._,...w]}:g})}}),{cancelGetVisits:p}=h;return{reducer:f,cancelGetVisits:p}},J5="shlink/domainVisits",e8="DEFAULT",Mue={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Rue=e=>ah({typePrefix:`${J5}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getDomainVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=lh(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),Nue=e=>ch({name:J5,initialState:Mue,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>s&&Lue(s,t)&&rh(a.date,i,o))}}),Sf=(e,t,n)=>Fo(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Lue=(e,t)=>!e.domain&&t===e8?!0:e.domain===t,Due=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,validateUrl:n}:{longUrl:"",validateUrl:n}},t8="__",Aue=e=>e.replaceAll("/",t8),Km=e=>e.replaceAll(t8,"/"),Iue=({id:e},{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`/server/${e}/short-code/${Aue(t)}/${r}${i}`},sx=({selectedServer:e,shortUrl:t,suffix:n,children:r,...i})=>!e||!Os(e)||!t?C("span",{...i,children:r}):C(At,{to:Iue(e,t,n),...i,children:r}),uh=e=>t=>{e.current=t??void 0};const n8=({visitsCount:e,shortUrl:t,selectedServer:n,active:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:s}=(t==null?void 0:t.meta)??{},a=!!i||!!o||!!s,l=C(sx,{selectedServer:n,shortUrl:t,suffix:"visits",children:C("strong",{className:ge("short-url-visits-count__amount",{"short-url-visits-count__amount--big":r}),children:_n(e)})});if(!a)return l;const c=H.useRef();return V(Ye,{children:[V("span",{className:"indivisible",children:[l,V("small",{className:"short-urls-visits-count__max-visits-control",ref:uh(c),children:[i&&V(Ye,{children:[" / ",_n(i)]}),C("sup",{className:"ms-1",children:C(je,{icon:oC})})]})]}),C(Br,{target:()=>c.current,placement:"bottom",children:V("ul",{className:"list-unstyled mb-0",children:[i&&V("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",C("b",{children:_n(i)})," visit",i===1?"":"s","."]}),o&&V("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",C("b",{className:"indivisible",children:qv(bi(o))}),"."]}),s&&V("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",C("b",{className:"indivisible",children:qv(bi(s))}),"."]})]})})]})};const RE=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:s})=>V("span",{className:ge("badge tag",r,{"tag--light-bg":i.isColorLightForKey(e)}),style:{backgroundColor:i.getColorForKey(e),cursor:n||!o?"auto":"pointer"},onClick:o,children:[t??e,n&&C("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:s,children:"×"})]}),Fue=({tags:e,onTagClick:t,colorGenerator:n})=>qn(e)?C("i",{className:"indivisible",children:C("small",{children:"No tags"})}):C(Ye,{children:e.map(r=>C(RE,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),$ue=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:s}=t,a=(r==null?void 0:r.total)??n;return i&&a>=i?{icon:Iq,className:"text-danger",description:V(Ye,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",C("b",{children:i})," visit",i>1?"s":"","."]})}:s&&Kr(bi(s),zs())?{icon:ak,className:"text-danger",description:V(Ye,{children:["This short URL cannot be visited since ",C("b",{className:"indivisible",children:qv(bi(s))}),"."]})}:o&&Kr(zs(),bi(o))?{icon:ak,className:"text-warning",description:V(Ye,{children:["This short URL will start working on ",C("b",{className:"indivisible",children:qv(bi(o))}),"."]})}:{icon:nd,className:"text-primary",description:"This short URL can be visited normally."}},jue=({shortUrl:e})=>{const t=H.useRef(),{icon:n,className:r,description:i}=$ue(e);return V(Ye,{children:[C("span",{style:{cursor:i?"help":void 0},ref:uh(t),children:C(je,{icon:n,className:r})}),C(Br,{target:()=>t.current,placement:"bottom",children:i})]})};const Bue=(e,t,n)=>({shortUrl:r,selectedServer:i,onTagClick:o,settings:s})=>{var v,w,_,b;const[a,l]=n(),[c,f]=n(!1,500),h=H.useRef(!0),[{excludeBots:p}]=E_(),{visits:m}=s,g=p??(m==null?void 0:m.excludeBots);return H.useEffect(()=>{!h.current&&f(),h.current=!1},[(v=r.visitsSummary)==null?void 0:v.total,(w=r.visitsSummary)==null?void 0:w.nonBots,r.visitsCount]),V("tr",{className:"responsive-table__row",children:[C("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:C(Qv,{date:r.dateCreated})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:V("span",{className:"position-relative short-urls-row__cell--indivisible",children:[C("span",{className:"short-urls-row__short-url-wrapper",children:C(Ci,{href:r.shortUrl})}),C(Q5,{text:r.shortUrl,onCopy:l}),C("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!a,children:"Copied short URL!"})]})}),C("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:C(Ci,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&C("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:C(Ci,{href:r.longUrl})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:C(Fue,{tags:r.tags,colorGenerator:t,onTagClick:o})}),C("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:C(n8,{visitsCount:(g?(_=r.visitsSummary)==null?void 0:_.nonBots:(b=r.visitsSummary)==null?void 0:b.total)??r.visitsCount,shortUrl:r,selectedServer:i,active:c})}),C("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:C(jue,{shortUrl:r})}),C("td",{className:"responsive-table__cell short-urls-row__cell",children:C(e,{selectedServer:i,shortUrl:r})})]})};const O_=({isOpen:e,toggle:t,children:n,right:r=!0})=>V(f_,{toggle:t,isOpen:e,children:[V(eu,{size:"sm",caret:!0,outline:!0,className:"dropdown-btn-menu__dropdown-toggle",children:[" ",C(je,{icon:vq})," "]}),C(dl,{end:r,children:n})]}),zue=(e,t)=>({shortUrl:n,selectedServer:r})=>{const[i,o]=jt(),[s,,a,l]=jt(),[c,,f,h]=jt();return V(O_,{toggle:o,isOpen:i,children:[V(Ve,{tag:sx,selectedServer:r,shortUrl:n,suffix:"visits",children:[C(je,{icon:iC,fixedWidth:!0})," Visit stats"]}),V(Ve,{tag:sx,selectedServer:r,shortUrl:n,suffix:"edit",children:[C(je,{icon:rC,fixedWidth:!0})," Edit short URL"]}),V(Ve,{onClick:a,children:[C(je,{icon:Dq,fixedWidth:!0})," QR code"]}),C(t,{shortUrl:n,isOpen:s,toggle:l}),C(Ve,{divider:!0}),V(Ve,{className:"dropdown-item--danger",onClick:f,children:[C(je,{icon:nC,fixedWidth:!0})," Delete short URL"]}),C(e,{shortUrl:n,isOpen:c,toggle:h})]})},Uue=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),Vue=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,selectedServer:o,basicMode:s=!1,settings:{shortUrlCreation:a}})=>{const l=H.useMemo(()=>Uue(a),[a]);return V(Ye,{children:[C(e,{initialState:l,saving:r.saving,selectedServer:o,mode:s?"create-basic":"create",onSave:async c=>(i(),n(c))}),C(t,{creation:r,resetCreateShortUrl:i,canBeClosed:s})]})},Lr=({children:e,type:t,className:n,small:r=!1})=>C(ur,{className:n,children:C("div",{className:ge({"col-md-10 offset-md-1":!r,"col-12":r}),children:C(vn,{role:"document",className:ge("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:ge({"p-2":r}),children:e})})}),Do=({errorData:e,fallbackMessage:t})=>V(Ye,{children:[(e==null?void 0:e.detail)??t,IH(e)&&V("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),Ob="delete",Hue=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[a,l]=H.useState("");H.useEffect(()=>i,[]);const{loading:c,error:f,deleted:h,errorData:p}=r,m=It(i,t),g=Xd(()=>o(e).then(t));return C(zo,{isOpen:n,toggle:m,centered:!0,onClosed:()=>h&&s(e),children:V("form",{onSubmit:g,children:[C(ro,{toggle:m,children:C("span",{className:"text-danger",children:"Delete short URL"})}),V(Mi,{children:[V("p",{children:[C("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),C("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),V("p",{children:["Write ",C("b",{children:Ob})," to confirm deletion."]}),C("input",{type:"text",className:"form-control",placeholder:`Insert ${Ob}`,value:a,onChange:v=>l(v.target.value)}),f&&C(Lr,{type:FH(p)?"warning":"error",small:!0,className:"mt-2",children:C(Do,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),V(Js,{children:[C("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),C("button",{type:"submit",className:"btn btn-danger",disabled:a!==Ob||c,children:c?"Deleting...":"Delete"})]})]})})};const Wue=e=>({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:s,saved:a}=t;if(H.useEffect(()=>{n()},[]),s)return V(Lr,{type:"error",className:"mt-3",children:[r&&C(je,{icon:sw,className:"float-end pointer",onClick:n}),C(Do,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!a)return null;const{shortUrl:l}=t.result;return V(Lr,{type:"success",className:"mt-3",children:[r&&C(je,{icon:sw,className:"float-end pointer",onClick:n}),V("span",{children:[C("b",{children:"Great!"})," The short URL is ",C("b",{children:l})]}),C(X5,{text:l,onCopy:o,children:V("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[C(je,{icon:z5})," Copy"]})}),C(Gd,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},NE="shlink/shortUrlDeletion",CR={shortCode:"",loading:!1,deleted:!1,error:!1},Yue=e=>rr(`${NE}/deleteShortUrl`,async({shortCode:t,domain:n},{getState:r})=>{const{deleteShortUrl:i}=e(r);return await i(t,n),{shortCode:t,domain:n}}),r8=wn(`${NE}/shortUrlDeleted`),que=e=>{const{actions:t,reducer:n}=Gn({name:NE,initialState:CR,reducers:{resetDeleteShortUrl:()=>CR},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:no(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},i8="shlink/shortUrlsList",o8=5,Gue={loading:!0,error:!1},Zue=e=>rr(`${i8}/listShortUrls`,(t,{getState:n})=>{const{listShortUrls:r}=e(n);return r(t??{})}),Kue=(e,t,n)=>Gn({name:i8,initialState:Gue,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,It((i,{payload:o})=>i.shortUrls?El(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,o8-1)],i):i,i=>i.shortUrls?El(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?El(["shortUrls","data"],i.shortUrls.data.map(s=>{const{shortCode:a,domain:l}=o;return Sf(s,a,l)?o:s}),i):i),r.addCase(r8,It((i,{payload:o})=>i.shortUrls?El(["shortUrls","data"],jd(s=>Sf(s,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?El(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(sh,(i,{payload:o})=>{var s,a;return El(["shortUrls","data"],(a=(s=i.shortUrls)==null?void 0:s.data)==null?void 0:a.map(l=>{var c;return((c=ZV(o.createdVisits.filter(({shortUrl:f})=>f&&Sf(l,f.shortCode,f.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),s8="shlink/shortUrlCreation",ER={saving:!1,saved:!1,error:!1},Xue=e=>rr(`${s8}/createShortUrl`,(t,{getState:n})=>{const{createShortUrl:r}=e(n);return r(t)}),Que=e=>{const{reducer:t,actions:n}=Gn({name:s8,initialState:ER,reducers:{resetCreateShortUrl:()=>ER},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:no(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},a8="shlink/shortUrlEdition",Jue={saving:!1,saved:!1,error:!1},efe=e=>rr(`${a8}/editShortUrl`,({shortCode:t,domain:n,data:r},{getState:i})=>{const{updateShortUrl:o}=e(i);return o(t,n,r)}),tfe=e=>Gn({name:a8,initialState:Jue,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:no(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),TR="shlink/shortUrlDetail",OR={loading:!1,error:!1},nfe=e=>{const t=rr(`${TR}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var l;const{shortUrlsList:s}=o();return((l=s==null?void 0:s.shortUrls)==null?void 0:l.data.find(c=>Sf(c,r,i)))??await e(o).getShortUrl(r,i)}),{reducer:n}=Gn({name:TR,initialState:OR,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:no(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...OR,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}};const rfe=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,selectedServer:o,className:s})=>{const{error:a,loading:l,shortUrls:c}=r,f=ge({"short-urls-table__header-cell--with-action":!!t}),h=ge("short-urls-table__header-cell",f),p=ge("table table-hover responsive-table short-urls-table",s),m=()=>a?C("tr",{children:C("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):l?C("tr",{children:C("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!l&&qn(c==null?void 0:c.data)?C("tr",{children:C("td",{colSpan:6,className:"text-center",children:"No results found"})}):c==null?void 0:c.data.map(g=>C(e,{shortUrl:g,selectedServer:o,onTagClick:i},g.shortUrl));return V("table",{className:p,children:[C("thead",{className:"responsive-table__header short-urls-table__header",children:V("tr",{children:[V("th",{className:h,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),V("th",{className:h,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),V("th",{className:"short-urls-table__header-cell",children:[V("span",{className:f,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]}),"  /  ",V("span",{className:f,onClick:t==null?void 0:t("longUrl"),children:[C("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),C("th",{className:"short-urls-table__header-cell",children:"Tags"}),C("th",{className:h,onClick:t==null?void 0:t("visits"),children:V("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),C("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),C("tbody",{children:m()})]})},ife=e=>C(tx,{...e,dateFormat:CE,showTimeSelect:!0,timeIntervals:10}),l8=({checked:e=!1,onChange:t=VS,className:n,children:r,type:i,inline:o=!1})=>{const s=y_(),a=f=>t(f.target.checked,f),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return V("span",{className:ge("form-check",l,n),style:c,children:[C("input",{type:"checkbox",className:"form-check-input",id:s,checked:e,onChange:a}),C("label",{className:"form-check-label",htmlFor:s,children:r})]})},c8=e=>C(l8,{type:"checkbox",...e});const ofe=({isOpen:e,toggle:t})=>V(zo,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[C(ro,{toggle:t,children:"Info"}),V(Mi,{children:[V("p",{children:["When the ",C("b",{children:C("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),C("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),V("ul",{children:[C("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),V("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",C("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),C("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),sfe=()=>{const[e,t]=jt();return V(Ye,{children:[C("span",{title:"What does this mean?",children:C(je,{icon:oC,style:{cursor:"pointer"},onClick:t})}),C(ofe,{isOpen:e,toggle:t})]})},Xm=({className:e="",placement:t,children:n})=>{const r=H.useRef();return V(Ye,{children:[C("span",{className:e,ref:uh(r),children:C(je,{icon:oC})}),C(Br,{target:()=>r.current,placement:t,children:n})]})},Pb=({children:e,infoTooltip:t,checked:n,onChange:r})=>V("p",{children:[C(c8,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&C(Xm,{placement:"right",children:t})]});const afe=It(MH,bH(/ /g,"-")),kb=e=>typeof e=="string"?Lo(e):e,lfe=(e,t)=>({mode:n,saving:r,onSave:i,initialState:o,selectedServer:s})=>{const[a,l]=H.useState(o),c=n==="edit",f=n==="create-basic",h=vi(o.title),p=E=>l({...a,tags:E.map(afe)}),m=()=>l(o),g=()=>{const E=vi(a.title);return Qy([[()=>!E&&!h,()=>{}],[()=>!E&&h,()=>null],[jS,()=>a.title]])()},v=Xd(async()=>i({...a,validSince:Us(a.validSince)??null,validUntil:Us(a.validUntil)??null,maxVisits:vi(a.maxVisits)?Number(a.maxVisits):null,title:g()}).then(()=>!c&&m()).catch(()=>{}));H.useEffect(()=>{l(o)},[o]);const w=(E,P,k="text",N={},D={})=>C(Zr,{...D,children:C(fd,{id:E,type:k,placeholder:P,value:a[E]??"",onChange:U=>l({...a,[E]:U.target.value}),...N})}),_=(E,P,k={})=>C(ife,{selected:a[E]?kb(a[E]):null,placeholderText:P,isClearable:!0,onChange:N=>l({...a,[E]:N}),...k}),b=V(Ye,{children:[C(Zr,{children:C(fd,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:a.longUrl,onChange:E=>l({...a,longUrl:E.target.value})})}),V(ur,{children:[f&&w("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),C("div",{className:f?"col-lg-6 mb-3":"col-12",children:C(e,{selectedTags:a.tags??[],onChange:p})})]})]}),x=N6(s);return V("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:v,children:[f&&b,!f&&V(Ye,{children:[C(vn,{title:"Main options",className:"mb-3",children:b}),V(ur,{children:[C("div",{className:"col-sm-6 mb-3",children:V(vn,{title:"Customize the short URL",children:[w("title","Title"),!c&&V(Ye,{children:[V(ur,{children:[C("div",{className:"col-lg-6",children:w("customSlug","Custom slug","text",{disabled:vi(a.shortCodeLength)})}),C("div",{className:"col-lg-6",children:w("shortCodeLength","Short code length","number",{min:4,disabled:vi(a.customSlug)})})]}),C(t,{value:a.domain,onChange:E=>l({...a,domain:E})})]})]})}),C("div",{className:"col-sm-6 mb-3",children:V(vn,{title:"Limit access to the short URL",children:[w("maxVisits","Maximum number of visits allowed","number",{min:1}),C("div",{className:"mb-3",children:_("validSince","Enabled since...",{maxDate:a.validUntil?kb(a.validUntil):void 0})}),_("validUntil","Enabled until...",{minDate:a.validSince?kb(a.validSince):void 0})]})})]}),V(ur,{children:[C("div",{className:"col-sm-6 mb-3",children:V(vn,{title:"Extra checks",children:[C(Pb,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:a.validateUrl,onChange:E=>l({...a,validateUrl:E}),children:"Validate URL"}),!c&&V("p",{children:[C(c8,{inline:!0,className:"me-2",checked:a.findIfExists,onChange:E=>l({...a,findIfExists:E}),children:"Use existing URL if found"}),C(sfe,{})]})]})}),C("div",{className:"col-sm-6 mb-3",children:V(vn,{title:"Configure behavior",children:[C(Pb,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:a.crawlable,onChange:E=>l({...a,crawlable:E}),children:"Make it crawlable"}),x&&C(Pb,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:a.forwardQuery,onChange:E=>l({...a,forwardQuery:E}),children:"Forward query params on redirect"})]})})]})]}),C("div",{className:"text-center",children:C(mt,{outline:!0,color:"primary",disabled:r||qn(a.longUrl),className:"btn-xs-block",children:r?"Saving...":"Save"})})]})},cfe=e=>({settings:{shortUrlCreation:t},selectedServer:n,shortUrlDetail:r,getShortUrlDetail:i,shortUrlEdition:o,editShortUrl:s})=>{const{search:a}=Mn(),l=Zs(),c=ea(),{loading:f,error:h,errorData:p,shortUrl:m}=r,{saving:g,saved:v,error:w,errorData:_}=o,{domain:b}=fl(a),x=H.useMemo(()=>Due(m,t),[m,t]);return H.useEffect(()=>{l.shortCode&&i({shortCode:Km(l.shortCode),domain:b})},[]),f?C(So,{loading:!0}):h?C(Lr,{type:"error",children:C(Do,{errorData:p,fallbackMessage:"An error occurred while loading short URL detail :("})}):V(Ye,{children:[C("header",{className:"mb-3",children:C(Cr,{body:!0,children:V("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[C(mt,{color:"link",size:"lg",className:"p-0 me-3",onClick:c,children:C(je,{icon:QA})}),C("span",{className:"text-center",children:V("small",{children:["Edit ",C(Ci,{href:(m==null?void 0:m.shortUrl)??""})]})}),C("span",{})]})})}),C(e,{initialState:x,saving:g,selectedServer:n,mode:"edit",onSave:async E=>{m&&s({...m,data:E})}}),v&&w&&C(Lr,{type:"error",className:"mt-3",children:C(Do,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!w&&C(Lr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},ufe=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=zd({...n,margin:t>0?t:void 0});return`${r}${qn(i)?"":`?${i}`}`},ffe=({format:e,setFormat:t})=>V(ta,{text:`Format (${e})`,children:[C(Ve,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),C(Ve,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),dfe=({errorCorrection:e,setErrorCorrection:t})=>V(ta,{text:`Error correction (${e})`,children:[V(Ve,{active:e==="L",onClick:()=>t("L"),children:[C("b",{children:"L"}),"ow"]}),V(Ve,{active:e==="M",onClick:()=>t("M"),children:[C("b",{children:"M"}),"edium"]}),V(Ve,{active:e==="Q",onClick:()=>t("Q"),children:[C("b",{children:"Q"}),"uartile"]}),V(Ve,{active:e==="H",onClick:()=>t("H"),children:[C("b",{children:"H"}),"igh"]})]});const hfe=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i,selectedServer:o})=>{const[s,a]=H.useState(300),[l,c]=H.useState(0),[f,h]=H.useState("png"),[p,m]=H.useState("L"),g=Vee(o),v=H.useMemo(()=>ufe(t,{size:s,format:f,margin:l,errorCorrection:p}),[t,s,f,l,p]),w=H.useMemo(()=>s+l,[s,l]),_=H.useMemo(()=>{if(!(w<500))return w<800?"lg":"xl"},[w]);return V(zo,{isOpen:i,toggle:r,centered:!0,size:_,children:[V(ro,{toggle:r,children:["QR code for ",C(Ci,{href:t,children:t})]}),V(Mi,{children:[V(ur,{children:[V(Zr,{className:"d-grid col-md-4",children:[V("label",{children:["Size: ",s,"px"]}),C("input",{type:"range",className:"form-control-range",value:s,step:10,min:50,max:1e3,onChange:b=>a(Number(b.target.value))})]}),V(Zr,{className:"d-grid col-md-4",children:[V("label",{htmlFor:"marginControl",children:["Margin: ",l,"px"]}),C("input",{id:"marginControl",type:"range",className:"form-control-range",value:l,step:1,min:0,max:100,onChange:b=>c(Number(b.target.value))})]}),C(Zr,{className:"d-grid col-md-4",children:C(ffe,{format:f,setFormat:h})}),C(Zr,{className:"col-md-6",children:C(dfe,{errorCorrection:p,setErrorCorrection:m})})]}),V("div",{className:"text-center",children:[V("div",{className:"mb-3",children:[C(Ci,{href:v}),C(Q5,{text:v})]}),C("img",{src:v,className:"qr-code-modal__img",alt:"QR code"}),g&&C("div",{className:"mt-3",children:V(mt,{block:!0,color:"primary",onClick:()=>{e.saveImage(v,`${n}-qr-code.${f}`).catch(()=>{})},children:["Download ",C(je,{icon:JA,className:"ms-1"})]})})]})]})]})},u8=({amount:e=0,loading:t=!1,...n})=>V(mt,{...n,outline:!0,color:"primary",disabled:t,children:[C(je,{icon:HY})," ",t?"Exporting...":V(Ye,{children:["Export (",_n(e),")"]})]}),PR=20,pfe=(e,{exportShortUrls:t})=>({amount:n=0,selectedServer:r})=>{const[{tags:i,search:o,startDate:s,endDate:a,orderBy:l,tagsMode:c}]=E_(),[f,,h,p]=jt();return C(u8,{loading:f,className:"btn-md-block",amount:n,onClick:async()=>{if(!Os(r))return;const g=n/PR,{listShortUrls:v}=e(r),w=async(b=1)=>{const{data:x}=await v({page:`${b}`,tags:i,searchTerm:o,startDate:s,endDate:a,orderBy:l,tagsMode:c,itemsPerPage:PR});return b>=g?x:x.concat(await w(b+1))};h();const _=await w();t(_.map(b=>{var x;return{createdAt:b.dateCreated,shortUrl:b.shortUrl,longUrl:b.longUrl,title:b.title??"",tags:b.tags.join(","),visits:((x=b==null?void 0:b.visitsSummary)==null?void 0:x.total)??b.visitsCount}})),p()}})},mfe=(e,t)=>{e.serviceFactory("ShortUrlsList",uue,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["selectedServer","mercureInfo","shortUrlsList","settings"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",rfe,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",Bue,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.decorator("ShortUrlsRow",t(["settings"])),e.serviceFactory("ShortUrlsRowMenu",zue,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",Wue,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",lfe,"TagsSelector","DomainSelector"),e.serviceFactory("CreateShortUrl",Vue,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation","selectedServer","settings"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",cfe,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition","selectedServer","settings"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>Hue),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",hfe,"ImageDownloader"),e.decorator("QrCodeModal",t(["selectedServer"])),e.serviceFactory("ShortUrlsFilteringBar",Wce,"ExportShortUrlsBtn","TagsSelector"),e.serviceFactory("ExportShortUrlsBtn",pfe,"buildShlinkApiClient","ReportExporter"),e.decorator("ExportShortUrlsBtn",t(["selectedServer"])),e.serviceFactory("shortUrlsListReducerCreator",Kue,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",ct("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",Que,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",ct("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",tfe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",ct("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",que,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",ct("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",nfe,"buildShlinkApiClient"),e.serviceFactory("shortUrlDetailReducer",ct("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",Zue,"buildShlinkApiClient"),e.serviceFactory("createShortUrl",Xue,"buildShlinkApiClient"),e.serviceFactory("resetCreateShortUrl",ct("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",Yue,"buildShlinkApiClient"),e.serviceFactory("resetDeleteShortUrl",ct("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>r8),e.serviceFactory("getShortUrlDetail",ct("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",efe,"buildShlinkApiClient")},ru=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>V("div",{className:`${n} ${i?"":"mb-3"}`,children:[C("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),Qm=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:s,labelClassName:a})=>{const l=y_();return C(ru,{label:V(Ye,{children:[e,":"]}),className:s??"",labelClassName:a,id:l,children:C("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},f8=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=H.useState(""),[s,a]=H.useState(""),[l,c]=H.useState(""),f=Xd(()=>e({name:i,url:s,apiKey:l}));return H.useEffect(()=>{t&&o(t.name),t&&a(t.url),t&&c(t.apiKey)},[t]),V("form",{className:"server-form",name:"serverForm",onSubmit:f,children:[V(vn,{className:"mb-3",title:r,children:[C(Qm,{value:i,onChange:o,children:"Name"}),C(Qm,{type:"url",value:s,onChange:a,children:"URL"}),C(Qm,{value:l,onChange:c,children:"API key"})]}),C("div",{className:"text-end",children:n})]})},d8=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return V(zo,{centered:!0,isOpen:e,children:[V(ro,{children:["Duplicated server",i&&"s"]}),V(Mi,{children:[C("p",{children:i?"The next servers already exist:":"There is already a server with:"}),C("ul",{children:t.map(({url:o,apiKey:s},a)=>i?V("li",{children:[C("b",{children:o})," - ",C("b",{children:s})]},a):V(H.Fragment,{children:[V("li",{children:["URL: ",C("b",{children:o})]}),V("li",{children:["API key: ",C("b",{children:s})]})]},a))}),V("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),V(Js,{children:[C(mt,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),C(mt,{color:"primary",onClick:r,children:"Save anyway"})]})]})},kR=4e3,MR=({type:e})=>C("div",{className:"mt-3",children:V(Lr,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),gfe=(e,t)=>({servers:n,createServers:r})=>{const i=Io(),o=ea(),s=!!Object.keys(n).length,[a,l]=t(!1,kR),[c,f]=t(!1,kR),[h,p]=jt(),[m,g]=H.useState(),v=()=>{if(!m)return;const w=XC();r([{...m,id:w}]),i(`/server/${w}`)};return H.useEffect(()=>{Object.values(n).some(({url:_,apiKey:b})=>(m==null?void 0:m.url)===_&&(m==null?void 0:m.apiKey)===b)?p():v()},[m]),V(tu,{children:[V(f8,{title:C("h5",{className:"mb-0",children:"Add new server"}),onSubmit:g,children:[!s&&C(e,{tooltipPlacement:"top",onImport:l,onImportError:f}),s&&C(mt,{outline:!0,onClick:o,children:"Cancel"}),C(mt,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),a&&C(MR,{type:"success"}),c&&C(MR,{type:"error"}),C(d8,{isOpen:h,duplicatedServers:m?[m]:[],onDiscard:o,onSave:v})]})},vfe=({servers:e,selectedServer:t})=>{const n=Kc(e);return V(Kd,{nav:!0,inNavbar:!0,children:[V(eu,{nav:!0,caret:!0,children:[C(je,{icon:sk})," ",C("span",{className:"ms-1",children:"Servers"})]}),C(dl,{end:!0,style:{right:0},children:(()=>qn(n)?V(Ve,{tag:At,to:"/server/create",children:[C(je,{icon:sC})," ",C("span",{className:"ms-1",children:"Add a server"})]}):V(Ye,{children:[n.map(({name:i,id:o})=>C(Ve,{tag:At,to:`/server/${o}`,active:Bd(t)===o,children:i},o)),C(Ve,{divider:!0}),V(Ve,{tag:At,to:"/manage-servers",children:[C(je,{icon:sk})," ",C("span",{className:"ms-1",children:"Manage servers"})]})]}))()})]})},yfe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=Io(),s=H.useRef(!1),a=()=>{s.current=!0,t()};return V(zo,{isOpen:n,toggle:t,centered:!0,onClosed:()=>{s.current&&(r(e),i&&o("/"))},children:[C(ro,{toggle:t,className:"text-danger",children:"Remove server"}),V(Mi,{children:[V("p",{children:["Are you sure you want to remove ",C("b",{children:e?e.name:""}),"?"]}),C("p",{children:C("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),V(Js,{children:[C(mt,{color:"link",onClick:t,children:"Cancel"}),C(mt,{color:"danger",onClick:a,children:"Delete"})]})]})},_fe=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,s,a]=jt();return V(Ye,{children:[V("span",{className:n,onClick:s,children:[!r&&C(je,{fixedWidth:!0,icon:nC}),C("span",{className:i,children:r??"Remove this server"})]}),C(e,{server:t,isOpen:o,toggle:a})]})},bfe=e=>T6(({editServer:t,selectedServer:n,selectServer:r})=>{const i=ea(),{reconnect:o}=Eee();if(!Os(n))return null;const s=a=>{t(n.id,a),o==="true"&&r(n.id),i()};return C(tu,{children:V(f8,{title:V("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:s,children:[C(mt,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),C(mt,{outline:!0,color:"primary",children:"Save"})]})})},e);const RR=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),wfe=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:s="bottom",className:a=""})=>{const l=H.useRef(),[c,f]=H.useState(),[h,p]=H.useState([]),[m,,g,v]=jt(),w=It(t,i),_=It(()=>w(c??[]),v),b=It(()=>w((c??[]).filter(gV(RR(h)))),v),x=async({target:E})=>{var P;return e((P=E.files)==null?void 0:P[0]).then(f).then(()=>{E.value=null}).catch(o)};return H.useEffect(()=>{if(!c)return;const E=Object.values(n),P=c.filter(RR(E)),k=!!P.length;k?p(P):w(c),k&&g()},[c]),V(Ye,{children:[V(mt,{outline:!0,id:"importBtn",className:a,onClick:()=>{var E;return(E=l.current)==null?void 0:E.click()},children:[C(je,{icon:tq,fixedWidth:!0})," ",r??"Import from file"]}),V(Br,{placement:s,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",C("b",{children:"name"}),", ",C("b",{children:"apiKey"})," and ",C("b",{children:"url"}),"."]}),C("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:uh(l),onChange:x}),C(d8,{isOpen:m,duplicatedServers:h,onDiscard:b,onSave:_})]})},LE="shlink/selectedServer",xfe="1.0.0",Sfe="999.999.999",Cfe="latest",Efe=It(e=>e===Cfe?Sfe:e,R6(xfe)),Tfe=TA(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:Efe(n),printableVersion:M6(n)}))),NR=null,DE=wn(`${LE}/resetSelectedServer`),Ofe=e=>rr(`${LE}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(DE());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:s}=e(o),{version:a,printableVersion:l}=await Tfe(o,s);return{...o,version:a,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),Pfe=(e,t)=>{const n=Qte();return n.startListening({actionCreator:e.fulfilled,effect:({payload:r},{dispatch:i})=>{Jy(r)&&i(t())}}),n},kfe=e=>Gn({name:LE,initialState:NR,reducers:{},extraReducers:t=>{t.addCase(DE,()=>NR),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),Mfe={},Rfe=e=>e.id?e:Jf("id",XC(),e),Nfe=zS((e,t)=>Jf(t.id,t,e),{}),{actions:Lfe,reducer:Dfe}=Gn({name:"shlink/servers",initialState:Mfe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?Jf(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>qV(t.id,e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Vu(zg(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):Jf(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:It($d(Rfe),Nfe,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:Afe,deleteServer:Ife,setAutoConnect:Ffe,createServers:h8}=Lfe,$fe=Dfe,jfe=e=>Array.isArray(e)?e.filter(qS):[],Bfe=e=>rr("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${Ig.homepage}/servers.json`),i=jfe(r);n(h8(i))});const zfe=e=>({servers:t,selectedServer:n})=>C(tu,{children:V("div",{className:"server-error__container flex-column",children:[V(So,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Os(n)&&"Could not find this Shlink server.",Os(n)&&V(Ye,{children:[C("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),V(E6,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",C(At,{to:"/server/create",children:"add a new one"}),"."]}),Os(n)&&C("div",{className:"container mt-3 mt-md-5",children:V("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",C(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",C(At,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})});const Ufe=e=>e?{tag:At,to:e}:{},wp=({children:e,title:t,link:n})=>V(Cr,{className:"highlight-card",body:!0,...Ufe(n),children:[n&&C(je,{size:"3x",className:"highlight-card__link-icon",icon:zce}),C(zC,{tag:"h5",className:"highlight-card__title",children:t}),C(BC,{tag:"h2",children:e})]}),Vfe=(e,t)=>na(({shortUrlsList:n,listShortUrls:r,listTags:i,tagsList:o,selectedServer:s,loadVisitsOverview:a,visitsOverview:l})=>{const{loading:c,shortUrls:f}=n,{loading:h}=o,{loading:p,visitsCount:m,orphanVisitsCount:g}=l,v=Bd(s),w=eE(s),_=Io();return H.useEffect(()=>{r({itemsPerPage:o8,orderBy:{field:"dateCreated",dir:"DESC"}}),i(),a()},[]),V(Ye,{children:[V(ur,{children:[C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(wp,{title:"Visits",link:w&&`/server/${v}/non-orphan-visits`,children:p?"Loading...":_n(m)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(wp,{title:"Orphan visits",link:`/server/${v}/orphan-visits`,children:p?"Loading...":_n(g)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(wp,{title:"Short URLs",link:`/server/${v}/list-short-urls/1`,children:c?"Loading...":_n((f==null?void 0:f.pagination.totalItems)??0)})}),C("div",{className:"col-lg-6 col-xl-3 mb-3",children:C(wp,{title:"Tags",link:`/server/${v}/manage-tags`,children:h?"Loading...":_n(o.tags.length)})})]}),V(Cr,{className:"mb-3",children:[V(tl,{children:[C("span",{className:"d-sm-none",children:"Create a short URL"}),C("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),C(At,{className:"float-end",to:`/server/${v}/create-short-url`,children:"Advanced options »"})]}),C(el,{children:C(t,{basicMode:!0})})]}),V(Cr,{children:[V(tl,{children:[C("span",{className:"d-sm-none",children:"Recently created URLs"}),C("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),C(At,{className:"float-end",to:`/server/${v}/list-short-urls/1`,children:"See all »"})]}),C(el,{children:C(e,{shortUrlsList:n,selectedServer:s,className:"mb-0",onTagClick:b=>_(`/server/${v}/list-short-urls/1?tags=${encodeURIComponent(b)}`)})})]})]})},()=>[Jr.visits,Jr.orphanVisits]),Hfe=4e3,Wfe=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[s,a]=H.useState(o),l=p=>a(o.filter(({name:m,url:g})=>`${m} ${g}`.toLowerCase().match(p.toLowerCase()))),c=s.some(({autoConnect:p})=>!!p),[f,h]=n(!1,Hfe);return H.useEffect(()=>{a(Object.values(i))},[i]),V(tu,{children:[C(nh,{className:"mb-3",onChange:l}),V(ur,{className:"mb-3",children:[V("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[C(t,{className:"flex-fill",onImportError:h,children:"Import servers"}),o.length>0&&V(mt,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[C(je,{icon:JA,fixedWidth:!0})," Export servers"]})]}),C("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:V(mt,{outline:!0,color:"primary",className:"flex-fill",tag:At,to:"/server/create",children:[C(je,{icon:sC,fixedWidth:!0})," Add a server"]})})]}),C(vn,{children:V("table",{className:"table table-hover responsive-table mb-0",children:[C("thead",{className:"responsive-table__header",children:V("tr",{children:[c&&C("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),C("th",{children:"Name"}),C("th",{children:"Base URL"}),C("th",{"aria-label":"Options"})]})}),V("tbody",{children:[!s.length&&C("tr",{className:"text-center",children:C("td",{colSpan:4,children:"No servers found."})}),s.map(p=>C(r,{server:p,hasAutoConnect:c},p.id))]})]})}),f&&C("div",{className:"mt-3",children:C(Lr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},Yfe=e=>({server:t,hasAutoConnect:n})=>V("tr",{className:"responsive-table__row",children:[n&&C("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&V(Ye,{children:[C(je,{icon:nd,className:"text-primary",id:"autoConnectIcon"}),C(Br,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),C("th",{className:"responsive-table__cell","data-th":"Name",children:C(At,{to:`/server/${t.id}`,children:t.name})}),C("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),C("td",{className:"responsive-table__cell text-end",children:C(e,{server:t})})]}),qfe=e=>({server:t,setAutoConnect:n})=>{const[r,i]=jt(),[o,,s,a]=jt(),l=`/server/${t.id}`,{autoConnect:c}=t,f=c?JY:Uce;return V(O_,{isOpen:r,toggle:i,children:[V(Ve,{tag:At,to:l,children:[C(je,{icon:XY,fixedWidth:!0})," Connect"]}),V(Ve,{tag:At,to:`${l}/edit`,children:[C(je,{icon:rC,fixedWidth:!0})," Edit server"]}),V(Ve,{onClick:()=>n(t,!c),children:[C(je,{icon:f,fixedWidth:!0})," ",c?"Do not a":"A","uto-connect"]}),C(Ve,{divider:!0}),V(Ve,{className:"dropdown-item--danger",onClick:s,children:[C(je,{icon:nC,fixedWidth:!0})," Remove server"]}),C(e,{redirectHome:!1,server:t,isOpen:o,toggle:a})]})},Gfe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",Zfe=e=>Array.isArray(e)&&e.every(Gfe);class Kfe{constructor(t,n){Se(this,"importServersFromFile",async t=>{if(!t)throw new Error("No file provided");const n=this.fileReaderFactory();return new Promise((r,i)=>{n.addEventListener("loadend",async o=>{var s,a;try{const l=((a=(s=o.target)==null?void 0:s.result)==null?void 0:a.toString())??"",c=await this.csvToJson(l);if(!Zfe(c))throw new Error("Provided file does not have the right format.");r(c)}catch(l){i(l)}}),n.readAsText(t)})});this.csvToJson=t,this.fileReaderFactory=n}}const Xfe="shlink-servers.csv";class Qfe{constructor(t,n,r){Se(this,"exportServers",async()=>{const t=Kc(this.storage.get("servers")??{}).map(LH);try{const n=this.jsonToCsv(t);t5(this.window,n,Xfe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const Jfe=(e,t)=>{e.serviceFactory("ManageServers",Wfe,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",nv),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",Yfe,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",qfe,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",gfe,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",nv),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",bfe,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>vfe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>yfe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",_fe,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",wfe,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",zfe,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.serviceFactory("Overview",Vfe,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","selectedServer","mercureInfo","visitsOverview"],["listShortUrls","listTags","createNewVisits","loadMercureInfo","loadVisitsOverview"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",Kfe,"csvToJson","fileReaderFactory"),e.service("ServersExporter",Qfe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",Ofe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>h8),e.serviceFactory("deleteServer",()=>Ife),e.serviceFactory("editServer",()=>Afe),e.serviceFactory("setAutoConnect",()=>Ffe),e.serviceFactory("fetchServers",Bfe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>DE),e.serviceFactory("selectServerListener",Pfe,"selectServer","loadMercureInfo"),e.serviceFactory("selectedServerReducerCreator",kfe,"selectServer"),e.serviceFactory("selectedServerReducer",ct("reducer"),"selectedServerReducerCreator")};function p8(e,t){const n=H.useRef(t);H.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const ede=1;function tde(e){return Object.freeze({__version:ede,map:e})}function nde(e,t){return Object.freeze({...e,...t})}const m8=H.createContext(null),g8=m8.Provider;function v8(){const e=H.useContext(m8);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function rde(e){function t(n,r){const{instance:i,context:o}=e(n).current;return H.useImperativeHandle(r,()=>i),n.children==null?null:z.createElement(g8,{value:o},n.children)}return H.forwardRef(t)}function ide(e){function t(n,r){const[i,o]=H.useState(!1),{instance:s}=e(n,o).current;H.useImperativeHandle(r,()=>s),H.useEffect(function(){i&&s.update()},[s,i,n.children]);const a=s._contentNode;return a?Ha.createPortal(n.children,a):null}return H.forwardRef(t)}function ode(e){function t(n,r){const{instance:i}=e(n).current;return H.useImperativeHandle(r,()=>i),null}return H.forwardRef(t)}function y8(e,t){const n=H.useRef();H.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function AE(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function sde(e,t){return function(r,i){const o=v8(),s=e(AE(r,o),o);return p8(o.map,r.attribution),y8(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var Vs={},ade={get exports(){return Vs},set exports(e){Vs=e}};/* @preserve - * Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com - * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade - */(function(e,t){(function(n,r){r(t)})(Bl,function(n){var r="1.9.3";function i(u){var d,y,T,M;for(y=1,T=arguments.length;y"u"||!L||!L.Mixin)){u=x(u)?u:[u];for(var d=0;d0?Math.floor(u):Math.ceil(u)};K.prototype={clone:function(){return new K(this.x,this.y)},add:function(u){return this.clone()._add(I(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(I(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new K(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new K(this.x/u.x,this.y/u.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=$(this.x),this.y=$(this.y),this},distanceTo:function(u){u=I(u);var d=u.x-this.x,y=u.y-this.y;return Math.sqrt(d*d+y*y)},equals:function(u){return u=I(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=I(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function I(u,d,y){return u instanceof K?u:x(u)?new K(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new K(u.x,u.y):new K(u,d,y)}function B(u,d){if(u)for(var y=d?[u,d]:u,T=0,M=y.length;T=this.min.x&&y.x<=this.max.x&&d.y>=this.min.y&&y.y<=this.max.y},intersects:function(u){u=ie(u);var d=this.min,y=this.max,T=u.min,M=u.max,j=M.x>=d.x&&T.x<=y.x,J=M.y>=d.y&&T.y<=y.y;return j&&J},overlaps:function(u){u=ie(u);var d=this.min,y=this.max,T=u.min,M=u.max,j=M.x>d.x&&T.xd.y&&T.y=d.lat&&M.lat<=y.lat&&T.lng>=d.lng&&M.lng<=y.lng},intersects:function(u){u=G(u);var d=this._southWest,y=this._northEast,T=u.getSouthWest(),M=u.getNorthEast(),j=M.lat>=d.lat&&T.lat<=y.lat,J=M.lng>=d.lng&&T.lng<=y.lng;return j&&J},overlaps:function(u){u=G(u);var d=this._southWest,y=this._northEast,T=u.getSouthWest(),M=u.getNorthEast(),j=M.lat>d.lat&&T.latd.lng&&T.lng1,en=function(){var u=!1;try{var d=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,d),window.removeEventListener("testPassiveEventSupport",h,d)}catch{}return u}(),sr=function(){return!!document.createElement("canvas").getContext}(),In=!!(document.createElementNS&&De("svg").createSVGRect),Fn=!!In&&function(){var u=document.createElement("div");return u.innerHTML="",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),mn=!In&&function(){try{var u=document.createElement("div");u.innerHTML='';var d=u.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),li=navigator.platform.indexOf("Mac")===0,ci=navigator.platform.indexOf("Linux")===0;function $n(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var We={ie:be,ielt9:Oe,edge:Ae,webkit:Ne,android:Le,android23:ue,androidStock:we,opera:_e,chrome:Ee,gecko:Me,safari:Fe,phantom:tt,opera12:nt,win:Ke,ie3d:qt,webkit3d:zt,gecko3d:Sn,any3d:or,mobile:Ri,mobileWebkit:An,mobileWebkit3d:ou,msPointer:Ni,pointer:vh,touch:_h,touchNative:yh,mobileOpera:su,mobileGecko:oa,retina:cn,passiveEvents:en,canvas:sr,svg:In,vml:mn,inlineSvg:Fn,mac:li,linux:ci},gT=We.msPointer?"MSPointerDown":"pointerdown",vT=We.msPointer?"MSPointerMove":"pointermove",yT=We.msPointer?"MSPointerUp":"pointerup",_T=We.msPointer?"MSPointerCancel":"pointercancel",F_={touchstart:gT,touchmove:vT,touchend:yT,touchcancel:_T},bT={touchstart:f$,touchmove:bh,touchend:bh,touchcancel:bh},gl={},wT=!1;function s$(u,d,y){return d==="touchstart"&&u$(),bT[d]?(y=bT[d].bind(this,y),u.addEventListener(F_[d],y,!1),y):(console.warn("wrong event specified:",d),h)}function a$(u,d,y){if(!F_[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(F_[d],y,!1)}function l$(u){gl[u.pointerId]=u}function c$(u){gl[u.pointerId]&&(gl[u.pointerId]=u)}function xT(u){delete gl[u.pointerId]}function u$(){wT||(document.addEventListener(gT,l$,!0),document.addEventListener(vT,c$,!0),document.addEventListener(yT,xT,!0),document.addEventListener(_T,xT,!0),wT=!0)}function bh(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var y in gl)d.touches.push(gl[y]);d.changedTouches=[d],u(d)}}function f$(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&jn(d),bh(u,d)}function d$(u){var d={},y,T;for(T in u)y=u[T],d[T]=y&&y.bind?y.bind(u):y;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var h$=200;function p$(u,d){u.addEventListener("dblclick",d);var y=0,T;function M(j){if(j.detail!==1){T=j.detail;return}if(!(j.pointerType==="mouse"||j.sourceCapabilities&&!j.sourceCapabilities.firesTouchEvents)){var J=OT(j);if(!(J.some(function(pe){return pe instanceof HTMLLabelElement&&pe.attributes.for})&&!J.some(function(pe){return pe instanceof HTMLInputElement||pe instanceof HTMLSelectElement}))){var de=Date.now();de-y<=h$?(T++,T===2&&d(d$(j))):T=1,y=de}}}return u.addEventListener("click",M),{dblclick:d,simDblclick:M}}function m$(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var $_=Sh(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),au=Sh(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ST=au==="webkitTransition"||au==="OTransition"?au+"End":"transitionend";function CT(u){return typeof u=="string"?document.getElementById(u):u}function lu(u,d){var y=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!y||y==="auto")&&document.defaultView){var T=document.defaultView.getComputedStyle(u,null);y=T?T[d]:null}return y==="auto"?null:y}function ht(u,d,y){var T=document.createElement(u);return T.className=d||"",y&&y.appendChild(T),T}function Ut(u){var d=u.parentNode;d&&d.removeChild(u)}function wh(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function vl(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function yl(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function j_(u,d){if(u.classList!==void 0)return u.classList.contains(d);var y=xh(u);return y.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(y)}function Je(u,d){if(u.classList!==void 0)for(var y=g(d),T=0,M=y.length;T0?2*window.devicePixelRatio:1;function kT(u){return We.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/y$:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function X_(u,d){var y=d.relatedTarget;if(!y)return!0;try{for(;y&&y!==u;)y=y.parentNode}catch{return!1}return y!==u}var _$={__proto__:null,on:Xe,off:Et,stopPropagation:la,disableScrollPropagation:K_,disableClickPropagation:du,preventDefault:jn,stop:ca,getPropagationPath:OT,getMousePosition:PT,getWheelDelta:kT,isExternalTarget:X_,addListener:Xe,removeListener:Et},MT=le.extend({run:function(u,d,y,T){this.stop(),this._el=u,this._inProgress=!0,this._duration=y||.25,this._easeOutPower=1/Math.max(T||.5,.2),this._startPos=aa(u),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Y(this._animate,this),this._step()},_step:function(u){var d=+new Date-this._startTime,y=this._duration*1e3;dthis.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,d){this._enforcingBounds=!0;var y=this.getCenter(),T=this._limitCenter(y,this._zoom,G(u));return y.equals(T)||this.panTo(T,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var y=I(d.paddingTopLeft||d.padding||[0,0]),T=I(d.paddingBottomRight||d.padding||[0,0]),M=this.project(this.getCenter()),j=this.project(u),J=this.getPixelBounds(),de=ie([J.min.add(y),J.max.subtract(T)]),pe=de.getSize();if(!de.contains(j)){this._enforcingBounds=!0;var Ce=j.subtract(de.getCenter()),Ie=de.extend(j).getSize().subtract(pe);M.x+=Ce.x<0?-Ie.x:Ie.x,M.y+=Ce.y<0?-Ie.y:Ie.y,this.panTo(this.unproject(M),d),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},u===!0?{animate:!0}:u);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var y=this.getSize(),T=d.divideBy(2).round(),M=y.divideBy(2).round(),j=T.subtract(M);return!j.x&&!j.y?this:(u.animate&&u.pan?this.panBy(j):(u.pan&&this._rawPanBy(j),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:y}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=s(this._handleGeolocationResponse,this),y=s(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,y,u):navigator.geolocation.getCurrentPosition(d,y,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var d=u.code,y=u.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+y+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,y=u.coords.longitude,T=new re(d,y),M=T.toBounds(u.coords.accuracy*2),j=this._locateOptions;if(j.setView){var J=this.getBoundsZoom(M);this.setView(T,j.maxZoom?Math.min(J,j.maxZoom):J)}var de={latlng:T,bounds:M,timestamp:u.timestamp};for(var pe in u.coords)typeof u.coords[pe]=="number"&&(de[pe]=u.coords[pe]);this.fire("locationfound",de)}},addHandler:function(u,d){if(!d)return this;var y=this[u]=new d(this);return this._handlers.push(y),this.options[u]&&y.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Ut(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var y="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),T=ht("div",y,d||this._mapPane);return u&&(this._panes[u]=T),T},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),d=this.unproject(u.getBottomLeft()),y=this.unproject(u.getTopRight());return new W(d,y)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,d,y){u=G(u),y=I(y||[0,0]);var T=this.getZoom()||0,M=this.getMinZoom(),j=this.getMaxZoom(),J=u.getNorthWest(),de=u.getSouthEast(),pe=this.getSize().subtract(y),Ce=ie(this.project(de,T),this.project(J,T)).getSize(),Ie=We.any3d?this.options.zoomSnap:1,Ge=pe.x/Ce.x,it=pe.y/Ce.y,Vr=d?Math.max(Ge,it):Math.min(Ge,it);return T=this.getScaleZoom(Vr,T),Ie&&(T=Math.round(T/(Ie/100))*(Ie/100),T=d?Math.ceil(T/Ie)*Ie:Math.floor(T/Ie)*Ie),Math.max(M,Math.min(j,T))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new K(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var y=this._getTopLeftPoint(u,d);return new B(y,y.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,d){var y=this.options.crs;return d=d===void 0?this._zoom:d,y.scale(u)/y.scale(d)},getScaleZoom:function(u,d){var y=this.options.crs;d=d===void 0?this._zoom:d;var T=y.zoom(u*y.scale(d));return isNaN(T)?1/0:T},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(se(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(I(u),d)},layerPointToLatLng:function(u){var d=I(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(se(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(se(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(G(u))},distance:function(u,d){return this.options.crs.distance(se(u),se(d))},containerPointToLayerPoint:function(u){return I(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return I(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(I(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(u)))},mouseEventToContainerPoint:function(u){return PT(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var d=this._container=CT(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Xe(d,"scroll",this._onScroll,this),this._containerId=l(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&We.any3d,Je(u,"leaflet-container"+(We.touch?" leaflet-touch":"")+(We.retina?" leaflet-retina":"")+(We.ielt9?" leaflet-oldie":"")+(We.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=lu(u,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),un(this._mapPane,new K(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Je(u.markerPane,"leaflet-zoom-hide"),Je(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,d,y){un(this._mapPane,new K(0,0));var T=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var M=this._zoom!==d;this._moveStart(M,y)._move(u,d)._moveEnd(M),this.fire("viewreset"),T&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,y,T){d===void 0&&(d=this._zoom);var M=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),T?y&&y.pinch&&this.fire("zoom",y):((M||y&&y.pinch)&&this.fire("zoom",y),this.fire("move",y)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){un(this._mapPane,this._getMapPanePos().subtract(u))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(u){this._targets={},this._targets[l(this._container)]=this;var d=u?Et:Xe;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),We.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=Y(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,d){for(var y=[],T,M=d==="mouseout"||d==="mouseover",j=u.target||u.srcElement,J=!1;j;){if(T=this._targets[l(j)],T&&(d==="click"||d==="preclick")&&this._draggableMoved(T)){J=!0;break}if(T&&T.listens(d,!0)&&(M&&!X_(j,u)||(y.push(T),M))||j===this._container)break;j=j.parentNode}return!y.length&&!J&&!M&&this.listens(d,!0)&&(y=[this]),y},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var d=u.target||u.srcElement;if(!(!this._loaded||d._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(d))){var y=u.type;y==="mousedown"&&W_(d),this._fireDOMEvent(u,y)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,y){if(u.type==="click"){var T=i({},u);T.type="preclick",this._fireDOMEvent(T,T.type,y)}var M=this._findEventTargets(u,d);if(y){for(var j=[],J=0;J0?Math.round(u-d)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(d))},_limitZoom:function(u){var d=this.getMinZoom(),y=this.getMaxZoom(),T=We.any3d?this.options.zoomSnap:1;return T&&(u=Math.round(u/T)*T),Math.max(d,Math.min(y,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var y=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(y)?!1:(this.panBy(y,d),!0)},_createAnimProxy:function(){var u=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var y=$_,T=this._proxy.style[y];sa(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),T===this._proxy.style[y]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ut(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();sa(this._proxy,this.project(u,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,d,y){if(this._animatingZoom)return!0;if(y=y||{},!this._zoomAnimated||y.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var T=this.getZoomScale(d),M=this._getCenterOffset(u)._divideBy(1-1/T);return y.animate!==!0&&!this.getSize().contains(M)?!1:(Y(function(){this._moveStart(!0,!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,y,T){this._mapPane&&(y&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,Je(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:T}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function b$(u,d){return new at(u,d)}var ui=Z.extend({options:{position:"topright"},initialize:function(u){v(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var d=this._map;return d&&d.removeControl(this),this.options.position=u,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var d=this._container=this.onAdd(u),y=this.getPosition(),T=u._controlCorners[y];return Je(d,"leaflet-control"),y.indexOf("bottom")!==-1?T.insertBefore(d,T.firstChild):T.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ut(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),hu=function(u){return new ui(u)};at.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",y=this._controlContainer=ht("div",d+"control-container",this._container);function T(M,j){var J=d+M+" "+d+j;u[M+j]=ht("div",J,y)}T("top","left"),T("top","right"),T("bottom","left"),T("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Ut(this._controlCorners[u]);Ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var RT=ui.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,y,T){return y1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=d&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var d=this._getLayer(l(u.target)),y=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;y&&this._map.fire(y,d)},_createRadioElement:function(u,d){var y='",T=document.createElement("div");return T.innerHTML=y,T.firstChild},_addItem:function(u){var d=document.createElement("label"),y=this._map.hasLayer(u.layer),T;u.overlay?(T=document.createElement("input"),T.type="checkbox",T.className="leaflet-control-layers-selector",T.defaultChecked=y):T=this._createRadioElement("leaflet-base-layers_"+l(this),y),this._layerControlInputs.push(T),T.layerId=l(u.layer),Xe(T,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+u.name;var j=document.createElement("span");d.appendChild(j),j.appendChild(T),j.appendChild(M);var J=u.overlay?this._overlaysList:this._baseLayersList;return J.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){var u=this._layerControlInputs,d,y,T=[],M=[];this._handlingClick=!0;for(var j=u.length-1;j>=0;j--)d=u[j],y=this._getLayer(d.layerId).layer,d.checked?T.push(y):d.checked||M.push(y);for(j=0;j=0;M--)d=u[M],y=this._getLayer(d.layerId).layer,d.disabled=y.options.minZoom!==void 0&&Ty.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;Xe(u,"click",jn),this.expand(),setTimeout(function(){Et(u,"click",jn)})}}),w$=function(u,d,y){return new RT(u,d,y)},Q_=ui.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",y=ht("div",d+" leaflet-bar"),T=this.options;return this._zoomInButton=this._createButton(T.zoomInText,T.zoomInTitle,d+"-in",y,this._zoomIn),this._zoomOutButton=this._createButton(T.zoomOutText,T.zoomOutTitle,d+"-out",y,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),y},onRemove:function(u){u.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(u){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,d,y,T,M){var j=ht("a",y,T);return j.innerHTML=u,j.href="#",j.title=d,j.setAttribute("role","button"),j.setAttribute("aria-label",d),du(j),Xe(j,"click",ca),Xe(j,"click",M,this),Xe(j,"click",this._refocusOnMap,this),j},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";tn(this._zoomInButton,d),tn(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Je(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Je(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});at.mergeOptions({zoomControl:!0}),at.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Q_,this.addControl(this.zoomControl))});var x$=function(u){return new Q_(u)},NT=ui.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",y=ht("div",d),T=this.options;return this._addScales(T,d+"-line",y),u.on(T.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),y},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,y){u.metric&&(this._mScale=ht("div",d,y)),u.imperial&&(this._iScale=ht("div",d,y))},_update:function(){var u=this._map,d=u.getSize().y/2,y=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(y)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var d=this._getRoundNum(u),y=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,y,d/u)},_updateImperial:function(u){var d=u*3.2808399,y,T,M;d>5280?(y=d/5280,T=this._getRoundNum(y),this._updateScale(this._iScale,T+" mi",T/y)):(M=this._getRoundNum(d),this._updateScale(this._iScale,M+" ft",M/d))},_updateScale:function(u,d,y){u.style.width=Math.round(this.options.maxWidth*y)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),y=u/d;return y=y>=10?10:y>=5?5:y>=3?3:y>=2?2:1,d*y}}),S$=function(u){return new NT(u)},C$='',J_=ui.extend({options:{position:"bottomright",prefix:''+(We.inlineSvg?C$+" ":"")+"Leaflet"},initialize:function(u){v(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),du(this._container);for(var d in u._layers)u._layers[d].getAttribution&&this.addAttribution(u._layers[d].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var d in this._attributions)this._attributions[d]&&u.push(d);var y=[];this.options.prefix&&y.push(this.options.prefix),u.length&&y.push(u.join(", ")),this._container.innerHTML=y.join(' ')}}});at.mergeOptions({attributionControl:!0}),at.addInitHook(function(){this.options.attributionControl&&new J_().addTo(this)});var E$=function(u){return new J_(u)};ui.Layers=RT,ui.Zoom=Q_,ui.Scale=NT,ui.Attribution=J_,hu.layers=w$,hu.zoom=x$,hu.scale=S$,hu.attribution=E$;var Di=Z.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Di.addTo=function(u,d){return u.addHandler(d,this),this};var T$={Events:ne},LT=We.touch?"touchstart mousedown":"mousedown",Ho=le.extend({options:{clickTolerance:3},initialize:function(u,d,y,T){v(this,T),this._element=u,this._dragStartTarget=d||u,this._preventOutline=y},enable:function(){this._enabled||(Xe(this._dragStartTarget,LT,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ho._dragging===this&&this.finishDrag(!0),Et(this._dragStartTarget,LT,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!j_(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){Ho._dragging===this&&this.finishDrag();return}if(!(Ho._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(Ho._dragging=this,this._preventOutline&&W_(this._element),U_(),cu(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,y=ET(this._element);this._startPoint=new K(d.clientX,d.clientY),this._startPos=aa(this._element),this._parentScale=Y_(y);var T=u.type==="mousedown";Xe(document,T?"mousemove":"touchmove",this._onMove,this),Xe(document,T?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var d=u.touches&&u.touches.length===1?u.touches[0]:u,y=new K(d.clientX,d.clientY)._subtract(this._startPoint);!y.x&&!y.y||Math.abs(y.x)+Math.abs(y.y)j&&(J=de,j=pe);j>y&&(d[J]=1,e0(u,d,y,T,J),e0(u,d,y,J,M))}function k$(u,d){for(var y=[u[0]],T=1,M=0,j=u.length;Td&&(y.push(u[T]),M=T);return Md.max.x&&(y|=2),u.yd.max.y&&(y|=8),y}function M$(u,d){var y=d.x-u.x,T=d.y-u.y;return y*y+T*T}function pu(u,d,y,T){var M=d.x,j=d.y,J=y.x-M,de=y.y-j,pe=J*J+de*de,Ce;return pe>0&&(Ce=((u.x-M)*J+(u.y-j)*de)/pe,Ce>1?(M=y.x,j=y.y):Ce>0&&(M+=J*Ce,j+=de*Ce)),J=u.x-M,de=u.y-j,T?J*J+de*de:new K(M,j)}function Ur(u){return!x(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function $T(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ur(u)}function jT(u,d){var y,T,M,j,J,de,pe,Ce;if(!u||u.length===0)throw new Error("latlngs not passed");Ur(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ie=[];for(var Ge in u)Ie.push(d.project(se(u[Ge])));var it=Ie.length;for(y=0,T=0;yT){pe=(j-T)/M,Ce=[de.x-pe*(de.x-J.x),de.y-pe*(de.y-J.y)];break}return d.unproject(I(Ce))}var R$={__proto__:null,simplify:DT,pointToSegmentDistance:AT,closestPointOnSegment:O$,clipSegment:FT,_getEdgeIntersection:Th,_getBitCode:ua,_sqClosestPointOnSegment:pu,isFlat:Ur,_flat:$T,polylineCenter:jT};function BT(u,d,y){var T,M=[1,4,2,8],j,J,de,pe,Ce,Ie,Ge,it;for(j=0,Ie=u.length;j1e-7;de++)Ce=M*Math.sin(J),Ce=Math.pow((1-Ce)/(1+Ce),M/2),pe=Math.PI/2-2*Math.atan(j*Ce)-J,J+=pe;return new re(J*d,u.x*d/y)}},L$={__proto__:null,LonLat:t0,Mercator:n0,SphericalMercator:F},D$=i({},O,{code:"EPSG:3395",projection:n0,transformation:function(){var u=.5/(Math.PI*n0.R);return X(u,.5,-u,.5)}()}),UT=i({},O,{code:"EPSG:4326",projection:t0,transformation:X(1/180,1,-1/180,.5)}),A$=i({},me,{projection:t0,transformation:X(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,d){var y=d.lng-u.lng,T=d.lat-u.lat;return Math.sqrt(y*y+T*T)},infinite:!0});me.Earth=O,me.EPSG3395=D$,me.EPSG3857=ae,me.EPSG900913=ve,me.EPSG4326=UT,me.Simple=A$;var fi=le.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[l(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[l(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var d=u.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var y=this.getEvents();d.on(y,this),this.once("remove",function(){d.off(y,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});at.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var d=l(u);return this._layers[d]?this:(this._layers[d]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var d=l(u);return this._layers[d]?(this._loaded&&u.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return l(u)in this._layers},eachLayer:function(u,d){for(var y in this._layers)u.call(d,this._layers[y]);return this},_addLayers:function(u){u=u?x(u)?u:[u]:[];for(var d=0,y=u.length;dthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&d[0]instanceof re&&d[0].equals(d[y-1])&&d.pop(),d},_setLatLngs:function(u){oo.prototype._setLatLngs.call(this,u),Ur(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ur(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,y=new K(d,d);if(u=new B(u.min.subtract(y),u.max.add(y)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var T=0,M=this._rings.length,j;Tu.y!=M.y>u.y&&u.x<(M.x-T.x)*(u.y-T.y)/(M.y-T.y)+T.x&&(d=!d);return d||oo.prototype._containsPoint.call(this,u,!0)}});function V$(u,d){return new wl(u,d)}var so=io.extend({initialize:function(u,d){v(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=x(u)?u:u.features,y,T,M;if(d){for(y=0,T=d.length;y0?T:[d.src];return}x(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var j=0;jM?(d.height=M+"px",Je(u,j)):tn(u,j),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),y=this._getAnchor();un(this._container,d.add(y))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,d=parseInt(lu(this._container,"marginBottom"),10)||0,y=this._container.offsetHeight+d,T=this._containerWidth,M=new K(this._containerLeft,-y-this._containerBottom);M._add(aa(this._container));var j=u.layerPointToContainerPoint(M),J=I(this.options.autoPanPadding),de=I(this.options.autoPanPaddingTopLeft||J),pe=I(this.options.autoPanPaddingBottomRight||J),Ce=u.getSize(),Ie=0,Ge=0;j.x+T+pe.x>Ce.x&&(Ie=j.x+T-Ce.x+pe.x),j.x-Ie-de.x<0&&(Ie=j.x-de.x),j.y+y+pe.y>Ce.y&&(Ge=j.y+y-Ce.y+pe.y),j.y-Ge-de.y<0&&(Ge=j.y-de.y),(Ie||Ge)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Ie,Ge]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),G$=function(u,d){return new Dh(u,d)};at.mergeOptions({closePopupOnClick:!0}),at.include({openPopup:function(u,d,y){return this._initOverlay(Dh,u,d,y).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),fi.include({bindPopup:function(u,d){return this._popup=this._initOverlay(Dh,this._popup,u,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(u){return this._popup&&(this instanceof io||(this._popup._source=this),this._popup._prepareOpen(u||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){ca(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof Wo)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=d,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Ah=Ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Ai.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Ai.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Ai.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",d=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,y,T=this._map,M=this._container,j=T.latLngToContainerPoint(T.getCenter()),J=T.layerPointToContainerPoint(u),de=this.options.direction,pe=M.offsetWidth,Ce=M.offsetHeight,Ie=I(this.options.offset),Ge=this._getAnchor();de==="top"?(d=pe/2,y=Ce):de==="bottom"?(d=pe/2,y=0):de==="center"?(d=pe/2,y=Ce/2):de==="right"?(d=0,y=Ce/2):de==="left"?(d=pe,y=Ce/2):J.xthis.options.maxZoom||yT?this._retainParent(M,j,J,T):!1)},_retainChildren:function(u,d,y,T){for(var M=2*u;M<2*u+2;M++)for(var j=2*d;j<2*d+2;j++){var J=new K(M,j);J.z=y+1;var de=this._tileCoordsToKey(J),pe=this._tiles[de];if(pe&&pe.active){pe.retain=!0;continue}else pe&&pe.loaded&&(pe.retain=!0);y+1this.options.maxZoom||this.options.minZoom!==void 0&&M1){this._setView(u,y);return}for(var Ge=M.min.y;Ge<=M.max.y;Ge++)for(var it=M.min.x;it<=M.max.x;it++){var Vr=new K(it,Ge);if(Vr.z=this._tileZoom,!!this._isValidTile(Vr)){var fa=this._tiles[this._tileCoordsToKey(Vr)];fa?fa.current=!0:J.push(Vr)}}if(J.sort(function(Yo,a0){return Yo.distanceTo(j)-a0.distanceTo(j)}),J.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Fh=document.createDocumentFragment();for(it=0;ity.max.x)||!d.wrapLat&&(u.yy.max.y))return!1}if(!this.options.bounds)return!0;var T=this._tileCoordsToBounds(u);return G(this.options.bounds).overlaps(T)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,y=this.getTileSize(),T=u.scaleBy(y),M=T.add(y),j=d.unproject(T,u.z),J=d.unproject(M,u.z);return[j,J]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),y=new W(d[0],d[1]);return this.options.noWrap||(y=this._map.wrapLatLngBounds(y)),y},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),y=new K(+d[0],+d[1]);return y.z=+d[2],y},_removeTile:function(u){var d=this._tiles[u];d&&(Ut(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Je(u,"leaflet-tile");var d=this.getTileSize();u.style.width=d.x+"px",u.style.height=d.y+"px",u.onselectstart=h,u.onmousemove=h,We.ielt9&&this.options.opacity<1&&zr(u,this.options.opacity)},_addTile:function(u,d){var y=this._getTilePos(u),T=this._tileCoordsToKey(u),M=this.createTile(this._wrapCoords(u),s(this._tileReady,this,u));this._initTile(M),this.createTile.length<2&&Y(s(this._tileReady,this,u,null,M)),un(M,y),this._tiles[T]={el:M,coords:u,current:!0},d.appendChild(M),this.fire("tileloadstart",{tile:M,coords:u})},_tileReady:function(u,d,y){d&&this.fire("tileerror",{error:d,tile:y,coords:u});var T=this._tileCoordsToKey(u);y=this._tiles[T],y&&(y.loaded=+new Date,this._map._fadeAnimated?(zr(y.el,0),q(this._fadeFrame),this._fadeFrame=Y(this._updateOpacity,this)):(y.active=!0,this._pruneTiles()),d||(Je(y.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:y.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),We.ielt9||!this._map._fadeAnimated?Y(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new K(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return d.z=u.z,d},_pxBoundsToTileRange:function(u){var d=this.getTileSize();return new B(u.min.unscaleBy(d).floor(),u.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function X$(u){return new gu(u)}var Sl=gu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,d){this._url=u,d=v(this,d),d.detectRetina&&We.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,d){return this._url===u&&d===void 0&&(d=!0),this._url=u,d||this.redraw(),this},createTile:function(u,d){var y=document.createElement("img");return Xe(y,"load",s(this._tileOnLoad,this,d,y)),Xe(y,"error",s(this._tileOnError,this,d,y)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(y.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(y.referrerPolicy=this.options.referrerPolicy),y.alt="",y.src=this.getTileUrl(u),y},getTileUrl:function(u){var d={r:We.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var y=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=y),d["-y"]=y}return b(this._url,i(d,this.options))},_tileOnLoad:function(u,d){We.ielt9?setTimeout(s(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,y){var T=this.options.errorTileUrl;T&&d.getAttribute("src")!==T&&(d.src=T),u(y,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,y=this.options.zoomReverse,T=this.options.zoomOffset;return y&&(u=d-u),u+T},_getSubdomain:function(u){var d=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var u,d;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(d=this._tiles[u].el,d.onload=h,d.onerror=h,!d.complete)){d.src=P;var y=this._tiles[u].coords;Ut(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:y})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",P),gu.prototype._removeTile.call(this,u)},_tileReady:function(u,d,y){if(!(!this._map||y&&y.getAttribute("src")===P))return gu.prototype._tileReady.call(this,u,d,y)}});function ZT(u,d){return new Sl(u,d)}var KT=Sl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,d){this._url=u;var y=i({},this.defaultWmsParams);for(var T in d)T in this.options||(y[T]=d[T]);d=v(this,d);var M=d.detectRetina&&We.retina?2:1,j=this.getTileSize();y.width=j.x*M,y.height=j.y*M,this.wmsParams=y},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,Sl.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),y=this._crs,T=ie(y.project(d[0]),y.project(d[1])),M=T.min,j=T.max,J=(this._wmsVersion>=1.3&&this._crs===UT?[M.y,M.x,j.y,j.x]:[M.x,M.y,j.x,j.y]).join(","),de=Sl.prototype.getTileUrl.call(this,u);return de+w(this.wmsParams,de,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+J},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function Q$(u,d){return new KT(u,d)}Sl.WMS=KT,ZT.wms=Q$;var ao=fi.extend({options:{padding:.1},initialize:function(u){v(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Je(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,d){var y=this._map.getZoomScale(d,this._zoom),T=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,d),j=T.multiplyBy(-y).add(M).subtract(this._map._getNewPixelOrigin(u,d));We.any3d?sa(this._container,j,y):un(this._container,j)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,d=this._map.getSize(),y=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new B(y,y.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),XT=ao.extend({options:{tolerance:0},getEvents:function(){var u=ao.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ao.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Xe(u,"mousemove",this._onMouseMove,this),Xe(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Xe(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,Ut(this._container),Et(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var d in this._layers)u=this._layers[d],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ao.prototype._update.call(this);var u=this._bounds,d=this._container,y=u.getSize(),T=We.retina?2:1;un(d,u.min),d.width=T*y.x,d.height=T*y.y,d.style.width=y.x+"px",d.style.height=y.y+"px",We.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){ao.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var d=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var d=u._order,y=d.next,T=d.prev;y?y.prev=T:this._drawLast=T,T?T.next=y:this._drawFirst=y,delete u._order,delete this._layers[l(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var d=u.options.dashArray.split(/[, ]+/),y=[],T,M;for(M=0;M')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),J$={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ao.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=vu("shape");Je(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=vu("path"),d.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var d=u._container;this._container.appendChild(d),u.options.interactive&&u.addInteractiveTarget(d)},_removePath:function(u){var d=u._container;Ut(d),u.removeInteractiveTarget(d),delete this._layers[l(u)]},_updateStyle:function(u){var d=u._stroke,y=u._fill,T=u.options,M=u._container;M.stroked=!!T.stroke,M.filled=!!T.fill,T.stroke?(d||(d=u._stroke=vu("stroke")),M.appendChild(d),d.weight=T.weight+"px",d.color=T.color,d.opacity=T.opacity,T.dashArray?d.dashStyle=x(T.dashArray)?T.dashArray.join(" "):T.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=T.lineCap.replace("butt","flat"),d.joinstyle=T.lineJoin):d&&(M.removeChild(d),u._stroke=null),T.fill?(y||(y=u._fill=vu("fill")),M.appendChild(y),y.color=T.fillColor||T.color,y.opacity=T.fillOpacity):y&&(M.removeChild(y),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),y=Math.round(u._radius),T=Math.round(u._radiusY||y);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+y+","+T+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){vl(u._container)},_bringToBack:function(u){yl(u._container)}},Ih=We.vml?vu:De,yu=ao.extend({_initContainer:function(){this._container=Ih("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Ih("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ut(this._container),Et(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ao.prototype._update.call(this);var u=this._bounds,d=u.getSize(),y=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,y.setAttribute("width",d.x),y.setAttribute("height",d.y)),un(y,u.min),y.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=Ih("path");u.options.className&&Je(d,u.options.className),u.options.interactive&&Je(d,"leaflet-interactive"),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Ut(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var d=u._path,y=u.options;d&&(y.stroke?(d.setAttribute("stroke",y.color),d.setAttribute("stroke-opacity",y.opacity),d.setAttribute("stroke-width",y.weight),d.setAttribute("stroke-linecap",y.lineCap),d.setAttribute("stroke-linejoin",y.lineJoin),y.dashArray?d.setAttribute("stroke-dasharray",y.dashArray):d.removeAttribute("stroke-dasharray"),y.dashOffset?d.setAttribute("stroke-dashoffset",y.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),y.fill?(d.setAttribute("fill",y.fillColor||y.color),d.setAttribute("fill-opacity",y.fillOpacity),d.setAttribute("fill-rule",y.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,fe(u._parts,d))},_updateCircle:function(u){var d=u._point,y=Math.max(Math.round(u._radius),1),T=Math.max(Math.round(u._radiusY),1)||y,M="a"+y+","+T+" 0 1,0 ",j=u._empty()?"M0 0":"M"+(d.x-y)+","+d.y+M+y*2+",0 "+M+-y*2+",0 ";this._setPath(u,j)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){vl(u._path)},_bringToBack:function(u){yl(u._path)}});We.vml&&yu.include(J$);function JT(u){return We.svg||We.vml?new yu(u):null}at.include({getRenderer:function(u){var d=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var d=this._paneRenderers[u];return d===void 0&&(d=this._createRenderer({pane:u}),this._paneRenderers[u]=d),d},_createRenderer:function(u){return this.options.preferCanvas&&QT(u)||JT(u)}});var eO=wl.extend({initialize:function(u,d){wl.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=G(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function e7(u,d){return new eO(u,d)}yu.create=Ih,yu.pointsToPath=fe,so.geometryToLayer=kh,so.coordsToLatLng=i0,so.coordsToLatLngs=Mh,so.latLngToCoords=o0,so.latLngsToCoords=Rh,so.getFeature=xl,so.asFeature=Nh,at.mergeOptions({boxZoom:!0});var tO=Di.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Xe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Et(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ut(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),cu(),U_(),this._startPoint=this._map.mouseEventToContainerPoint(u),Xe(document,{contextmenu:ca,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),Je(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new B(this._point,this._startPoint),y=d.getSize();un(this._box,d.min),this._box.style.width=y.x+"px",this._box.style.height=y.y+"px"},_finish:function(){this._moved&&(Ut(this._box),tn(this._container,"leaflet-crosshair")),uu(),V_(),Et(document,{contextmenu:ca,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var d=new W(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});at.addInitHook("addHandler","boxZoom",tO),at.mergeOptions({doubleClickZoom:!0});var nO=Di.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var d=this._map,y=d.getZoom(),T=d.options.zoomDelta,M=u.originalEvent.shiftKey?y-T:y+T;d.options.doubleClickZoom==="center"?d.setZoom(M):d.setZoomAround(u.containerPoint,M)}});at.addInitHook("addHandler","doubleClickZoom",nO),at.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var rO=Di.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new Ho(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Je(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tn(this._map._container,"leaflet-grab"),tn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=G(this._map.options.maxBounds);this._offsetLimit=ie(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var d=this._lastTime=+new Date,y=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(y),this._times.push(d),this._prunePositions(d)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,d){return u-(u-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;u.xd.max.x&&(u.x=this._viscousLimit(u.x,d.max.x)),u.y>d.max.y&&(u.y=this._viscousLimit(u.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,d=Math.round(u/2),y=this._initialWorldOffset,T=this._draggable._newPos.x,M=(T-d+y)%u+d-y,j=(T+d+y)%u-d-y,J=Math.abs(M+y)0?j:-j))-d;this._delta=0,this._startTime=null,J&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+J):u.setZoomAround(this._lastMousePos,d+J))}});at.addInitHook("addHandler","scrollWheelZoom",oO);var t7=600;at.mergeOptions({tapHold:We.touchNative&&We.safari&&We.mobile,tapTolerance:15});var sO=Di.extend({addHooks:function(){Xe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Et(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var d=u.touches[0];this._startPos=this._newPos=new K(d.clientX,d.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Xe(document,"touchend",jn),Xe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),t7),Xe(document,"touchend touchcancel contextmenu",this._cancel,this),Xe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){Et(document,"touchend",jn),Et(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),Et(document,"touchend touchcancel contextmenu",this._cancel,this),Et(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new K(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var y=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});y._simulated=!0,d.target.dispatchEvent(y)}});at.addInitHook("addHandler","tapHold",sO),at.mergeOptions({touchZoom:We.touch,bounceAtZoomLimits:!0});var aO=Di.extend({addHooks:function(){Je(this._map._container,"leaflet-touch-zoom"),Xe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tn(this._map._container,"leaflet-touch-zoom"),Et(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var d=this._map;if(!(!u.touches||u.touches.length!==2||d._animatingZoom||this._zooming)){var y=d.mouseEventToContainerPoint(u.touches[0]),T=d.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(y.add(T)._divideBy(2))),this._startDist=y.distanceTo(T),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Xe(document,"touchmove",this._onTouchMove,this),Xe(document,"touchend touchcancel",this._onTouchEnd,this),jn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,y=d.mouseEventToContainerPoint(u.touches[0]),T=d.mouseEventToContainerPoint(u.touches[1]),M=y.distanceTo(T)/this._startDist;if(this._zoom=d.getScaleZoom(M,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoomd.getMaxZoom()&&M>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var j=y._add(T)._divideBy(2)._subtract(this._centerPoint);if(M===1&&j.x===0&&j.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(j),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var J=s(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Y(J,this,!0),jn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),Et(document,"touchmove",this._onTouchMove,this),Et(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});at.addInitHook("addHandler","touchZoom",aO),at.BoxZoom=tO,at.DoubleClickZoom=nO,at.Drag=rO,at.Keyboard=iO,at.ScrollWheelZoom=oO,at.TapHold=sO,at.TouchZoom=aO,n.Bounds=B,n.Browser=We,n.CRS=me,n.Canvas=XT,n.Circle=r0,n.CircleMarker=Ph,n.Class=Z,n.Control=ui,n.DivIcon=GT,n.DivOverlay=Ai,n.DomEvent=_$,n.DomUtil=v$,n.Draggable=Ho,n.Evented=le,n.FeatureGroup=io,n.GeoJSON=so,n.GridLayer=gu,n.Handler=Di,n.Icon=bl,n.ImageOverlay=Lh,n.LatLng=re,n.LatLngBounds=W,n.Layer=fi,n.LayerGroup=_l,n.LineUtil=R$,n.Map=at,n.Marker=Oh,n.Mixin=T$,n.Path=Wo,n.Point=K,n.PolyUtil=N$,n.Polygon=wl,n.Polyline=oo,n.Popup=Dh,n.PosAnimation=MT,n.Projection=L$,n.Rectangle=eO,n.Renderer=ao,n.SVG=yu,n.SVGOverlay=qT,n.TileLayer=Sl,n.Tooltip=Ah,n.Transformation=Q,n.Util=ee,n.VideoOverlay=YT,n.bind=s,n.bounds=ie,n.canvas=QT,n.circle=z$,n.circleMarker=B$,n.control=hu,n.divIcon=K$,n.extend=i,n.featureGroup=F$,n.geoJSON=WT,n.geoJson=H$,n.gridLayer=X$,n.icon=$$,n.imageOverlay=W$,n.latLng=se,n.latLngBounds=G,n.layerGroup=I$,n.map=b$,n.marker=j$,n.point=I,n.polygon=V$,n.polyline=U$,n.popup=G$,n.rectangle=e7,n.setOptions=v,n.stamp=l,n.svg=JT,n.svgOverlay=q$,n.tileLayer=ZT,n.tooltip=Z$,n.transformation=X,n.version=r,n.videoOverlay=Y$;var n7=window.L;n.noConflict=function(){return window.L=n7,this},window.L=n})})(ade,Vs);const LR=Vs;function IE(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function FE(e,t){return t==null?function(r,i){const o=H.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=H.useRef();o.current||(o.current=e(r,i));const s=H.useRef(r),{instance:a}=o.current;return H.useEffect(function(){s.current!==r&&(t(a,r,s.current),s.current=r)},[a,r,i]),o}}function lde(e,t){H.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function _8(e){return function(n){const r=v8(),i=e(AE(n,r),r);return p8(r.map,n.attribution),y8(i.current,n.eventHandlers),lde(i.current,r),i}}function cde(e,t){const n=FE(e,t),r=_8(n);return rde(r)}function ude(e,t){const n=FE(e),r=sde(n,t);return ide(r)}function fde(e,t){const n=FE(e,t),r=_8(n);return ode(r)}function dde(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function ax(){return ax=Object.assign||function(e){for(var t=1;t(m==null?void 0:m.map)??null,[m]);const v=H.useCallback(_=>{if(_!==null&&m===null){const b=new Vs.Map(_,f);n!=null&&c!=null?b.setView(n,c):e!=null&&b.fitBounds(e,t),l!=null&&b.whenReady(l),g(tde(b))}},[]);H.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const w=m?z.createElement(g8,{value:m},r):s??null;return z.createElement("div",ax({},p,{ref:v}),w)}const pde=H.forwardRef(hde),mde=cde(function({position:t,...n},r){const i=new Vs.Marker(t,n);return IE(i,nde(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),gde=ude(function(t,n){const r=new Vs.Popup(t,n.overlayContainer);return IE(r,n)},function(t,n,{position:r},i){H.useEffect(function(){const{instance:s}=t;function a(c){c.popup===s&&(s.update(),i(!0))}function l(c){c.popup===s&&i(!1)}return n.map.on({popupopen:a,popupclose:l}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){var f;n.map.off({popupopen:a,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),vde=fde(function({url:t,...n},r){const i=new Vs.TileLayer(t,AE(n,r));return IE(i,r)},function(t,n,r){dde(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)});const yde=()=>C(vde,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),_de=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(ct("latLong"))};const[{latLong:t}]=e;return{zoom:10,center:t}},b8=({toggle:e,isOpen:t,title:n,locations:r=[]})=>C(zo,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:V(Mi,{className:"map-modal__modal-body",children:[V("h3",{className:"map-modal__modal-title",children:[n,C("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),V(pde,{..._de(r),children:[C(yde,{}),r.map(({cityName:i,latLong:o,count:s},a)=>C(mde,{position:o,children:V(gde,{children:[C("b",{children:s})," visit",s>1?"s":""," from ",C("b",{children:i})]})},a))]})]})}),fh=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>C("header",{children:V(Cr,{body:!0,children:[V("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[C(mt,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:C(je,{icon:QA})}),C("span",{className:"text-center d-none d-sm-block",children:C("small",{children:i})}),V("span",{className:"badge badge-main ms-3",children:["Visits:"," ",C(n8,{visitsCount:e.length,shortUrl:n})]})]}),C("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:C("small",{children:i})}),r&&C("div",{className:"mt-md-2",children:r})]})});const bde=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,s=(r==null?void 0:r.shortUrl)??"",a=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title;return V(fh,{title:V(Ye,{children:["Visits for ",C(Ci,{href:s})]}),goBack:n,visits:o,shortUrl:r,children:[C("hr",{}),V("div",{children:["Created: ",(()=>r?V("span",{children:[C("b",{id:"created",className:"short-url-visits-header__created-at",children:C(Qv,{date:r.dateCreated,relative:!0})}),C(Br,{placement:"bottom",target:"created",children:C(Qv,{date:r.dateCreated})})]}):C("small",{children:"Loading..."}))()]}),V("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&C("small",{children:"Loading..."}),!i&&C(Ci,{href:a,children:l??a})]})]})};const Cf=({children:e,...t})=>C(r6,{className:"nav-pills__nav-link",tag:oA,...t,children:e}),w8=({children:e,fill:t=!1,className:n=""})=>C(Cr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:C(c_,{pills:!0,fill:t,children:H.Children.map(e,r=>{if(!H.isValidElement(r)||r.type!==Cf)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})});/*! - * @kurkle/color v0.3.1 - * https://github.com/kurkle/color#readme - * (c) 2022 Jukka Kurkela - * Released under the MIT License - */function dh(e){return e+.5|0}const hs=(e,t,n)=>Math.max(Math.min(e,n),t);function Zu(e){return hs(dh(e*2.55),0,255)}function Ns(e){return hs(dh(e*255),0,255)}function mo(e){return hs(dh(e/2.55)/100,0,1)}function DR(e){return hs(dh(e*100),0,100)}const Hr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},lx=[..."0123456789ABCDEF"],wde=e=>lx[e&15],xde=e=>lx[(e&240)>>4]+lx[e&15],xp=e=>(e&240)>>4===(e&15),Sde=e=>xp(e.r)&&xp(e.g)&&xp(e.b)&&xp(e.a);function Cde(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Hr[e[1]]*17,g:255&Hr[e[2]]*17,b:255&Hr[e[3]]*17,a:t===5?Hr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Hr[e[1]]<<4|Hr[e[2]],g:Hr[e[3]]<<4|Hr[e[4]],b:Hr[e[5]]<<4|Hr[e[6]],a:t===9?Hr[e[7]]<<4|Hr[e[8]]:255})),n}const Ede=(e,t)=>e<255?t(e):"";function Tde(e){var t=Sde(e)?wde:xde;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Ede(e.a,t):void 0}const Ode=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x8(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function Pde(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function kde(e,t,n){const r=x8(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Mde(e,t,n,r,i){return e===i?(t-n)/r+(t.5?f/(2-o-s):f/(o+s),l=Mde(n,r,i,f,o),l=l*60+.5),[l|0,c||0,a]}function jE(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ns)}function BE(e,t,n){return jE(x8,e,t,n)}function Rde(e,t,n){return jE(kde,e,t,n)}function Nde(e,t,n){return jE(Pde,e,t,n)}function S8(e){return(e%360+360)%360}function Lde(e){const t=Ode.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Zu(+t[5]):Ns(+t[5]));const i=S8(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=Rde(i,o,s):t[1]==="hsv"?r=Nde(i,o,s):r=BE(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function Dde(e,t){var n=$E(e);n[0]=S8(n[0]+t),n=BE(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Ade(e){if(!e)return;const t=$E(e),n=t[0],r=DR(t[1]),i=DR(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${mo(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const AR={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},IR={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ide(){const e={},t=Object.keys(IR),n=Object.keys(AR);let r,i,o,s,a;for(r=0;r>16&255,o>>8&255,o&255]}return e}let Sp;function Fde(e){Sp||(Sp=Ide(),Sp.transparent=[0,0,0,0]);const t=Sp[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const $de=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function jde(e){const t=$de.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?Zu(s):hs(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Zu(r):hs(r,0,255)),i=255&(t[4]?Zu(i):hs(i,0,255)),o=255&(t[6]?Zu(o):hs(o,0,255)),{r,g:i,b:o,a:n}}}function Bde(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${mo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Mb=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Al=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function zde(e,t,n){const r=Al(mo(e.r)),i=Al(mo(e.g)),o=Al(mo(e.b));return{r:Ns(Mb(r+n*(Al(mo(t.r))-r))),g:Ns(Mb(i+n*(Al(mo(t.g))-i))),b:Ns(Mb(o+n*(Al(mo(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Cp(e,t,n){if(e){let r=$E(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=BE(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function C8(e,t){return e&&Object.assign(t||{},e)}function FR(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ns(e[3]))):(t=C8(e,{r:0,g:0,b:0,a:1}),t.a=Ns(t.a)),t}function Ude(e){return e.charAt(0)==="r"?jde(e):Lde(e)}class wd{constructor(t){if(t instanceof wd)return t;const n=typeof t;let r;n==="object"?r=FR(t):n==="string"&&(r=Cde(t)||Fde(t)||Ude(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=C8(this._rgb);return t&&(t.a=mo(t.a)),t}set rgb(t){this._rgb=FR(t)}rgbString(){return this._valid?Bde(this._rgb):void 0}hexString(){return this._valid?Tde(this._rgb):void 0}hslString(){return this._valid?Ade(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=zde(this._rgb,t._rgb,n)),this}clone(){return new wd(this.rgb)}alpha(t){return this._rgb.a=Ns(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=dh(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Cp(this._rgb,2,t),this}darken(t){return Cp(this._rgb,2,-t),this}saturate(t){return Cp(this._rgb,1,t),this}desaturate(t){return Cp(this._rgb,1,-t),this}rotate(t){return Dde(this._rgb,t),this}}/*! - * Chart.js v4.1.1 - * https://www.chartjs.org - * (c) 2022 Chart.js Contributors - * Released under the MIT License - */function lo(){}const Vde=(()=>{let e=0;return()=>e++})();function dt(e){return e===null||typeof e>"u"}function Rt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ot(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Xt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Tr(e,t){return Xt(e)?e:t}function Qe(e,t){return typeof e>"u"?t:e}const Hde=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,E8=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Tt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function _t(e,t,n,r){let i,o,s;if(Rt(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function qde(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Gde(e){const t=qde(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Hs(e,t){return($R[t]||($R[t]=Gde(t)))(e)}function zE(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ii=e=>typeof e<"u",Ws=e=>typeof e=="function",jR=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Zde(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Bt=Math.PI,Dt=2*Bt,Kde=Dt+Bt,ty=Number.POSITIVE_INFINITY,Xde=Bt/180,Qt=Bt/2,ga=Bt/4,BR=Bt*2/3,ps=Math.log10,Xi=Math.sign;function Tf(e,t,n){return Math.abs(e-t)i-o).pop(),t}function jc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Jde(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function O8(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function VE(e,t,n){n=n||(s=>e[s]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const wo=(e,t,n,r)=>VE(e,n,r?i=>{const o=e[i][t];return oe[i][t]VE(e,n,r=>e[r][t]>=n);function rhe(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+zE(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function VR(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(k8.forEach(o=>{delete e[o]}),delete e._chartjs)}function M8(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function N8(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,R8.call(window,()=>{r=!1,e.apply(t,n)}))}}function ohe(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const HE=e=>e==="start"?"left":e==="end"?"right":"center",Qn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,she=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function L8(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:f,minDefined:h,maxDefined:p}=s.getUserBounds();h&&(i=On(Math.min(wo(a,s.axis,c).lo,n?r:wo(t,l,s.getPixelForValue(c)).lo),0,r-1)),p?o=On(Math.max(wo(a,s.axis,f,!0).hi+1,n?0:wo(t,l,s.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function D8(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Ep=e=>e===0||e===1,HR=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Dt/n)),WR=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Dt/n)+1,Of={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Qt)+1,easeOutSine:e=>Math.sin(e*Qt),easeInOutSine:e=>-.5*(Math.cos(Bt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ep(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ep(e)?e:HR(e,.075,.3),easeOutElastic:e=>Ep(e)?e:WR(e,.075,.3),easeInOutElastic(e){return Ep(e)?e:e<.5?.5*HR(e*2,.1125,.45):.5+.5*WR(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Of.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Of.easeInBounce(e*2)*.5:Of.easeOutBounce(e*2-1)*.5+.5};function A8(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function YR(e){return A8(e)?e:new wd(e)}function Rb(e){return A8(e)?e:new wd(e).saturate(.5).darken(.1).hexString()}const ahe=["x","y","borderWidth","radius","tension"],lhe=["color","borderColor","backgroundColor"];function che(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:lhe},numbers:{type:"number",properties:ahe}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function uhe(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const qR=new Map;function fhe(e,t){t=t||{};const n=e+JSON.stringify(t);let r=qR.get(n);return r||(r=new Intl.NumberFormat(e,t),qR.set(n,r)),r}function hh(e,t,n){return fhe(t,n).format(e)}const I8={values(e){return Rt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=dhe(e,n)}const s=ps(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),hh(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(ps(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?I8.numeric.call(this,e,t,n):""}};function dhe(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var P_={formatters:I8};function hhe(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:P_.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ol=Object.create(null),ux=Object.create(null);function Pf(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Rb(i.backgroundColor),this.hoverBorderColor=(r,i)=>Rb(i.borderColor),this.hoverColor=(r,i)=>Rb(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Nb(this,t,n)}get(t){return Pf(this,t)}describe(t,n){return Nb(ux,t,n)}override(t,n){return Nb(ol,t,n)}route(t,n,r,i){const o=Pf(this,t),s=Pf(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return ot(l)?Object.assign({},c,l):Qe(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var ln=new phe({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[che,uhe,hhe]);function mhe(e){return!e||dt(e.size)||dt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ny(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function ghe(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let l,c,f,h,p;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function Cd(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,_he(e,o),l=0;l+e||0;function WE(e,t){const n={},r=ot(t),i=r?Object.keys(t):t,o=ot(e)?r?s=>Qe(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=Ehe(o(s));return n}function $8(e){return WE(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ua(e){return WE(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ir(e){const t=$8(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function bn(e,t){e=e||{},t=t||ln.font;let n=Qe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Qe(e.style,t.style);r&&!(""+r).match(She)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Qe(e.family,t.family),lineHeight:Che(Qe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Qe(e.weight,t.weight),string:""};return i.string=mhe(i),i}function Ku(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;on&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function ra(e,t){return Object.assign(Object.create(e),t)}function YE(e,t=[""],n=e,r,i=()=>e[0]){ii(r)||(r=U8("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>YE([s,...e],t,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return B8(s,a,()=>Dhe(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return KR(s).includes(a)},ownKeys(s){return KR(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function Bc(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:j8(e,r),setContext:o=>Bc(e,o,n,r),override:o=>Bc(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return B8(o,s,()=>Phe(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function j8(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Ws(n)?n:()=>n,isIndexable:Ws(r)?r:()=>r}}const Ohe=(e,t)=>e?e+zE(t):t,qE=(e,t)=>ot(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function B8(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Phe(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return Ws(a)&&s.isScriptable(t)&&(a=khe(t,a,e,n)),Rt(a)&&a.length&&(a=Mhe(t,a,e,s.isIndexable)),qE(t,a)&&(a=Bc(a,i,o&&o[t],s)),a}function khe(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(o,s||r),a.delete(e),qE(e,t)&&(t=GE(i._scopes,i,e,t)),t}function Mhe(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(ii(o.index)&&r(e))t=t[o.index%t.length];else if(ot(t[0])){const l=t,c=i._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=GE(c,i,e,f);t.push(Bc(h,o,s&&s[e],a))}}return t}function z8(e,t,n){return Ws(e)?e(t,n):e}const Rhe=(e,t)=>e===!0?t:typeof e=="string"?Hs(t,e):void 0;function Nhe(e,t,n,r,i){for(const o of t){const s=Rhe(n,o);if(s){e.add(s);const a=z8(s._fallback,n,i);if(ii(a)&&a!==n&&a!==r)return a}else if(s===!1&&ii(r)&&n!==r)return null}return!1}function GE(e,t,n,r){const i=t._rootScopes,o=z8(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=ZR(a,s,n,o||n,r);return l===null||ii(o)&&o!==n&&(l=ZR(a,s,o,l,r),l===null)?!1:YE(Array.from(a),[""],i,o,()=>Lhe(t,n,r))}function ZR(e,t,n,r,i){for(;n;)n=Nhe(e,t,n,r,i);return n}function Lhe(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Rt(i)&&ot(n)?n:i||{}}function Dhe(e,t,n,r){let i;for(const o of t)if(i=U8(Ohe(o,e),n),ii(i))return qE(e,i)?GE(n,r,e,i):i}function U8(e,t){for(const n of t){if(!n)continue;const r=n[e];if(ii(r))return r}}function KR(e){let t=e._keys;return t||(t=e._keys=Ahe(e._scopes)),t}function Ahe(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function V8(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new Array(r);let a,l,c,f;for(a=0,l=r;ate==="x"?"y":"x";function Fhe(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=cx(o,i),l=cx(s,o);let c=a/(a+l),f=l/(a+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=r*c,p=r*f;return{previous:{x:o.x-h*(s.x-i.x),y:o.y-h*(s.y-i.y)},next:{x:o.x+p*(s.x-i.x),y:o.y+p*(s.y-i.y)}}}function $he(e,t,n){const r=e.length;let i,o,s,a,l,c=zc(e,0);for(let f=0;f!c.skip)),t.cubicInterpolationMode==="monotone")Bhe(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,s=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function Vhe(e,t){return R_(e).getPropertyValue(t)}const Hhe=["top","right","bottom","left"];function Va(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=Hhe[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Whe=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Yhe(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(Whe(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function Ta(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=R_(n),o=i.boxSizing==="border-box",s=Va(i,"padding"),a=Va(i,"border","width"),{x:l,y:c,box:f}=Yhe(e,n),h=s.left+(f&&a.left),p=s.top+(f&&a.top);let{width:m,height:g}=t;return o&&(m-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-h)/m*n.width/r),y:Math.round((c-p)/g*n.height/r)}}function qhe(e,t,n){let r,i;if(t===void 0||n===void 0){const o=ZE(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=R_(o),l=Va(a,"border","width"),c=Va(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=ry(a.maxWidth,o,"clientWidth"),i=ry(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||ty,maxHeight:i||ty}}const Op=e=>Math.round(e*10)/10;function Ghe(e,t,n,r){const i=R_(e),o=Va(i,"margin"),s=ry(i.maxWidth,e,"clientWidth")||ty,a=ry(i.maxHeight,e,"clientHeight")||ty,l=qhe(e,t,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=Va(i,"border","width"),m=Va(i,"padding");c-=m.width+p.width,f-=m.height+p.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?c/r:f-o.height),c=Op(Math.min(c,s,l.maxWidth)),f=Op(Math.min(f,a,l.maxHeight)),c&&!f&&(f=Op(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&f>l.height&&(f=l.height,c=Op(Math.floor(f*r))),{width:c,height:f}}function XR(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Zhe=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function QR(e,t){const n=Vhe(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Oa(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Khe(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Xhe(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=Oa(e,i,n),a=Oa(i,o,n),l=Oa(o,t,n),c=Oa(s,a,n),f=Oa(a,l,n);return Oa(c,f,n)}const Qhe=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},Jhe=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function vc(e,t,n){return e?Qhe(t,n):Jhe()}function Y8(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function q8(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function G8(e){return e==="angle"?{between:Sd,compare:ehe,normalize:Pr}:{between:bo,compare:(t,n)=>t-n,normalize:t=>t}}function JR({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function epe(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=G8(r),l=t.length;let{start:c,end:f,loop:h}=e,p,m;if(h){for(c+=l,f+=l,p=0,m=l;pl(i,x,_)&&a(i,x)!==0,P=()=>a(o,_)===0||l(o,x,_),k=()=>v||E(),N=()=>!v||P();for(let D=f,U=f;D<=h;++D)b=t[D%s],!b.skip&&(_=c(b[r]),_!==x&&(v=l(_,i,o),w===null&&k()&&(w=a(_,i)===0?D:U),w!==null&&N()&&(g.push(JR({start:w,end:D,loop:p,count:s,style:m})),w=null),U=D,x=_));return w!==null&&g.push(JR({start:w,end:h,loop:p,count:s,style:m})),g}function K8(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function npe(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function rpe(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=tpe(n,i,o,r);if(r===!0)return eN(e,[{start:s,end:a,loop:o}],n,t);const l=aa({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=R8.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var co=new spe;const nN="transparent",ape={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=YR(e||nN),i=r.valid&&YR(t||nN);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class lpe{constructor(t,n,r,i){const o=n[r];i=Ku([t.to,i,o,t.from]);const s=Ku([t.from,o,i]);this._active=!0,this._fn=t.fn||ape[t.type||typeof s],this._easing=Of[t.easing]||Of.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ku([t.to,n,i,t.from]),this._from=Ku([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!ot(o))return;const s={};for(const a of n)s[a]=o[a];(Rt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=upe(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&cpe(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const f=n[c];let h=o[c];const p=r.get(c);if(h)if(p&&h.active()){h.update(p,f,a);continue}else h.cancel();if(!p||!p.duration){t[c]=f;continue}o[c]=h=new lpe(p,t,c,f),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return co.add(this._chart,r),!0}}function cpe(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function aN(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,f=ppe(o,s,r),h=t.length;let p;for(let m=0;mn[r].axis===t).shift()}function vpe(e,t){return ra(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function ype(e,t,n){return ra(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Du(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Db=e=>e==="reset"||e==="none",lN=(e,t)=>t?e:Object.assign({},e),_pe=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Q8(n,!0),values:null};class Oi{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=oN(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Du(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,m,g)=>h==="x"?p:h==="r"?g:m,o=n.xAxisID=Qe(r.xAxisID,Lb(t,"x")),s=n.yAxisID=Qe(r.yAxisID,Lb(t,"y")),a=n.rAxisID=Qe(r.rAxisID,Lb(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),f=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&VR(this._data,this),t._stacked&&Du(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ot(n))this._data=hpe(n);else if(r!==n){if(r){VR(r,this);const i=this._cachedMeta;Du(i),i._parsed=[]}n&&Object.isExtensible(n)&&ihe(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=oN(n.vScale,n),n.stack!==r.stack&&(i=!0,Du(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&aN(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],f,h,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{Rt(i[t])?p=this.parseArrayData(r,i,t,n):ot(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]v||h=0;--p)if(!g()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(p,m,g,h);return v.$shared&&(v.$shared=l,o[s]=Object.freeze(lN(v,l))),v}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,n),p=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(p,this.getContext(t,r,n))}const c=new X8(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Db(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){Db(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Db(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;ai-o))}return e._cache.$bar}function wpe(e){const t=e.iScale,n=bpe(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(ii(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function J8(e,t,n,r){return Rt(e)?Cpe(e,t,n,r):t[n.axis]=n.parse(e,r),t}function cN(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let c,f,h,p;for(c=n,f=n+r;c=n?1:-1)}function Tpe(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.basel.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),f=c&&c[l.vScale.axis];if(dt(f)||isNaN(f))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),c=s._custom;return{label:r[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),f=s.axis,h=a.axis;for(let p=n;pSd(x,a,l,!0)?1:Math.max(E,E*n,P,P*n),g=(x,E,P)=>Sd(x,a,l,!0)?-1:Math.min(E,E*n,P,P*n),v=m(0,c,h),w=m(Qt,f,p),_=g(Bt,c,h),b=g(Bt+Qt,f,p);r=(v-_)/2,i=(w-b)/2,o=-(v+_)/2,s=-(w+b)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class ms extends Oi{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(ot(r[t])){const{key:l="value"}=this._parsing;o=c=>+Hs(r[c],l)}let s,a;for(s=t,a=t+n;s0&&!isNaN(t)?Dt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=hh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"}),Se(ms,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Mf extends Oi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=L8(n,i,s);this._drawStart=a,this._drawCount=l,D8(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,i),p=s.axis,m=a.axis,{spanGaps:g,segment:v}=this.options,w=jc(g)?g:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||o||i==="none",b=n+r,x=t.length;let E=n>0&&this.getParsed(n-1);for(let P=0;P=b){N.skip=!0;continue}const D=this.getParsed(P),U=dt(D[m]),A=N[p]=s.getPixelForValue(D[p],P),Y=N[m]=o||U?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,D,l):D[m],P);N.skip=isNaN(A)||isNaN(Y)||U,N.stop=P>0&&Math.abs(D[p]-E[p])>w,v&&(N.parsed=D,N.raw=c.data[P]),h&&(N.options=f||this.resolveDataElementOptions(P,k.active?"active":i)),_||this.updateElement(k,P,N,i),E=D}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Se(Mf,"id","line"),Se(Mf,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Se(Mf,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Rf extends Oi{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=hh(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return V8.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,f=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*Bt;let m=p,g;const v=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?wi(this.resolveDataElementOptions(t,n).angle||r):0}}Se(Rf,"id","polarArea"),Se(Rf,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Se(Rf,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((o,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class dx extends ms{}Se(dx,"id","pie"),Se(dx,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class eg extends Oi{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return V8.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let E=n;E0&&Math.abs(k[m]-x[m])>_,w&&(N.parsed=k,N.raw=c.data[E]),p&&(N.options=h||this.resolveDataElementOptions(E,P.active?"active":i)),b||this.updateElement(P,E,N,i),x=k}this.updateSharedOptions(h,i,f)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}Se(tg,"id","scatter"),Se(tg,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Se(tg,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var Rpe=Object.freeze({__proto__:null,BarController:kf,BubbleController:Jm,DoughnutController:ms,LineController:Mf,PolarAreaController:Rf,PieController:dx,RadarController:eg,ScatterController:tg});function ya(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class KE{static override(t){Object.assign(KE.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return ya()}parse(){return ya()}format(){return ya()}add(){return ya()}diff(){return ya()}startOf(){return ya()}endOf(){return ya()}}var Npe={_date:KE};function Lpe(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const l=a._reversePixels?nhe:wo;if(r){if(i._sharedOptions){const c=o[0],f=typeof c.getRange=="function"&&c.getRange(t);if(f){const h=l(o,t,n-f),p=l(o,t,n+f);return{lo:h.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function ph(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a{l[s](t[n],i)&&(o.push({element:l,datasetIndex:c,index:f}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var Fpe={evaluateInteractionItems:ph,modes:{index(e,t,n,r){const i=Ta(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?Ib(e,i,o,r,s):Fb(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=a[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(e,t,n,r){const i=Ta(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?Ib(e,i,o,r,s):Fb(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let f=0;fn.pos===t)}function hN(e,t){return e.filter(n=>eF.indexOf(n.pos)===-1&&n.box.axis===t)}function Iu(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function $pe(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Iu(Au(t,"left"),!0),i=Iu(Au(t,"right")),o=Iu(Au(t,"top"),!0),s=Iu(Au(t,"bottom")),a=hN(t,"x"),l=hN(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:Au(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function pN(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function tF(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Upe(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!ot(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,e[i]+=n.size}o.getPadding&&tF(s,o.getPadding());const a=Math.max(0,t.outerWidth-pN(s,e,"left","right")),l=Math.max(0,t.outerHeight-pN(s,e,"top","bottom")),c=a!==e.w,f=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function Vpe(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Hpe(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function Xu(e,t,n,r){const i=[];let o,s,a,l,c,f;for(o=0,s=e.length,c=0;o{typeof v.beforeLayout=="function"&&v.beforeLayout()});const f=l.reduce((v,w)=>w.box.options&&w.box.options.display===!1?v:v+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},i);tF(p,ir(r));const m=Object.assign({maxPadding:p,w:o,h:s,x:i.left,y:i.top},i),g=Bpe(l.concat(c),h);Xu(a.fullSize,m,h,g),Xu(l,m,h,g),Xu(c,m,h,g)&&Xu(l,m,h,g),Vpe(m),mN(a.leftAndTop,m,h,g),m.x+=m.w,m.y+=m.h,mN(a.rightAndBottom,m,h,g),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},_t(a.chartArea,v=>{const w=v.box;Object.assign(w,e.chartArea),w.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class nF{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class Wpe extends nF{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ng="$chartjs",Ype={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},gN=e=>e===null||e==="";function qpe(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[ng]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",gN(i)){const o=QR(e,"width");o!==void 0&&(e.width=o)}if(gN(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=QR(e,"height");o!==void 0&&(e.height=o)}return e}const rF=Zhe?{passive:!0}:!1;function Gpe(e,t,n){e.addEventListener(t,n,rF)}function Zpe(e,t,n){e.canvas.removeEventListener(t,n,rF)}function Kpe(e,t){const n=Ype[e.type]||e.type,{x:r,y:i}=Ta(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function iy(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Xpe(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||iy(a.addedNodes,r),s=s&&!iy(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Qpe(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||iy(a.removedNodes,r),s=s&&!iy(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Td=new Map;let vN=0;function iF(){const e=window.devicePixelRatio;e!==vN&&(vN=e,Td.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Jpe(e,t){Td.size||window.addEventListener("resize",iF),Td.set(e,t)}function eme(e){Td.delete(e),Td.size||window.removeEventListener("resize",iF)}function tme(e,t,n){const r=e.canvas,i=r&&ZE(r);if(!i)return;const o=N8((a,l)=>{const c=i.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return s.observe(i),Jpe(e,o),s}function $b(e,t,n){n&&n.disconnect(),t==="resize"&&eme(e)}function nme(e,t,n){const r=e.canvas,i=N8(o=>{e.ctx!==null&&n(Kpe(o,e))},e);return Gpe(r,t,i),i}class rme extends nF{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(qpe(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[ng])return!1;const r=n[ng].initial;["height","width"].forEach(o=>{const s=r[o];dt(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[ng],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),s={attach:Xpe,detach:Qpe,resize:tme}[n]||nme;i[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:$b,detach:$b,resize:$b}[n]||Zpe)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Ghe(t,n,r,i)}isAttached(t){const n=ZE(t);return!!(n&&n.isConnected)}}function ime(e){return!W8()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Wpe:rme}var Vp;let Vo=(Vp=class{constructor(){Se(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return jc(this.x)&&jc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},Se(Vp,"defaults",{}),Se(Vp,"defaultRoutes"),Vp);function ome(e,t){const n=e.options.ticks,r=sme(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?lme(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return cme(t,c,o,s/i),c;const f=ame(o,t,i);if(s>0){let h,p;const m=s>1?Math.round((l-a)/(s-1)):null;for(kp(t,c,f,dt(m)?0:a-m,a),h=0,p=s-1;hi)return l}return Math.max(i,1)}function lme(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,yN=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function _N(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;os+a)))return l}function hme(e,t){_t(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:Tr(n,Tr(r,n)),max:Tr(r,Tr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Tt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=The(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,m=On(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),l=this.maxHeight-Fu(t.grid)-n.padding-bN(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),s=UE(Math.min(Math.asin(On((f.highest.height+6)/a,-1,1)),Math.asin(On(l/c,-1,1))-Math.asin(On(p/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Tt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Tt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=bN(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Fu(o)+l):(t.height=this.maxHeight,t.width=Fu(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),m=r.padding*2,g=wi(this.labelRotation),v=Math.cos(g),w=Math.sin(g);if(a){const _=r.mirror?0:w*h.width+v*p.height;t.height=Math.min(this.maxHeight,t.height+_+m)}else{const _=r.mirror?0:v*h.width+w*p.height;t.width=Math.min(this.maxWidth,t.width+_+m)}this._calculatePadding(c,f,w,v)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,m=0;l?c?(p=i*t.width,m=r*n.height):(p=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?p=t.width:o!=="inner"&&(p=t.width/2,m=n.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+s)*this.width/(this.width-h),0)}else{let f=n.height/2,h=t.height/2;o==="start"?(f=0,h=t.height):o==="end"&&(f=n.height,h=0),this.paddingTop=f+s,this.paddingBottom=h+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Tt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:o[N]||0,height:s[N]||0});return{first:k(0),last:k(n-1),widest:k(E),highest:k(P),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return the(this._alignToPixels?va(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=Fu(o),m=[],g=a.setContext(this.getContext()),v=g.display?g.width:0,w=v/2,_=function(ne){return va(r,ne,v)};let b,x,E,P,k,N,D,U,A,Y,q,ee;if(s==="top")b=_(this.bottom),N=this.bottom-p,U=b-w,Y=_(t.top)+w,ee=t.bottom;else if(s==="bottom")b=_(this.top),Y=t.top,ee=_(t.bottom)-w,N=b+w,U=this.top+p;else if(s==="left")b=_(this.right),k=this.right-p,D=b-w,A=_(t.left)+w,q=t.right;else if(s==="right")b=_(this.left),A=t.left,q=_(t.right)-w,k=b+w,D=this.left+p;else if(n==="x"){if(s==="center")b=_((t.top+t.bottom)/2+.5);else if(ot(s)){const ne=Object.keys(s)[0],le=s[ne];b=_(this.chart.scales[ne].getPixelForValue(le))}Y=t.top,ee=t.bottom,N=b+w,U=N+p}else if(n==="y"){if(s==="center")b=_((t.left+t.right)/2);else if(ot(s)){const ne=Object.keys(s)[0],le=s[ne];b=_(this.chart.scales[ne].getPixelForValue(le))}k=b-w,D=k-p,A=t.left,q=t.right}const Z=Qe(i.ticks.maxTicksLimit,h),te=Math.max(1,Math.ceil(h/Z));for(x=0;xo.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");ln.route(o,i,l,a)})}function bme(e){return"id"in e&&"defaults"in e}class wme{constructor(){this.controllers=new Mp(Oi,"datasets",!0),this.elements=new Mp(Vo,"elements"),this.plugins=new Mp(Object,"plugins"),this.scales=new Mp(pl,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):_t(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=zE(t);Tt(r["before"+i],[],r),n[t](r),Tt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function Sme(e){const t={},n=[],r=Object.keys(Bi.plugins.items);for(let o=0;o1&&oy(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function Mme(e,t){const n=ol[e.type]||{scales:{}},r=t.scales||{},i=hx(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!ot(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=oy(s,a),c=Pme(l,i),f=n.scales||{};o[s]=Ef(Object.create(null),[{axis:l},a,f[l],f[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||hx(a,t),f=(ol[a]||{}).scales||{};Object.keys(f).forEach(h=>{const p=Ome(h,l),m=s[p+"AxisID"]||p;o[m]=o[m]||Object.create(null),Ef(o[m],[{axis:p},r[m],f[h]])})}),Object.keys(o).forEach(s=>{const a=o[s];Ef(a,[ln.scales[a.type],ln.scale])}),o}function oF(e){const t=e.options||(e.options={});t.plugins=Qe(t.plugins,{}),t.scales=Mme(e,t)}function sF(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Rme(e){return e=e||{},e.data=sF(e.data),oF(e),e}const wN=new Map,aF=new Set;function Rp(e,t){let n=wN.get(e);return n||(n=t(),wN.set(e,n),aF.add(n)),n}const $u=(e,t,n)=>{const r=Hs(t,n);r!==void 0&&e.add(r)};class Nme{constructor(t){this._config=Rme(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=sF(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),oF(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Rp(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Rp(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Rp(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Rp(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(f=>{t&&(l.add(t),f.forEach(h=>$u(l,t,h))),f.forEach(h=>$u(l,i,h)),f.forEach(h=>$u(l,ol[o]||{},h)),f.forEach(h=>$u(l,ln,h)),f.forEach(h=>$u(l,ux,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),aF.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,ol[n]||{},ln.datasets[n]||{},{type:n},ln,ux]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=xN(this._resolverCache,t,i);let l=s;if(Dme(s,n)){o.$shared=!1,r=Ws(r)?r():r;const c=this.createResolver(t,r,a);l=Bc(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=xN(this._resolverCache,t,r);return ot(n)?Bc(o,n,void 0,i):o}}function xN(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:YE(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const Lme=e=>ot(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Ws(e[n]),!1);function Dme(e,t){const{isScriptable:n,isIndexable:r}=j8(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(Ws(a)||Lme(a))||s&&Rt(a))return!0}return!1}var Ame="4.1.1";const Ime=["top","bottom","left","right","chartArea"];function SN(e,t){return e==="top"||e==="bottom"||Ime.indexOf(e)===-1&&t==="x"}function CN(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function EN(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Tt(n&&n.onComplete,[e],t)}function Fme(e){const t=e.chart,n=t.options.animation;Tt(n&&n.onProgress,[e],t)}function lF(e){return W8()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const rg={},TN=e=>{const t=lF(e);return Object.values(rg).filter(n=>n.canvas===t).pop()};function $me(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function jme(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Bme(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}var Ko;let N_=(Ko=class{static register(...t){Bi.add(...t),ON()}static unregister(...t){Bi.remove(...t),ON()}constructor(t,n){const r=this.config=new Nme(n),i=lF(t),o=TN(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||ime(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,f=l&&l.width;if(this.id=Vde(),this.ctx=a,this.canvas=l,this.width=f,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new xme,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ohe(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],rg[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}co.listen(this,"complete",EN),co.listen(this,"progress",Fme),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return dt(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Bi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():XR(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return GR(this.canvas,this.ctx),this}stop(){return co.stop(this),this}resize(t,n){co.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,XR(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Tt(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};_t(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=oy(s,a),c=l==="r",f=l==="x";return{options:a,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),_t(o,s=>{const a=s.options,l=a.id,c=oy(l,a),f=Qe(a.type,s.dtype);(a.position===void 0||SN(a.position,c)!==SN(s.dposition))&&(a.position=s.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===f)h=r[l];else{const p=Bi.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),_t(i,(s,a)=>{s||delete r[a]}),_t(r,s=>{er.configure(this,s,s.options),er.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,f=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(CN("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_t(this.scales,t=>{er.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!jR(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;$me(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;er.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],_t(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=Bme(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&k_(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&M_(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Cd(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=Fpe.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ra(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);ii(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),co.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};_t(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){_t(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},_t(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[s],index:s}});!Jv(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=Zde(t),c=jme(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Tt(o.onHover,[t,a,this],this),l&&Tt(o.onClick,[t,a,this],this));const f=!Jv(a,i);return(f||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,f}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},Se(Ko,"defaults",ln),Se(Ko,"instances",rg),Se(Ko,"overrides",ol),Se(Ko,"registry",Bi),Se(Ko,"version",Ame),Se(Ko,"getChart",TN),Ko);function ON(){return _t(N_.instances,e=>e._plugins.invalidate())}function zme(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,s,a,r-c,n+c),l>i?(c=i/l,e.arc(o,s,l,n+c,r-c,!0)):e.arc(o,s,i,n+Qt,r-Qt),e.closePath(),e.clip()}function Ume(e){return WE(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Vme(e,t,n,r){const i=Ume(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return On(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:On(i.innerStart,0,s),innerEnd:On(i.innerEnd,0,s)}}function Il(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function sy(e,t,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:f}=t,h=Math.max(t.outerRadius+r+n-c,0),p=f>0?f+r+n+c:0;let m=0;const g=i-l;if(r){const te=f>0?f-r:0,ne=h>0?h-r:0,le=(te+ne)/2,K=le!==0?g*le/(le+r):g;m=(g-K)/2}const v=Math.max(.001,g*h-n/Bt)/h,w=(g-v)/2,_=l+w+m,b=i-w-m,{outerStart:x,outerEnd:E,innerStart:P,innerEnd:k}=Vme(t,p,h,b-_),N=h-x,D=h-E,U=_+x/N,A=b-E/D,Y=p+P,q=p+k,ee=_+P/Y,Z=b-k/q;if(e.beginPath(),o){const te=(U+A)/2;if(e.arc(s,a,h,U,te),e.arc(s,a,h,te,A),E>0){const $=Il(D,A,s,a);e.arc($.x,$.y,E,A,b+Qt)}const ne=Il(q,b,s,a);if(e.lineTo(ne.x,ne.y),k>0){const $=Il(q,Z,s,a);e.arc($.x,$.y,k,b+Qt,Z+Math.PI)}const le=(b-k/p+(_+P/p))/2;if(e.arc(s,a,p,b-k/p,le,!0),e.arc(s,a,p,le,_+P/p,!0),P>0){const $=Il(Y,ee,s,a);e.arc($.x,$.y,P,ee+Math.PI,_-Qt)}const K=Il(N,_,s,a);if(e.lineTo(K.x,K.y),x>0){const $=Il(N,U,s,a);e.arc($.x,$.y,x,_-Qt,U)}}else{e.moveTo(s,a);const te=Math.cos(U)*h+s,ne=Math.sin(U)*h+a;e.lineTo(te,ne);const le=Math.cos(A)*h+s,K=Math.sin(A)*h+a;e.lineTo(le,K)}e.closePath()}function Hme(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){sy(e,t,n,r,l,i);for(let c=0;c=Dt||Sd(o,a,l),v=bo(s,c+p,f+p);return g&&v}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,f=(i+o)/2,h=(s+a+c+l)/2;return{x:n+Math.cos(f)*h,y:r+Math.sin(f)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Dt?Math.floor(r/Dt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(Bt,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,Hme(t,this,c,o,s),Wme(t,this,c,o,s),t.restore()}}Se(ig,"id","arc"),Se(ig,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Se(ig,"defaultRoutes",{backgroundColor:"backgroundColor"});function cF(e,t,n=t){e.lineCap=Qe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Qe(n.borderDash,t.borderDash)),e.lineDashOffset=Qe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Qe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Qe(n.borderWidth,t.borderWidth),e.strokeStyle=Qe(n.borderColor,t.borderColor)}function Yme(e,t,n){e.lineTo(n.x,n.y)}function qme(e){return e.stepped?vhe:e.tension||e.cubicInterpolationMode==="monotone"?yhe:Yme}function uF(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),c=Math.min(o,a),f=ia&&o>a;return{count:r,start:l,loop:t.loop,ilen:c(s+(c?a-E:E))%o,x=()=>{v!==w&&(e.lineTo(f,w),e.lineTo(f,v),e.lineTo(f,_))};for(l&&(m=i[b(0)],e.moveTo(m.x,m.y)),p=0;p<=a;++p){if(m=i[b(p)],m.skip)continue;const E=m.x,P=m.y,k=E|0;k===g?(Pw&&(w=P),f=(h*f+E)/++h):(x(),e.lineTo(E,P),g=k,h=0,v=w=P),_=P}x()}function px(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Zme:Gme}function Kme(e){return e.stepped?Khe:e.tension||e.cubicInterpolationMode==="monotone"?Xhe:Oa}function Xme(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),cF(e,t.options),e.stroke(i)}function Qme(e,t,n,r){const{segments:i,options:o}=t,s=px(t);for(const a of i)cF(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const Jme=typeof Path2D=="function";function ege(e,t,n,r){Jme&&!t.options.segment?Xme(e,t,n,r):Qme(e,t,n,r)}class gs extends Vo{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Uhe(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=rpe(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,s=K8(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=Kme(r);let c,f;for(c=0,f=s.length;ct!=="borderDash"&&t!=="fill"});function PN(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function dF(e){return mx[e%mx.length]}function hF(e){return kN[e%kN.length]}function age(e,t){return e.borderColor=dF(t),e.backgroundColor=hF(t),++t}function lge(e,t){return e.backgroundColor=e.data.map(()=>dF(t++)),t}function cge(e,t){return e.backgroundColor=e.data.map(()=>hF(t++)),t}function uge(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof ms?t=lge(n,t):i instanceof Rf?t=cge(n,t):i&&(t=age(n,t))}}function MN(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var fge={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{options:{elements:r},data:{datasets:i}}=e.config;if(!n.forceOverride&&(MN(i)||r&&MN(r)))return;const o=uge(e);i.forEach(o)}};function dge(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let f=t,h,p,m,g,v;for(s[l++]=e[f],h=0;hm&&(m=g,p=e[b],v=b);s[l++]=p,f=v}return s[l++]=e[c],s}function hge(e,t,n,r){let i=0,o=0,s,a,l,c,f,h,p,m,g,v;const w=[],_=t+n-1,b=e[t].x,E=e[_].x-b;for(s=t;sv&&(v=c,p=s),i=(o*i+a.x)/++o;else{const k=s-1;if(!dt(h)&&!dt(p)){const N=Math.min(h,p),D=Math.max(h,p);N!==m&&N!==k&&w.push({...e[N],x:i}),D!==m&&D!==k&&w.push({...e[D],x:i})}s>0&&k!==m&&w.push(e[k]),w.push(a),f=P,o=0,g=v=c,h=p=m=s}}return w}function pF(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function RN(e){e.data.datasets.forEach(t=>{pF(t)})}function pge(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=On(wo(t,o.axis,s).lo,0,n-1)),c?i=On(wo(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var mge={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){RN(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=e.getDatasetMeta(o),c=s||i.data;if(Ku([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const f=e.scales[l.xAxisID];if(f.type!=="linear"&&f.type!=="time"||e.options.parsing)return;let{start:h,count:p}=pge(l,c);const m=n.threshold||4*r;if(p<=m){pF(i);return}dt(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let g;switch(n.algorithm){case"lttb":g=dge(c,h,p,r,n);break;case"min-max":g=hge(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=g})},destroy(e){RN(e)}};function gge(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:c}=a;c=XE(l,c,i);const f=gx(n,i[l],i[c],a.loop);if(!t.segments){s.push({source:a,target:f,start:i[l],end:i[c]});continue}const h=K8(t,f);for(const p of h){const m=gx(n,o[p.start],o[p.end],p.loop),g=Z8(a,i,m);for(const v of g)s.push({source:v,target:p,start:{[n]:NN(f,m,"start",Math.max)},end:{[n]:NN(f,m,"end",Math.min)}})}}return s}function gx(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Pr(i),o=Pr(o)),{property:e,start:i,end:o}}function vge(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=XE(s,a,i);const l=i[s],c=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function XE(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function NN(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function mF(e,t){let n=[],r=!1;return Rt(e)?(r=!0,n=e):n=vge(e,t),n.length?new gs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function LN(e){return e&&e.fill!==!1}function yge(e,t,n){let i=e[t].fill;const o=[t];let s;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Xt(i))return i;if(s=e[i],!s)return!1;if(s.visible)return i;o.push(i),i=s.fill}return!1}function _ge(e,t,n){const r=Sge(e);if(ot(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Xt(i)&&Math.floor(i)===i?bge(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function bge(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function wge(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ot(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function xge(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ot(e)?r=e.value:r=t.getBaseValue(),r}function Sge(e){const t=e.options,n=t.fill;let r=Qe(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Cge(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=Ege(t,n);a.push(mF({x:null,y:t.bottom},r));for(let l=0;l=0;--s){const a=i[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),r&&a.fill&&zb(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;LN(o)&&zb(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!LN(r)||n.drawTime!=="beforeDatasetDraw"||zb(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const FN=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Ige=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class $N extends Vo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Tt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=bn(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=FN(r,o);let c,f;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(s,o,a,l)+10):(f=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+a;let h=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((g,v)=>{const w=r+n/2+o.measureText(g.text).width;(v===0||c[c.length-1]+w+2*a>s)&&(h+=f,c[c.length-(v>0?0:1)]=0,m+=f,p++),l[v]={left:0,top:m,row:p,width:w,height:i},c[c.length-1]+=w+a}),h}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=s-t;let h=a,p=0,m=0,g=0,v=0;return this.legendItems.forEach((w,_)=>{const{itemWidth:b,itemHeight:x}=Fge(r,n,o,w,i);_>0&&m+x+2*a>f&&(h+=p+a,c.push({width:p,height:m}),g+=p+a,v++,p=m=0),l[_]={left:g,top:m,col:v,width:b,height:x},p=Math.max(p,b),m+=x+a}),h+=p,c.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=vc(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Qn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Qn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=Qn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Qn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;k_(t,this),this._draw(),M_(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=ln.color,l=vc(t.rtl,this.left,this.width),c=bn(s.font),{padding:f}=s,h=c.size,p=h/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:g,boxHeight:v,itemHeight:w}=FN(s,h),_=function(k,N,D){if(isNaN(g)||g<=0||isNaN(v)||v<0)return;i.save();const U=Qe(D.lineWidth,1);if(i.fillStyle=Qe(D.fillStyle,a),i.lineCap=Qe(D.lineCap,"butt"),i.lineDashOffset=Qe(D.lineDashOffset,0),i.lineJoin=Qe(D.lineJoin,"miter"),i.lineWidth=U,i.strokeStyle=Qe(D.strokeStyle,a),i.setLineDash(Qe(D.lineDash,[])),s.usePointStyle){const A={radius:v*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:U},Y=l.xPlus(k,g/2),q=N+p;F8(i,A,Y,q,s.pointStyleWidth&&g)}else{const A=N+Math.max((h-v)/2,0),Y=l.leftForLtr(k,g),q=Ua(D.borderRadius);i.beginPath(),Object.values(q).some(ee=>ee!==0)?Ed(i,{x:Y,y:A,w:g,h:v,radius:q}):i.rect(Y,A,g,v),i.fill(),U!==0&&i.stroke()}i.restore()},b=function(k,N,D){sl(i,D.text,k,N+w/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},x=this.isHorizontal(),E=this._computeTitleHeight();x?m={x:Qn(o,this.left+f,this.right-r[0]),y:this.top+f+E,line:0}:m={x:this.left+f,y:Qn(o,this.top+E+f,this.bottom-n[0].height),line:0},Y8(this.ctx,t.textDirection);const P=w+f;this.legendItems.forEach((k,N)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const D=i.measureText(k.text).width,U=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),A=g+p+D;let Y=m.x,q=m.y;l.setWidth(this.width),x?N>0&&Y+A+f>this.right&&(q=m.y+=P,m.line++,Y=m.x=Qn(o,this.left+f,this.right-r[m.line])):N>0&&q+P>this.bottom&&(Y=m.x=Y+n[m.line].width+f,m.line++,q=m.y=Qn(o,this.top+E+f,this.bottom-n[m.line].height));const ee=l.x(Y);if(_(ee,q,k),Y=she(U,Y+g+p,x?Y+A:this.right,t.rtl),b(l.x(Y),q,k),x)m.x+=A+f;else if(typeof k.text!="string"){const Z=c.lineHeight;m.y+=vF(k,Z)}else m.y+=P}),q8(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=bn(n.font),i=ir(n.padding);if(!n.display)return;const o=vc(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+c,h=Qn(t.align,h,this.right-p);else{const g=this.columnSizes.reduce((v,w)=>Math.max(v,w.height),0);f=c+Qn(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const m=Qn(a,h,h+p);s.textAlign=o.textAlign(HE(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,sl(s,n.text,m,f,r)}_computeTitleHeight(){const t=this.options.title,n=bn(t.font),r=ir(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(bo(t,this.left,this.right)&&bo(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function jge(e,t,n){let r=e;return typeof t.text!="string"&&(r=vF(t,n)),r}function vF(e,t){const n=e.text?e.text.length+.5:0;return t*n}function Bge(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var zge={id:"legend",_element:$N,start(e,t,n){const r=e.legend=new $N({ctx:e.ctx,options:n,chart:e});er.configure(e,r,n),er.addBox(e,r)},stop(e){er.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;er.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),f=ir(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class QE extends Vo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Rt(r.text)?r.text.length:1;this._padding=ir(r.padding);const o=i*bn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,f,h;return this.isHorizontal()?(f=Qn(a,r,o),h=n+t,c=o-r):(s.position==="left"?(f=r+t,h=Qn(a,i,n),l=Bt*-.5):(f=o-t,h=Qn(a,n,i),l=Bt*.5),c=i-n),{titleX:f,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=bn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);sl(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:HE(n.align),textBaseline:"middle",translation:[s,a]})}}function Uge(e,t){const n=new QE({ctx:e.ctx,options:t,chart:e});er.configure(e,n,t),er.addBox(e,n),e.titleBlock=n}var Vge={id:"title",_element:QE,start(e,t,n){Uge(e,n)},stop(e){const t=e.titleBlock;er.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;er.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Np=new WeakMap;var Hge={id:"subtitle",start(e,t,n){const r=new QE({ctx:e.ctx,options:n,chart:e});er.configure(e,r,n),er.addBox(e,r),Np.set(e,r)},stop(e){er.removeBox(e,Np.get(e)),Np.delete(e)},beforeUpdate(e,t,n){const r=Np.get(e);er.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Qu={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function Wge(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function jN(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=bn(t.bodyFont),c=bn(t.titleFont),f=bn(t.footerFont),h=o.length,p=i.length,m=r.length,g=ir(t.padding);let v=g.height,w=0,_=r.reduce((E,P)=>E+P.before.length+P.lines.length+P.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,h&&(v+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),_){const E=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;v+=m*E+(_-m)*l.lineHeight+(_-1)*t.bodySpacing}p&&(v+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let b=0;const x=function(E){w=Math.max(w,n.measureText(E).width+b)};return n.save(),n.font=c.string,_t(e.title,x),n.font=l.string,_t(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?s+2+t.boxPadding:0,_t(r,E=>{_t(E.before,x),_t(E.lines,x),_t(E.after,x)}),b=0,n.font=f.string,_t(e.footer,x),n.restore(),w+=g.width,{width:w,height:v}}function Yge(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function qge(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function Gge(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),qge(c,e,t,n)&&(c="center"),c}function BN(e,t,n){const r=n.yAlign||t.yAlign||Yge(e,n);return{xAlign:n.xAlign||t.xAlign||Gge(e,t,n,r),yAlign:r}}function Zge(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Kge(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function zN(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=Ua(s);let g=Zge(t,a);const v=Kge(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(f,p)+i:a==="right"&&(g+=Math.max(h,m)+i),{x:On(g,0,r.width-t.width),y:On(v,0,r.height-t.height)}}function Lp(e,t,n){const r=ir(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function UN(e){return $i([],uo(e))}function Xge(e,t,n){return ra(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function VN(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const yF={beforeTitle:lo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?yF[t].call(n,r):i}class vx extends Vo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new X8(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Xge(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=pr(r,"beforeTitle",this,t),o=pr(r,"title",this,t),s=pr(r,"afterTitle",this,t);let a=[];return a=$i(a,uo(i)),a=$i(a,uo(o)),a=$i(a,uo(s)),a}getBeforeBody(t,n){return UN(pr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return _t(t,o=>{const s={before:[],lines:[],after:[]},a=VN(r,o);$i(s.before,uo(pr(a,"beforeLabel",this,o))),$i(s.lines,pr(a,"label",this,o)),$i(s.after,uo(pr(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return UN(pr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=pr(r,"beforeFooter",this,t),o=pr(r,"footer",this,t),s=pr(r,"afterFooter",this,t);let a=[];return a=$i(a,uo(i)),a=$i(a,uo(o)),a=$i(a,uo(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;lt.filter(f,h,p,r))),t.itemSort&&(a=a.sort((f,h)=>t.itemSort(f,h,r))),_t(a,f=>{const h=VN(t.callbacks,f);i.push(pr(h,"labelColor",this,f)),o.push(pr(h,"labelPointStyle",this,f)),s.push(pr(h,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=Qu[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=jN(this,r),c=Object.assign({},a,l),f=BN(this.chart,r,c),h=zN(r,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=Ua(a),{x:p,y:m}=t,{width:g,height:v}=n;let w,_,b,x,E,P;return o==="center"?(E=m+v/2,i==="left"?(w=p,_=w-s,x=E+s,P=E-s):(w=p+g,_=w+s,x=E-s,P=E+s),b=w):(i==="left"?_=p+Math.max(l,f)+s:i==="right"?_=p+g-Math.max(c,h)-s:_=this.caretX,o==="top"?(x=m,E=x-s,w=_-s,b=_+s):(x=m+v,E=x+s,w=_+s,b=_-s),P=x),{x1:w,x2:_,x3:b,y1:x,y2:E,y3:P}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=vc(r.rtl,this.x,this.width);for(t.x=Lp(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=bn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;lx!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Ed(t,{x:w,y:v,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Ed(t,{x:_,y:v+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(w,v,c,l),t.strokeRect(w,v,c,l),t.fillStyle=s.backgroundColor,t.fillRect(_,v+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:f}=r,h=bn(r.bodyFont);let p=h.lineHeight,m=0;const g=vc(r.rtl,this.x,this.width),v=function(D){n.fillText(D,g.x(t.x+m),t.y+p/2),t.y+=p+o},w=g.textAlign(s);let _,b,x,E,P,k,N;for(n.textAlign=s,n.textBaseline="middle",n.font=h.string,t.x=Lp(this,w,r),n.fillStyle=r.bodyColor,_t(this.beforeBody,v),m=a&&w!=="right"?s==="center"?c/2+f:c+2+f:0,E=0,k=i.length;E0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=Qu[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=jN(this,t),l=Object.assign({},s,this._size),c=BN(n,t,l),f=zN(t,l,c,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=ir(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),Y8(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),q8(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Jv(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!Jv(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=Qu[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}Se(vx,"positioners",Qu);var Qge={id:"tooltip",_element:vx,positioners:Qu,afterInit(e,t,n){n&&(e.tooltip=new vx({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:yF},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Jge=Object.freeze({__proto__:null,Colors:fge,Decimation:mge,Filler:Age,Legend:zge,SubTitle:Hge,Title:Vge,Tooltip:Qge});const eve=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function tve(e,t,n,r){const i=e.indexOf(t);if(i===-1)return eve(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const nve=(e,t)=>e===null?null:On(Math.round(e),0,t);function HN(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Se(yx,"id","category"),Se(yx,"defaults",{ticks:{callback:HN}});function rve(e,t){const n=[],{bounds:i,step:o,min:s,max:a,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,m=o||1,g=f-1,{min:v,max:w}=t,_=!dt(s),b=!dt(a),x=!dt(c),E=(w-v)/(h+1);let P=zR((w-v)/g/m)*m,k,N,D,U;if(P<1e-14&&!_&&!b)return[{value:v},{value:w}];U=Math.ceil(w/P)-Math.floor(v/P),U>g&&(P=zR(U*P/g/m)*m),dt(l)||(k=Math.pow(10,l),P=Math.ceil(P*k)/k),i==="ticks"?(N=Math.floor(v/P)*P,D=Math.ceil(w/P)*P):(N=v,D=w),_&&b&&o&&Jde((a-s)/o,P/1e3)?(U=Math.round(Math.min((a-s)/P,f)),P=(a-s)/U,N=s,D=a):x?(N=_?s:N,D=b?a:D,U=c-1,P=(D-N)/U):(U=(D-N)/P,Tf(U,Math.round(U),P/1e3)?U=Math.round(U):U=Math.ceil(U));const A=Math.max(UR(P),UR(N));k=Math.pow(10,dt(l)?A:l),N=Math.round(N*k)/k,D=Math.round(D*k)/k;let Y=0;for(_&&(p&&N!==s?(n.push({value:s}),Ni=n?i:l,a=l=>o=r?o:l;if(t){const l=Xi(i),c=Xi(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=rve(i,o);return t.bounds==="ticks"&&O8(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return hh(t,this.chart.options.locale,this.options.ticks.format)}}class _x extends ay{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Xt(t)?t:0,this.max=Xt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=wi(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Se(_x,"id","linear"),Se(_x,"defaults",{ticks:{callback:P_.formatters.numeric}});const Od=e=>Math.floor(ps(e)),_a=(e,t)=>Math.pow(10,Od(e)+t);function YN(e){return e/Math.pow(10,Od(e))===1}function qN(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function ive(e,t){const n=t-e;let r=Od(n);for(;qN(e,t,r)>10;)r++;for(;qN(e,t,r)<10;)r--;return Math.min(r,Od(e))}function ove(e,{min:t,max:n}){t=Tr(e.min,t);const r=[],i=Od(t);let o=ive(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*s)/s,f=Math.floor((t-l)/a/10)*a*10;let h=Math.floor((c-f)/Math.pow(10,o)),p=Tr(e.min,Math.round((l+f+h*Math.pow(10,o))*s)/s);for(;p=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,s=o>=0?1:s),p=Math.round((l+f+h*Math.pow(10,o))*s)/s;const m=Tr(e.max,p);return r.push({value:m,major:YN(m),significand:h}),r}class bx extends pl{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=ay.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Xt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Xt(t)?Math.max(0,t):null,this.max=Xt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Xt(this._userMin)&&(this.min=t===_a(this.min,0)?_a(this.min,-1):_a(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=t?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(_a(r,-1)),s(_a(i,1)))),r<=0&&o(_a(i,-1)),i<=0&&s(_a(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=ove(n,this);return t.bounds==="ticks"&&O8(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":hh(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ps(t),this._valueRange=ps(this.max)-ps(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ps(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Se(bx,"id","logarithmic"),Se(bx,"defaults",{ticks:{callback:P_.formatters.logarithmic,major:{enabled:!0}}});function wx(e){const t=e.ticks;if(t.display&&e.display){const n=ir(t.backdropPadding);return Qe(t.font&&t.font.size,ln.font.size)+n.height}return 0}function sve(e,t,n){return n=Rt(n)?n:[n],{w:ghe(e,t.string,n),h:n.length*t.lineHeight}}function GN(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function ave(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?Bt/o:0;for(let l=0;lt.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function cve(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=wx(o)/2,a=e.drawingArea,l=o.pointLabels.centerPointLabels?Bt/i:0;for(let c=0;c270||n<90)&&(e-=t),e}function hve(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),s=bn(o.font),{x:a,y:l,textAlign:c,left:f,top:h,right:p,bottom:m}=e._pointLabelItems[i],{backdropColor:g}=o;if(!dt(g)){const v=Ua(o.borderRadius),w=ir(o.backdropPadding);n.fillStyle=g;const _=f-w.left,b=h-w.top,x=p-f+w.width,E=m-h+w.height;Object.values(v).some(P=>P!==0)?(n.beginPath(),Ed(n,{x:_,y:b,w:x,h:E,radius:v}),n.fill()):n.fillRect(_,b,x,E)}sl(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function _F(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Dt);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s{const i=Tt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?ave(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=Dt/(this._pointLabels.length||1),r=this.options.startAngle||0;return Pr(t*n+wi(r))}getDistanceFromCenterForValue(t){if(dt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(dt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(h!==0){l=this.getDistanceFromCenterForValue(f.value);const p=this.getContext(h),m=i.setContext(p),g=o.setContext(p);pve(this,m,l,s,g)}}),r.display){for(t.save(),a=s-1;a>=0;a--){const f=r.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:p}=f;!p||!h||(t.lineWidth=p,t.strokeStyle=h,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),f=bn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=f.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=ir(c.backdropPadding);t.fillRect(-s/2-h.left,-o-f.size/2-h.top,s+h.width,f.size+h.height)}sl(t,a.label,0,-o,f,{color:c.color})}),t.restore()}drawTitle(){}}Se(Ju,"id","radialLinear"),Se(Ju,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:P_.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Se(Ju,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Se(Ju,"descriptors",{angleLines:{_fallback:"grid"}});const L_={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},vr=Object.keys(L_);function gve(e,t){return e-t}function ZN(e,t){if(dt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),Xt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(jc(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function KN(e,t,n,r){const i=vr.length;for(let o=vr.indexOf(e);o=vr.indexOf(n);o--){const s=vr[o];if(L_[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return vr[n?vr.indexOf(n):0]}function yve(e){for(let t=vr.indexOf(e)+1,n=vr.length;t=t?n[r]:n[i];e[o]=!0}}function _ve(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function QN(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=On(n,0,s),r=On(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||KN(o.minUnit,n,r,this._getLabelCapacity(n)),a=Qe(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=jc(l)||l===!0,f={};let h=n,p,m;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const g=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,m=0;pv-w).map(v=>+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Tt(s,[t,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&a[l],h=c&&a[c],p=r[n],m=c&&h&&p&&p.major;return this._adapter.format(t,i||(m?h:f))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=wo(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=wo(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class xx extends Pd{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Dp(n,this.min),this._tableRange=Dp(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,f;for(s=0,a=t.length;s=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s2&&arguments[2]!==void 0?arguments[2]:bF;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function Sve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bF;const n={labels:[],datasets:[]};return wF(n,e.labels),xF(n,e.datasets,t),n}function SF(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function Cve(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=e,m=H.useRef(null),g=H.useRef(),v=()=>{m.current&&(g.current=new N_(m.current,{type:s,data:Sve(a,o),options:l&&{...l},plugins:c}),JN(t,g.current))},w=()=>{JN(t,null),g.current&&(g.current.destroy(),g.current=null)};return H.useEffect(()=>{!i&&g.current&&l&&xve(g.current,l)},[i,l]),H.useEffect(()=>{!i&&g.current&&wF(g.current.config.data,a.labels)},[i,a.labels]),H.useEffect(()=>{!i&&g.current&&a.datasets&&xF(g.current.config.data,a.datasets,o)},[i,a.datasets]),H.useEffect(()=>{g.current&&(i?(w(),setTimeout(v)):g.current.update(h))},[i,l,a.labels,a.datasets,h]),H.useEffect(()=>{g.current&&(w(),setTimeout(v))},[s]),H.useEffect(()=>(v(),()=>w()),[]),z.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),f)}const Eve=H.forwardRef(Cve);function JE(e,t){return N_.register(t),H.forwardRef((n,r)=>z.createElement(Eve,Object.assign({},n,{ref:r,type:e})))}const Tve=JE("line",Mf),Ove=JE("bar",kf),Pve=JE("doughnut",ms),kve={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},CF={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},nn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ar={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Xo={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class xe{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=xe.getVersionPrecision(t),o=xe.getVersionPrecision(n);let s=Math.max(i,o),a=0;const l=xe.map([t,n],c=>{const f=s-xe.getVersionPrecision(c),h=c+new Array(f+1).join(".0");return xe.map(h.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]{r[l]=s[l]})}return t}static getBrowserAlias(t){return kve[t]}static getBrowserTypeByAlias(t){return CF[t]||""}}const Ct=/version\/(\d+(\.?_?\d+)+)/i,Mve=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=xe.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=xe.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=xe.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=xe.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=xe.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=xe.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=xe.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=xe.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=xe.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=xe.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=xe.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=xe.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=xe.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=xe.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=xe.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=xe.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=xe.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=xe.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=xe.getFirstMatch(Ct,e)||xe.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=xe.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=xe.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=xe.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=xe.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=xe.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=xe.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=xe.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=xe.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=xe.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=xe.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:xe.getFirstMatch(i,e),version:xe.getSecondMatch(i,e)}}}],Rve=[{test:[/Roku\/DVP/],describe(e){const t=xe.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ar.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=xe.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ar.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=xe.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=xe.getWindowsVersionName(t);return{name:ar.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:ar.iOS},n=xe.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=xe.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=xe.getMacOSVersionName(t),r={name:ar.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=xe.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ar.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=xe.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=xe.getAndroidVersionName(t),r={name:ar.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=xe.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ar.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=xe.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||xe.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||xe.getFirstMatch(/\bbb(\d+)/i,e);return{name:ar.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=xe.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ar.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=xe.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ar.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:ar.Linux}}},{test:[/CrOS/],describe(){return{name:ar.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=xe.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ar.PlayStation4,version:t}}}],Nve=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=xe.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:nn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:nn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:nn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:nn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:nn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:nn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=xe.getFirstMatch(/(ipod|iphone)/i,e);return{type:nn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:nn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:nn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:nn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:nn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:nn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:nn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:nn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:nn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:nn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:nn.tv}}}],Lve=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Xo.Blink};const n=xe.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Xo.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Xo.Trident},n=xe.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Xo.Presto},n=xe.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Xo.Gecko},n=xe.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Xo.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Xo.WebKit},n=xe.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class eL{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=xe.find(Mve,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=xe.find(Rve,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=xe.find(Nve,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=xe.find(Lve,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return xe.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const l=t[a];typeof l=="string"?(i[a]=l,o+=1):typeof l=="object"&&(n[a]=l,r+=1)}),r>0){const a=Object.keys(n),l=xe.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=xe.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const a=Object.keys(i),l=xe.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=xe.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(xe.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! - * Bowser - a browser detector - * https://github.com/lancedikson/bowser - * MIT License | (c) Dustin Diaz 2012-2015 - * MIT License | (c) Denis Demchenko 2015-2019 - */class Dve{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new eL(t,n)}static parse(t){return new eL(t).getResult()}static get BROWSER_MAP(){return CF}static get ENGINE_MAP(){return Xo}static get OS_MAP(){return ar}static get PLATFORMS_MAP(){return nn}}const Ap="Others",Ave=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],Ive=e=>{if(!vi(e))return{browser:Ap,os:Ap};const{browser:{name:t},os:{name:n}}=Dve.parse(e);return{os:n??Ap,browser:t&&Ave.includes(t)?t:Ap}},Fve=e=>{var t;return vi(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},eT=(e,t)=>Object.values({...MA(t,t.map(()=>0)),...e}),Uc=e=>C(l8,{type:"switch",...e}),EF=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},TF=({dataset:e,raw:t})=>`${e.label}: ${_n(`${t}`)}`,$ve=({label:e,raw:t})=>`${e}: ${_n(`${t}`)}`;const tL={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},jve={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},Bve={hourly:wne,daily:pE,weekly:Ene,monthly:uv},tT={hourly:e=>vo(e,"yyyy-MM-dd HH:00"),daily:e=>vo(e,bf),weekly(e){const t=vo(md(e),bf),n=vo(kne(e),bf);return`${t} - ${n}`},monthly:e=>vo(e,"yyyy-MM")},zve=e=>{const t=new Date,n=Lo(e);return Qy([[()=>pE(t,n)<=2,j0("hourly")],[()=>uv(t,n)<=1,j0("daily")],[()=>uv(t,n)<=6,j0("weekly")]])()??"monthly"},nL=(e,t)=>EA(n=>tT[e](Lo(n.date)),t),Uve=(e,t)=>t.reduce((n,r)=>{const i=tT[e](Lo(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),Vve=(e,t)=>{const n=Bve[e],r=tT[e],i=Lo(t[0].date),o=Lo(t[t.length-1].date),s=n(i,o),a=jve[e];return[r(o),...JC(s,l=>r(une(o,a(l))))]},Hve=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=Vve(n,e);return[i,eT(t,i)]},rL=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let Ub=null;const Wve=(e,t,[n],r)=>{if(!r||!n)return;const{index:i}=n;Ub===e[i]?(r([]),Ub=null):(r(e[i]&&t[e[i]]?t[e[i]]:[]),Ub=e[i]??null)},Yve=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,s]=H.useState(t.length>0?zve(t[t.length-1].date):"monthly"),[a,l]=jt(!0),c=H.useRef(null),f=H.useRef(null),h=H.useMemo(()=>Uve(o,t),[o,t]),p=H.useMemo(()=>nL(o,Q1(t)),[o,t]),[m,g]=H.useMemo(()=>Hve(t,p,o,a),[t,o,a]),v=H.useMemo(()=>eT(nL(o,Q1(n)),m),[n,o,m]),w=()=>{const E=rL(g,"Visits",QC);if(n.length===0)return[E];const P=rL(v,r,x6);return[E,P]},_=()=>({labels:m,datasets:w()}),b={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:TF}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:_n}},x:{title:{display:!0,text:tL[o]}}},onHover:EF},x=E=>C(Tve,{ref:E,data:_(),options:b,onClick:P=>Wve(m,h,SF(E.current,P),i)});return V(Cr,{children:[V(tl,{role:"heading",children:[e,C("div",{className:"float-end",children:V(Kd,{children:[C(eu,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),C(dl,{end:!0,children:Object.entries(tL).map(([E,P])=>C(Ve,{active:o===E,onClick:()=>s(E),children:P},E))})]})}),C("div",{className:"float-end me-2",children:C(Uc,{checked:a,onChange:l,children:C("small",{children:"Skip dates with no visits"})})})]}),V(el,{className:"line-chart-card__body",children:[n.length>0&&x(c),n.length===0&&x(f)]})]})};const nT=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!bd(o)&&n(o);return V(v_,{listClassName:ge("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[C(Ps,{disabled:t<=1,children:C(ks,{previous:!0,tag:"span",onClick:i(t-1)})}),W5(t,e).map((o,s)=>C(Ps,{disabled:bd(o),active:t===o,children:C(ks,{role:"link",tag:"span",onClick:i(o),children:Y5(o)})},q5(o,s))),C(Ps,{disabled:t>=e,children:C(ks,{next:!0,tag:"span",onClick:i(t+1)})})]})};const ef=20,qve=({browser:e,os:t,referer:n,country:r,city:i,...o},s)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(s.toLowerCase()),Gve=(e,t)=>t.filter(n=>qve(n,e)),Zve=(e,t)=>RA(t,e),Kve=(e,t,n)=>{const r=t?Gve(t,e):[...e],i=Zve(n,r),o=i.length;return{visitsGroups:ed(ef,i),total:o}},Xve=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var k,N;const o="visits-table__header-cell visits-table__sticky",s=()=>r("(max-width: 767px)").matches,[a,l]=H.useState(s()),[c,f]=H.useState(void 0),[h,p]=H.useState({}),m=H.useMemo(()=>Kve(e,c,h),[c,h]),g=H.useRef(!0),[v,w]=H.useState(1),_=v*ef,b=_-ef,x=8+Number(i),E=D=>()=>p({field:D,dir:e_(D,h.field,h.dir)}),P=D=>C(xf,{currentOrder:h,field:D,className:"visits-table__header-icon"});return H.useEffect(()=>{const D=()=>l(s());return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]),H.useEffect(()=>{w(1),!g.current&&n([]),g.current=!1},[c]),C("div",{className:"table-responsive-md",children:V("table",{className:"table table-bordered table-hover table-sm visits-table",children:[V("thead",{className:"visits-table__header",children:[V("tr",{children:[C("th",{className:`${o} text-center`,onClick:()=>n(t.length0})})}),V("th",{className:`${o} text-center`,onClick:E("potentialBot"),children:[C(je,{icon:lk}),P("potentialBot")]}),V("th",{className:o,onClick:E("date"),children:["Date",P("date")]}),V("th",{className:o,onClick:E("country"),children:["Country",P("country")]}),V("th",{className:o,onClick:E("city"),children:["City",P("city")]}),V("th",{className:o,onClick:E("browser"),children:["Browser",P("browser")]}),V("th",{className:o,onClick:E("os"),children:["OS",P("os")]}),V("th",{className:o,onClick:E("referer"),children:["Referrer",P("referer")]}),i&&V("th",{className:o,onClick:E("visitedUrl"),children:["Visited URL",P("visitedUrl")]})]}),C("tr",{children:C("td",{colSpan:x,className:"p-0",children:C(nh,{noBorder:!0,large:!1,onChange:f})})})]}),V("tbody",{children:[!((k=m.visitsGroups[v-1])!=null&&k.length)&&C("tr",{children:C("td",{colSpan:x,className:"text-center",children:"No visits found with current filtering"})}),(N=m.visitsGroups[v-1])==null?void 0:N.map((D,U)=>{const A=t.includes(D);return V("tr",{style:{cursor:"pointer"},className:ge({"table-active":A}),onClick:()=>n(A?t.filter(Y=>Y!==D):[...t,D]),children:[C("td",{className:"text-center",children:A&&C(je,{icon:nd,className:"text-primary"})}),C("td",{className:"text-center",children:D.potentialBot&&V(Ye,{children:[C(je,{icon:lk,id:`botIcon${U}`}),C(Br,{placement:"right",target:`botIcon${U}`,children:"Potentially a visit from a bot or crawler"})]})}),C("td",{children:C(Qv,{date:D.date})}),C("td",{children:D.country}),C("td",{children:D.city}),C("td",{children:D.browser}),C("td",{children:D.os}),C("td",{children:D.referer}),i&&C("td",{children:D.visitedUrl})]},U)})]}),m.total>ef&&C("tfoot",{children:C("tr",{children:C("td",{colSpan:x,className:"visits-table__footer-cell visits-table__sticky",children:V("div",{className:"row",children:[C("div",{className:"col-md-6",children:C(nT,{pagesCount:Math.ceil(m.total/ef),currentPage:v,setCurrentPage:w,centered:a})}),C("div",{className:ge("col-md-6",{"d-flex align-items-center flex-row-reverse":!a,"text-center mt-3":a}),children:V("div",{children:["Visits ",C("b",{children:_n(b+1)})," to"," ",C("b",{children:_n(PA(_,m.total))})," of"," ",C("b",{children:_n(m.total)})]})})]})})})})]})})};const Qve=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=jt(),[s,a,l]=jt(),[c,f]=H.useState([]),h=y_(),p=v=>t?v.filter(({cityName:w})=>t==null?void 0:t.includes(w)):v,m=()=>{if(!t){f(n),i();return}l()},g=v=>()=>{f(v?p(n):n),i()};return V(Ye,{children:[C(mt,{color:"link",className:"open-map-modal-btn__btn",id:h,onClick:m,children:C(je,{icon:KA})}),C(Br,{placement:"left",target:h,children:"Show in map"}),C(Jc,{isOpen:s,toggle:a,inNavbar:!0,children:V(dl,{end:!0,children:[C(Ve,{onClick:g(!1),children:"Show all locations"}),C(Ve,{onClick:g(!0),children:"Show locations in current page"})]})}),C(b8,{toggle:o,isOpen:r,title:e,locations:c})]})},rT=e=>e.visitedUrl!==void 0,Jve=e=>e.visitedUrl!==void 0,eye=It(nH(e=>rT(e.visit)?"orphanVisits":"regularVisits"),e=>({orphanVisits:[],regularVisits:[],...e})),Ip=(e,t)=>EA(ct(t),e),mh=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&Us(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&Us(r==null?void 0:r.endDate))??void 0,s=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:s}},OF=(e,t)=>!Fo(e)&&vi(e[t]),iL=e=>typeof e=="number"?e:e?parseFloat(e):0,tye=(e,{os:t})=>{e[t]=(e[t]||0)+1},nye=(e,{browser:t})=>{e[t]=(e[t]||0)+1},rye=(e,{referer:t})=>{e[t]=(e[t]||0)+1},PF=e=>(t,n)=>{const i=OF(n,e)?n[e]:"Unknown";t[i]=(t[i]||0)+1},iye=PF("country"),oye=PF("city"),sye=(e,t)=>{if(!OF(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[iL(r),iL(i)]};o.count+=1,e[n]=o},aye=(e,t)=>{if(!Jve(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},kF=e=>e.reduce((t,n)=>(tye(t.os,n),nye(t.browsers,n),rye(t.referrers,n),iye(t.countries,n),oye(t.cities,n),sye(t.citiesForMap,n),aye(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),MF=$d(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,s={date:n,potentialBot:o,...Ive(t),referer:Fve(r),country:(i==null?void 0:i.countryName)||"Unknown",city:(i==null?void 0:i.cityName)||"Unknown",latitude:i==null?void 0:i.latitude,longitude:i==null?void 0:i.longitude};return rT(e)?{...s,type:e.type,visitedUrl:e.visitedUrl}:s}),lye=Object.freeze(Object.defineProperty({__proto__:null,processStatsFromVisits:kF,normalizeVisits:MF},Symbol.toStringTag,{value:"Module"})),cye=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,s=l=>({active:i===l,onClick:()=>e({...t,orphanVisitsType:l===(t==null?void 0:t.orphanVisitsType)?void 0:l})});return V(ta,{text:"Filters",dropdownClassName:n,className:"me-3",right:!0,minWidth:250,children:[C(Ve,{header:!0,children:"Bots:"}),C(Ve,{active:o,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude potential bots"}),r&&V(Ye,{children:[C(Ve,{divider:!0}),C(Ve,{header:!0,children:"Orphan visits type:"}),C(Ve,{...s("base_url"),children:"Base URL"}),C(Ve,{...s("invalid_short_url"),children:"Invalid short URL"}),C(Ve,{...s("regular_404"),children:"Regular 404"})]}),C(Ve,{divider:!0}),C(Ve,{disabled:!vi(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:C("i",{children:"Clear filters"})})]})};const uye=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return C("ul",{className:"doughnut-chart-legend",children:n.map((s,a)=>V("li",{className:"doughnut-chart-legend__item d-flex",children:[C("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[a]??o}}),C("small",{className:"doughnut-chart-legend__item-text flex-fill",children:s})]},s))})},fye=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:Mee()?kee:Pee,borderWidth:2}],dye=(e,t)=>({labels:e,datasets:fye(t)}),hye=H.memo(({stats:e})=>{const[t,n]=H.useState(),r=Ji(e),i=Kc(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:$ve}}}},s=dye(r,i);return V("div",{className:"row",children:[C("div",{className:"col-sm-12 col-md-7",children:C(Pve,{height:300,data:s,options:o,ref:a=>{n(a??void 0)}})}),C("div",{className:"col-sm-12 col-md-5",children:t&&C(uye,{chart:t})})]})});const RF=({title:e,footer:t,children:n})=>V(Cr,{role:"document",children:[C(tl,{className:"chart-card__header",children:typeof e=="function"?e():e}),C(el,{children:n}),t&&C($C,{className:"chart-card__footer--sticky",children:t})]}),oL=({title:e,stats:t})=>C(RF,{title:e,children:C(hye,{stats:t})}),pye=({toggleClassName:e,ranges:t,value:n,setValue:r})=>V(Kd,{children:[C(eu,{caret:!0,color:"link",className:e,children:"Paginate"}),V(dl,{end:!0,children:[t.map(i=>V(Ve,{active:i===n,onClick:()=>r(i),children:[C("b",{children:i})," items per page"]},i)),C(Ve,{divider:!0}),C(Ve,{disabled:n===1/0,onClick:()=>r(1/0),children:C("i",{children:"Clear pagination"})})]})]}),mye=e=>e.startsWith("hidden")?"":e,gye=e=>!!e&&Object.keys(e).length>0,vye=e=>e.length>20?e.length*10:void 0,yye=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:Tee,borderColor:QC,borderWidth:2};return t.every(o=>o===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:Oee,borderColor:x6,borderWidth:2}]},_ye=(e,t,n,r)=>({labels:e,datasets:yye(t,n,r)}),bye=(e,[t],n)=>{!n||!t||n(e[t.index])},wye=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=Ji(e).map(mye),s=Kc(gye(t)?Ji(t).reduce((g,v)=>(g[v]&&(g[v]-=t[v]),g),{...e}):e),a=eT(t??{},o),l=H.useRef(null),c=H.useRef(null),f={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:g})=>g!=="",callbacks:{label:TF}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:_n}},y:{stacked:!0}},onHover:EF,indexAxis:"y"},h=_ye(o,s,a,n),p=vye(o),m=(g,v)=>C(Ove,{ref:v,data:h,options:f,height:p,onClick:w=>bye(o,SF(v.current,w),r)},`${p}_${g}`);return V(Ye,{children:[t!==void 0&&m("with_stats",l),t===void 0&&m("without_stats",c)]})},xye=e=>jg(e)==="String"?EH(e):e,sL=([e])=>e,aL=([,e])=>e,Fp=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...s})=>{const[a,l]=H.useState({}),[c,f]=H.useState(1),[h,p]=H.useState(50),m=(N,D)=>{const U=zg(N),A=a.field?xH(It(a.field===Object.keys(D)[0]?sL:aL,xye),U):U;return!a.dir||a.dir==="ASC"?A:Q1(A)},g=N=>{const D=N[c-1];if(c[`hidden_${A}`,0])]},v=N=>C(nT,{currentPage:c,pagesCount:N,setCurrentPage:f}),w=(N,D,U)=>{const A=m(N,D),Y=A.map(sL),q=U&&zg({...MA(Y,Y.map(()=>0)),...U});if(A.length<=h)return{currentPageStats:Vu(A),currentPageHighlightedStats:q&&Vu(q)};const ee=ed(h,A),Z=q&&ed(h,q);return{currentPageStats:Vu(g(ee)),currentPageHighlightedStats:Z&&Vu(g(Z)),pagination:v(ee.length),max:lue(Math.max(...A.map(aL)))}},{currentPageStats:_,currentPageHighlightedStats:b,pagination:x,max:E}=w(e,r,t&&Object.keys(t).length>0?t:void 0),P=Object.keys(_);return C(RF,{title:()=>V(Ye,{children:[n,C("div",{className:"float-end",children:C(oh,{isButton:!1,right:!0,items:r,order:a,onChange:(N,D)=>{l({field:N,dir:D}),f(1)}})}),o&&Object.keys(e).length>50&&C("div",{className:"float-end",children:C(pye,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:h,setValue:N=>{p(N),f(1)}})}),i&&C("div",{className:"float-end",children:i(x?P:void 0)})]}),footer:x,children:C(wye,{stats:_,highlightedStats:b,max:E,...s})})},Sye=()=>{const e=Io(),{search:t}=Mn(),{filtering:n,domain:r}=H.useMemo(It(()=>fl(t),({startDate:o,endDate:s,orphanVisitsType:a,excludeBots:l,domain:c})=>({domain:c,filtering:{dateRange:o!=null||s!=null?E5(o,s):void 0,visitsFilter:{orphanVisitsType:a,excludeBots:Fo(l)?void 0:l==="true"}}})),[t]);return[n,o=>{const{dateRange:s,visitsFilter:a}=OA(n,o),{excludeBots:l,orphanVisitsType:c}=a,f={startDate:(s==null?void 0:s.startDate)&&Us(s.startDate)||"",endDate:(s==null?void 0:s.endDate)&&Us(s.endDate)||"",excludeBots:l===void 0?void 0:P6(l),orphanVisitsType:c,domain:r},h=zd(f),p=qn(h)?"":`?${h}`;e(p,{replace:!0,relative:"route"})}]},Fl={byTime:{title:"By time",subPath:"by-time",icon:UY},byContext:{title:"By context",subPath:"by-context",icon:iC},byLocation:{title:"By location",subPath:"by-location",icon:KA},list:{title:"List",subPath:"list",icon:ZA}};let $p;const gh=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,settings:i,exportCsv:o,isOrphanVisits:s=!1})=>{var W;const{visits:a,loading:l,loadingLarge:c,error:f,errorData:h,progress:p,fallbackInterval:m}=t,[{dateRange:g,visitsFilter:v},w]=Sye(),_=It(({startDate:G,endDate:re})=>({dateRange:{startDate:G??void 0,endDate:re??void 0}}),w),b=H.useRef(g??m??((W=i.visits)==null?void 0:W.defaultInterval)??"last30Days"),[x,E]=H.useState([]),[P,k]=H.useState(),N=H.useRef(!0),{search:D}=Mn(),U=G=>G?`${G}${D}`:D,A=H.useMemo(()=>MF(a),[a]),{os:Y,browsers:q,referrers:ee,countries:Z,cities:te,citiesForMap:ne,visitedUrls:le}=H.useMemo(()=>kF(A),[A]),K=H.useMemo(()=>{var G;return{...v,excludeBots:v.excludeBots??((G=i.visits)==null?void 0:G.excludeBots)}},[v]),$=Kc(ne),I=G=>{$p=void 0,E(G)},B=G=>re=>{const se=`${G}_${re}`;$p===se?(E([]),k(void 0),$p=void 0):(E(A.filter(vH(G,re))),k(re),$p=se)};H.useEffect(()=>r,[]),H.useEffect(()=>{const G=N.current?g??Ale(b.current):g;n({dateRange:G,filter:K},N.current),N.current=!1},[g,v]),H.useEffect(()=>{var G;m&&b.current===(((G=i.visits)==null?void 0:G.defaultInterval)??"last30Days")&&(b.current=m)},[m]);const ie=()=>c?V(So,{loading:!0,children:["This is going to take a while... :S",C(HC,{value:p,striped:p===100,className:"mt-3"})]}):l?C(So,{loading:!0}):f?C(Lr,{type:"error",children:C(Do,{errorData:h,fallbackMessage:"An error occurred while loading visits :("})}):qn(a)?C(So,{children:"There are no visits matching current filter"}):V(Ye,{children:[C(w8,{fill:!0,children:Object.values(Fl).map(({title:G,icon:re,subPath:se},me)=>V(Cf,{to:U(se),replace:!0,children:[C(je,{icon:re}),C("span",{className:"ms-2 d-none d-sm-inline",children:G})]},me))}),C(ur,{children:V(Gy,{children:[C(yt,{path:Fl.byTime.subPath,element:C("div",{className:"col-12 mt-3",children:C(Yve,{title:"Visits during time",visits:A,highlightedVisits:x,highlightedLabel:P,setSelectedVisits:I})})}),C(yt,{path:Fl.byContext.subPath,element:V(Ye,{children:[C("div",{className:ge("mt-3 col-lg-6",{"col-xl-4":!s}),children:C(oL,{title:"Operating systems",stats:Y})}),C("div",{className:ge("mt-3 col-lg-6",{"col-xl-4":!s}),children:C(oL,{title:"Browsers",stats:q})}),C("div",{className:ge("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:C(Fp,{title:"Referrers",stats:ee,withPagination:!1,highlightedStats:Ip(x,"referer"),highlightedLabel:P,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:B("referer")})}),s&&C("div",{className:"mt-3 col-lg-6",children:C(Fp,{title:"Visited URLs",stats:le,highlightedLabel:P,highlightedStats:Ip(x,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:B("visitedUrl")})})]})}),C(yt,{path:Fl.byLocation.subPath,element:V(Ye,{children:[C("div",{className:"col-lg-6 mt-3",children:C(Fp,{title:"Countries",stats:Z,highlightedStats:Ip(x,"country"),highlightedLabel:P,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:B("country")})}),C("div",{className:"col-lg-6 mt-3",children:C(Fp,{title:"Cities",stats:te,highlightedStats:Ip(x,"city"),highlightedLabel:P,extraHeaderContent:G=>$.length>0&&C(Qve,{modalTitle:"Cities",locations:$,activeCities:G}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:B("city")})})]})}),C(yt,{path:Fl.list.subPath,element:C("div",{className:"col-12",children:C(Xve,{visits:A,selectedVisits:x,setSelectedVisits:I,isOrphanVisits:s})})}),C(yt,{path:"*",element:C(DS,{replace:!0,to:U(Fl.byTime.subPath)})})]})})]});return V(Ye,{children:[e,C("section",{className:"mt-3",children:V("div",{className:"row flex-md-row-reverse",children:[C("div",{className:"col-lg-7 col-xl-6",children:V("div",{className:"d-md-flex",children:[C("div",{className:"flex-fill",children:C(V5,{updatable:!0,disabled:l,initialDateRange:b.current,defaultText:"All visits",onDatesChange:_})}),C(cye,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,selected:K,onChange:G=>w({visitsFilter:G})})]})}),a.length>0&&C("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:V("div",{className:"d-flex",children:[C(u8,{className:"btn-md-block",amount:A.length,onClick:()=>o(A)}),V(mt,{outline:!0,disabled:x.length===0,className:"btn-md-block ms-2",onClick:()=>I([]),children:["Clear selection ",x.length>0&&V(Ye,{children:["(",_n(x.length),")"]})]})]})})]})}),C("section",{className:"mt-3",children:ie()})]})},Cye=({exportVisits:e})=>na(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o,settings:s})=>{const{shortCode:a=""}=Zs(),{search:l}=Mn(),c=ea(),{domain:f}=fl(l),h=(m,g)=>r({shortCode:Km(a),query:{...mh(m),domain:f},doIntervalFallback:g}),p=m=>{var g;return e(`short-url_${(g=n.shortUrl)==null?void 0:g.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,m)};return H.useEffect(()=>{i({shortCode:Km(a),domain:f})},[]),C(gh,{getVisits:h,cancelGetVisits:o,visitsInfo:t,settings:s,exportCsv:p,children:C(bde,{shortUrlDetail:n,shortUrlVisits:t,goBack:c})})},(t,n)=>n.shortCode?[Jr.shortUrlVisits(Km(n.shortCode))]:[]),Eye=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e;return C(fh,{title:V("span",{className:"d-flex align-items-center justify-content-center",children:[C("span",{className:"me-2",children:"Visits for"}),C(RE,{text:i,colorGenerator:n})]}),goBack:t,visits:r})},Tye=(e,{exportVisits:t})=>na(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i,settings:o})=>{const s=ea(),{tag:a=""}=Zs();return C(gh,{getVisits:(f,h)=>n({tag:a,query:mh(f),doIntervalFallback:h}),cancelGetVisits:i,visitsInfo:r,settings:o,exportCsv:f=>t(`tag_${a}_visits.csv`,f),children:C(Eye,{tagVisits:r,goBack:s,colorGenerator:e})})},()=>[Jr.visits]),Oye=({exportVisits:e})=>na(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r,settings:i})=>{const o=ea();return C(gh,{getVisits:(l,c)=>{var f;return t({query:mh(l),orphanVisitsType:(f=l.filter)==null?void 0:f.orphanVisitsType,doIntervalFallback:c})},cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:l=>e("orphan_visits.csv",l),isOrphanVisits:!0,children:C(fh,{title:"Orphan visits",goBack:o,visits:n.visits})})},()=>[Jr.orphanVisits]),Pye=({exportVisits:e})=>na(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r,settings:i})=>{const o=ea();return C(gh,{getVisits:(l,c)=>t({query:mh(l),doIntervalFallback:c}),cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:l=>e("non_orphan_visits.csv",l),children:C(fh,{title:"Non-orphan visits",goBack:o,visits:n.visits})})},()=>[Jr.visits]),NF="shlink/shortUrlVisits",kye={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Mye=e=>ah({typePrefix:`${NF}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getShortUrlVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=lh(r,async l=>o(t,{...l,domain:n.domain}));return[s,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),Rye=e=>ch({name:NF,initialState:kye,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:s}=r;return i.filter(({shortUrl:a,visit:l})=>a&&Sf(a,t,n)&&rh(l.date,o,s))}}),LF="shlink/tagVisits",Nye={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Lye=e=>ah({typePrefix:`${LF}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getTagVisits:o}=e(i),s=async(l,c)=>o(t,{...n,page:l,itemsPerPage:c}),a=lh(r,async l=>o(t,l));return[s,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),Dye=e=>ch({name:LF,initialState:Nye,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:s,visit:a})=>(s==null?void 0:s.tags.includes(t))&&rh(a.date,i,o))}}),DF="shlink/orphanVisits",Aye={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Iye=(e,t)=>!t||t===e.type,Fye=e=>ah({typePrefix:`${DF}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1},i)=>{const{getOrphanVisits:o}=e(i),s=async(l,c)=>o({...n,page:l,itemsPerPage:c}).then(f=>{const h=f.data.filter(p=>rT(p)&&Iye(p,t));return{...f,data:h}}),a=lh(r,o);return[s,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),$ye=e=>ch({name:DF,initialState:Aye,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:s})=>!s&&rh(o.date,r,i))}}),AF="shlink/orphanVisits",jye={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},Bye=e=>ah({typePrefix:`${AF}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1},r)=>{const{getNonOrphanVisits:i}=e(r),o=async(a,l)=>i({...t,page:a,itemsPerPage:l}),s=lh(n,i);return[o,s]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),zye=e=>ch({name:AF,initialState:jye,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>rh(o.date,r,i))}}),IF="shlink/visitsOverview",jp={visitsCount:0,orphanVisitsCount:0,loading:!1,error:!1},Uye=e=>rr(`${IF}/loadVisitsOverview`,(t,{getState:n})=>e(n).getVisitsOverview()),Vye=e=>Gn({name:IF,initialState:jp,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...jp,loading:!0})),t.addCase(e.rejected,()=>({...jp,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...jp,...r})),t.addCase(sh,({visitsCount:n,orphanVisitsCount:r=0,...i},{payload:o})=>{const{createdVisits:s}=o,{regularVisits:a,orphanVisits:l}=eye(s);return{...i,visitsCount:n+a.length,orphanVisitsCount:r+l.length}})}}),Hye=({exportVisits:e})=>na(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r,settings:i})=>{const o=ea(),{domain:s=""}=Zs(),[a,l=a]=s.split("_");return C(gh,{getVisits:(h,p)=>t({domain:l,query:mh(h),doIntervalFallback:p}),cancelGetVisits:r,visitsInfo:n,settings:i,exportCsv:h=>e(`domain_${a}_visits.csv`,h),children:C(fh,{goBack:o,visits:n.visits,title:`"${a}" visits`})})},()=>[Jr.visits]),Wye=(e,t)=>{e.serviceFactory("MapModal",()=>b8),e.serviceFactory("ShortUrlVisits",Cye,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo","settings"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",Tye,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo","settings"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",Hye,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo","settings"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",Oye,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo","settings"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",Pye,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo","settings"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>lye),e.serviceFactory("getShortUrlVisits",Mye,"buildShlinkApiClient"),e.serviceFactory("cancelGetShortUrlVisits",ct("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",Lye,"buildShlinkApiClient"),e.serviceFactory("cancelGetTagVisits",ct("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",Rue,"buildShlinkApiClient"),e.serviceFactory("cancelGetDomainVisits",ct("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",Fye,"buildShlinkApiClient"),e.serviceFactory("cancelGetOrphanVisits",ct("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",Bye,"buildShlinkApiClient"),e.serviceFactory("cancelGetNonOrphanVisits",ct("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>sh),e.serviceFactory("loadVisitsOverview",Uye,"buildShlinkApiClient"),e.serviceFactory("visitsOverviewReducerCreator",Vye,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",ct("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",Nue,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",ct("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",zye,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",ct("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",$ye,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",ct("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",Rye,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",ct("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",Dye,"getTagVisits"),e.serviceFactory("tagVisitsReducer",ct("reducer"),"tagVisitsReducerCreator")};function Yye(e){return z.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},z.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const qye={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},Gye=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class Zye extends z.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=z.createRef(),this.sizer=z.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);Gye.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:o,classNames:s,inputAttributes:a,inputEventHandlers:l,index:c}=this.props;return z.createElement("div",{className:s.searchWrapper},z.createElement("input",Object.assign({},a,l,{ref:this.input,value:n,placeholder:i,className:s.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":c>-1?`${t}-${c}`:null,"aria-expanded":o,style:{width:this.state.inputWidth}})),z.createElement("div",{ref:this.sizer,style:qye},n||i))}}function iT(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function Kye(e){return new RegExp(iT(e),"gi")}function Xye(e){return new RegExp(`(?:^|\\s)${iT(e)}`,"i")}function Qye(e){return new RegExp(`^${iT(e)}$`,"i")}function Jye(e,t){const n=Kye(t);return e.replace(n,"$&")}function e_e({item:e,query:t}){return z.createElement("span",{dangerouslySetInnerHTML:{__html:Jye(e.name,t)}})}function t_e(e){const t=e.suggestionComponent||e_e,n=e.options.map((r,i)=>{const o=`${e.id}-${i}`,s=[];return e.index===i&&s.push(e.classNames.suggestionActive),r.disabled&&s.push(e.classNames.suggestionDisabled),z.createElement("li",{id:o,key:o,role:"option",className:s.join(" "),"aria-disabled":Boolean(r.disabled),onMouseDown:a=>a.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?z.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:z.createElement(t,{item:r,query:e.query}))});return z.createElement("div",{className:e.classNames.suggestions},z.createElement("ul",{role:"listbox",id:e.id},n))}function n_e(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,o=>o===t),i=n[r-1]||n[r+1];i&&i.focus()}const ka={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},FF={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function $F(e,t){return e.findIndex(n=>Qye(t).test(n.name))}function Vb(){if(this.state.query.length>=this.props.minQueryLength){const e=$F(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function r_e(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function i_e(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function o_e(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function s_e(e,t){return Xye(t).test(e.name)}function a_e(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&$F(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class oT extends z.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=z.createRef(),this.input=z.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?Vb.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),Vb.call(this)),t.key===ka.BACKSPACE&&this.props.allowBackspace&&o_e.call(this,t),(t.key===ka.UP_ARROW||t.key===ka.UP_ARROW_COMPAT)&&r_e.call(this,t),(t.key===ka.DOWN_ARROW||t.key===ka.DOWN_ARROW_COMPAT)&&i_e.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&Vb.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&n_e(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||Yye,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},FF,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),z.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},z.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,s)=>z.createElement(t,{key:s,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,s)}))),z.createElement("div",{className:r.search},z.createElement(Zye,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?z.createElement(t_e,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:a_e(t,n)}:null}}oT.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:s_e,suggestionsTransform:null,autoresize:!0,classNames:FF,delimiters:[ka.TAB,ka.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};oT.propTypes={id:S.string,tags:S.arrayOf(S.object),placeholderText:S.string,ariaLabelText:S.string,removeButtonText:S.string,noSuggestionsText:S.string,newTagText:S.string,suggestions:S.arrayOf(S.object),suggestionsFilter:S.func,suggestionsTransform:S.func,autoresize:S.bool,delimiters:S.arrayOf(S.string),onDelete:S.func.isRequired,onAddition:S.func.isRequired,onInput:S.func,onFocus:S.func,onBlur:S.func,onValidate:S.func,minQueryLength:S.number,maxSuggestionsLength:S.number,classNames:S.object,allowNew:S.bool,allowBackspace:S.bool,addOnBlur:S.bool,tagComponent:S.oneOfType([S.func,S.element]),suggestionComponent:S.oneOfType([S.func,S.element]),inputAttributes:S.object};const jF=({tag:e,colorGenerator:t})=>C("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"}),lL=e=>({id:e,name:e}),l_e=e=>({selectedTags:t,onChange:n,placeholder:r,listTags:i,tagsList:o,settings:s,allowNew:a=!0})=>{var h;H.useEffect(()=>{i()},[]);const l=((h=s.shortUrlCreation)==null?void 0:h.tagFilteringMode)??"startsWith",c=({tag:p,onDelete:m})=>C(RE,{colorGenerator:e,text:p.name,clearable:!0,className:"react-tags__tag",onClose:m}),f=({item:p})=>V(Ye,{children:[C(jF,{tag:`${p.name}`,colorGenerator:e}),p.name]});return C(oT,{tags:t.map(lL),tagComponent:c,suggestions:o.tags.filter(p=>!t.includes(p)).map(lL),suggestionComponent:f,allowNew:a,addOnBlur:!0,placeholderText:r??"Add tags to the URL",minQueryLength:1,delimiters:["Enter","Tab",","],suggestionsTransform:l==="includes"?(p,m)=>m.filter(({name:g})=>g.includes(p)):void 0,onDelete:p=>{const m=[...t];m.splice(p,1),n(m)},onAddition:({name:p})=>n([...new Set([...t,...p.toLowerCase().split(",")])])})},c_e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:a,deleted:l,errorData:c}=i;return V(zo,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[C(ro,{toggle:t,className:"text-danger",children:"Delete tag"}),V(Mi,{children:["Are you sure you want to delete tag ",C("b",{children:e}),"?",a&&C(Lr,{type:"error",small:!0,className:"mt-2",children:C(Do,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),V(Js,{children:[C(mt,{color:"link",onClick:t,children:"Cancel"}),C(mt,{color:"danger",disabled:s,onClick:async()=>{await r(e),t()},children:s?"Deleting tag...":"Delete tag"})]})]})};function D_(){return(D_=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Sx(e){var t=H.useRef(e),n=H.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var kd=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&i.current?o(cL(i.current,w,a.current)):v(!1)},g=function(){return v(!1)};function v(w){var _=l.current,b=Cx(i.current),x=w?b.addEventListener:b.removeEventListener;x(_?"touchmove":"mousemove",m),x(_?"touchend":"mouseup",g)}return[function(w){var _=w.nativeEvent,b=i.current;if(b&&(uL(_),!function(E,P){return P&&!Nf(E)}(_,l.current)&&b)){if(Nf(_)){l.current=!0;var x=_.changedTouches||[];x.length&&(a.current=x[0].identifier)}b.focus(),o(cL(b,_,a.current)),v(!0)}},function(w){var _=w.which||w.keyCode;_<37||_>40||(w.preventDefault(),s({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},v]},[s,o]),f=c[0],h=c[1],p=c[2];return H.useEffect(function(){return p},[p]),z.createElement("div",D_({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),sT=function(e){return e.filter(Boolean).join(" ")},UF=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,o=sT(["react-colorful__pointer",e.className]);return z.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},z.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Hn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},u_e=function(e){return m_e(Ex(e))},Ex=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Hn(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Hn(parseInt(e.substring(6,8),16)/255,2):1}},f_e=function(e){return p_e(h_e(e))},d_e=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:Hn(e.h),s:Hn(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Hn(i/2),a:Hn(r,2)}},Tx=function(e){var t=d_e(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},h_e=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),c=o%6;return{r:Hn(255*[r,a,s,s,l,r][c]),g:Hn(255*[l,r,r,a,s,s][c]),b:Hn(255*[s,s,l,r,r,a][c]),a:Hn(i,2)}},Bp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},p_e=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?Bp(Hn(255*i)):"";return"#"+Bp(t)+Bp(n)+Bp(r)+o},m_e=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:Hn(60*(a<0?a+6:a)),s:Hn(o?s/o*100:0),v:Hn(o/255*100),a:i}},g_e=z.memo(function(e){var t=e.hue,n=e.onChange,r=sT(["react-colorful__hue",e.className]);return z.createElement("div",{className:r},z.createElement(zF,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:kd(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":Hn(t),"aria-valuemax":"360","aria-valuemin":"0"},z.createElement(UF,{className:"react-colorful__hue-pointer",left:t/360,color:Tx({h:t,s:100,v:100,a:1})})))}),v_e=z.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Tx({h:t.h,s:100,v:100,a:1})};return z.createElement("div",{className:"react-colorful__saturation",style:r},z.createElement(zF,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:kd(t.s+100*i.left,0,100),v:kd(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Hn(t.s)+"%, Brightness "+Hn(t.v)+"%"},z.createElement(UF,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Tx(t)})))}),VF=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},y_e=function(e,t){return e.toLowerCase()===t.toLowerCase()||VF(Ex(e),Ex(t))};function __e(e,t,n){var r=Sx(n),i=H.useState(function(){return e.toHsva(t)}),o=i[0],s=i[1],a=H.useRef({color:t,hsva:o});H.useEffect(function(){if(!e.equal(t,a.current.color)){var c=e.toHsva(t);a.current={hsva:c,color:t},s(c)}},[t,e]),H.useEffect(function(){var c;VF(o,a.current.hsva)||e.equal(c=e.fromHsva(o),a.current.color)||(a.current={hsva:o,color:c},r(c))},[o,e,r]);var l=H.useCallback(function(c){s(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var b_e=typeof window<"u"?H.useLayoutEffect:H.useEffect,w_e=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},fL=new Map,x_e=function(e){b_e(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!fL.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,fL.set(t,n);var r=w_e();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},S_e=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,o=e.onChange,s=BF(e,["className","colorModel","color","onChange"]),a=H.useRef(null);x_e(a);var l=__e(n,i,o),c=l[0],f=l[1],h=sT(["react-colorful",t]);return z.createElement("div",D_({},s,{ref:a,className:h}),z.createElement(v_e,{hsva:c,onChange:f}),z.createElement(g_e,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},C_e={defaultColor:"000",toHsva:u_e,fromHsva:function(e){return f_e({h:e.h,s:e.s,v:e.v,a:1})},equal:y_e},E_e=function(e){return z.createElement(S_e,D_({},e,{colorModel:C_e}))};const T_e=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:s})=>{const[a,l]=H.useState(t),[c,f]=H.useState(e(t)),[h,p,,m]=jt(),{editing:g,error:v,edited:w,errorData:_}=s,b=Xd(async()=>{await n({oldName:t,newName:a,color:c}),r()}),x=It(m,()=>w&&i({oldName:t,newName:a,color:c}));return C(zo,{isOpen:o,toggle:r,centered:!0,onClosed:x,children:V("form",{name:"editTag",onSubmit:b,children:[C(ro,{toggle:r,children:"Edit tag"}),V(Mi,{children:[V(Zd,{children:[C("div",{id:"colorPickerBtn",className:"input-group-text edit-tag-modal__color-picker-toggle",style:{backgroundColor:c,borderColor:c},onClick:p,children:C(je,{icon:iq,className:"edit-tag-modal__color-icon"})}),C(qd,{isOpen:h,toggle:p,target:"colorPickerBtn",placement:"right",hideArrow:!0,popperClassName:"edit-tag-modal__popover",children:C(E_e,{color:c,onChange:f})}),C(fd,{value:a,placeholder:"Tag",required:!0,onChange:({target:E})=>l(E.value)})]}),v&&C(Lr,{type:"error",small:!0,className:"mt-2",children:C(Do,{errorData:_,fallbackMessage:"Something went wrong while editing the tag :("})})]}),V(Js,{children:[C(mt,{type:"button",color:"link",onClick:r,children:"Cancel"}),C(mt,{color:"primary",disabled:g,children:g?"Saving...":"Save"})]})]})})},HF={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},O_e=e=>na(({filterTags:t,forceListTags:n,tagsList:r,selectedServer:i,settings:o})=>{var h;const[s,a]=H.useState(((h=o.tags)==null?void 0:h.defaultOrdering)??{}),l=It(()=>r.filteredTags.map(p=>{var m,g;return{tag:p,shortUrls:((m=r.stats[p])==null?void 0:m.shortUrlsCount)??0,visits:((g=r.stats[p])==null?void 0:g.visitsCount)??0}}),p=>RA(p,s));if(H.useEffect(()=>{n()},[]),r.loading)return C(So,{loading:!0});if(r.error)return C(Lr,{type:"error",children:C(Do,{errorData:r.errorData,fallbackMessage:"Error loading tags :("})});const c=p=>()=>{const m=e_(p,s.field,s.dir);a({field:m?p:void 0,dir:m})};return V(Ye,{children:[C(nh,{className:"mb-3",onChange:t}),C(ur,{className:"mb-3",children:C("div",{className:"col-lg-6 offset-lg-6",children:C(oh,{items:HF,order:s,onChange:(p,m)=>a({field:p,dir:m})})})}),(()=>{if(r.filteredTags.length<1)return C(So,{children:"No tags found"});const p=l();return C(e,{sortedTags:p,selectedServer:i,currentOrder:s,orderByColumn:c})})()]})},()=>[Jr.visits]),Ox="shlink/tagDelete",P_e={deleting:!1,deleted:!1,error:!1},WF=wn(`${Ox}/tagDeleted`),k_e=e=>{const t=rr(`${Ox}/deleteTag`,async(r,{getState:i})=>{const{deleteTags:o}=e(i);await o([r])}),{reducer:n}=Gn({name:Ox,initialState:P_e,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:no(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},aT="shlink/tagEdit",M_e={editing:!1,edited:!1,error:!1},YF=wn(`${aT}/tagEdited`),R_e=(e,t)=>rr(`${aT}/editTag`,async({oldName:n,newName:r,color:i},{getState:o})=>(await e(o).editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),N_e=e=>Gn({name:aT,initialState:M_e,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:no(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...kA(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),lT="shlink/tagsList",Hb={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},dL=(e,t)=>n=>n===e?t:n,hL=(e,t)=>jd(n=>n===t,e),L_e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const o=n[r];return{...n,[r]:{...o,visitsCount:o.visitsCount+i}}},{...t}),D_e=e=>Object.entries(e.reduce((t,{shortUrl:n})=>(n==null||n.tags.forEach(r=>{t[r]=(t[r]||0)+1}),t),{})),A_e=(e,t=!0)=>rr(`${lT}/listTags`,async(n,{getState:r})=>{const{tagsList:i}=r();if(!t&&!qn(i.tags))return i;const{listTags:o}=e(r),{tags:s,stats:a=[]}=await o(),l=a.reduce((c,{tag:f,shortUrlsCount:h,visitsCount:p})=>(c[f]={shortUrlsCount:h,visitsCount:p},c),{});return{tags:s,stats:l}}),qF=wn(`${lT}/filterTags`),I_e=(e,t)=>Gn({name:lT,initialState:Hb,reducers:{},extraReducers:n=>{n.addCase(qF,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...Hb,error:!0,errorData:no(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...Hb,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(WF,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:hL(r,s),filteredTags:hL(i,s)})),n.addCase(YF,({tags:r,filteredTags:i,stats:o,...s},{payload:a})=>({...s,stats:{...o,[a.newName]:o[a.oldName]},tags:r.map(dL(a.oldName,a.newName)).sort(),filteredTags:i.map(dL(a.oldName,a.newName)).sort()})),n.addCase(sh,(r,{payload:i})=>({...r,stats:L_e(D_e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}});const F_e=20,$_e=e=>({sortedTags:t,selectedServer:n,orderByColumn:r,currentOrder:i})=>{const o=H.useRef(!0),{search:s}=Mn(),{page:a=1}=fl(s),[l,c]=See("page",Number(a)),f=ed(F_e,t),h=f.length>1,p=f[l-1]??[];return H.useEffect(()=>{!o.current&&c(1),o.current=!1},[t]),H.useEffect(()=>{scrollTo(0,0)},[l]),V(vn,{bodyClassName:h?"pb-1":"",children:[V("table",{className:"table table-hover responsive-table mb-0",children:[V("thead",{className:"responsive-table__header",children:[V("tr",{children:[V("th",{className:"tags-table__header-cell",onClick:r("tag"),children:["Tag ",C(xf,{currentOrder:i,field:"tag"})]}),V("th",{className:"tags-table__header-cell text-lg-end",onClick:r("shortUrls"),children:["Short URLs ",C(xf,{currentOrder:i,field:"shortUrls"})]}),V("th",{className:"tags-table__header-cell text-lg-end",onClick:r("visits"),children:["Visits ",C(xf,{currentOrder:i,field:"visits"})]}),C("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),C("tr",{children:C("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),V("tbody",{children:[p.length===0&&C("tr",{children:C("td",{colSpan:4,className:"text-center",children:"No results found"})}),p.map(m=>C(e,{tag:m,selectedServer:n},m.tag))]})]}),h&&C("div",{className:"sticky-card-paginator",children:C(nT,{pagesCount:f.length,currentPage:l,setCurrentPage:c})})]},l)},j_e=(e,t,n)=>({tag:r,selectedServer:i})=>{const[o,s]=jt(),[a,l]=jt(),[c,f]=jt(),h=Bd(i);return V("tr",{className:"responsive-table__row",children:[V("th",{className:"responsive-table__cell","data-th":"Tag",children:[C(jF,{tag:r.tag,colorGenerator:n})," ",r.tag]}),C("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:C(At,{to:`/server/${h}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:_n(r.shortUrls)})}),C("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:C(At,{to:`/server/${h}/tag/${r.tag}/visits`,children:_n(r.visits)})}),C("td",{className:"responsive-table__cell text-lg-end",children:V(O_,{toggle:f,isOpen:c,children:[V(Ve,{onClick:l,children:[C(je,{icon:YY,fixedWidth:!0,className:"me-1"})," Edit"]}),V(Ve,{onClick:s,children:[C(je,{icon:lq,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),C(t,{tag:r.tag,toggle:l,isOpen:a}),C(e,{tag:r.tag,toggle:s,isOpen:o})]})},B_e=(e,t)=>{e.serviceFactory("TagsSelector",l_e,"ColorGenerator"),e.decorator("TagsSelector",t(["tagsList","settings"],["listTags"])),e.serviceFactory("DeleteTagConfirmModal",()=>c_e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",T_e,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",j_e,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",$_e,"TagsTableRow"),e.serviceFactory("TagsList",O_e,"TagsTable"),e.decorator("TagsList",t(["tagsList","selectedServer","mercureInfo","settings"],["forceListTags","filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",N_e,"editTag"),e.serviceFactory("tagEditReducer",ct("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",k_e,"buildShlinkApiClient"),e.serviceFactory("tagDeleteReducer",ct("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",I_e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",ct("reducer"),"tagsListReducerCreator");const n=r=>({buildShlinkApiClient:i})=>A_e(i,r);e.factory("listTags",n(!1)),e.factory("forceListTags",n(!0)),e.serviceFactory("filterTags",()=>qF),e.serviceFactory("deleteTag",ct("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>WF),e.serviceFactory("editTag",R_e,"buildShlinkApiClient","ColorGenerator"),e.serviceFactory("tagEdited",()=>YF)},z_e="shlink",pL=e=>`${z_e}.${e}`;class U_e{constructor(t){Se(this,"get",t=>{const n=this.localStorage.getItem(pL(t));return n?JSON.parse(n):void 0});Se(this,"set",(t,n)=>this.localStorage.setItem(pL(t),JSON.stringify(n)));this.localStorage=t}}const V_e=6,mL="0123456789ABCDEF",H_e=128,{floor:W_e,random:Y_e,sqrt:q_e,round:G_e}=Math,Z_e=()=>`#${JC(V_e,()=>mL[W_e(Y_e()*mL.length)]).join("")}`,gL=e=>e.toLowerCase().trim(),K_e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),X_e=(e=0,t=0,n=0)=>G_e(q_e(.299*e**2+.587*t**2+.114*n**2));class Q_e{constructor(t){Se(this,"colors");Se(this,"lights");Se(this,"getColorForKey",t=>{const n=gL(t),r=this.colors[n];return r||this.setColorForKey(n,Z_e())});Se(this,"setColorForKey",(t,n)=>{const r=gL(t);return this.colors[r]=n,this.storage.set("colors",this.colors),n});Se(this,"isColorLightForKey",t=>{const n=this.getColorForKey(t).substring(1);if(Fo(this.lights[n])){const r=K_e(n);this.lights[n]=X_e(...r)>=H_e}return this.lights[n]});this.storage=t,this.colors=this.storage.get("colors")??{},this.lights={}}}var J_e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,function(a){return r[a]}.bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(g){var v=[];for(var w in g)v.push(w);return v};e.exports=h;var o=n(5);o.inherits=n(2);var s=n(23),a=n(14);o.inherits(h,s);for(var l=i(a.prototype),c=0;c - * @license MIT - */var i=n(38),o=n(39),s=n(40);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(O,R){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|O}function v(O,R){if(c.isBuffer(O))return O.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(O)||O instanceof ArrayBuffer))return O.byteLength;typeof O!="string"&&(O=""+O);var F=O.length;if(F===0)return 0;for(var Q=!1;;)switch(R){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":case void 0:return re(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return se(O).length;default:if(Q)return re(O).length;R=(""+R).toLowerCase(),Q=!0}}function w(O,R,F){var Q=O[R];O[R]=O[F],O[F]=Q}function _(O,R,F,Q,X){if(O.length===0)return-1;if(typeof F=="string"?(Q=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,isNaN(F)&&(F=X?0:O.length-1),F<0&&(F=O.length+F),F>=O.length){if(X)return-1;F=O.length-1}else if(F<0){if(!X)return-1;F=0}if(typeof R=="string"&&(R=c.from(R,Q)),c.isBuffer(R))return R.length===0?-1:b(O,R,F,Q,X);if(typeof R=="number")return R&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?X?Uint8Array.prototype.indexOf.call(O,R,F):Uint8Array.prototype.lastIndexOf.call(O,R,F):b(O,[R],F,Q,X);throw new TypeError("val must be string, number or Buffer")}function b(O,R,F,Q,X){var ae,ve=1,De=O.length,fe=R.length;if(Q!==void 0&&((Q=String(Q).toLowerCase())==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(O.length<2||R.length<2)return-1;ve=2,De/=2,fe/=2,F/=2}function ye(Ne,Le){return ve===1?Ne[Le]:Ne.readUInt16BE(Le*ve)}if(X){var be=-1;for(ae=F;aeDe&&(F=De-fe),ae=F;ae>=0;ae--){for(var Oe=!0,Ae=0;AeX&&(Q=X):Q=X;var ae=R.length;if(ae%2!=0)throw new TypeError("Invalid hex string");Q>ae/2&&(Q=ae/2);for(var ve=0;ve>8,fe=ve%256,ye.push(fe),ye.push(De);return ye}(R,O.length-F),O,F,Q)}function U(O,R,F){return R===0&&F===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(R,F))}function A(O,R,F){F=Math.min(O.length,F);for(var Q=[],X=R;X239?4:ye>223?3:ye>191?2:1;if(X+Oe<=F)switch(Oe){case 1:ye<128&&(be=ye);break;case 2:(192&(ae=O[X+1]))==128&&(fe=(31&ye)<<6|63&ae)>127&&(be=fe);break;case 3:ae=O[X+1],ve=O[X+2],(192&ae)==128&&(192&ve)==128&&(fe=(15&ye)<<12|(63&ae)<<6|63&ve)>2047&&(fe<55296||fe>57343)&&(be=fe);break;case 4:ae=O[X+1],ve=O[X+2],De=O[X+3],(192&ae)==128&&(192&ve)==128&&(192&De)==128&&(fe=(15&ye)<<18|(63&ae)<<12|(63&ve)<<6|63&De)>65535&&fe<1114112&&(be=fe)}be===null?(be=65533,Oe=1):be>65535&&(be-=65536,Q.push(be>>>10&1023|55296),be=56320|1023&be),Q.push(be),X+=Oe}return function(Ae){var Ne=Ae.length;if(Ne<=Y)return String.fromCharCode.apply(String,Ae);for(var Le="",ue=0;uethis.length||((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(F>>>=0))return"";for(R||(R="utf8");;)switch(R){case"hex":return Z(this,F,Q);case"utf8":case"utf-8":return A(this,F,Q);case"ascii":return q(this,F,Q);case"latin1":case"binary":return ee(this,F,Q);case"base64":return U(this,F,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,F,Q);default:if(X)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),X=!0}}.apply(this,arguments)},c.prototype.equals=function(O){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||c.compare(this,O)===0},c.prototype.inspect=function(){var O="",R=t.INSPECT_MAX_BYTES;return this.length>0&&(O=this.toString("hex",0,R).match(/.{2}/g).join(" "),this.length>R&&(O+=" ... ")),""},c.prototype.compare=function(O,R,F,Q,X){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(R===void 0&&(R=0),F===void 0&&(F=O?O.length:0),Q===void 0&&(Q=0),X===void 0&&(X=this.length),R<0||F>O.length||Q<0||X>this.length)throw new RangeError("out of range index");if(Q>=X&&R>=F)return 0;if(Q>=X)return-1;if(R>=F)return 1;if(R>>>=0,F>>>=0,Q>>>=0,X>>>=0,this===O)return 0;for(var ae=X-Q,ve=F-R,De=Math.min(ae,ve),fe=this.slice(Q,X),ye=O.slice(R,F),be=0;beX)&&(F=X),O.length>0&&(F<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");for(var ae=!1;;)switch(Q){case"hex":return x(this,O,R,F);case"utf8":case"utf-8":return E(this,O,R,F);case"ascii":return P(this,O,R,F);case"latin1":case"binary":return k(this,O,R,F);case"base64":return N(this,O,R,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,O,R,F);default:if(ae)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),ae=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Y=4096;function q(O,R,F){var Q="";F=Math.min(O.length,F);for(var X=R;XQ)&&(F=Q);for(var X="",ae=R;aeF)throw new RangeError("Trying to access beyond buffer length")}function le(O,R,F,Q,X,ae){if(!c.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>X||RO.length)throw new RangeError("Index out of range")}function K(O,R,F,Q){R<0&&(R=65535+R+1);for(var X=0,ae=Math.min(O.length-F,2);X>>8*(Q?X:1-X)}function $(O,R,F,Q){R<0&&(R=4294967295+R+1);for(var X=0,ae=Math.min(O.length-F,4);X>>8*(Q?X:3-X)&255}function I(O,R,F,Q,X,ae){if(F+Q>O.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function B(O,R,F,Q,X){return X||I(O,0,F,4),o.write(O,R,F,Q,23,4),F+4}function ie(O,R,F,Q,X){return X||I(O,0,F,8),o.write(O,R,F,Q,52,8),F+8}c.prototype.slice=function(O,R){var F,Q=this.length;if(O=~~O,R=R===void 0?Q:~~R,O<0?(O+=Q)<0&&(O=0):O>Q&&(O=Q),R<0?(R+=Q)<0&&(R=0):R>Q&&(R=Q),R0&&(X*=256);)Q+=this[O+--R]*X;return Q},c.prototype.readUInt8=function(O,R){return R||ne(O,1,this.length),this[O]},c.prototype.readUInt16LE=function(O,R){return R||ne(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUInt16BE=function(O,R){return R||ne(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUInt32LE=function(O,R){return R||ne(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUInt32BE=function(O,R){return R||ne(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readIntLE=function(O,R,F){O|=0,R|=0,F||ne(O,R,this.length);for(var Q=this[O],X=1,ae=0;++ae=(X*=128)&&(Q-=Math.pow(2,8*R)),Q},c.prototype.readIntBE=function(O,R,F){O|=0,R|=0,F||ne(O,R,this.length);for(var Q=R,X=1,ae=this[O+--Q];Q>0&&(X*=256);)ae+=this[O+--Q]*X;return ae>=(X*=128)&&(ae-=Math.pow(2,8*R)),ae},c.prototype.readInt8=function(O,R){return R||ne(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,R){R||ne(O,2,this.length);var F=this[O]|this[O+1]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt16BE=function(O,R){R||ne(O,2,this.length);var F=this[O+1]|this[O]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt32LE=function(O,R){return R||ne(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,R){return R||ne(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readFloatLE=function(O,R){return R||ne(O,4,this.length),o.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,R){return R||ne(O,4,this.length),o.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,R){return R||ne(O,8,this.length),o.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,R){return R||ne(O,8,this.length),o.read(this,O,!1,52,8)},c.prototype.writeUIntLE=function(O,R,F,Q){O=+O,R|=0,F|=0,Q||le(this,O,R,F,Math.pow(2,8*F)-1,0);var X=1,ae=0;for(this[R]=255&O;++ae=0&&(ae*=256);)this[R+X]=O/ae&255;return R+F},c.prototype.writeUInt8=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,1,255,0),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[R]=255&O,R+1},c.prototype.writeUInt16LE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):K(this,O,R,!0),R+2},c.prototype.writeUInt16BE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):K(this,O,R,!1),R+2},c.prototype.writeUInt32LE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R+3]=O>>>24,this[R+2]=O>>>16,this[R+1]=O>>>8,this[R]=255&O):$(this,O,R,!0),R+4},c.prototype.writeUInt32BE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):$(this,O,R,!1),R+4},c.prototype.writeIntLE=function(O,R,F,Q){if(O=+O,R|=0,!Q){var X=Math.pow(2,8*F-1);le(this,O,R,F,X-1,-X)}var ae=0,ve=1,De=0;for(this[R]=255&O;++ae>0)-De&255;return R+F},c.prototype.writeIntBE=function(O,R,F,Q){if(O=+O,R|=0,!Q){var X=Math.pow(2,8*F-1);le(this,O,R,F,X-1,-X)}var ae=F-1,ve=1,De=0;for(this[R+ae]=255&O;--ae>=0&&(ve*=256);)O<0&&De===0&&this[R+ae+1]!==0&&(De=1),this[R+ae]=(O/ve>>0)-De&255;return R+F},c.prototype.writeInt8=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,1,127,-128),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[R]=255&O,R+1},c.prototype.writeInt16LE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8):K(this,O,R,!0),R+2},c.prototype.writeInt16BE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>8,this[R+1]=255&O):K(this,O,R,!1),R+2},c.prototype.writeInt32LE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[R]=255&O,this[R+1]=O>>>8,this[R+2]=O>>>16,this[R+3]=O>>>24):$(this,O,R,!0),R+4},c.prototype.writeInt32BE=function(O,R,F){return O=+O,R|=0,F||le(this,O,R,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),c.TYPED_ARRAY_SUPPORT?(this[R]=O>>>24,this[R+1]=O>>>16,this[R+2]=O>>>8,this[R+3]=255&O):$(this,O,R,!1),R+4},c.prototype.writeFloatLE=function(O,R,F){return B(this,O,R,!0,F)},c.prototype.writeFloatBE=function(O,R,F){return B(this,O,R,!1,F)},c.prototype.writeDoubleLE=function(O,R,F){return ie(this,O,R,!0,F)},c.prototype.writeDoubleBE=function(O,R,F){return ie(this,O,R,!1,F)},c.prototype.copy=function(O,R,F,Q){if(F||(F=0),Q||Q===0||(Q=this.length),R>=O.length&&(R=O.length),R||(R=0),Q>0&&Q=this.length)throw new RangeError("sourceStart out of bounds");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),O.length-R=0;--X)O[X+R]=this[X+F];else if(ae<1e3||!c.TYPED_ARRAY_SUPPORT)for(X=0;X>>=0,F=F===void 0?this.length:F>>>0,O||(O=0),typeof O=="number")for(ae=R;ae55295&&F<57344){if(!X){if(F>56319){(R-=3)>-1&&ae.push(239,191,189);continue}if(ve+1===Q){(R-=3)>-1&&ae.push(239,191,189);continue}X=F;continue}if(F<56320){(R-=3)>-1&&ae.push(239,191,189),X=F;continue}F=65536+(X-55296<<10|F-56320)}else X&&(R-=3)>-1&&ae.push(239,191,189);if(X=null,F<128){if((R-=1)<0)break;ae.push(F)}else if(F<2048){if((R-=2)<0)break;ae.push(F>>6|192,63&F|128)}else if(F<65536){if((R-=3)<0)break;ae.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;ae.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return ae}function se(O){return i.toByteArray(function(R){if((R=function(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(R).replace(W,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(O))}function me(O,R,F,Q){for(var X=0;X=R.length||X>=O.length);++X)R[X+F]=O[X];return X}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(w){if(n===setTimeout)return setTimeout(w,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&m())}function m(){if(!f){var w=a(p);f=!0;for(var _=c.length;_;){for(l=c,c=[];++h<_;)l&&l[h].run();h=-1,_=c.length}l=null,f=!1,function(b){if(r===clearTimeout)return clearTimeout(b);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}(w)}}function g(w,_){this.fun=w,this.array=_}function v(){}i.nextTick=function(w){var _=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},l))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(a){return typeof a=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var a,l,c,f,h,p;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((a=arguments[1])instanceof Error)throw a;var m=new Error('Uncaught, unspecified "error" event. ('+a+")");throw m.context=a,m}if(o(l=this._events[s]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,h=0;h0&&this._events[s].length>l&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,a){if(!r(a))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(s,c),l||(l=!0,a.apply(this,arguments))}return c.listener=a,this.on(s,c),this},n.prototype.removeListener=function(s,a){var l,c,f,h;if(!r(a))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(f=(l=this._events[s]).length,c=-1,l===a||r(l.listener)&&l.listener===a)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,a);else if(i(l)){for(h=f;h-- >0;)if(l[h]===a||l[h].listener&&l[h].listener===a){c=h;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[s]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",s,a)}return this},n.prototype.removeAllListeners=function(s){var a,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(a in this._events)a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[s]))this.removeListener(s,l);else if(l)for(;l.length;)this.removeListener(s,l[l.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var a=this._events[s];if(r(a))return 1;if(a)return a.length}return 0},n.listenerCount=function(s,a){return s.listenerCount(a)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var s=n(6);function a(A){var Y=this;this.next=null,this.entry=null,this.finish=function(){(function(q,ee,Z){var te=q.entry;for(q.entry=null;te;){var ne=te.callback;ee.pendingcb--,ne(void 0),te=te.next}ee.corkedRequestsFree?ee.corkedRequestsFree.next=q:ee.corkedRequestsFree=q})(Y,A)}}e.exports=x;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;x.WritableState=b;var f=n(5);f.inherits=n(2);var h,p={deprecate:n(44)},m=n(24),g=n(7).Buffer,v=o.Uint8Array||function(){},w=n(25);function _(){}function b(A,Y){l=l||n(1),A=A||{};var q=Y instanceof l;this.objectMode=!!A.objectMode,q&&(this.objectMode=this.objectMode||!!A.writableObjectMode);var ee=A.highWaterMark,Z=A.writableHighWaterMark,te=this.objectMode?16:16384;this.highWaterMark=ee||ee===0?ee:q&&(Z||Z===0)?Z:te,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ne=A.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){(function(K,$){var I=K._writableState,B=I.sync,ie=I.writecb;if(function(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}(I),$)(function(G,re,se,me,O){--re.pendingcb,se?(s.nextTick(O,me),s.nextTick(U,G,re),G._writableState.errorEmitted=!0,G.emit("error",me)):(O(me),G._writableState.errorEmitted=!0,G.emit("error",me),U(G,re))})(K,I,B,$,ie);else{var W=N(I);W||I.corked||I.bufferProcessing||!I.bufferedRequest||k(K,I),B?c(P,K,I,W,ie):P(K,I,W,ie)}})(Y,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function x(A){if(l=l||n(1),!(h.call(x,this)||this instanceof l))return new x(A);this._writableState=new b(A,this),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),m.call(this)}function E(A,Y,q,ee,Z,te,ne){Y.writelen=ee,Y.writecb=ne,Y.writing=!0,Y.sync=!0,q?A._writev(Z,Y.onwrite):A._write(Z,te,Y.onwrite),Y.sync=!1}function P(A,Y,q,ee){q||function(Z,te){te.length===0&&te.needDrain&&(te.needDrain=!1,Z.emit("drain"))}(A,Y),Y.pendingcb--,ee(),U(A,Y)}function k(A,Y){Y.bufferProcessing=!0;var q=Y.bufferedRequest;if(A._writev&&q&&q.next){var ee=Y.bufferedRequestCount,Z=new Array(ee),te=Y.corkedRequestsFree;te.entry=q;for(var ne=0,le=!0;q;)Z[ne]=q,q.isBuf||(le=!1),q=q.next,ne+=1;Z.allBuffers=le,E(A,Y,!0,Y.length,Z,"",te.finish),Y.pendingcb++,Y.lastBufferedRequest=null,te.next?(Y.corkedRequestsFree=te.next,te.next=null):Y.corkedRequestsFree=new a(Y),Y.bufferedRequestCount=0}else{for(;q;){var K=q.chunk,$=q.encoding,I=q.callback;if(E(A,Y,!1,Y.objectMode?1:K.length,K,$,I),q=q.next,Y.bufferedRequestCount--,Y.writing)break}q===null&&(Y.lastBufferedRequest=null)}Y.bufferedRequest=q,Y.bufferProcessing=!1}function N(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function D(A,Y){A._final(function(q){Y.pendingcb--,q&&A.emit("error",q),Y.prefinished=!0,A.emit("prefinish"),U(A,Y)})}function U(A,Y){var q=N(Y);return q&&(function(ee,Z){Z.prefinished||Z.finalCalled||(typeof ee._final=="function"?(Z.pendingcb++,Z.finalCalled=!0,s.nextTick(D,ee,Z)):(Z.prefinished=!0,ee.emit("prefinish")))}(A,Y),Y.pendingcb===0&&(Y.finished=!0,A.emit("finish"))),q}f.inherits(x,m),b.prototype.getBuffer=function(){for(var A=this.bufferedRequest,Y=[];A;)Y.push(A),A=A.next;return Y},function(){try{Object.defineProperty(b.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(A){return!!h.call(this,A)||this===x&&A&&A._writableState instanceof b}})):h=function(A){return A instanceof this},x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},x.prototype.write=function(A,Y,q){var ee=this._writableState,Z=!1,te=!ee.objectMode&&function(ne){return g.isBuffer(ne)||ne instanceof v}(A);return te&&!g.isBuffer(A)&&(A=function(ne){return g.from(ne)}(A)),typeof Y=="function"&&(q=Y,Y=null),te?Y="buffer":Y||(Y=ee.defaultEncoding),typeof q!="function"&&(q=_),ee.ended?function(ne,le){var K=new Error("write after end");ne.emit("error",K),s.nextTick(le,K)}(this,q):(te||function(ne,le,K,$){var I=!0,B=!1;return K===null?B=new TypeError("May not write null values to stream"):typeof K=="string"||K===void 0||le.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B&&(ne.emit("error",B),s.nextTick($,B),I=!1),I}(this,ee,A,q))&&(ee.pendingcb++,Z=function(ne,le,K,$,I,B){if(!K){var ie=function(se,me,O){return se.objectMode||se.decodeStrings===!1||typeof me!="string"||(me=g.from(me,O)),me}(le,$,I);$!==ie&&(K=!0,I="buffer",$=ie)}var W=le.objectMode?1:$.length;le.length+=W;var G=le.length-1))throw new TypeError("Unknown encoding: "+A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(A,Y,q){q(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(A,Y,q){var ee=this._writableState;typeof A=="function"?(q=A,A=null,Y=null):typeof Y=="function"&&(q=Y,Y=null),A!=null&&this.write(A,Y),ee.corked&&(ee.corked=1,this.uncork()),ee.ending||ee.finished||function(Z,te,ne){te.ending=!0,U(Z,te),ne&&(te.finished?s.nextTick(ne):Z.once("finish",ne)),te.ended=!0,Z.writable=!1}(this,ee,q)},Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),x.prototype.destroy=w.destroy,x.prototype._undestroy=w.undestroy,x.prototype._destroy=function(A,Y){this.end(),Y(A)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function s(a,l,c){function f(m,g){if(!l[m]){if(!a[m]){var v=typeof _dereq_=="function"&&_dereq_;if(!g&&v)return v(m,!0);if(h)return h(m,!0);var w=new Error("Cannot find module '"+m+"'");throw w.code="MODULE_NOT_FOUND",w}var _=l[m]={exports:{}};a[m][0].call(_.exports,function(b){return f(a[m][1][b]||b)},_,_.exports,s,a,l,c)}return l[m].exports}for(var h=typeof _dereq_=="function"&&_dereq_,p=0;p0;){var b=_.shift();if(typeof b=="function"){var x=_.shift(),E=_.shift();b.call(x,E)}else b._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},a.exports=m,a.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,a,l){a.exports=function(c,f,h,p){var m=!1,g=function(b,x){this._reject(x)},v=function(b,x){x.promiseRejectionQueued=!0,x.bindingPromise._then(g,g,null,this,b)},w=function(b,x){!(50397184&this._bitField)&&this._resolveCallback(x.target)},_=function(b,x){x.promiseRejectionQueued||this._reject(b)};c.prototype.bind=function(b){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var x=h(b),E=new c(f);E._propagateFrom(this,1);var P=this._target();if(E._setBoundTo(x),x instanceof c){var k={promiseRejectionQueued:!1,promise:E,target:P,bindingPromise:x};P._then(f,v,void 0,E,k),x._then(w,_,void 0,E,k),E._setOnCancel(x)}else E._resolveCallback(P);return E},c.prototype._setBoundTo=function(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(b,x){return c.resolve(x).bind(b)}}},{}],4:[function(s,a,l){var c;typeof Promise<"u"&&(c=Promise);var f=s("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},a.exports=f},{"./promise":22}],5:[function(s,a,l){var c=Object.create;if(c){var f=c(null),h=c(null);f[" size"]=h[" size"]=0}a.exports=function(p){var m=s("./util"),g=m.canEvaluate;function v(b){return function(x,E){var P;if(x!=null&&(P=x[E]),typeof P!="function"){var k="Object "+m.classString(x)+" has no method '"+m.toString(E)+"'";throw new p.TypeError(k)}return P}(b,this.pop()).apply(b,this)}function w(b){return b[this]}function _(b){var x=+this;return x<0&&(x=Math.max(0,x+b.length)),b[x]}m.isIdentifier,p.prototype.call=function(b){var x=[].slice.call(arguments,1);return x.push(b),this._then(v,void 0,void 0,x,void 0)},p.prototype.get=function(b){var x;if(typeof b=="number")x=_;else if(g){var E=(void 0)(b);x=E!==null?E:w}else x=w;return this._then(x,void 0,void 0,b,void 0)}}},{"./util":36}],6:[function(s,a,l){a.exports=function(c,f,h,p){var m=s("./util"),g=m.tryCatch,v=m.errorObj,w=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var _=this,b=_;_._isCancellable();){if(!_._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var x=_._cancellationParent;if(x==null||!x._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),b=_,_=x}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(_){return _===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),w.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(_,b){if(m.isArray(_))for(var x=0;x<_.length;++x)this._doInvokeOnCancel(_[x],b);else if(_!==void 0)if(typeof _=="function"){if(!b){var E=g(_).call(this._boundValue());E===v&&(this._attachExtraTrace(E.e),w.throwLater(E.e))}}else _._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),w.invoke(this._doInvokeOnCancel,this,_)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=s("./es5").keys,p=f.tryCatch,m=f.errorObj;return function(g,v,w){return function(_){var b=w._boundValue();e:for(var x=0;x=0)return h[g]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,h.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var g=h.pop(),v=g._promiseCreated;return g._promiseCreated=null,v}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var g=c.prototype._pushContext,v=c.prototype._popContext,w=c._peekContext,_=c.prototype._peekContext,b=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=g,c.prototype._popContext=v,c._peekContext=w,c.prototype._peekContext=_,c.prototype._promiseCreated=b,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var x=this._peekContext();x&&x._promiseCreated==null&&(x._promiseCreated=this)}},p}},{}],9:[function(s,a,l){a.exports=function(c,f){var h,p,m,g=c._getDomain,v=c._async,w=s("./errors").Warning,_=s("./util"),b=_.canAttachTrace,x=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,E=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,N=null,D=!1,U=_.env("BLUEBIRD_DEBUG")!=0,A=!(_.env("BLUEBIRD_WARNINGS")==0||!U&&!_.env("BLUEBIRD_WARNINGS")),Y=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!U&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),q=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(A||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ue=this._target();ue._bitField=-1048577&ue._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ue=this;setTimeout(function(){ue._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ve("rejectionHandled",h,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ue=this._settledValue();this._setUnhandledRejectionIsNotified(),ve("unhandledRejection",p,ue,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(ue,he,we){return F(ue,he,we||this)},c.onPossiblyUnhandledRejection=function(ue){var he=g();p=typeof ue=="function"?he===null?ue:_.domainBind(he,ue):void 0},c.onUnhandledRejectionHandled=function(ue){var he=g();h=typeof ue=="function"?he===null?ue:_.domainBind(he,ue):void 0};var ee=function(){};c.longStackTraces=function(){if(v.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created - - See http://goo.gl/MqrFmX -`);if(!Le.longStackTraces&&fe()){var ue=c.prototype._captureStackTrace,he=c.prototype._attachExtraTrace;Le.longStackTraces=!0,ee=function(){if(v.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created - - See http://goo.gl/MqrFmX -`);c.prototype._captureStackTrace=ue,c.prototype._attachExtraTrace=he,f.deactivateLongStackTraces(),v.enableTrampoline(),Le.longStackTraces=!1},c.prototype._captureStackTrace=O,c.prototype._attachExtraTrace=R,f.activateLongStackTraces(),v.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Le.longStackTraces&&fe()};var Z=function(){try{if(typeof CustomEvent=="function"){var ue=new CustomEvent("CustomEvent");return _.global.dispatchEvent(ue),function(he,we){var _e=new CustomEvent(he.toLowerCase(),{detail:we,cancelable:!0});return!_.global.dispatchEvent(_e)}}return typeof Event=="function"?(ue=new Event("CustomEvent"),_.global.dispatchEvent(ue),function(he,we){var _e=new Event(he.toLowerCase(),{cancelable:!0});return _e.detail=we,!_.global.dispatchEvent(_e)}):((ue=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(ue),function(he,we){var _e=document.createEvent("CustomEvent");return _e.initCustomEvent(he.toLowerCase(),!1,!0,we),!_.global.dispatchEvent(_e)})}catch{}return function(){return!1}}(),te=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(ue){var he="on"+ue.toLowerCase(),we=_.global[he];return!!we&&(we.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ne(ue,he){return{promise:he}}var le={promiseCreated:ne,promiseFulfilled:ne,promiseRejected:ne,promiseResolved:ne,promiseCancelled:ne,promiseChained:function(ue,he,we){return{promise:he,child:we}},warning:function(ue,he){return{warning:he}},unhandledRejection:function(ue,he,we){return{reason:he,promise:we}},rejectionHandled:ne},K=function(ue){var he=!1;try{he=te.apply(null,arguments)}catch(_e){v.throwLater(_e),he=!0}var we=!1;try{we=Z(ue,le[ue].apply(null,arguments))}catch(_e){v.throwLater(_e),we=!0}return we||he};function $(){return!1}function I(ue,he,we){var _e=this;try{ue(he,we,function(Ee){if(typeof Ee!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(Ee));_e._attachCancellationCallback(Ee)})}catch(Ee){return Ee}}function B(ue){if(!this._isCancellable())return this;var he=this._onCancel();he!==void 0?_.isArray(he)?he.push(ue):this._setOnCancel([he,ue]):this._setOnCancel(ue)}function ie(){return this._onCancelField}function W(ue){this._onCancelField=ue}function G(){this._cancellationParent=void 0,this._onCancelField=void 0}function re(ue,he){if(1&he){this._cancellationParent=ue;var we=ue._branchesRemainingToCancel;we===void 0&&(we=0),ue._branchesRemainingToCancel=we+1}2&he&&ue._isBound()&&this._setBoundTo(ue._boundTo)}c.config=function(ue){if("longStackTraces"in(ue=Object(ue))&&(ue.longStackTraces?c.longStackTraces():!ue.longStackTraces&&c.hasLongStackTraces()&&ee()),"warnings"in ue){var he=ue.warnings;Le.warnings=!!he,q=Le.warnings,_.isObject(he)&&"wForgottenReturn"in he&&(q=!!he.wForgottenReturn)}if("cancellation"in ue&&ue.cancellation&&!Le.cancellation){if(v.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=G,c.prototype._propagateFrom=re,c.prototype._onCancel=ie,c.prototype._setOnCancel=W,c.prototype._attachCancellationCallback=B,c.prototype._execute=I,se=re,Le.cancellation=!0}return"monitoring"in ue&&(ue.monitoring&&!Le.monitoring?(Le.monitoring=!0,c.prototype._fireEvent=K):!ue.monitoring&&Le.monitoring&&(Le.monitoring=!1,c.prototype._fireEvent=$)),c},c.prototype._fireEvent=$,c.prototype._execute=function(ue,he,we){try{ue(he,we)}catch(_e){return _e}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ue){},c.prototype._attachCancellationCallback=function(ue){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ue,he){};var se=function(ue,he){2&he&&ue._isBound()&&this._setBoundTo(ue._boundTo)};function me(){var ue=this._boundTo;return ue!==void 0&&ue instanceof c?ue.isFulfilled()?ue.value():void 0:ue}function O(){this._trace=new Ae(this._peekContext())}function R(ue,he){if(b(ue)){var we=this._trace;if(we!==void 0&&he&&(we=we._parent),we!==void 0)we.attachExtraTrace(ue);else if(!ue.__stackCleaned__){var _e=X(ue);_.notEnumerableProp(ue,"stack",_e.message+` -`+_e.stack.join(` -`)),_.notEnumerableProp(ue,"__stackCleaned__",!0)}}}function F(ue,he,we){if(Le.warnings){var _e,Ee=new w(ue);if(he)we._attachExtraTrace(Ee);else if(Le.longStackTraces&&(_e=c._peekContext()))_e.attachExtraTrace(Ee);else{var Me=X(Ee);Ee.stack=Me.message+` -`+Me.stack.join(` -`)}K("warning",Ee)||ae(Ee,"",!0)}}function Q(ue){for(var he=[],we=0;we0?function(_e){for(var Ee=_e.stack.replace(/\s+$/g,"").split(` -`),Me=0;Me0&&_e.name!="SyntaxError"&&(Ee=Ee.slice(Me)),Ee}(ue):[" (No stack trace)"],{message:we,stack:ue.name=="SyntaxError"?he:Q(he)}}function ae(ue,he,we){if(typeof console<"u"){var _e;if(_.isObject(ue)){var Ee=ue.stack;_e=he+N(Ee,ue)}else _e=he+String(ue);typeof m=="function"?m(_e,we):typeof console.log!="function"&&typeof console.log!="object"||console.log(_e)}}function ve(ue,he,we,_e){var Ee=!1;try{typeof he=="function"&&(Ee=!0,ue==="rejectionHandled"?he(_e):he(we,_e))}catch(Me){v.throwLater(Me)}ue==="unhandledRejection"?K(ue,we,_e)||Ee||ae(we,"Unhandled rejection "):K(ue,_e)}function De(ue){var he;if(typeof ue=="function")he="[function "+(ue.name||"anonymous")+"]";else{if(he=ue&&typeof ue.toString=="function"?ue.toString():_.toString(ue),/\[object [a-zA-Z0-9$_]+\]/.test(he))try{he=JSON.stringify(ue)}catch{}he.length===0&&(he="(empty array)")}return"(<"+function(we){return we.length<41?we:we.substr(0,38)+"..."}(he)+">, no stack trace)"}function fe(){return typeof Ne=="function"}var ye=function(){return!1},be=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Oe(ue){var he=ue.match(be);if(he)return{fileName:he[1],line:parseInt(he[2],10)}}function Ae(ue){this._parent=ue,this._promisesCreated=0;var he=this._length=1+(ue===void 0?0:ue._length);Ne(this,Ae),he>32&&this.uncycle()}_.inherits(Ae,Error),f.CapturedTrace=Ae,Ae.prototype.uncycle=function(){var ue=this._length;if(!(ue<2)){for(var he=[],we={},_e=0,Ee=this;Ee!==void 0;++_e)he.push(Ee),Ee=Ee._parent;for(_e=(ue=this._length=_e)-1;_e>=0;--_e){var Me=he[_e].stack;we[Me]===void 0&&(we[Me]=_e)}for(_e=0;_e0&&(he[Fe-1]._parent=void 0,he[Fe-1]._length=1),he[_e]._parent=void 0,he[_e]._length=1;var tt=_e>0?he[_e-1]:this;Fe=0;--Ke)he[Ke]._length=nt,nt++;return}}}},Ae.prototype.attachExtraTrace=function(ue){if(!ue.__stackCleaned__){this.uncycle();for(var he=X(ue),we=he.message,_e=[he.stack],Ee=this;Ee!==void 0;)_e.push(Q(Ee.stack.split(` -`))),Ee=Ee._parent;(function(Me){for(var Fe=Me[0],tt=1;tt=0;--Sn)if(nt[Sn]===qt){zt=Sn;break}for(Sn=zt;Sn>=0;--Sn){var or=nt[Sn];if(Fe[Ke]!==or)break;Fe.pop(),Ke--}Fe=nt}})(_e),function(Me){for(var Fe=0;Fe=0)return k=/@/,N=he,D=!0,function(Me){Me.stack=new Error().stack};try{throw new Error}catch(Me){_e="stack"in Me}return"stack"in Ee||!_e||typeof Error.stackTraceLimit!="number"?(N=function(Me,Fe){return typeof Me=="string"?Me:typeof Fe!="object"&&typeof Fe!="function"||Fe.name===void 0||Fe.message===void 0?De(Fe):Fe.toString()},null):(k=ue,N=he,function(Me){Error.stackTraceLimit+=6;try{throw new Error}catch(Fe){Me.stack=Fe.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ue){console.warn(ue)},_.isNode&&r.stderr.isTTY?m=function(ue,he){var we=he?"\x1B[33m":"\x1B[31m";console.warn(we+ue+`\x1B[0m -`)}:_.isNode||typeof new Error().stack!="string"||(m=function(ue,he){console.warn("%c"+ue,he?"color: darkorange":"color: red")}));var Le={warnings:A,longStackTraces:!1,cancellation:!1,monitoring:!1};return Y&&c.longStackTraces(),{longStackTraces:function(){return Le.longStackTraces},warnings:function(){return Le.warnings},cancellation:function(){return Le.cancellation},monitoring:function(){return Le.monitoring},propagateFromFunction:function(){return se},boundValueFunction:function(){return me},checkForgottenReturns:function(ue,he,we,_e,Ee){if(ue===void 0&&he!==null&&q){if(Ee!==void 0&&Ee._returnedNonUndefined()||!(65535&_e._bitField))return;we&&(we+=" ");var Me="",Fe="";if(he._trace){for(var tt=he._trace.stack.split(` -`),nt=Q(tt),Ke=nt.length-1;Ke>=0;--Ke){var qt=nt[Ke];if(!E.test(qt)){var zt=qt.match(P);zt&&(Me="at "+zt[1]+":"+zt[2]+":"+zt[3]+" ");break}}if(nt.length>0){var Sn=nt[0];for(Ke=0;Ke0&&(Fe=` -`+tt[Ke-1]);break}}}var or="a promise was created in a "+we+"handler "+Me+"but was not returned from it, see http://goo.gl/rRqMUw"+Fe;_e._warn(or,!0,he)}},setBounds:function(ue,he){if(fe()){for(var we,_e,Ee=ue.stack.split(` -`),Me=he.stack.split(` -`),Fe=-1,tt=-1,nt=0;nt=tt||(ye=function(qt){if(x.test(qt))return!0;var zt=Oe(qt);return!!(zt&&zt.fileName===we&&Fe<=zt.line&&zt.line<=tt)})}},warn:F,deprecated:function(ue,he){var we=ue+" is deprecated and will be removed in a future version.";return he&&(we+=" Use "+he+" instead."),F(we)},CapturedTrace:Ae,fireDomEvent:Z,fireGlobalEvent:te}}},{"./errors":12,"./util":36}],10:[function(s,a,l){a.exports=function(c){function f(){return this.value}function h(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(h,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,h,void 0,{reason:p},void 0);var m=arguments[1];return this.caught(p,function(){throw m})},c.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof c&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(s,a,l){a.exports=function(c,f){var h=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(g){return h(this,g,f,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(g){return h(this,g,f,f)},c.each=function(g,v){return h(g,v,f,0)._then(m,void 0,void 0,g,void 0)},c.mapSeries=function(g,v){return h(g,v,f,f)}}},{}],12:[function(s,a,l){var c,f,h=s("./es5"),p=h.freeze,m=s("./util"),g=m.inherits,v=m.notEnumerableProp;function w(A,Y){function q(ee){if(!(this instanceof q))return new q(ee);v(this,"message",typeof ee=="string"?ee:Y),v(this,"name",A),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return g(q,Error),q}var _=w("Warning","warning"),b=w("CancellationError","cancellation error"),x=w("TimeoutError","timeout error"),E=w("AggregateError","aggregate error");try{c=TypeError,f=RangeError}catch{c=w("TypeError","type error"),f=w("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),k=0;k1?k.cancelPromise._reject(N):k.cancelPromise._cancel(),k.cancelPromise=null,!0)}function x(){return P.call(this,this.promise._target()._settledValue())}function E(k){if(!b(this,k))return g.e=k,g}function P(k){var N=this.promise,D=this.handler;if(!this.called){this.called=!0;var U=this.isFinallyHandler()?D.call(N._boundValue()):D.call(N._boundValue(),k);if(U===h)return U;if(U!==void 0){N._setReturnedNonUndefined();var A=f(U,N);if(A instanceof c){if(this.cancelPromise!=null){if(A._isCancelled()){var Y=new m("late cancellation observer");return N._attachExtraTrace(Y),g.e=Y,g}A.isPending()&&A._attachCancellationCallback(new _(this))}return A._then(x,E,void 0,this,void 0)}}}return N.isRejected()?(b(this),g.e=k,g):(b(this),k)}return w.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){b(this.finallyHandler)},c.prototype._passThrough=function(k,N,D,U){return typeof k!="function"?this.then():this._then(D,U,void 0,new w(this,N,k),void 0)},c.prototype.lastly=c.prototype.finally=function(k){return this._passThrough(k,0,P,P)},c.prototype.tap=function(k){return this._passThrough(k,1,P)},c.prototype.tapCatch=function(k){var N=arguments.length;if(N===1)return this._passThrough(k,1,void 0,P);var D,U=new Array(N-1),A=0;for(D=0;D0&&typeof arguments[_]=="function"&&(w=arguments[_]);var b=[].slice.call(arguments);w&&b.pop();var x=new f(b).promise();return w!==void 0?x.spread(w):x}}},{"./util":36}],18:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=c._getDomain,w=s("./util"),_=w.tryCatch,b=w.errorObj,x=c._async;function E(k,N,D,U){this.constructor$(k),this._promise._captureStackTrace();var A=v();this._callback=A===null?N:w.domainBind(A,N),this._preservedValues=U===m?new Array(this.length()):null,this._limit=D,this._inFlight=0,this._queue=[],x.invoke(this._asyncInit,this,void 0)}function P(k,N,D,U){if(typeof N!="function")return h("expecting a function but got "+w.classString(N));var A=0;if(D!==void 0){if(typeof D!="object"||D===null)return c.reject(new TypeError("options argument must be an object but it is "+w.classString(D)));if(typeof D.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+w.classString(D.concurrency)));A=D.concurrency}return new E(k,N,A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,U).promise()}w.inherits(E,f),E.prototype._asyncInit=function(){this._init$(void 0,-2)},E.prototype._init=function(){},E.prototype._promiseFulfilled=function(k,N){var D=this._values,U=this.length(),A=this._preservedValues,Y=this._limit;if(N<0){if(D[N=-1*N-1]=k,Y>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(Y>=1&&this._inFlight>=Y)return D[N]=k,this._queue.push(N),!1;A!==null&&(A[N]=k);var q=this._promise,ee=this._callback,Z=q._boundValue();q._pushContext();var te=_(ee).call(Z,k,N,U),ne=q._popContext();if(g.checkForgottenReturns(te,ne,A!==null?"Promise.filter":"Promise.map",q),te===b)return this._reject(te.e),!0;var le=p(te,this._promise);if(le instanceof c){var K=(le=le._target())._bitField;if(!(50397184&K))return Y>=1&&this._inFlight++,D[N]=le,le._proxy(this,-1*(N+1)),!1;if(!(33554432&K))return 16777216&K?(this._reject(le._reason()),!0):(this._cancel(),!0);te=le._value()}D[N]=te}return++this._totalResolved>=U&&(A!==null?this._filter(D,A):this._resolve(D),!0)},E.prototype._drainQueue=function(){for(var k=this._queue,N=this._limit,D=this._values;k.length>0&&this._inFlight1){m.deprecated("calling Promise.try with more than 1 argument");var x=arguments[1],E=arguments[2];_=g.isArray(x)?v(w).apply(E,x):v(w).call(E,x)}else _=v(w)();var P=b._popContext();return m.checkForgottenReturns(_,P,"Promise.try",b),b._resolveFromSyncValue(_),b},c.prototype._resolveFromSyncValue=function(w){w===g.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(s,a,l){var c=s("./util"),f=c.maybeWrapAsError,h=s("./errors").OperationalError,p=s("./es5"),m=/^(?:name|message|stack|cause)$/;function g(v){var w;if(function(E){return E instanceof Error&&p.getPrototypeOf(E)===Error.prototype}(v)){(w=new h(v)).name=v.name,w.message=v.message,w.stack=v.stack;for(var _=p.keys(v),b=0;b<_.length;++b){var x=_[b];m.test(x)||(w[x]=v[x])}return w}return c.markAsOriginatingFromRejection(v),v}a.exports=function(v,w){return function(_,b){if(v!==null){if(_){var x=g(f(_));v._attachExtraTrace(x),v._reject(x)}else if(w){var E=[].slice.call(arguments,1);v._fulfill(E)}else v._fulfill(b);v=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,a,l){a.exports=function(c){var f=s("./util"),h=c._async,p=f.tryCatch,m=f.errorObj;function g(_,b){if(!f.isArray(_))return v.call(this,_,b);var x=p(b).apply(this._boundValue(),[null].concat(_));x===m&&h.throwLater(x.e)}function v(_,b){var x=this._boundValue(),E=_===void 0?p(b).call(x,null):p(b).call(x,null,_);E===m&&h.throwLater(E.e)}function w(_,b){if(!_){var x=new Error(_+"");x.cause=_,_=x}var E=p(b).call(this._boundValue(),_);E===m&&h.throwLater(E.e)}c.prototype.asCallback=c.prototype.nodeify=function(_,b){if(typeof _=="function"){var x=v;b!==void 0&&Object(b).spread&&(x=g),this._then(x,w,void 0,this,_)}return this}}},{"./util":36}],22:[function(s,a,l){a.exports=function(){var c=function(){return new E(`circular promise resolution chain - - See http://goo.gl/MqrFmX -`)},f=function(){return new $.PromiseInspection(this._target())},h=function(W){return $.reject(new E(W))};function p(){}var m,g={},v=s("./util");m=v.isNode?function(){var W=r.domain;return W===void 0&&(W=null),W}:function(){return null},v.notEnumerableProp($,"_getDomain",m);var w=s("./es5"),_=s("./async"),b=new _;w.defineProperty($,"_async",{value:b});var x=s("./errors"),E=$.TypeError=x.TypeError;$.RangeError=x.RangeError;var P=$.CancellationError=x.CancellationError;$.TimeoutError=x.TimeoutError,$.OperationalError=x.OperationalError,$.RejectionError=x.OperationalError,$.AggregateError=x.AggregateError;var k=function(){},N={},D={},U=s("./thenables")($,k),A=s("./promise_array")($,k,U,h,p),Y=s("./context")($),q=Y.create,ee=s("./debuggability")($,Y),Z=(ee.CapturedTrace,s("./finally")($,U,D)),te=s("./catch_filter")(D),ne=s("./nodeback"),le=v.errorObj,K=v.tryCatch;function $(W){W!==k&&function(G,re){if(G==null||G.constructor!==$)throw new E(`the promise constructor cannot be invoked directly - - See http://goo.gl/MqrFmX -`);if(typeof re!="function")throw new E("expecting a function but got "+v.classString(re))}(this,W),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(W),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function I(W){this.promise._resolveCallback(W)}function B(W){this.promise._rejectCallback(W,!1)}function ie(W){var G=new $(k);G._fulfillmentHandler0=W,G._rejectionHandler0=W,G._promise0=W,G._receiver0=W}return $.prototype.toString=function(){return"[object Promise]"},$.prototype.caught=$.prototype.catch=function(W){var G=arguments.length;if(G>1){var re,se=new Array(G-1),me=0;for(re=0;re0&&typeof W!="function"&&typeof G!="function"){var re=".then() only accepts functions but was passed: "+v.classString(W);arguments.length>1&&(re+=", "+v.classString(G)),this._warn(re)}return this._then(W,G,void 0,void 0,void 0)},$.prototype.done=function(W,G){this._then(W,G,void 0,void 0,void 0)._setIsFinal()},$.prototype.spread=function(W){return typeof W!="function"?h("expecting a function but got "+v.classString(W)):this.all()._then(W,void 0,void 0,N,void 0)},$.prototype.toJSON=function(){var W={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(W.fulfillmentValue=this.value(),W.isFulfilled=!0):this.isRejected()&&(W.rejectionReason=this.reason(),W.isRejected=!0),W},$.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new A(this).promise()},$.prototype.error=function(W){return this.caught(v.originatesFromRejection,W)},$.getNewLibraryCopy=a.exports,$.is=function(W){return W instanceof $},$.fromNode=$.fromCallback=function(W){var G=new $(k);G._captureStackTrace();var re=arguments.length>1&&!!Object(arguments[1]).multiArgs,se=K(W)(ne(G,re));return se===le&&G._rejectCallback(se.e,!0),G._isFateSealed()||G._setAsyncGuaranteed(),G},$.all=function(W){return new A(W).promise()},$.cast=function(W){var G=U(W);return G instanceof $||((G=new $(k))._captureStackTrace(),G._setFulfilled(),G._rejectionHandler0=W),G},$.resolve=$.fulfilled=$.cast,$.reject=$.rejected=function(W){var G=new $(k);return G._captureStackTrace(),G._rejectCallback(W,!0),G},$.setScheduler=function(W){if(typeof W!="function")throw new E("expecting a function but got "+v.classString(W));return b.setScheduler(W)},$.prototype._then=function(W,G,re,se,me){var O=me!==void 0,R=O?me:new $(k),F=this._target(),Q=F._bitField;O||(R._propagateFrom(this,3),R._captureStackTrace(),se===void 0&&2097152&this._bitField&&(se=50397184&Q?this._boundValue():F===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,R));var X=m();if(50397184&Q){var ae,ve,De=F._settlePromiseCtx;33554432&Q?(ve=F._rejectionHandler0,ae=W):16777216&Q?(ve=F._fulfillmentHandler0,ae=G,F._unsetRejectionIsUnhandled()):(De=F._settlePromiseLateCancellationObserver,ve=new P("late cancellation observer"),F._attachExtraTrace(ve),ae=G),b.invoke(De,F,{handler:X===null?ae:typeof ae=="function"&&v.domainBind(X,ae),promise:R,receiver:se,value:ve})}else F._addCallbacks(W,G,R,se,X);return R},$.prototype._length=function(){return 65535&this._bitField},$.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},$.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},$.prototype._setLength=function(W){this._bitField=-65536&this._bitField|65535&W},$.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},$.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},$.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},$.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},$.prototype._isFinal=function(){return(4194304&this._bitField)>0},$.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},$.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},$.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},$.prototype._setAsyncGuaranteed=function(){b.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},$.prototype._receiverAt=function(W){var G=W===0?this._receiver0:this[4*W-4+3];if(G!==g)return G===void 0&&this._isBound()?this._boundValue():G},$.prototype._promiseAt=function(W){return this[4*W-4+2]},$.prototype._fulfillmentHandlerAt=function(W){return this[4*W-4+0]},$.prototype._rejectionHandlerAt=function(W){return this[4*W-4+1]},$.prototype._boundValue=function(){},$.prototype._migrateCallback0=function(W){W._bitField;var G=W._fulfillmentHandler0,re=W._rejectionHandler0,se=W._promise0,me=W._receiverAt(0);me===void 0&&(me=g),this._addCallbacks(G,re,se,me,null)},$.prototype._migrateCallbackAt=function(W,G){var re=W._fulfillmentHandlerAt(G),se=W._rejectionHandlerAt(G),me=W._promiseAt(G),O=W._receiverAt(G);O===void 0&&(O=g),this._addCallbacks(re,se,me,O,null)},$.prototype._addCallbacks=function(W,G,re,se,me){var O=this._length();if(O>=65531&&(O=0,this._setLength(0)),O===0)this._promise0=re,this._receiver0=se,typeof W=="function"&&(this._fulfillmentHandler0=me===null?W:v.domainBind(me,W)),typeof G=="function"&&(this._rejectionHandler0=me===null?G:v.domainBind(me,G));else{var R=4*O-4;this[R+2]=re,this[R+3]=se,typeof W=="function"&&(this[R+0]=me===null?W:v.domainBind(me,W)),typeof G=="function"&&(this[R+1]=me===null?G:v.domainBind(me,G))}return this._setLength(O+1),O},$.prototype._proxy=function(W,G){this._addCallbacks(void 0,void 0,G,W,null)},$.prototype._resolveCallback=function(W,G){if(!(117506048&this._bitField)){if(W===this)return this._rejectCallback(c(),!1);var re=U(W,this);if(!(re instanceof $))return this._fulfill(W);G&&this._propagateFrom(re,2);var se=re._target();if(se!==this){var me=se._bitField;if(50397184&me)if(33554432&me)this._fulfill(se._value());else if(16777216&me)this._reject(se._reason());else{var F=new P("late cancellation observer");se._attachExtraTrace(F),this._reject(F)}else{var O=this._length();O>0&&se._migrateCallback0(this);for(var R=1;R>>16)){if(W===this){var re=c();return this._attachExtraTrace(re),this._reject(re)}this._setFulfilled(),this._rejectionHandler0=W,(65535&G)>0&&(134217728&G?this._settlePromises():b.settlePromises(this))}},$.prototype._reject=function(W){var G=this._bitField;if(!((117506048&G)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=W,this._isFinal())return b.fatalError(W,v.isNode);(65535&G)>0?b.settlePromises(this):this._ensurePossibleRejectionHandled()}},$.prototype._fulfillPromises=function(W,G){for(var re=1;re0){if(16842752&W){var re=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,re,W),this._rejectPromises(G,re)}else{var se=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,se,W),this._fulfillPromises(G,se)}this._setLength(0)}this._clearCancellationData()},$.prototype._settledValue=function(){var W=this._bitField;return 33554432&W?this._rejectionHandler0:16777216&W?this._fulfillmentHandler0:void 0},$.defer=$.pending=function(){return ee.deprecated("Promise.defer","new Promise"),{promise:new $(k),resolve:I,reject:B}},v.notEnumerableProp($,"_makeSelfResolutionError",c),s("./method")($,k,U,h,ee),s("./bind")($,k,U,ee),s("./cancel")($,A,h,ee),s("./direct_resolve")($),s("./synchronous_inspection")($),s("./join")($,A,U,k,b,m),$.Promise=$,$.version="3.5.1",s("./map.js")($,A,h,U,k,ee),s("./call_get.js")($),s("./using.js")($,h,U,q,k,ee),s("./timers.js")($,k,ee),s("./generators.js")($,h,k,U,p,ee),s("./nodeify.js")($),s("./promisify.js")($,k),s("./props.js")($,A,U,h),s("./race.js")($,k,U,h),s("./reduce.js")($,A,h,U,k,ee),s("./settle.js")($,A,ee),s("./some.js")($,A,h),s("./filter.js")($,k),s("./each.js")($,k),s("./any.js")($),v.toFastProperties($),v.toFastProperties($.prototype),ie({a:1}),ie({b:2}),ie({c:3}),ie(1),ie(function(){}),ie(void 0),ie(!1),ie(new $(k)),ee.setBounds(_.firstLineError,v.lastLineError),$}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(s,a,l){a.exports=function(c,f,h,p,m){var g=s("./util");function v(w){var _=this._promise=new c(f);w instanceof c&&_._propagateFrom(w,3),_._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return g.isArray,g.inherits(v,m),v.prototype.length=function(){return this._length},v.prototype.promise=function(){return this._promise},v.prototype._init=function w(_,b){var x=h(this._values,this._promise);if(x instanceof c){var E=(x=x._target())._bitField;if(this._values=x,(50397184&E)==0)return this._promise._setAsyncGuaranteed(),x._then(w,this._reject,void 0,this,b);if(!(33554432&E))return 16777216&E?this._reject(x._reason()):this._cancel();x=x._value()}if((x=g.asArray(x))!==null)x.length!==0?this._iterate(x):b===-5?this._resolveEmptyArray():this._resolve(function(k){switch(b){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=p("expecting an array or an iterable object but got "+g.classString(x)).reason();this._promise._rejectCallback(P,!1)}},v.prototype._iterate=function(w){var _=this.getActualLength(w.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var b=this._promise,x=!1,E=null,P=0;P<_;++P){var k=h(w[P],b);E=k instanceof c?(k=k._target())._bitField:null,x?E!==null&&k.suppressUnhandledRejections():E!==null?50397184&E?x=33554432&E?this._promiseFulfilled(k._value(),P):16777216&E?this._promiseRejected(k._reason(),P):this._promiseCancelled(P):(k._proxy(this,P),this._values[P]=k):x=this._promiseFulfilled(k,P)}x||b._setAsyncGuaranteed()},v.prototype._isResolved=function(){return this._values===null},v.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},v.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},v.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},v.prototype._promiseFulfilled=function(w,_){return this._values[_]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},v.prototype._promiseCancelled=function(){return this._cancel(),!0},v.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},v.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof c)w.cancel();else for(var _=0;_=this._length){var k;if(this._isMap)k=function(A){for(var Y=new m,q=A.length/2|0,ee=0;ee>1},c.prototype.props=function(){return x(this)},c.props=function(E){return x(E)}}},{"./es5":13,"./util":36}],26:[function(s,a,l){function c(f){this._capacity=f,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(f){return this._capacity"u"){var p=i.setImmediate,m=r.nextTick;c=f.isRecentNode?function(v){p.call(i,v)}:function(v){m.call(r,v)}}else if(typeof h=="function"&&typeof h.resolve=="function"){var g=h.resolve();c=function(v){g.then(v)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(v){o(v)}:typeof setTimeout<"u"?function(v){setTimeout(v,0)}:function(){throw new Error(`No async scheduler available - - See http://goo.gl/MqrFmX -`)}:function(){var v=document.createElement("div"),w={attributes:!0},_=!1,b=document.createElement("div");return new MutationObserver(function(){v.classList.toggle("foo"),_=!1}).observe(b,w),function(x){var E=new MutationObserver(function(){E.disconnect(),x()});E.observe(v,w),_||(_=!0,b.classList.toggle("foo"))}}();a.exports=c},{"./util":36}],30:[function(s,a,l){a.exports=function(c,f,h){var p=c.PromiseInspection;function m(g){this.constructor$(g)}s("./util").inherits(m,f),m.prototype._promiseResolved=function(g,v){return this._values[g]=v,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(g,v){var w=new p;return w._bitField=33554432,w._settledValueField=g,this._promiseResolved(v,w)},m.prototype._promiseRejected=function(g,v){var w=new p;return w._bitField=16777216,w._settledValueField=g,this._promiseResolved(v,w)},c.settle=function(g){return h.deprecated(".settle()",".reflect()"),new m(g).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=s("./errors").RangeError,g=s("./errors").AggregateError,v=p.isArray,w={};function _(x){this.constructor$(x),this._howMany=0,this._unwrap=!1,this._initialized=!1}function b(x,E){if((0|E)!==E||E<0)return h(`expecting a positive integer - - See http://goo.gl/MqrFmX -`);var P=new _(x),k=P.promise();return P.setHowMany(E),P.init(),k}p.inherits(_,f),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var x=v(this._values);!this._isResolved()&&x&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},_.prototype.init=function(){this._initialized=!0,this._init()},_.prototype.setUnwrap=function(){this._unwrap=!0},_.prototype.howMany=function(){return this._howMany},_.prototype.setHowMany=function(x){this._howMany=x},_.prototype._promiseFulfilled=function(x){return this._addFulfilled(x),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},_.prototype._promiseRejected=function(x){return this._addRejected(x),this._checkOutcome()},_.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var x=new g,E=this.length();E0?this._reject(x):this._cancel(),!0}return!1},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(x){this._values.push(x)},_.prototype._addFulfilled=function(x){this._values[this._totalResolved++]=x},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(x){var E="Input array must contain at least "+this._howMany+" items but contains only "+x+" items";return new m(E)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(x,E){return b(x,E)},c.prototype.some=function(x){return b(this,x)},c._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(s,a,l){a.exports=function(c){function f(_){_!==void 0?(_=_._target(),this._bitField=_._bitField,this._settledValueField=_._isFateSealed()?_._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var h=f.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise - - See http://goo.gl/MqrFmX -`);return this._settledValue()},p=f.prototype.error=f.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise - - See http://goo.gl/MqrFmX -`);return this._settledValue()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},g=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},v=f.prototype.isPending=function(){return(50397184&this._bitField)==0},w=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return v.call(this._target())},c.prototype.isRejected=function(){return g.call(this._target())},c.prototype.isFulfilled=function(){return m.call(this._target())},c.prototype.isResolved=function(){return w.call(this._target())},c.prototype.value=function(){return h.call(this._target())},c.prototype.reason=function(){var _=this._target();return _._unsetRejectionIsUnhandled(),p.call(_)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=f}},{}],33:[function(s,a,l){a.exports=function(c,f){var h=s("./util"),p=h.errorObj,m=h.isObject,g={}.hasOwnProperty;return function(v,w){if(m(v)){if(v instanceof c)return v;var _=function(x){try{return function(E){return E.then}(x)}catch(E){return p.e=E,p}}(v);if(_===p){w&&w._pushContext();var b=c.reject(_.e);return w&&w._popContext(),b}if(typeof _=="function")return function(x){try{return g.call(x,"_promise0")}catch{return!1}}(v)?(b=new c(f),v._then(b._fulfill,b._reject,void 0,b,null),b):function(x,E,P){var k=new c(f),N=k;P&&P._pushContext(),k._captureStackTrace(),P&&P._popContext();var D=!0,U=h.tryCatch(E).call(x,function(A){k&&(k._resolveCallback(A),k=null)},function(A){k&&(k._rejectCallback(A,D,!0),k=null)});return D=!1,k&&U===p&&(k._rejectCallback(U.e,!0,!0),k=null),N}(v,_,w)}return v}}},{"./util":36}],34:[function(s,a,l){a.exports=function(c,f,h){var p=s("./util"),m=c.TimeoutError;function g(x){this.handle=x}g.prototype._resultCancelled=function(){clearTimeout(this.handle)};var v=function(x){return w(+this).thenReturn(x)},w=c.delay=function(x,E){var P,k;return E!==void 0?(P=c.resolve(E)._then(v,null,null,x,void 0),h.cancellation()&&E instanceof c&&P._setOnCancel(E)):(P=new c(f),k=setTimeout(function(){P._fulfill()},+x),h.cancellation()&&P._setOnCancel(new g(k)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function _(x){return clearTimeout(this.handle),x}function b(x){throw clearTimeout(this.handle),x}c.prototype.delay=function(x){return w(x,this)},c.prototype.timeout=function(x,E){var P,k;x=+x;var N=new g(setTimeout(function(){P.isPending()&&function(D,U,A){var Y;Y=typeof U!="string"?U instanceof Error?U:new m("operation timed out"):new m(U),p.markAsOriginatingFromRejection(Y),D._attachExtraTrace(Y),D._reject(Y),A!=null&&A.cancel()}(P,E,k)},x));return h.cancellation()?(k=this.then(),(P=k._then(_,b,void 0,N,void 0))._setOnCancel(N)):P=this._then(_,b,void 0,N,void 0),P}}},{"./util":36}],35:[function(s,a,l){a.exports=function(c,f,h,p,m,g){var v=s("./util"),w=s("./errors").TypeError,_=s("./util").inherits,b=v.errorObj,x=v.tryCatch,E={};function P(Y){setTimeout(function(){throw Y},0)}function k(Y,q){var ee=0,Z=Y.length,te=new c(m);return function ne(){if(ee>=Z)return te._fulfill();var le=function(K){var $=h(K);return $!==K&&typeof K._isDisposable=="function"&&typeof K._getDisposer=="function"&&K._isDisposable()&&$._setDisposable(K._getDisposer()),$}(Y[ee++]);if(le instanceof c&&le._isDisposable()){try{le=h(le._getDisposer().tryDispose(q),Y.promise)}catch(K){return P(K)}if(le instanceof c)return le._then(ne,P,null,null,null)}ne()}(),te}function N(Y,q,ee){this._data=Y,this._promise=q,this._context=ee}function D(Y,q,ee){this.constructor$(Y,q,ee)}function U(Y){return N.isDisposer(Y)?(this.resources[this.index]._setDisposable(Y),Y.promise()):Y}function A(Y){this.length=Y,this.promise=null,this[Y-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():E},N.prototype.tryDispose=function(Y){var q=this.resource(),ee=this._context;ee!==void 0&&ee._pushContext();var Z=q!==E?this.doDispose(q,Y):null;return ee!==void 0&&ee._popContext(),this._promise._unsetDisposable(),this._data=null,Z},N.isDisposer=function(Y){return Y!=null&&typeof Y.resource=="function"&&typeof Y.tryDispose=="function"},_(D,N),D.prototype.doDispose=function(Y,q){return this.data().call(Y,Y,q)},A.prototype._resultCancelled=function(){for(var Y=this.length,q=0;q0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(Y){if(typeof Y=="function")return new D(Y,this,p());throw new w}}},{"./errors":12,"./util":36}],36:[function(s,a,l){var c,f=s("./es5"),h=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function g(){try{var Z=c;return c=null,Z.apply(this,arguments)}catch(te){return p.e=te,p}}function v(Z){return Z==null||Z===!0||Z===!1||typeof Z=="string"||typeof Z=="number"}function w(Z,te,ne){if(v(Z))return Z;var le={value:ne,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(Z,te,le),Z}var _=function(){var Z=[Array.prototype,Object.prototype,Function.prototype],te=function(K){for(var $=0;$1,le=te.length>0&&!(te.length===1&&te[0]==="constructor"),K=b.test(Z+"")&&f.names(Z).length>0;if(ne||le||K)return!0}return!1}catch{return!1}},isIdentifier:function(Z){return x.test(Z)},inheritedDataKeys:_,getDataPropertyOrDefault:function(Z,te,ne){if(!f.isES5)return{}.hasOwnProperty.call(Z,te)?Z[te]:void 0;var le=Object.getOwnPropertyDescriptor(Z,te);return le!=null?le.get==null&&le.set==null?le.value:ne:void 0},thrower:function(Z){throw Z},isArray:f.isArray,asArray:U,notEnumerableProp:w,isPrimitive:v,isObject:function(Z){return typeof Z=="function"||typeof Z=="object"&&Z!==null},isError:P,canEvaluate:h,errorObj:p,tryCatch:function(Z){return c=Z,g},inherits:function(Z,te){var ne={}.hasOwnProperty;function le(){for(var K in this.constructor=Z,this.constructor$=te,te.prototype)ne.call(te.prototype,K)&&K.charAt(K.length-1)!=="$"&&(this[K+"$"]=te.prototype[K])}return le.prototype=te.prototype,Z.prototype=new le,Z.prototype},withAppended:function(Z,te){var ne,le=Z.length,K=new Array(le+1);for(ne=0;ne10||Z[0]>0}(),ee.isNode&&ee.toFastProperties(r);try{throw new Error}catch(Z){ee.lastLineError=Z}a.exports=ee},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,s=r.length;o0?(typeof B=="string"||se.objectMode||Object.getPrototypeOf(B)===f.prototype||(B=function(me){return f.from(me)}(B)),W?se.endEmitted?I.emit("error",new Error("stream.unshift() after end event")):k(I,se,B,!0):se.ended?I.emit("error",new Error("stream.push() after EOF")):(se.reading=!1,se.decoder&&!ie?(B=se.decoder.write(B),se.objectMode||B.length!==0?k(I,se,B,!1):Y(I,se)):k(I,se,B,!1))):W||(se.reading=!1)),function(me){return!me.ended&&(me.needReadable||me.lengthB.highWaterMark&&(B.highWaterMark=function(ie){return ie>=N?ie=N:(ie--,ie|=ie>>>1,ie|=ie>>>2,ie|=ie>>>4,ie|=ie>>>8,ie|=ie>>>16,ie++),ie}(I)),I<=B.length?I:B.ended?B.length:(B.needReadable=!0,0))}function U(I){var B=I._readableState;B.needReadable=!1,B.emittedReadable||(g("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?o.nextTick(A,I):A(I))}function A(I){g("emit readable"),I.emit("readable"),te(I)}function Y(I,B){B.readingMore||(B.readingMore=!0,o.nextTick(q,I,B))}function q(I,B){for(var ie=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length=B.length?(ie=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):ie=function(W,G,re){var se;return WX.length?X.length:me;if(ae===X.length?Q+=X:Q+=X.slice(0,me),(me-=ae)==0){ae===X.length?(++F,R.next?O.head=R.next:O.head=O.tail=null):(O.head=R,R.data=X.slice(ae));break}++F}return O.length-=F,Q}(W,G):function(me,O){var R=f.allocUnsafe(me),F=O.head,Q=1;for(F.data.copy(R),me-=F.data.length;F=F.next;){var X=F.data,ae=me>X.length?X.length:me;if(X.copy(R,R.length-me,0,ae),(me-=ae)==0){ae===X.length?(++Q,F.next?O.head=F.next:O.head=O.tail=null):(O.head=F,F.data=X.slice(ae));break}++Q}return O.length-=Q,R}(W,G),se}(I,B.buffer,B.decoder),ie);var ie}function le(I){var B=I._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,o.nextTick(K,B,I))}function K(I,B){I.endEmitted||I.length!==0||(I.endEmitted=!0,B.readable=!1,B.emit("end"))}function $(I,B){for(var ie=0,W=I.length;ie=B.highWaterMark||B.ended))return g("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?le(this):U(this),null;if((I=D(I,B))===0&&B.ended)return B.length===0&&le(this),null;var W,G=B.needReadable;return g("need readable",G),(B.length===0||B.length-I0?ne(I,B):null)===null?(B.needReadable=!0,I=0):B.length-=I,B.length===0&&(B.ended||(B.needReadable=!0),ie!==I&&B.ended&&le(this)),W!==null&&this.emit("data",W),W},E.prototype._read=function(I){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(I,B){var ie=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=I;break;case 1:W.pipes=[W.pipes,I];break;default:W.pipes.push(I)}W.pipesCount+=1,g("pipe count=%d opts=%j",W.pipesCount,B);var G=B&&B.end===!1||I===i.stdout||I===i.stderr?ae:re;function re(){g("onend"),I.end()}W.endEmitted?o.nextTick(G):ie.once("end",G),I.on("unpipe",function ve(De,fe){g("onunpipe"),De===ie&&fe&&fe.hasUnpiped===!1&&(fe.hasUnpiped=!0,g("cleanup"),I.removeListener("close",Q),I.removeListener("finish",X),I.removeListener("drain",se),I.removeListener("error",F),I.removeListener("unpipe",ve),ie.removeListener("end",re),ie.removeListener("end",ae),ie.removeListener("data",R),me=!0,!W.awaitDrain||I._writableState&&!I._writableState.needDrain||se())});var se=function(ve){return function(){var De=ve._readableState;g("pipeOnDrain",De.awaitDrain),De.awaitDrain&&De.awaitDrain--,De.awaitDrain===0&&l(ve,"data")&&(De.flowing=!0,te(ve))}}(ie);I.on("drain",se);var me=!1,O=!1;function R(ve){g("ondata"),O=!1,I.write(ve)!==!1||O||((W.pipesCount===1&&W.pipes===I||W.pipesCount>1&&$(W.pipes,I)!==-1)&&!me&&(g("false write response, pause",ie._readableState.awaitDrain),ie._readableState.awaitDrain++,O=!0),ie.pause())}function F(ve){g("onerror",ve),ae(),I.removeListener("error",F),l(I,"error")===0&&I.emit("error",ve)}function Q(){I.removeListener("finish",X),ae()}function X(){g("onfinish"),I.removeListener("close",Q),ae()}function ae(){g("unpipe"),ie.unpipe(I)}return ie.on("data",R),function(ve,De,fe){if(typeof ve.prependListener=="function")return ve.prependListener(De,fe);ve._events&&ve._events[De]?a(ve._events[De])?ve._events[De].unshift(fe):ve._events[De]=[fe,ve._events[De]]:ve.on(De,fe)}(I,"error",F),I.once("close",Q),I.once("finish",X),I.emit("pipe",ie),W.flowing||(g("pipe resume"),ie.resume()),I},E.prototype.unpipe=function(I){var B=this._readableState,ie={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return I&&I!==B.pipes?this:(I||(I=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,I&&I.emit("unpipe",this,ie),this);if(!I){var W=B.pipes,G=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var re=0;re>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function a(g){var v=this.lastTotal-this.lastNeed,w=function(_,b,x){if((192&b[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&b.length>1){if((192&b[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&b.length>2&&(192&b[2])!=128)return _.lastNeed=2,"�"}}(this,g);return w!==void 0?w:this.lastNeed<=g.length?(g.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,v,0,g.length),void(this.lastNeed-=g.length))}function l(g,v){if((g.length-v)%2==0){var w=g.toString("utf16le",v);if(w){var _=w.charCodeAt(w.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",v,g.length-1)}function c(g){var v=g&&g.length?this.write(g):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,w)}return v}function f(g,v){var w=(g.length-v)%3;return w===0?g.toString("base64",v):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",v,g.length-w))}function h(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function p(g){return g.toString(this.encoding)}function m(g){return g&&g.length?this.write(g):""}t.StringDecoder=o,o.prototype.write=function(g){if(g.length===0)return"";var v,w;if(this.lastNeed){if((v=this.fillLast(g))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w=0?(k>0&&(b.lastNeed=k-1),k):--P=0?(k>0&&(b.lastNeed=k-2),k):--P=0?(k>0&&(k===2?k=0:b.lastNeed=k-3),k):0}(this,g,v);if(!this.lastNeed)return g.toString("utf8",v);this.lastTotal=w;var _=g.length-(w-this.lastNeed);return g.copy(this.lastChar,0,_),g.toString("utf8",v,_)},o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:function(c,f){var h=this._transformState;h.transforming=!1;var p=h.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));h.writechunk=null,h.writecb=null,f!=null&&this.push(f),p(c);var m=this._readableState;m.reading=!1,(m.needReadable||m.length-1&&s.push(i[a]);return s},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l])};return function(s,a){function l(){this.constructor=s}o(s,a),s.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function s(a,l,c){var f=o.call(this,"Error: "+a+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=a,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(s,o),s.column_mismatched=function(a,l){return new s("column_mismatched",a,l)},s.unclosed_quote=function(a,l){return new s("unclosed_quote",a,l)},s.fromJSON=function(a){return new s(a.err,a.line,a.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;e.exports=function(a){return a==null?a===void 0?"[object Undefined]":"[object Null]":s&&s in Object(a)?i(a):o(a)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var w in v)v.hasOwnProperty(w)&&(g[w]=v[w])};return function(g,v){function w(){this.constructor=g}m(g,v),g.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),a=n(50),l=n(51),c=o(n(15)),f=n(52),h=n(105),p=function(m){function g(v,w){w===void 0&&(w={});var _=m.call(this,w)||this;return _.options=w,_.params=a.mergeParams(v),_.runtime=l.initParseRuntime(_),_.result=new h.Result(_),_.processor=new f.ProcessorLocal(_),_.once("error",function(b){r(function(){_.result.processError(b),_.emit("done",b)})}),_.once("done",function(){_.processor.destroy()}),_}return i(g,m),g.prototype.preRawData=function(v){return this.runtime.preRawDataHook=v,this},g.prototype.preFileLine=function(v){return this.runtime.preFileLineHook=v,this},g.prototype.subscribe=function(v,w,_){return this.parseRuntime.subscribe={onNext:v,onError:w,onCompleted:_},this},g.prototype.fromFile=function(v,w){var _=this,b=n(!function(){var x=new Error("Cannot find module 'fs'");throw x.code="MODULE_NOT_FOUND",x}());return b.exists(v,function(x){x?b.createReadStream(v,w).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},g.prototype.fromStream=function(v){return v.pipe(this),this},g.prototype.fromString=function(v){v.toString();var w=new s.Readable,_=0;return w._read=function(b){if(_>=v.length)this.push(null);else{var x=v.substr(_,b);this.push(x),_+=b}},this.fromStream(w)},g.prototype.then=function(v,w){var _=this;return new c.default(function(b,x){_.parseRuntime.then={onfulfilled:function(E){b(v?v(E):E)},onrejected:function(E){w?b(w(E)):x(E)}}})},Object.defineProperty(g.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),g.prototype._transform=function(v,w,_){var b=this;this.processor.process(v).then(function(x){if(x.length>0)return b.runtime.started=!0,b.result.processResult(x)}).then(function(){b.emit("drained"),_()},function(x){b.runtime.hasError=!0,b.runtime.error=x,b.emit("error",x),_()})},g.prototype._flush=function(v){var w=this;this.processor.flush().then(function(_){if(_.length>0)return w.result.processResult(_)}).then(function(){w.processEnd(v)},function(_){w.emit("error",_),v()})},g.prototype.processEnd=function(v){this.result.endProcess(),this.emit("done"),v()},Object.defineProperty(g.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),g}(s.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,s){if(!o.setImmediate){var a,l=1,c={},f=!1,h=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?a=function(v){i.nextTick(function(){g(v)})}:function(){if(o.postMessage&&!o.importScripts){var v=!0,w=o.onmessage;return o.onmessage=function(){v=!1},o.postMessage("","*"),o.onmessage=w,v}}()?function(){var v="setImmediate$"+Math.random()+"$",w=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(v)===0&&g(+_.data.slice(v.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),a=function(_){o.postMessage(v+_,"*")}}():o.MessageChannel?function(){var v=new MessageChannel;v.port1.onmessage=function(w){g(w.data)},a=function(w){v.port2.postMessage(w)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var v=h.documentElement;a=function(w){var _=h.createElement("script");_.onreadystatechange=function(){g(w),_.onreadystatechange=null,v.removeChild(_),_=null},v.appendChild(_)}}():a=function(v){setTimeout(g,0,v)},p.setImmediate=function(v){typeof v!="function"&&(v=new Function(""+v));for(var w=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,s){var a=this;function l(v){o.writable&&o.write(v)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",l),o.on("drain",c),o._isStdio||s&&s.end===!1||(a.on("end",h),a.on("close",p));var f=!1;function h(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function m(v){if(g(),r.listenerCount(this,"error")===0)throw v}function g(){a.removeListener("data",l),o.removeListener("drain",c),a.removeListener("end",h),a.removeListener("close",p),a.removeListener("error",m),o.removeListener("error",m),a.removeListener("end",g),a.removeListener("close",g),o.removeListener("close",g)}return a.on("error",m),o.on("error",m),a.on("end",g),a.on("close",g),o.on("close",g),o.emit("pipe",a),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(p){var m=c(p),g=m[0],v=m[1];return 3*(g+v)/4-v},t.toByteArray=function(p){for(var m,g=c(p),v=g[0],w=g[1],_=new o(3*(v+w)/4-w),b=0,x=w>0?v-4:v,E=0;E>16&255,_[b++]=m>>8&255,_[b++]=255&m;return w===2&&(m=i[p.charCodeAt(E)]<<2|i[p.charCodeAt(E+1)]>>4,_[b++]=255&m),w===1&&(m=i[p.charCodeAt(E)]<<10|i[p.charCodeAt(E+1)]<<4|i[p.charCodeAt(E+2)]>>2,_[b++]=m>>8&255,_[b++]=255&m),_},t.fromByteArray=function(p){for(var m,g=p.length,v=g%3,w=[],_=0,b=g-v;_b?b:_+16383));return v===1?(m=p[g-1],w.push(r[m>>2]+r[m<<4&63]+"==")):v===2&&(m=(p[g-2]<<8)+p[g-1],w.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),w.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");return g===-1&&(g=m),[g,g===m?0:4-g%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function h(p,m,g){for(var v,w=[],_=m;_>1,p=-7,m=i?s-1:0,g=i?-1:1,v=n[r+m];for(m+=g,a=v&(1<<-p)-1,v>>=-p,p+=c;p>0;a=256*a+n[r+m],m+=g,p-=8);for(l=a&(1<<-p)-1,a>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=g,p-=8);if(a===0)a=1-h;else{if(a===f)return l?NaN:1/0*(v?-1:1);l+=Math.pow(2,o),a-=h}return(v?-1:1)*l*Math.pow(2,a-o)},t.write=function(n,r,i,o,s,a){var l,c,f,h=8*a-s-1,p=(1<>1,g=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=o?0:a-1,w=o?1:-1,_=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+m>=1?g/f:g*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*f-1)*Math.pow(2,s),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;n[i+v]=255&c,v+=w,c/=256,s-=8);for(l=l<0;n[i+v]=255&l,v+=w,l/=256,h-=8);n[i+v-w]|=128*_}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(s,a,l){s.copy(a,l)}e.exports=function(){function s(){(function(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(a){var l={data:a,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},s.prototype.unshift=function(a){var l={data:a,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},s.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(a){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=a+l.data;return c},s.prototype.concat=function(a){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(a>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(o,s){if(i("noDeprecation"))return o;var a=!1;return function(){if(!a){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),a=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,a,l){l(null,s)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var x in b)b.hasOwnProperty(x)&&(_[x]=b[x])};return function(_,b){function x(){this.constructor=_}w(_,b),_.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),a=o(n(15)),l=n(54),c=o(n(16)),f=n(57),h=n(28),p=n(58),m=o(n(59)),g=o(n(29)),v=function(w){function _(){var b=w!==null&&w.apply(this,arguments)||this;return b.rowSplit=new p.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(_,w),_.prototype.flush=function(){var b=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var x=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(x,!0).then(function(E){return b.runtime.csvLineBuffer&&b.runtime.csvLineBuffer.length>0?a.default.reject(g.default.unclosed_quote(b.runtime.parsedLineNumber,b.runtime.csvLineBuffer.toString())):a.default.resolve(E)})}return a.default.resolve([])},_.prototype.destroy=function(){return a.default.resolve()},Object.defineProperty(_.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),_.prototype.process=function(b,x){var E,P=this;return x===void 0&&(x=!1),E=x?b.toString():l.prepareData(b,this.converter.parseRuntime),a.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(E):E}).then(function(k){return k&&k.length>0?P.processCSV(k,x):a.default.resolve([])})},_.prototype.processCSV=function(b,x){var E=this,P=this.params,k=this.runtime;k.eol||c.default(b,k),this.needEmitEol&&!this.eolEmitted&&k.eol&&(this.converter.emit("eol",k.eol),this.eolEmitted=!0),P.ignoreEmpty&&!k.started&&(b=h.trimLeft(b));var N=f.stringToLines(b,k);return x?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(h.bufFromString(N.partial)),N.lines.length>0?(k.preFileLineHook?this.runPreLineHook(N.lines):a.default.resolve(N.lines)).then(function(D){return k.started||E.runtime.headers?E.processCSVBody(D):E.processDataWithHead(D)}):a.default.resolve([])},_.prototype.processDataWithHead=function(b){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var x="",E=[];b.length;){var P=x+b.shift(),k=this.rowSplit.parse(P);if(k.closed){E=k.cells,x="";break}x=P+c.default(P,this.runtime)}if(this.prependLeftBuf(h.bufFromString(x)),E.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=E}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(b)},_.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var b=this.runtime.headers,x=0;x=N.length)A();else if(D.preFileLineHook){var Y=N[U],q=D.preFileLineHook(Y,D.parsedLineNumber+U);if(U++,q&&q.then)q.then(function(ee){N[U-1]=ee,k(N,D,U,A)});else{for(N[U-1]=q;U0?r.concat([h.csvLineBuffer,f]):f}(s,a);a.csvLineBuffer=void 0;var c=function(f,h){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(h.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,a).toString("utf8");return a.started===!1?o.default(c):c}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var f=this.quote,h=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,m=c.split(p);if(f==="off"){if(h)for(var g=0;gh&&(p=m,h=g)}),p},l.prototype.isQuoteOpen=function(c){var f=this.quote,h=this.escape;return c[0]===f&&(c[1]!==f||c[1]===h&&(c[2]===f||c.length===2))},l.prototype.isQuoteClose=function(c){var f=this.quote,h=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,m=c.length-1;c[m]===f||c[m]===h;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var h=this.cachedRegExp[f];return c.replace(h,this.quote)},l.prototype.parseMultiLines=function(c){for(var f=[],h="";c.length;){var p=h+c.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),h=""):h=p+(i.default(p,this.conv.parseRuntime)||` -`))}return{rowsCells:f,partial:h}},l}();t.RowSplit=a},function(e,t,n){var r=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function a(_,b,x){if(b.parseParam.checkColumn&&b.parseRuntime.headers&&_.length!==b.parseRuntime.headers.length)throw i.default.column_mismatched(b.parseRuntime.parsedLineNumber+x);return function(E,P,k){for(var N=!1,D={},U=0,A=E.length;U-1){for(var k=b.split("."),N=!0;k.length>0;)if(k.shift().length===0){N=!1;break}!N||E.parseParam.colParser[b]&&E.parseParam.colParser[b].flat?E.parseRuntime.columnValueSetter[P]=h:E.parseRuntime.columnValueSetter[P]=p}else E.parseRuntime.columnValueSetter[P]=h;E.parseParam.nullObject===!0&&x==="null"&&(x=null),E.parseRuntime.columnValueSetter[P](_,b,x)}function h(_,b,x){_[b]=x}function p(_,b,x){o.default(_,b,x)}function m(_,b,x,E){return E.parseRuntime.headerType[x]?E.parseRuntime.headerType[x]:b.indexOf("number#!")>-1?E.parseRuntime.headerType[x]=g:b.indexOf("string#!")>-1?E.parseRuntime.headerType[x]=v:E.parseParam.checkType?E.parseRuntime.headerType[x]=w:E.parseRuntime.headerType[x]=v}function g(_){var b=parseFloat(_);return isNaN(b)?_:b}function v(_){return _.toString()}function w(_){var b=_.trim();return b===""?v(_):s.test(b)?g(_):b.length===5&&b.toLowerCase()==="false"||b.length===4&&b.toLowerCase()==="true"?function(x){var E=x.trim();return E.length!==5||E.toLowerCase()!=="false"}(_):b[0]==="{"&&b[b.length-1]==="}"||b[0]==="["&&b[b.length-1]==="]"?function(x){try{return JSON.parse(x)}catch{return x}}(_):v(_)}},function(e,t,n){var r=n(61);e.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),s=n(20),a=n(104);e.exports=function(l,c,f,h){if(!s(l))return l;for(var p=-1,m=(c=i(c,l)).length,g=m-1,v=l;v!=null&&++p-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var s=this.__data__,a=r(s,i);return a<0?(++this.size,s.push([i,o])):s[a][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var s=r(this,i),a=s.size;return s.set(i,o),this.size+=s.size==a?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),s=n(22),a=r?r.prototype:void 0,l=a?a.toString:void 0;e.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(s(f))return l?l.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,s=Array(o);++i-1&&r%1==0&&r0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(c){var f=this,h=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&h===0&&a(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function g(v,w,_,b,x){if(_>=v.length)x();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var E=w.parseRuntime.subscribe.onNext,P=v[_],k=E(P,w.parseRuntime.parsedLineNumber+_);if(_++,k&&k.then)k.then(function(){(function(D,U,A,Y,q,ee,Z){q&&a(A,Z),g(D,A,Y,q,ee)})(v,0,w,_,b,x,P)},x);else{for(b&&a(w,P);_-1}function k0e(e,t){var n=this.__data__,r=A_(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}iu.prototype.clear=E0e;iu.prototype.delete=T0e;iu.prototype.get=O0e;iu.prototype.has=P0e;iu.prototype.set=k0e;function ml(e){var t=-1,n=e?e.length:0;for(this.clear();++tt.toFixed(e.decimals).replace(".",e.separator):t=>`${t}`.replace(".",e.separator):e.decimals?t=>t.toFixed(e.decimals):t=>`${t}`}function hT(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;return!t||t===n?r=>r:r=>(r.includes(t)&&(r=r.replace(new RegExp(t,"g"),n)),`${t}${r}${t}`)}function X0e(e={stringFormatter:hT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Q0e(e={stringFormatter:hT()}){return t=>t===null||(t=JSON.stringify(t),t===void 0)?"":(t[0]==='"'&&(t=t.replace(/^"(.+)"$/,"$1")),e.stringFormatter(t))}function xL(e,t,n){const r=e[t];return r===void 0?n:r}function n$(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function Px(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}class J0e{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||hT(),i=Q0e({stringFormatter:r}),o={header:r,undefined:Yb,boolean:Yb,number:K0e(),bigint:Yb,string:r,symbol:X0e({stringFormatter:r}),function:i,object:i};return n.formatters={...o,...n.formatters},n.delimiter=n.delimiter||",",n.eol=n.eol||` -`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>wL(i,r,n):i=>xL(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string")return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?o=>wL(o,r.value,i):o=>xL(o,r.value,i)};if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i};return{label:o,value(a){const l=r.value(a,s);return l??i}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Px(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(n$,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return Px(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){return this.opts.formatters[typeof t](t)}}class ebe extends J0e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,a)=>(Object.keys(a).forEach(l=>{s.includes(l)||s.push(l)}),s),[]));const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields&&(n.length===0||typeof n[0]!="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(n$,[])}processData(t){return Px(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Cn;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Cn||(Cn={}));Cn.QUOTATION_MARK+"",Cn.QUOTATION_MARK,Cn.REVERSE_SOLIDUS+"",Cn.REVERSE_SOLIDUS,Cn.SOLIDUS+"",Cn.SOLIDUS,Cn.LATIN_SMALL_LETTER_B+"",Cn.BACKSPACE,Cn.LATIN_SMALL_LETTER_F+"",Cn.FORM_FEED,Cn.LATIN_SMALL_LETTER_N+"",Cn.NEWLINE,Cn.LATIN_SMALL_LETTER_R+"",Cn.CARRIAGE_RETURN,Cn.LATIN_SMALL_LETTER_T+"",Cn.TAB;var SL;(function(e){e[e.LEFT_BRACE=1]="LEFT_BRACE",e[e.RIGHT_BRACE=2]="RIGHT_BRACE",e[e.LEFT_BRACKET=3]="LEFT_BRACKET",e[e.RIGHT_BRACKET=4]="RIGHT_BRACKET",e[e.COLON=5]="COLON",e[e.COMMA=6]="COMMA",e[e.TRUE=7]="TRUE",e[e.FALSE=8]="FALSE",e[e.NULL=9]="NULL",e[e.STRING=10]="STRING",e[e.NUMBER=11]="NUMBER",e[e.SEPARATOR=12]="SEPARATOR"})(SL||(SL={}));var CL;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR"})(CL||(CL={}));var EL;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(EL||(EL={}));var TL;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(TL||(TL={}));const tbe=e=>new Promise(t=>{J_e().fromString(e).then(t)}),nbe=new ebe,rbe=e=>nbe.parse(e),ibe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",U_e,"localStorage"),e.service("ColorGenerator",Q_e,"Storage"),e.constant("csvToJson",tbe),e.constant("jsonToCsv",rbe),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",wee,"setTimeout","clearTimeout")},OL="shlink/mercure",obe={loading:!0,error:!1},sbe=e=>{const t=rr(`${OL}/loadMercureInfo`,(r,{getState:i})=>{const{settings:o}=i();if(!o.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e(i).mercureInfo()}),{reducer:n}=Gn({name:OL,initialState:obe,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},abe=e=>{e.serviceFactory("mercureInfoReducerCreator",sbe,"buildShlinkApiClient"),e.serviceFactory("mercureInfoReducer",ct("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",ct("loadMercureInfo"),"mercureInfoReducerCreator")},yc=({children:e})=>C("small",{className:"form-text text-muted d-block",children:e}),lbe=e=>e?`${e}`:"",cbe=({settings:{realTimeUpdates:e},toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const r=y_();return V(vn,{title:"Real-time updates",className:"h-100",children:[C(Zr,{children:V(Uc,{checked:e.enabled,onChange:t,children:["Enable or disable real-time updates.",V(yc,{children:["Real-time updates are currently being ",C("b",{children:e.enabled?"processed":"ignored"}),"."]})]})}),V(ru,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ge("form-label",{"text-muted":!e.enabled}),id:r,children:[C(fd,{type:"number",min:0,placeholder:"Immediate",disabled:!e.enabled,value:lbe(e.interval),id:r,onChange:({target:i})=>n(Number(i.value))}),e.enabled&&V(yc,{children:[e.interval!==void 0&&e.interval>0&&V("span",{children:["Updates will be reflected in the UI every ",C("b",{children:e.interval})," minute",e.interval>1&&"s","."]}),!e.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},qb=({items:e})=>C(Ye,{children:e.map((t,n)=>C("div",{className:"mb-3",children:t},n))}),ube=(e,t,n,r,i,o)=>()=>V(tu,{children:[V(w8,{className:"mb-3",children:[C(Cf,{to:"general",children:"General"}),C(Cf,{to:"short-urls",children:"Short URLs"}),C(Cf,{to:"other-items",children:"Other items"})]}),V(Gy,{children:[C(yt,{path:"general",element:C(qb,{items:[C(r,{}),C(e,{})]})}),C(yt,{path:"short-urls",element:C(qb,{items:[C(t,{}),C(n,{})]})}),C(yt,{path:"other-items",element:C(qb,{items:[C(o,{}),C(i,{})]})}),C(yt,{path:"*",element:C(DS,{replace:!0,to:"general"})})]})]}),Gb=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",fbe=e=>e==="includes"?V(Ye,{children:["The list of suggested tags will contain those ",C("b",{children:"including"})," provided input."]}):V(Ye,{children:["The list of suggested tags will contain those ",C("b",{children:"starting with"})," provided input."]}),dbe=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return V(vn,{title:"Short URLs form",className:"h-100",children:[C(Zr,{children:V(Uc,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",V(yc,{children:["The initial state of the ",C("b",{children:"Validate URL"})," checkbox will be ",C("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),C(Zr,{children:V(Uc,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",V(yc,{children:["The initial state of the ",C("b",{children:"Forward query params on redirect"})," checkbox will be ",C("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),V(ru,{noMargin:!0,label:"Tag suggestions search mode:",children:[V(ta,{text:Gb(n.tagFilteringMode),children:[C(Ve,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:Gb("startsWith")}),C(Ve,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:Gb("includes")})]}),C(yc,{children:fbe(n.tagFilteringMode)})]})]})};const hbe=({settings:{ui:e},setUiSettings:t})=>V(vn,{title:"User interface",className:"h-100",children:[C(je,{icon:(e==null?void 0:e.theme)==="dark"?Aq:Sq,className:"user-interface__theme-icon"}),C(Uc,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),S6(r)},children:"Use dark theme."})]}),pbe=({onChange:e,active:t,allText:n})=>C(ta,{text:TE(t)??n,children:C(U5,{allText:n,active:t,onChange:e})}),PL=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},mbe=({settings:e,setVisitsSettings:t})=>{var n,r;return V(vn,{title:"Visits",className:"h-100",children:[C(Zr,{children:V(Uc,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:PL(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",V(yc,{children:["The visits coming from potential bots will be ",C("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),C(ru,{noMargin:!0,label:"Default interval to load on visits sections:",children:C(pbe,{allText:"All visits",active:PL(e),onChange:i=>t({defaultInterval:i})})})]})},gbe=({settings:{tags:e},setTagsSettings:t})=>C(vn,{title:"Tags",className:"h-100",children:C(ru,{noMargin:!0,label:"Default ordering for tags list:",children:C(oh,{items:HF,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})}),vbe=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>C(vn,{title:"Short URLs list",className:"h-100",children:C(ru,{noMargin:!0,label:"Default ordering for short URLs list:",children:C(oh,{items:H5,order:(e==null?void 0:e.defaultOrdering)??kE,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),ybe=(e,t)=>{e.serviceFactory("Settings",ube,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",nv),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>cbe),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>dbe),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>hbe),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>mbe),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>gbe),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>vbe),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>Qce),e.serviceFactory("setRealTimeUpdatesInterval",()=>Jce),e.serviceFactory("setShortUrlCreationSettings",()=>eue),e.serviceFactory("setShortUrlsListSettings",()=>tue),e.serviceFactory("setUiSettings",()=>nue),e.serviceFactory("setVisitsSettings",()=>rue),e.serviceFactory("setTagsSettings",()=>iue)},_be=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},zp="shlink/domainsList",Up={domains:[],filteredDomains:[],loading:!1,error:!1},kL=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},ML=(e,t)=>n=>n.domain!==e?n:{...n,status:t},bbe=(e,t)=>{const n=rr(`${zp}/listDomains`,async(s,{getState:a})=>{const{listDomains:l}=e(a),{data:c,defaultRedirects:f}=await l();return{domains:c.map(h=>({...h,status:"validating"})),defaultRedirects:f}}),r=rr(`${zp}/checkDomainHealth`,async(s,{getState:a})=>{const{selectedServer:l}=a();if(!qS(l))return{domain:s,status:"invalid"};try{const{url:c,...f}=l,{health:h}=e({...f,url:_be(c,s)}),{status:p}=await h();return{domain:s,status:p==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),i=wn(`${zp}/filterDomains`),{reducer:o}=Gn({name:zp,initialState:Up,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...Up,loading:!0})),s.addCase(n.rejected,(a,{error:l})=>({...Up,error:!0,errorData:no(l)})),s.addCase(n.fulfilled,(a,{payload:l})=>({...Up,...l,filteredDomains:l.domains})),s.addCase(r.fulfilled,({domains:a,filteredDomains:l,...c},{payload:f})=>({...c,domains:a.map(ML(f.domain,f.status)),filteredDomains:l.map(ML(f.domain,f.status))})),s.addCase(i,(a,{payload:l})=>({...a,filteredDomains:a.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),s.addCase(t.fulfilled,(a,{payload:l})=>({...a,domains:a.domains.map(kL(l)),filteredDomains:a.filteredDomains.map(kL(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}};const wbe=({listDomains:e,value:t,domainsList:n,onChange:r})=>{const[i,,o,s]=jt(),{domains:a}=n,l=qn(t),c=()=>r("");return H.useEffect(()=>{e()},[]),i?V(Zd,{children:[C(fd,{value:t??"",placeholder:"Domain",onChange:f=>r(f.target.value)}),C(mt,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:It(c,s),children:C(je,{icon:pq})}),C(Br,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):V(ta,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[a.map(({domain:f,isDefault:h})=>V(Ve,{active:(t===f||h)&&l,onClick:()=>r(f),children:[f,h&&C("span",{className:"float-end text-muted",children:"default"})]},f)),C(Ve,{divider:!0}),C(Ve,{onClick:It(c,o),children:C("i",{children:"New domain"})})]})},xbe=({status:e,matchMedia:t=window.matchMedia})=>{const n=H.useRef(),r=()=>t("(max-width: 991px)").matches,[i,o]=H.useState(r());return H.useEffect(()=>{const s=()=>o(r());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e==="validating"?C(je,{fixedWidth:!0,icon:GA,spin:!0}):V(Ye,{children:[C("span",{ref:uh(n),children:e==="valid"?C(je,{fixedWidth:!0,icon:nd,className:"text-muted"}):C(je,{fixedWidth:!0,icon:sw,className:"text-danger"})}),C(Br,{target:()=>n.current,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":V("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",C("br",{}),"Check the ",C(Ci,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},Zb=({isLast:e,...t})=>C(Qm,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),Sbe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var h,p,m;const[i,o]=H.useState(((h=n.redirects)==null?void 0:h.baseUrlRedirect)??""),[s,a]=H.useState(((p=n.redirects)==null?void 0:p.regular404Redirect)??""),[l,c]=H.useState(((m=n.redirects)==null?void 0:m.invalidShortUrlRedirect)??""),f=Xd(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:lb(i),regular404Redirect:lb(s),invalidShortUrlRedirect:lb(l)}}).then(t));return C(zo,{isOpen:e,toggle:t,centered:!0,children:V("form",{name:"domainRedirectsModal",onSubmit:f,children:[V(ro,{toggle:t,children:["Edit redirects for ",C("b",{children:n.domain})]}),V(Mi,{children:[V(Zb,{value:i,onChange:o,children:[V(Xm,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",V("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),V(Zb,{value:s,onChange:a,children:[V(Xm,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",V("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),V(Zb,{value:l,isLast:!0,onChange:c,children:[C(Xm,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),V(Js,{children:[C(mt,{color:"link",type:"button",onClick:t,children:"Cancel"}),C(mt,{color:"primary",children:"Save"})]})]})})},Cbe=({domain:e,editDomainRedirects:t,selectedServer:n})=>{const[r,i]=jt(),[o,s]=jt(),{isDefault:a}=e,l=!a||Hee(n),c=L6(n),f=Bd(n);return V(O_,{isOpen:r,toggle:i,children:[c&&V(Ve,{tag:At,to:`/server/${f}/domain/${e.domain}${e.isDefault?`_${e8}`:""}/visits`,children:[C(je,{icon:iC,fixedWidth:!0})," Visit stats"]}),V(Ve,{disabled:!l,onClick:l?s:void 0,children:[C(je,{fixedWidth:!0,icon:rC})," Edit redirects"]}),C(Sbe,{domain:e,isOpen:o,toggle:s,editDomainRedirects:t})]})},Kb=({fallback:e})=>V("span",{className:"text-muted",children:[!e&&C("small",{children:"No redirect"}),e&&V(Ye,{children:[e," ",C("small",{children:"(as fallback)"})]})]}),Ebe=()=>V(Ye,{children:[C(je,{fixedWidth:!0,icon:ZY,className:"text-primary",id:"defaultDomainIcon"}),C(Br,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),Tbe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r,selectedServer:i})=>{const{domain:o,isDefault:s,redirects:a,status:l}=e;return H.useEffect(()=>{n(e.domain)},[]),V("tr",{className:"responsive-table__row",children:[C("td",{className:"responsive-table__cell","data-th":"Is default domain",children:s&&C(Ebe,{})}),C("th",{className:"responsive-table__cell","data-th":"Domain",children:o}),C("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??C(Kb,{fallback:r==null?void 0:r.baseUrlRedirect})}),C("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??C(Kb,{fallback:r==null?void 0:r.regular404Redirect})}),C("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??C(Kb,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),C("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:C(xbe,{status:l})}),C("td",{className:"responsive-table__cell text-end",children:C(Cbe,{domain:e,editDomainRedirects:t,selectedServer:i})})]})},RL=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],Obe=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i,selectedServer:o})=>{var m;const{filteredDomains:s,defaultRedirects:a,loading:l,error:c,errorData:f}=t,h=a??((m=s.find(({isDefault:g})=>g))==null?void 0:m.redirects);return H.useEffect(()=>{e()},[]),l?C(So,{loading:!0}):V(Ye,{children:[C(nh,{className:"mb-3",onChange:n}),(()=>c?C(Lr,{type:"error",children:C(Do,{errorData:f,fallbackMessage:"Error loading domains :("})}):C(vn,{children:V("table",{className:"table table-hover responsive-table mb-0",children:[C("thead",{className:"responsive-table__header",children:C("tr",{children:RL.map((g,v)=>C("th",{children:g},v))})}),V("tbody",{children:[s.length<1&&C("tr",{children:C("td",{colSpan:RL.length,className:"text-center",children:"No results found"})}),s.map(g=>C(Tbe,{domain:g,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:h,selectedServer:o},g.domain))]})]})}))()]})},Pbe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",kbe=e=>rr(Pbe,async({domain:t,redirects:n},{getState:r})=>{const{editDomainRedirects:i}=e(r),o=await i({domain:t,...n});return{domain:t,redirects:o}}),Mbe=(e,t)=>{e.serviceFactory("DomainSelector",()=>wbe),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>Obe),e.decorator("ManageDomains",t(["domainsList","selectedServer"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",bbe,"buildShlinkApiClient","editDomainRedirects"),e.serviceFactory("domainsListReducer",ct("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",ct("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",ct("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",kbe,"buildShlinkApiClient"),e.serviceFactory("checkDomainHealth",ct("checkDomainHealth"),"domainsListReducerCreator")},{actions:Rbe,reducer:Nbe}=Gn({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Lbe,resetAppUpdate:Dbe}=Rbe,Abe=Nbe;const Ibe=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=jt();return V(qC,{className:"app-update-banner",isOpen:e,toggle:t,tag:vn,color:"secondary",children:[C("h4",{className:"mb-4",children:"This app has just been updated!"}),V("p",{className:"mb-0",children:["Restart it to enjoy the new features.",V(mt,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:()=>{i(),n()},children:[!r&&V(Ye,{children:["Restart now ",C(je,{icon:Rq,className:"ms-1"})]}),r&&C(Ye,{children:"Restarting..."})]})]})]})},Fbe=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})};const $be=(e,t,n,r,i,o,s,a)=>({fetchServers:l,servers:c,settings:f,appUpdated:h,resetAppUpdate:p})=>{const g=Mn().pathname==="/";return H.useEffect(()=>{var v;Object.keys(c).length===0&&l(),S6(((v=f.ui)==null?void 0:v.theme)??"light")},[]),V("div",{className:"container-fluid app-container",children:[C(e,{}),V("div",{className:"app",children:[C("div",{className:ge("shlink-wrapper",{"d-flex d-md-block align-items-center":g}),children:V(Gy,{children:[C(yt,{index:!0,element:C(t,{})}),C(yt,{path:"/settings/*",element:C(o,{})}),C(yt,{path:"/manage-servers",element:C(s,{})}),C(yt,{path:"/server/create",element:C(r,{})}),C(yt,{path:"/server/:serverId/edit",element:C(i,{})}),C(yt,{path:"/server/:serverId/*",element:C(n,{})}),C(yt,{path:"*",element:C(A6,{})})]})}),C("div",{className:"shlink-footer",children:C(a,{})})]}),C(Ibe,{isOpen:h,toggle:p,forceUpdate:Fbe})]})},jbe=(e,t)=>{e.serviceFactory("App",$be,"MainHeader","Home","MenuLayout","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Lbe),e.serviceFactory("resetAppUpdate",()=>Dbe)},ai=new EU,{container:pT}=ai,Bbe=(e,t)=>(...n)=>e[t](...n),zbe=(e,t)=>({...e,[t]:Bbe(pT,t)}),ia=(e,t=[])=>Y9(e?kA(e):null,t.reduce(zbe,{}));jbe(ai,ia);lne(ai,ia);jY(ai);mfe(ai,ia);Jfe(ai,ia);B_e(ai,ia);Wye(ai,ia);ibe(ai);abe(ai);ybe(ai,ia);Mbe(ai,ia);var mT={},ly={},Ube={get exports(){return ly},set exports(e){ly=e}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var c=[],f=0;f$.length)&&(I=$.length);for(var B=0,ie=Array(I);BU6({servers:$fe,selectedServer:e.selectedServerReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlDetail:e.shortUrlDetailReducer,shortUrlVisits:e.shortUrlVisitsReducer,tagVisits:e.tagVisitsReducer,domainVisits:e.domainVisitsReducer,orphanVisits:e.orphanVisitsReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,mercureInfo:e.mercureInfoReducer,settings:oue,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,appUpdated:Abe,sidebar:ine}),Hbe=e=>{var t;return e.settings&&((t=e.settings.visits)==null?void 0:t.defaultInterval)==="last180days"&&e.settings.visits&&(e.settings.visits.defaultInterval="last180Days"),e},Wbe=!0,r$={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},Ybe=Hbe(mT.load(r$)),qbe=e=>Ote({devTools:!Wbe,reducer:Vbe(e),preloadedState:Ybe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).prepend(e.selectServerListener.middleware).concat(mT.save(r$))}),Gbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",Zbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",Kbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Xbe=()=>{delete LR.Icon.Default.prototype._getIconUrl,LR.Icon.Default.mergeOptions({iconRetinaUrl:Gbe,iconUrl:Zbe,shadowUrl:Kbe})},Qbe=Boolean(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function Jbe(e){if("serviceWorker"in navigator){if(new URL(Ig.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Ig.homepage}/service-worker.js`;Qbe?(e1e(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):i$(n,e)})}}function i$(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function e1e(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):i$(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}N_.register(...wve);Xbe();const o$=qbe(pT),{App:t1e,ScrollToTop:n1e,ErrorHandler:r1e,appUpdateAvailable:i1e}=pT;z4(document.getElementById("root")).render(C(q9,{store:o$,children:C(Zz,{basename:Ig.homepage,children:C(r1e,{children:C(n1e,{children:C(t1e,{})})})})}));Jbe({onUpdate(){o$.dispatch(i1e())}}); diff --git a/develop/index.html b/develop/index.html index fd7c0f0c..d1c1efee 100644 --- a/develop/index.html +++ b/develop/index.html @@ -79,8 +79,8 @@ Shlink — The URL shortener - - + +