diff --git a/feature/decouple-api-client/.htaccess b/feature/decouple-api-client/.htaccess new file mode 100644 index 00000000..680e1a5e --- /dev/null +++ b/feature/decouple-api-client/.htaccess @@ -0,0 +1,16 @@ +RewriteEngine on +RewriteBase / + +# do not do anything for already existing files +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -l [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule (.*) - [L] + +# if request is no valid file NOR directory +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +# if static asset do not do anything +RewriteRule (.*)(css|js|html|png|jpe?g|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) - [NC,L,R=404] +# everything else should be redirected to /index.html so it can be routed by it +RewriteRule (.*) /index.html [L] diff --git a/feature/decouple-api-client/assets/index-7349d3b4.css b/feature/decouple-api-client/assets/index-7349d3b4.css new file mode 100644 index 00000000..7bd78d9a --- /dev/null +++ b/feature/decouple-api-client/assets/index-7349d3b4.css @@ -0,0 +1,6 @@ +@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}}.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)}.shlink-versions-container--with-sidebar{margin-left:0}@media (min-width: 768px){.shlink-versions-container--with-sidebar{margin-left:260px}}.no-menu-wrapper{padding:15px 0 0}@media (min-width: 768px){.no-menu-wrapper{padding:30px 20px 20px}}.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}.user-interface__theme-icon{float:right;margin-top:.25rem}/*! + * 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:"— "}.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(2n){--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;-webkit-appearance:none;-moz-appearance:none;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;-webkit-appearance:none;-moz-appearance:none;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);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;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;-webkit-appearance:none;-moz-appearance:none;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;-webkit-appearance:none;-moz-appearance:none;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;-webkit-appearance:none;-moz-appearance:none;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;-webkit-user-select:none;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;-webkit-user-select: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%)}.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%)}.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%)}.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%)}.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}.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%)}.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%)}.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%)}.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%)}.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}.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%)}.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%)}.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%)}.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%)}.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}.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%)}.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%)}.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%)}.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%)}.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}.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%)}.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%)}.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%)}.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%)}.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}.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{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;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{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;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}}@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}}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)}: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.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-header,.modal-footer.modal-footer,.card-header.card-header,.card-footer.card-footer,.table.table thead th,.table.table th,.table.table td,.page-link.page-link,.page-link.page-link:hover,.page-item.page-item.disabled .page-link.page-link,.dropdown-divider.dropdown-divider,.dropdown-menu.dropdown-menu,.list-group-item.list-group-item,.modal-content.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,.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}.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}}.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{text-align:left}.dropdown-btn__toggle.dropdown-btn__toggle--with-caret{padding-right:1.75rem}.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{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}.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}.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)}.highlight-card.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}.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))}}.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}.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)}.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{cursor:pointer}.tag-bullet{border-radius:50%;width:20px;height:20px;display:inline-block;vertical-align:-4px;margin-right:7px}.simple-paginator{-webkit-user-select:none;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;right:0;bottom:-1px;left: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;right:0;bottom:0;left: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;right:-1px;bottom:-1px;left:0;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;right:0;bottom:0;left:1px;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;right:-1px;bottom:-1px;left:0;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;right:0;bottom:0;left:1px;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}.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-text{margin-left:8px}.shlink-layout__swipeable,.shlink-layout__swipeable-inner{height:100%}.shlink-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){.shlink-layout__burger-icon{display:inline-block}}.shlink-layout__burger-icon--active{color:#fff}.shlink-layout__container.shlink-layout__container{padding:20px 0 0;min-height:100%}@media (min-width: 768px){.shlink-layout__container.shlink-layout__container{padding:30px 0 0 260px}}.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 img.leaflet-tile{mix-blend-mode:plus-lighter}.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 rgba(0,0,0,0);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}.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 15px}.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:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;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:#0000}.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__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:#bad9f1;color:#000}.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__year--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__year--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__year--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),.react-datepicker__year--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:#0000}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid rgba(0,0,0,0);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:#0000;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:"×"}.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}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}.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-active{box-shadow:0 0 0 .2rem #4696e540}.react-tags__label{display:none}.react-tags__tag{font-size:100%}.react-tags__list{display:inline;vertical-align:2px;padding:0;list-style-type:none}.react-tags__list-item{display:inline-block}.react-tags__list-item:not(:last-child){margin-right:3px}.react-tags__combobox{display:inline-block;padding:6px 2px;margin-bottom:5px;max-width:100%}@media screen and (min-width: 576px){.react-tags__combobox{position:relative}}.react-tags__combobox-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__combobox-input::placeholder{color:#6c757d}.react-tags__combobox-input::-ms-clear{display:none}.react-tags__listbox{position:absolute;top:100%;left:0;width:100%;z-index:10;margin:4px -1px;padding:0;background:var(--primary-color);border:1px solid var(--border-color);border-radius:.25rem;box-shadow:0 2px 6px #0003}@media screen and (min-width: 576px){.react-tags__listbox{width:240px}}.react-tags__listbox .react-tags__listbox-option{padding:8px 10px}.react-tags__listbox .react-tags__listbox-option:not(:last-child){border-bottom:1px solid var(--border-color)}.react-tags__listbox .react-tags__listbox-option:hover:not(.react-tags__listbox-option--not-selectable){cursor:pointer;background-color:var(--active-color)}.react-tags__listbox .react-tags__listbox-option.is-active{background-color:var(--active-color)}.react-tags__listbox .react-tags__listbox-option.is-disabled{opacity:.5;cursor:auto}.sticky-card-paginator{position:sticky;bottom:0;background-color:var(--primary-color-alfa);padding:.75rem 0;border-top:1px solid var(--border-color)}.input-group-text.input-group-text{border-color:var(--input-border-color)}*{outline:none!important} diff --git a/feature/decouple-api-client/assets/index-ea5033a2.js b/feature/decouple-api-client/assets/index-ea5033a2.js new file mode 100644 index 00000000..0f2b8eff --- /dev/null +++ b/feature/decouple-api-client/assets/index-ea5033a2.js @@ -0,0 +1,1007 @@ +var qU=Object.defineProperty;var KU=(e,t,n)=>t in e?qU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gt=(e,t,n)=>(KU(e,typeof t!="symbol"?t+"":t,n),n);function ZU(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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 Ip=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rR={exports:{}},my={},iR={exports:{}},ot={};/** + * @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 jh=Symbol.for("react.element"),QU=Symbol.for("react.portal"),XU=Symbol.for("react.fragment"),JU=Symbol.for("react.strict_mode"),e7=Symbol.for("react.profiler"),t7=Symbol.for("react.provider"),n7=Symbol.for("react.context"),r7=Symbol.for("react.forward_ref"),i7=Symbol.for("react.suspense"),o7=Symbol.for("react.memo"),a7=Symbol.for("react.lazy"),yC=Symbol.iterator;function s7(e){return e===null||typeof e!="object"?null:(e=yC&&e[yC]||e["@@iterator"],typeof e=="function"?e:null)}var oR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aR=Object.assign,sR={};function Du(e,t,n){this.props=e,this.context=t,this.refs=sR,this.updater=n||oR}Du.prototype.isReactComponent={};Du.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")};Du.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lR(){}lR.prototype=Du.prototype;function M2(e,t,n){this.props=e,this.context=t,this.refs=sR,this.updater=n||oR}var A2=M2.prototype=new lR;A2.constructor=M2;aR(A2,Du.prototype);A2.isPureReactComponent=!0;var _C=Array.isArray,cR=Object.prototype.hasOwnProperty,R2={current:null},uR={key:!0,ref:!0,__self:!0,__source:!0};function dR(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)cR.call(t,r)&&!uR.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,ie=q[H];if(0>>1;Hi(re,D))aei(he,re)?(q[H]=he,q[ae]=D,H=ae):(q[H]=re,q[K]=D,H=K);else if(aei(he,D))q[H]=he,q[ae]=D,H=ae;else break e}}return I}function i(q,I){var D=q.sortIndex-I.sortIndex;return D!==0?D:q.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,p=3,m=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(q){for(var I=n(c);I!==null;){if(I.callback===null)r(c);else if(I.startTime<=q)r(c),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(c)}}function E(q){if(y=!1,S(q),!v)if(n(l)!==null)v=!0,te(C);else{var I=n(c);I!==null&&le(E,I.startTime-q)}}function C(q,I){v=!1,y&&(y=!1,_(A),A=-1),m=!0;var D=p;try{for(S(I),f=n(l);f!==null&&(!(f.expirationTime>I)||q&&!z());){var H=f.callback;if(typeof H=="function"){f.callback=null,p=f.priorityLevel;var ie=H(f.expirationTime<=I);I=e.unstable_now(),typeof ie=="function"?f.callback=ie:f===n(l)&&r(l),S(I)}else r(l);f=n(l)}if(f!==null)var V=!0;else{var K=n(c);K!==null&&le(E,K.startTime-I),V=!1}return V}finally{f=null,p=D,m=!1}}var k=!1,j=null,A=-1,$=5,N=-1;function z(){return!(e.unstable_now()-N<$)}function W(){if(j!==null){var q=e.unstable_now();N=q;var I=!0;try{I=j(!0,q)}finally{I?X():(k=!1,j=null)}}else k=!1}var X;if(typeof w=="function")X=function(){w(W)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,Z=G.port2;G.port1.onmessage=W,X=function(){Z.postMessage(null)}}else X=function(){x(W,0)};function te(q){j=q,k||(k=!0,X())}function le(q,I){A=x(function(){q(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,te(C))},e.unstable_forceFrameRate=function(q){0>q||125H?(q.sortIndex=D,t(c,q),n(l)===null&&q===n(c)&&(y?(_(A),A=-1):y=!0,le(E,D-H))):(q.sortIndex=ie,t(l,q),v||m||(v=!0,te(C))),q},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(q){var I=p;return function(){var D=p;p=I;try{return q.apply(this,arguments)}finally{p=D}}}})(mR);pR.exports=mR;var _7=pR.exports;/** + * @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 gR=U,Kr=_7;function Ee(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"),tb=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]*$/,wC={},xC={};function w7(e){return tb.call(xC,e)?!0:tb.call(wC,e)?!1:b7.test(e)?xC[e]=!0:(wC[e]=!0,!1)}function x7(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 S7(e,t,n,r){if(t===null||typeof t>"u"||x7(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 Sr(e,t,n,r,i,o,a){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=a}var Jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jn[e]=new Sr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jn[t]=new Sr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jn[e]=new Sr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jn[e]=new Sr(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){Jn[e]=new Sr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jn[e]=new Sr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jn[e]=new Sr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jn[e]=new Sr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jn[e]=new Sr(e,5,!1,e.toLowerCase(),null,!1,!1)});var D2=/[\-:]([a-z])/g;function I2(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(D2,I2);Jn[t]=new Sr(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(D2,I2);Jn[t]=new Sr(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(D2,I2);Jn[t]=new Sr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jn[e]=new Sr(e,1,!1,e.toLowerCase(),null,!1,!1)});Jn.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jn[e]=new Sr(e,1,!1,e.toLowerCase(),null,!0,!0)});function F2(e,t,n,r){var i=Jn.hasOwnProperty(t)?Jn[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{h_=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rd(e):""}function E7(e){switch(e.tag){case 5:return Rd(e.type);case 16:return Rd("Lazy");case 13:return Rd("Suspense");case 19:return Rd("SuspenseList");case 0:case 2:case 15:return e=p_(e.type,!1),e;case 11:return e=p_(e.type.render,!1),e;case 1:return e=p_(e.type,!0),e;default:return""}}function ob(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 xc:return"Fragment";case wc:return"Portal";case nb:return"Profiler";case $2:return"StrictMode";case rb:return"Suspense";case ib:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _R:return(e.displayName||"Context")+".Consumer";case yR:return(e._context.displayName||"Context")+".Provider";case U2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B2:return t=e.displayName||null,t!==null?t:ob(e.type)||"Memo";case Oa:t=e._payload,e=e._init;try{return ob(e(t))}catch{}}return null}function T7(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 ob(t);case 8:return t===$2?"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 is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function O7(e){var t=wR(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(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Up(e){e._valueTracker||(e._valueTracker=O7(e))}function xR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Og(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 ab(e,t){var n=t.checked;return Zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function EC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=is(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 SR(e,t){t=t.checked,t!=null&&F2(e,"checked",t,!1)}function sb(e,t){SR(e,t);var n=is(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")?lb(e,t.type,n):t.hasOwnProperty("defaultValue")&&lb(e,t.type,is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function TC(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 lb(e,t,n){(t!=="number"||Og(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nd=Array.isArray;function Bc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Bp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kd={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},C7=["Webkit","ms","Moz","O"];Object.keys(Kd).forEach(function(e){C7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kd[t]=Kd[e]})});function CR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kd.hasOwnProperty(e)&&Kd[e]?(""+t).trim():t+"px"}function kR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=CR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var k7=Zt({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 db(e,t){if(t){if(k7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function fb(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 hb=null;function z2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pb=null,zc=null,Vc=null;function kC(e){if(e=Ah(e)){if(typeof pb!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=by(t),pb(e.stateNode,e.type,t))}}function PR(e){zc?Vc?Vc.push(e):Vc=[e]:zc=e}function jR(){if(zc){var e=zc,t=Vc;if(Vc=zc=null,kC(e),t)for(e=0;e>>=0,e===0?32:31-($7(e)/U7|0)|0}var zp=64,Vp=4194304;function Dd(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 jg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Dd(s):(o&=a,o!==0&&(r=Dd(o)))}else a=n&~i,a!==0?r=Dd(a):o!==0&&(r=Dd(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 Lh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vi(t),e[t]=n}function H7(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=Qd),IC=String.fromCharCode(32),FC=!1;function ZR(e,t){switch(e){case"keyup":return yB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sc=!1;function bB(e,t){switch(e){case"compositionend":return QR(t);case"keypress":return t.which!==32?null:(FC=!0,IC);case"textInput":return e=t.data,e===IC&&FC?null:e;default:return null}}function wB(e,t){if(Sc)return e==="compositionend"||!Z2&&ZR(e,t)?(e=qR(),Km=G2=Aa=null,Sc=!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=zC(n)}}function tN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nN(){for(var e=window,t=Og();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Og(e.document)}return t}function Q2(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 jB(e){var t=nN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tN(n.ownerDocument.documentElement,n)){if(r!==null&&Q2(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=VC(n,o);var a=VC(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Ec=null,bb=null,Jd=null,wb=!1;function HC(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wb||Ec==null||Ec!==Og(r)||(r=Ec,"selectionStart"in r&&Q2(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}),Jd&&If(Jd,r)||(Jd=r,r=Ag(bb,"onSelect"),0Cc||(e.current=Cb[Cc],Cb[Cc]=null,Cc--)}function jt(e,t){Cc++,Cb[Cc]=e.current,e.current=t}var os={},lr=gs(os),Pr=gs(!1),pl=os;function tu(e,t){var n=e.type.contextTypes;if(!n)return os;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 jr(e){return e=e.childContextTypes,e!=null}function Ng(){It(Pr),It(lr)}function QC(e,t,n){if(lr.current!==os)throw Error(Ee(168));jt(lr,t),jt(Pr,n)}function dN(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(Ee(108,T7(e)||"Unknown",i));return Zt({},n,r)}function Dg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||os,pl=lr.current,jt(lr,e),jt(Pr,Pr.current),!0}function XC(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=dN(e,t,pl),r.__reactInternalMemoizedMergedChildContext=e,It(Pr),It(lr),jt(lr,e)):It(Pr),jt(Pr,n)}var Do=null,wy=!1,k_=!1;function fN(e){Do===null?Do=[e]:Do.push(e)}function zB(e){wy=!0,fN(e)}function vs(){if(!k_&&Do!==null){k_=!0;var e=0,t=xt;try{var n=Do;for(xt=1;e>=a,i-=a,Uo=1<<32-Vi(t)+i|n<A?($=j,j=null):$=j.sibling;var N=p(_,j,S[A],E);if(N===null){j===null&&(j=$);break}e&&j&&N.alternate===null&&t(_,j),w=o(N,w,A),k===null?C=N:k.sibling=N,k=N,j=$}if(A===S.length)return n(_,j),Vt&&$s(_,A),C;if(j===null){for(;AA?($=j,j=null):$=j.sibling;var z=p(_,j,N.value,E);if(z===null){j===null&&(j=$);break}e&&j&&z.alternate===null&&t(_,j),w=o(z,w,A),k===null?C=z:k.sibling=z,k=z,j=$}if(N.done)return n(_,j),Vt&&$s(_,A),C;if(j===null){for(;!N.done;A++,N=S.next())N=f(_,N.value,E),N!==null&&(w=o(N,w,A),k===null?C=N:k.sibling=N,k=N);return Vt&&$s(_,A),C}for(j=r(_,j);!N.done;A++,N=S.next())N=m(j,_,A,N.value,E),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?A:N.key),w=o(N,w,A),k===null?C=N:k.sibling=N,k=N);return e&&j.forEach(function(W){return t(_,W)}),Vt&&$s(_,A),C}function x(_,w,S,E){if(typeof S=="object"&&S!==null&&S.type===xc&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case $p:e:{for(var C=S.key,k=w;k!==null;){if(k.key===C){if(C=S.type,C===xc){if(k.tag===7){n(_,k.sibling),w=i(k,S.props.children),w.return=_,_=w;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Oa&&ok(C)===k.type){n(_,k.sibling),w=i(k,S.props),w.ref=vd(_,k,S),w.return=_,_=w;break e}n(_,k);break}else t(_,k);k=k.sibling}S.type===xc?(w=nl(S.props.children,_.mode,E,S.key),w.return=_,_=w):(E=rg(S.type,S.key,S.props,null,_.mode,E),E.ref=vd(_,w,S),E.return=_,_=E)}return a(_);case wc:e:{for(k=S.key;w!==null;){if(w.key===k)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(_,w.sibling),w=i(w,S.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=D_(S,_.mode,E),w.return=_,_=w}return a(_);case Oa:return k=S._init,x(_,w,k(S._payload),E)}if(Nd(S))return v(_,w,S,E);if(fd(S))return y(_,w,S,E);Zp(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(_,w.sibling),w=i(w,S),w.return=_,_=w):(n(_,w),w=N_(S,_.mode,E),w.return=_,_=w),a(_)):n(_,w)}return x}var ru=bN(!0),wN=bN(!1),Rh={},mo=gs(Rh),Bf=gs(Rh),zf=gs(Rh);function Qs(e){if(e===Rh)throw Error(Ee(174));return e}function aS(e,t){switch(jt(zf,t),jt(Bf,e),jt(mo,Rh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ub(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ub(t,e)}It(mo),jt(mo,t)}function iu(){It(mo),It(Bf),It(zf)}function xN(e){Qs(zf.current);var t=Qs(mo.current),n=ub(t,e.type);t!==n&&(jt(Bf,e),jt(mo,n))}function sS(e){Bf.current===e&&(It(mo),It(Bf))}var Gt=gs(0);function zg(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 P_=[];function lS(){for(var e=0;en?n:4,e(!0);var r=j_.transition;j_.transition={};try{e(!1),t()}finally{xt=n,j_.transition=r}}function FN(){return xi().memoizedState}function YB(e,t,n){var r=Qa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$N(e))UN(t,n);else if(n=gN(e,t,n,r),n!==null){var i=wr();Hi(n,e,r,i),BN(n,t,r)}}function GB(e,t,n){var r=Qa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($N(e))UN(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Yi(s,a)){var l=t.interleaved;l===null?(i.next=i,iS(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=gN(e,t,i,r),n!==null&&(i=wr(),Hi(n,e,r,i),BN(n,t,r))}}function $N(e){var t=e.alternate;return e===Kt||t!==null&&t===Kt}function UN(e,t){ef=Vg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function BN(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,H2(e,n)}}var Hg={readContext:wi,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useInsertionEffect:er,useLayoutEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useMutableSource:er,useSyncExternalStore:er,useId:er,unstable_isNewReconciler:!1},qB={readContext:wi,useCallback:function(e,t){return io().memoizedState=[e,t===void 0?null:t],e},useContext:wi,useEffect:sk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jm(4194308,4,AN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jm(4,2,e,t)},useMemo:function(e,t){var n=io();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();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=YB.bind(null,Kt,e),[r.memoizedState,e]},useRef:function(e){var t=io();return e={current:e},t.memoizedState=e},useState:ak,useDebugValue:hS,useDeferredValue:function(e){return io().memoizedState=e},useTransition:function(){var e=ak(!1),t=e[0];return e=WB.bind(null,e[1]),io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Kt,i=io();if(Vt){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),Nn===null)throw Error(Ee(349));gl&30||TN(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,sk(CN.bind(null,r,o,e),[e]),r.flags|=2048,Wf(9,ON.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=io(),t=Nn.identifierPrefix;if(Vt){var n=Bo,r=Uo;n=(r&~(1<<32-Vi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[so]=t,e[Uf]=r,ZN(e,t,!1,!1),t.stateNode=e;e:{switch(a=fb(n,r),n){case"dialog":Lt("cancel",e),Lt("close",e),i=r;break;case"iframe":case"object":case"embed":Lt("load",e),i=r;break;case"video":case"audio":for(i=0;iau&&(t.flags|=128,r=!0,yd(o,!1),t.lanes=4194304)}else{if(!r)if(e=zg(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yd(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Vt)return tr(t),null}else 2*ln()-o.renderingStartTime>au&&n!==1073741824&&(t.flags|=128,r=!0,yd(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ln(),t.sibling=null,n=Gt.current,jt(Gt,r?n&1|2:n&1),t):(tr(t),null);case 22:case 23:return _S(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ur&1073741824&&(tr(t),t.subtreeFlags&6&&(t.flags|=8192)):tr(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function n9(e,t){switch(J2(t),t.tag){case 1:return jr(t.type)&&Ng(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return iu(),It(Pr),It(lr),lS(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sS(t),null;case 13:if(It(Gt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));nu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return It(Gt),null;case 4:return iu(),null;case 10:return rS(t.type._context),null;case 22:case 23:return _S(),null;case 24:return null;default:return null}}var Xp=!1,or=!1,r9=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Lc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xt(e,t,r)}else n.current=null}function $b(e,t,n){try{n()}catch(r){Xt(e,t,r)}}var gk=!1;function i9(e,t){if(xb=Lg,e=nN(),Q2(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 a=0,s=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=a),p===o&&++d===r&&(l=a),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sb={focusedElem:e,selectionRange:n},Lg=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ni(t.type,y),x);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(E){Xt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return v=gk,gk=!1,v}function tf(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&&$b(t,n,o)}i=i.next}while(i!==r)}}function Ey(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 Ub(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 JN(e){var t=e.alternate;t!==null&&(e.alternate=null,JN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[so],delete t[Uf],delete t[Ob],delete t[UB],delete t[BB])),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 eD(e){return e.tag===5||e.tag===3||e.tag===4}function vk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eD(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 Bb(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=Rg));else if(r!==4&&(e=e.child,e!==null))for(Bb(e,t,n),e=e.sibling;e!==null;)Bb(e,t,n),e=e.sibling}function zb(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(zb(e,t,n),e=e.sibling;e!==null;)zb(e,t,n),e=e.sibling}var Zn=null,Di=!1;function _a(e,t,n){for(n=n.child;n!==null;)tD(e,t,n),n=n.sibling}function tD(e,t,n){if(po&&typeof po.onCommitFiberUnmount=="function")try{po.onCommitFiberUnmount(gy,n)}catch{}switch(n.tag){case 5:or||Lc(n,t);case 6:var r=Zn,i=Di;Zn=null,_a(e,t,n),Zn=r,Di=i,Zn!==null&&(Di?(e=Zn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Zn.removeChild(n.stateNode));break;case 18:Zn!==null&&(Di?(e=Zn,n=n.stateNode,e.nodeType===8?C_(e.parentNode,n):e.nodeType===1&&C_(e,n),Nf(e)):C_(Zn,n.stateNode));break;case 4:r=Zn,i=Di,Zn=n.stateNode.containerInfo,Di=!0,_a(e,t,n),Zn=r,Di=i;break;case 0:case 11:case 14:case 15:if(!or&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&$b(n,t,a),i=i.next}while(i!==r)}_a(e,t,n);break;case 1:if(!or&&(Lc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Xt(n,t,s)}_a(e,t,n);break;case 21:_a(e,t,n);break;case 22:n.mode&1?(or=(r=or)||n.memoizedState!==null,_a(e,t,n),or=r):_a(e,t,n);break;default:_a(e,t,n)}}function yk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new r9),t.forEach(function(r){var i=h9.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ri(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=ln()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a9(r/1960))-r,10e?16:e,Ra===null)var r=!1;else{if(e=Ra,Ra=null,Gg=0,ut&6)throw Error(Ee(331));var i=ut;for(ut|=4,$e=e.current;$e!==null;){var o=$e,a=o.child;if($e.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lln()-vS?tl(e,0):gS|=n),Lr(e,t)}function cD(e,t){t===0&&(e.mode&1?(t=Vp,Vp<<=1,!(Vp&130023424)&&(Vp=4194304)):t=1);var n=wr();e=Zo(e,t),e!==null&&(Lh(e,t,n),Lr(e,n))}function f9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cD(e,n)}function h9(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(Ee(314))}r!==null&&r.delete(t),cD(e,n)}var uD;uD=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pr.current)kr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return kr=!1,e9(e,t,n);kr=!!(e.flags&131072)}else kr=!1,Vt&&t.flags&1048576&&hN(t,Fg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;eg(e,t),e=t.pendingProps;var i=tu(t,lr.current);Wc(t,n),i=uS(null,t,r,e,i,n);var o=dS();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,jr(r)?(o=!0,Dg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,oS(t),i.updater=xy,t.stateNode=i,i._reactInternals=t,Mb(t,r,e,n),t=Nb(null,t,r,!0,o,n)):(t.tag=0,Vt&&o&&X2(t),gr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(eg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=m9(r),e=Ni(r,e),i){case 0:t=Rb(null,t,r,e,n);break e;case 1:t=hk(null,t,r,e,n);break e;case 11:t=dk(null,t,r,e,n);break e;case 14:t=fk(null,t,r,Ni(r.type,e),n);break e}throw Error(Ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ni(r,i),Rb(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ni(r,i),hk(e,t,r,i,n);case 3:e:{if(GN(t),e===null)throw Error(Ee(387));r=t.pendingProps,o=t.memoizedState,i=o.element,vN(e,t),Bg(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ou(Error(Ee(423)),t),t=pk(e,t,r,n,i);break e}else if(r!==i){i=ou(Error(Ee(424)),t),t=pk(e,t,r,n,i);break e}else for(zr=qa(t.stateNode.containerInfo.firstChild),Yr=t,Vt=!0,Ii=null,n=wN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nu(),r===i){t=Qo(e,t,n);break e}gr(e,t,r,n)}t=t.child}return t;case 5:return xN(t),e===null&&Pb(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Eb(r,i)?a=null:o!==null&&Eb(r,o)&&(t.flags|=32),YN(e,t),gr(e,t,a,n),t.child;case 6:return e===null&&Pb(t),null;case 13:return qN(e,t,n);case 4:return aS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ru(t,null,r,n):gr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ni(r,i),dk(e,t,r,i,n);case 7:return gr(e,t,t.pendingProps,n),t.child;case 8:return gr(e,t,t.pendingProps.children,n),t.child;case 12:return gr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,jt($g,r._currentValue),r._currentValue=a,o!==null)if(Yi(o.value,a)){if(o.children===i.children&&!Pr.current){t=Qo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Wo(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),jb(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Ee(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),jb(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}gr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wc(t,n),i=wi(i),r=r(i),t.flags|=1,gr(e,t,r,n),t.child;case 14:return r=t.type,i=Ni(r,t.pendingProps),i=Ni(r.type,i),fk(e,t,r,i,n);case 15:return HN(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ni(r,i),eg(e,t),t.tag=1,jr(r)?(e=!0,Dg(t)):e=!1,Wc(t,n),_N(t,r,i),Mb(t,r,i,n),Nb(null,t,r,!0,e,n);case 19:return KN(e,t,n);case 22:return WN(e,t,n)}throw Error(Ee(156,t.tag))};function dD(e,t){return IR(e,t)}function p9(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 hi(e,t,n,r){return new p9(e,t,n,r)}function wS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function m9(e){if(typeof e=="function")return wS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===U2)return 11;if(e===B2)return 14}return 2}function Xa(e,t){var n=e.alternate;return n===null?(n=hi(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 rg(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")wS(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case xc:return nl(n.children,i,o,t);case $2:a=8,i|=8;break;case nb:return e=hi(12,n,t,i|2),e.elementType=nb,e.lanes=o,e;case rb:return e=hi(13,n,t,i),e.elementType=rb,e.lanes=o,e;case ib:return e=hi(19,n,t,i),e.elementType=ib,e.lanes=o,e;case bR:return Oy(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yR:a=10;break e;case _R:a=9;break e;case U2:a=11;break e;case B2:a=14;break e;case Oa:a=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=hi(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function nl(e,t,n,r){return e=hi(7,e,r,t),e.lanes=n,e}function Oy(e,t,n,r){return e=hi(22,e,r,t),e.elementType=bR,e.lanes=n,e.stateNode={isHidden:!1},e}function N_(e,t,n){return e=hi(6,e,null,t),e.lanes=n,e}function D_(e,t,n){return t=hi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g9(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=g_(0),this.expirationTimes=g_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=g_(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xS(e,t,n,r,i,o,a,s,l){return e=new g9(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hi(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oS(o),e}function v9(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mD)}catch(e){console.error(e)}}mD(),hR.exports=ti;var Al=hR.exports;const rl=aa(Al);var gD,Ok=Al;gD=Ok.createRoot,Ok.hydrateRoot;var vD={exports:{}},yD={};/** + * @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 su=U;function x9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S9=typeof Object.is=="function"?Object.is:x9,E9=su.useState,T9=su.useEffect,O9=su.useLayoutEffect,C9=su.useDebugValue;function k9(e,t){var n=t(),r=E9({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return O9(function(){i.value=n,i.getSnapshot=t,I_(i)&&o({inst:i})},[e,n,t]),T9(function(){return I_(i)&&o({inst:i}),e(function(){I_(i)&&o({inst:i})})},[e]),C9(n),n}function I_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!S9(e,n)}catch{return!0}}function P9(e,t){return t()}var j9=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?P9:k9;yD.useSyncExternalStore=su.useSyncExternalStore!==void 0?su.useSyncExternalStore:j9;vD.exports=yD;var _D=vD.exports,L9={};/** + * @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 Ly=U,M9=_D;function A9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var R9=typeof Object.is=="function"?Object.is:A9,N9=M9.useSyncExternalStore,D9=Ly.useRef,I9=Ly.useEffect,F9=Ly.useMemo,$9=Ly.useDebugValue;L9.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=D9(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=F9(function(){function l(m){if(!c){if(c=!0,d=m,m=r(m),i!==void 0&&a.hasValue){var v=a.value;if(i(v,m))return f=v}return f=m}if(v=f,R9(d,m))return v;var y=r(m);return i!==void 0&&i(v,y)?v:(d=m,f=y)}var c=!1,d,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=N9(e,o[0],o[1]);return I9(function(){a.hasValue=!0,a.value=s},[s]),$9(s),s};function U9(e){e()}let bD=U9;const B9=e=>bD=e,z9=()=>bD,Ck=Symbol.for("react-redux-context"),kk=typeof globalThis<"u"?globalThis:{};function V9(){var e;if(!U.createContext)return{};const t=(e=kk[Ck])!=null?e:kk[Ck]=new Map;let n=t.get(U.createContext);return n||(n=U.createContext(null),t.set(U.createContext,n)),n}const wD=V9(),H9=()=>{throw new Error("uSES not initialized!")};function Gc(){return Gc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var xD={exports:{}},St={};/** @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 In=typeof Symbol=="function"&&Symbol.for,CS=In?Symbol.for("react.element"):60103,kS=In?Symbol.for("react.portal"):60106,My=In?Symbol.for("react.fragment"):60107,Ay=In?Symbol.for("react.strict_mode"):60108,Ry=In?Symbol.for("react.profiler"):60114,Ny=In?Symbol.for("react.provider"):60109,Dy=In?Symbol.for("react.context"):60110,PS=In?Symbol.for("react.async_mode"):60111,Iy=In?Symbol.for("react.concurrent_mode"):60111,Fy=In?Symbol.for("react.forward_ref"):60112,$y=In?Symbol.for("react.suspense"):60113,W9=In?Symbol.for("react.suspense_list"):60120,Uy=In?Symbol.for("react.memo"):60115,By=In?Symbol.for("react.lazy"):60116,Y9=In?Symbol.for("react.block"):60121,G9=In?Symbol.for("react.fundamental"):60117,q9=In?Symbol.for("react.responder"):60118,K9=In?Symbol.for("react.scope"):60119;function ri(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case CS:switch(e=e.type,e){case PS:case Iy:case My:case Ry:case Ay:case $y:return e;default:switch(e=e&&e.$$typeof,e){case Dy:case Fy:case By:case Uy:case Ny:return e;default:return t}}case kS:return t}}}function SD(e){return ri(e)===Iy}St.AsyncMode=PS;St.ConcurrentMode=Iy;St.ContextConsumer=Dy;St.ContextProvider=Ny;St.Element=CS;St.ForwardRef=Fy;St.Fragment=My;St.Lazy=By;St.Memo=Uy;St.Portal=kS;St.Profiler=Ry;St.StrictMode=Ay;St.Suspense=$y;St.isAsyncMode=function(e){return SD(e)||ri(e)===PS};St.isConcurrentMode=SD;St.isContextConsumer=function(e){return ri(e)===Dy};St.isContextProvider=function(e){return ri(e)===Ny};St.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===CS};St.isForwardRef=function(e){return ri(e)===Fy};St.isFragment=function(e){return ri(e)===My};St.isLazy=function(e){return ri(e)===By};St.isMemo=function(e){return ri(e)===Uy};St.isPortal=function(e){return ri(e)===kS};St.isProfiler=function(e){return ri(e)===Ry};St.isStrictMode=function(e){return ri(e)===Ay};St.isSuspense=function(e){return ri(e)===$y};St.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===My||e===Iy||e===Ry||e===Ay||e===$y||e===W9||typeof e=="object"&&e!==null&&(e.$$typeof===By||e.$$typeof===Uy||e.$$typeof===Ny||e.$$typeof===Dy||e.$$typeof===Fy||e.$$typeof===G9||e.$$typeof===q9||e.$$typeof===K9||e.$$typeof===Y9)};St.typeOf=ri;xD.exports=St;var Z9=xD.exports,jS=Z9,Q9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},J9={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ED={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},LS={};LS[jS.ForwardRef]=J9;LS[jS.Memo]=ED;function Pk(e){return jS.isMemo(e)?ED:LS[e.$$typeof]||Q9}var ez=Object.defineProperty,tz=Object.getOwnPropertyNames,jk=Object.getOwnPropertySymbols,nz=Object.getOwnPropertyDescriptor,rz=Object.getPrototypeOf,Lk=Object.prototype;function TD(e,t,n){if(typeof t!="string"){if(Lk){var r=rz(t);r&&r!==Lk&&TD(e,r,n)}var i=tz(t);jk&&(i=i.concat(jk(t)));for(var o=Pk(e),a=Pk(t),s=0;st(i(...o)))}return n}function Gb(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Ak(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function CD(e,t){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=Ak(e);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=Ak(c),c=o(s,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 hz(e){return e&&typeof e=="object"?Gb(t=>fz(e,t)):e?typeof e=="function"?CD(e):RS(e,"mapDispatchToProps"):Gb(t=>({dispatch:t}))}function pz(e){return e?typeof e=="function"?CD(e):RS(e,"mapStateToProps"):Gb(()=>({}))}function mz(e,t,n){return Gc({},n,e,t)}function gz(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,c,d){const f=e(l,c,d);return o?i(f,a)||(a=f):(o=!0,a=f),a}}}function vz(e){return e?typeof e=="function"?gz(e):RS(e,"mergeProps"):()=>mz}function yz(){const e=z9();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 Rk={notify(){},get:()=>[]};function kD(e,t){let n,r=Rk;function i(f){return l(),r.subscribe(f)}function o(){r.notify()}function a(){d.onStateChange&&d.onStateChange()}function s(){return!!n}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=yz())}function c(){n&&(n(),n=void 0,r.clear(),r=Rk)}const d={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return d}const _z=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zg=_z?U.useLayoutEffect:U.useEffect;function Nk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function F_(e,t){if(Nk(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{PD=e},xz=[null,null];function Sz(e,t,n){Zg(()=>e(...t),n)}function Ez(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function Tz(e,t,n,r,i,o,a,s,l,c,d){if(!e)return()=>{};let f=!1,p=null;const m=()=>{if(f||!s.current)return;const y=t.getState();let x,_;try{x=r(y,i.current)}catch(w){_=w,p=w}_||(p=null),x===o.current?a.current||c():(o.current=x,l.current=x,a.current=!0,d())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(f=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function Oz(e,t){return e===t}function jD(e,t,n,{pure:r,areStatesEqual:i=Oz,areOwnPropsEqual:o=F_,areStatePropsEqual:a=F_,areMergedPropsEqual:s=F_,forwardRef:l=!1,context:c=wD}={}){const d=c,f=pz(e),p=hz(t),m=vz(n),v=!!e;return x=>{const _=x.displayName||x.name||"Component",w=`Connect(${_})`,S={shouldHandleStateChanges:v,displayName:w,wrappedComponentName:_,WrappedComponent:x,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function E(j){const[A,$,N]=U.useMemo(()=>{const{reactReduxForwardedRef:J}=j,se=OS(j,bz);return[j.context,J,se]},[j]),z=U.useMemo(()=>A&&A.Consumer&&lz.isContextConsumer(U.createElement(A.Consumer,null))?A:d,[A,d]),W=U.useContext(z),X=!!j.store&&!!j.store.getState&&!!j.store.dispatch,G=!!W&&!!W.store,Z=X?j.store:W.store,te=G?W.getServerState:Z.getState,le=U.useMemo(()=>dz(Z.dispatch,S),[Z]),[q,I]=U.useMemo(()=>{if(!v)return xz;const J=kD(Z,X?void 0:W.subscription),se=J.notifyNestedSubs.bind(J);return[J,se]},[Z,X,W]),D=U.useMemo(()=>X?W:Gc({},W,{subscription:q}),[X,W,q]),H=U.useRef(),ie=U.useRef(N),V=U.useRef(),K=U.useRef(!1);U.useRef(!1);const re=U.useRef(!1),ae=U.useRef();Zg(()=>(re.current=!0,()=>{re.current=!1}),[]);const he=U.useMemo(()=>()=>V.current&&N===ie.current?V.current:le(Z.getState(),N),[Z,N]),O=U.useMemo(()=>se=>q?Tz(v,Z,q,le,ie,H,K,re,V,I,se):()=>{},[q]);Sz(Ez,[ie,H,K,N,V,I]);let M;try{M=PD(O,he,te?()=>le(te(),N):he)}catch(J){throw ae.current&&(J.message+=` +The error may be correlated with this previous error: +${ae.current.stack} + +`),J}Zg(()=>{ae.current=void 0,V.current=void 0,H.current=M});const F=U.useMemo(()=>U.createElement(x,Gc({},M,{ref:$})),[$,x,M]);return U.useMemo(()=>v?U.createElement(z.Provider,{value:D},F):F,[z,F,D])}const k=U.memo(E);if(k.WrappedComponent=x,k.displayName=E.displayName=w,l){const A=U.forwardRef(function(N,z){return U.createElement(k,Gc({},N,{reactReduxForwardedRef:z}))});return A.displayName=w,A.WrappedComponent=x,Mk(A,x)}return Mk(k,x)}}function LD({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=U.useMemo(()=>{const c=kD(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=U.useMemo(()=>e.getState(),[e]);Zg(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||wD;return U.createElement(l.Provider,{value:a},n)}wz(_D.useSyncExternalStore);B9(Al.unstable_batchedUpdates);/** + * @remix-run/router v1.8.0 + * + * 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 Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function NS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kz(){return Math.random().toString(36).substr(2,8)}function Ik(e,t){return{usr:e.state,key:e.key,idx:t}}function qb(e,t,n,r){return n===void 0&&(n=null),Gf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$u(t):t,{state:n,key:t&&t.key||r||kz()})}function Qg(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 $u(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 Pz(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Na.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(Gf({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=Na.Pop;let x=d(),_=x==null?null:x-c;c=x,l&&l({action:s,location:y.location,delta:_})}function p(x,_){s=Na.Push;let w=qb(y.location,x,_);n&&n(w,x),c=d()+1;let S=Ik(w,c),E=y.createHref(w);try{a.pushState(S,"",E)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(E)}o&&l&&l({action:s,location:y.location,delta:1})}function m(x,_){s=Na.Replace;let w=qb(y.location,x,_);n&&n(w,x),c=d();let S=Ik(w,c),E=y.createHref(w);a.replaceState(S,"",E),o&&l&&l({action:s,location:y.location,delta:0})}function v(x){let _=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof x=="string"?x:Qg(x);return hn(_,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,_)}let y={get action(){return s},get location(){return e(i,a)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Dk,f),l=x,()=>{i.removeEventListener(Dk,f),l=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let _=v(x);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:m,go(x){return a.go(x)}};return y}var Fk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fk||(Fk={}));function jz(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?$u(t):t,i=DS(r.pathname||"/",n);if(i==null)return null;let o=MD(e);Lz(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,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=Ja([r,l.relativePath]),d=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+'".')),MD(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Fz(c,o.index),routesMeta:d})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of AD(o.path))i(o,a,l)}),t}function AD(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 a=AD(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Lz(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$z(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Mz=/^:\w+$/,Az=3,Rz=2,Nz=1,Dz=10,Iz=-2,$k=e=>e==="*";function Fz(e,t){let n=e.split("/"),r=n.length;return n.some($k)&&(r+=Iz),t&&(r+=Rz),n.filter(i=>!$k(i)).reduce((i,o)=>i+(Mz.test(o)?Az:o===""?Nz:Dz),r)}function $z(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 Uz(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{if(d==="*"){let p=s[f]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[d]=Hz(s[f]||"",d),c},{}),pathname:o,pathnameBase:a,pattern:e}}function zz(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,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Vz(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 Hz(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 DS(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 Wz(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?$u(e):e;return{pathname:n?n.startsWith("/")?n:Yz(n,t):t,search:qz(r),hash:Kz(i)}}function Yz(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 $_(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 IS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function FS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=$u(e):(i=Gf({},e),hn(!i.pathname||!i.pathname.includes("?"),$_("?","pathname","search",i)),hn(!i.pathname||!i.pathname.includes("#"),$_("#","pathname","hash",i)),hn(!i.search||!i.search.includes("#"),$_("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=Wz(i,s),c=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Ja=e=>e.join("/").replace(/\/\/+/g,"/"),Gz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Zz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const RD=["post","put","patch","delete"];new Set(RD);const Qz=["get",...RD];new Set(Qz);/** + * React Router v6.15.0 + * + * 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 Xg(){return Xg=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=U.useRef(!1);return ID(()=>{a.current=!0}),U.useCallback(function(l,c){if(c===void 0&&(c={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let d=FS(l,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ja([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,o,i,e])}function Dl(){let{matches:e}=U.useContext(la),t=e[e.length-1];return t?t.params:{}}function US(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=U.useContext(la),{pathname:i}=_n(),o=JSON.stringify(IS(r).map(a=>a.pathnameBase));return U.useMemo(()=>FS(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function eV(e,t){return tV(e,t)}function tV(e,t,n){Nl()||hn(!1);let{navigator:r}=U.useContext(Rl),{matches:i}=U.useContext(la),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=_n(),c;if(t){var d;let y=typeof t=="string"?$u(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||hn(!1),c=y}else c=l;let f=c.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",m=jz(e,{pathname:p}),v=aV(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:Ja([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Ja([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n);return t&&v?U.createElement(Xy.Provider,{value:{location:Xg({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Na.Pop}},v):v}function nV(){let e=uV(),t=Zz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return U.createElement(U.Fragment,null,U.createElement("h2",null,"Unexpected Application Error!"),U.createElement("h3",{style:{fontStyle:"italic"}},t),n?U.createElement("pre",{style:i},n):null,o)}const rV=U.createElement(nV,null);class iV extends U.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?U.createElement(la.Provider,{value:this.props.routeContext},U.createElement(DD.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oV(e){let{routeContext:t,match:n,children:r}=e,i=U.useContext($S);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),U.createElement(la.Provider,{value:t},r)}function aV(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=o.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||hn(!1),o=o.slice(0,Math.min(o.length,s+1))}return o.reduceRight((s,l,c)=>{let d=l.route.id?a==null?void 0:a[l.route.id]:null,f=null;n&&(f=l.route.errorElement||rV);let p=t.concat(o.slice(0,c+1)),m=()=>{let v;return d?v=f:l.route.Component?v=U.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,U.createElement(oV,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?U.createElement(iV,{location:n.location,revalidation:n.revalidation,component:f,error:d,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var FD=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(FD||{}),Jg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Jg||{});function sV(e){let t=U.useContext($S);return t||hn(!1),t}function lV(e){let t=U.useContext(ND);return t||hn(!1),t}function cV(e){let t=U.useContext(la);return t||hn(!1),t}function $D(e){let t=cV(),n=t.matches[t.matches.length-1];return n.route.id||hn(!1),n.route.id}function uV(){var e;let t=U.useContext(DD),n=lV(Jg.UseRouteError),r=$D(Jg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function dV(){let{router:e}=sV(FD.UseNavigateStable),t=$D(Jg.UseNavigateStable),n=U.useRef(!1);return ID(()=>{n.current=!0}),U.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Xg({fromRouteId:t},o)))},[e,t])}function BS(e){let{to:t,replace:n,state:r,relative:i}=e;Nl()||hn(!1);let{matches:o}=U.useContext(la),{pathname:a}=_n(),s=To(),l=FS(t,IS(o).map(d=>d.pathnameBase),a,i==="path"),c=JSON.stringify(l);return U.useEffect(()=>s(JSON.parse(c),{replace:n,state:r,relative:i}),[s,c,i,n,r]),null}function yt(e){hn(!1)}function fV(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Na.Pop,navigator:o,static:a=!1}=e;Nl()&&hn(!1);let s=t.replace(/^\/*/,"/"),l=U.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=$u(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,v=U.useMemo(()=>{let y=DS(c,s);return y==null?null:{location:{pathname:y,search:d,hash:f,state:p,key:m},navigationType:i}},[s,c,d,f,p,m,i]);return v==null?null:U.createElement(Rl.Provider,{value:l},U.createElement(Xy.Provider,{children:n,value:v}))}function Jy(e){let{children:t,location:n}=e;return eV(Kb(t),n)}new Promise(()=>{});function Kb(e,t){t===void 0&&(t=[]);let n=[];return U.Children.forEach(e,(r,i)=>{if(!U.isValidElement(r))return;let o=[...t,i];if(r.type===U.Fragment){n.push.apply(n,Kb(r.props.children,o));return}r.type!==yt&&hn(!1),!r.props.index||!r.props.children||hn(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Kb(r.props.children,o)),n.push(a)}),n}/** + * React Router DOM v6.15.0 + * + * 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 ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function hV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pV(e,t){return e.button===0&&(!t||t==="_self")&&!hV(e)}const mV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],gV=["aria-current","caseSensitive","className","end","style","to","children"],vV="startTransition",Uk=f7[vV];function BD(e){let{basename:t,children:n,future:r,window:i}=e,o=U.useRef();o.current==null&&(o.current=Cz({window:i,v5Compat:!0}));let a=o.current,[s,l]=U.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},d=U.useCallback(f=>{c&&Uk?Uk(()=>l(f)):l(f)},[l,c]);return U.useLayoutEffect(()=>a.listen(d),[a,d]),U.createElement(fV,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}const yV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_V=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ut=U.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:d}=t,f=UD(t,mV),{basename:p}=U.useContext(Rl),m,v=!1;if(typeof c=="string"&&_V.test(c)&&(m=c,yV))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),E=DS(S.pathname,p);S.origin===w.origin&&E!=null?c=E+S.search+S.hash:v=!0}catch{}let y=Xz(c,{relative:i}),x=bV(c,{replace:a,state:s,target:l,preventScrollReset:d,relative:i});function _(w){r&&r(w),w.defaultPrevented||x(w)}return U.createElement("a",ev({},f,{href:m||y,onClick:v||o?r:_,ref:n,target:l}))}),zD=U.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,children:c}=t,d=UD(t,gV),f=US(l,{relative:d.relative}),p=_n(),m=U.useContext(ND),{navigator:v}=U.useContext(Rl),y=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,x=p.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(x=x.toLowerCase(),_=_?_.toLowerCase():null,y=y.toLowerCase());let w=x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/",S=_!=null&&(_===y||!a&&_.startsWith(y)&&_.charAt(y.length)==="/"),E=w?r:void 0,C;typeof o=="function"?C=o({isActive:w,isPending:S}):C=[o,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let k=typeof s=="function"?s({isActive:w,isPending:S}):s;return U.createElement(Ut,ev({},d,{"aria-current":E,className:C,ref:n,style:k,to:l}),typeof c=="function"?c({isActive:w,isPending:S}):c)});var Bk;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Bk||(Bk={}));var zk;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zk||(zk={}));function bV(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=To(),l=_n(),c=US(e,{relative:a});return U.useCallback(d=>{if(pV(d,n)){d.preventDefault();let f=r!==void 0?r:Qg(l)===Qg(c);s(e,{replace:f,state:i,preventScrollReset:o,relative:a})}},[l,s,c,r,i,n,e,o,a])}const wV="shlink-web-client",xV="A React-based progressive web application for shlink",SV="/shlink-web-client/feature/decouple-api-client",EV="https://github.com/shlinkio/shlink-web-client",TV="MIT",OV={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:"vitest run --run","test:watch":"vitest --watch","test:ci":"npm run test -- --coverage","test:verbose":"npm run test -- --verbose"},CV={"@fortawesome/fontawesome-free":"^6.4.2","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.4.2","@fortawesome/free-regular-svg-icons":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0","@json2csv/plainjs":"^7.0.3","@reduxjs/toolkit":"^1.9.5","@shlinkio/shlink-frontend-kit":"^0.2.0","@shlinkio/shlink-web-component":"^0.3.1",bootstrap:"5.2.3",bottlejs:"^2.0.1",classnames:"^2.3.2","compare-versions":"^6.1.0",csvtojson:"^2.0.10","date-fns":"^2.30.0",ramda:"^0.27.2",react:"^18.2.0","react-dom":"^18.2.0","react-external-link":"^2.2.0","react-redux":"^8.1.2","react-router-dom":"^6.15.0",reactstrap:"^9.2.0","redux-localstorage-simple":"^2.5.1",uuid:"^9.0.0","workbox-core":"^7.0.0","workbox-expiration":"^7.0.0","workbox-precaching":"^7.0.0","workbox-routing":"^7.0.0","workbox-strategies":"^7.0.0"},kV={"@shlinkio/eslint-config-js-coding-standard":"~2.3.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@testing-library/jest-dom":"^6.1.2","@testing-library/react":"^14.0.0","@testing-library/user-event":"^14.4.3","@total-typescript/shoehorn":"^0.1.1","@types/leaflet":"^1.9.3","@types/ramda":"^0.27.66","@types/react":"^18.2.21","@types/react-dom":"^18.2.7","@types/uuid":"^9.0.2","@vitejs/plugin-react":"^4.0.4","@vitest/coverage-v8":"^0.34.3","adm-zip":"^0.5.10",chalk:"^5.3.0",eslint:"^8.48.0",history:"^5.3.0",jsdom:"^22.1.0",sass:"^1.66.1",stylelint:"^15.10.3",typescript:"^5.1.6",vite:"^4.4.9","vite-plugin-pwa":"^0.16.4",vitest:"^0.34.3"},PV=[">0.2%","not dead","not ie <= 11","not op_mini all"],tv={name:wV,description:xV,private:!1,homepage:SV,repository:EV,license:TV,scripts:OV,dependencies:CV,devDependencies:kV,browserslist:PV};var Gi,bo=".",VD="function",HD="string",WD="__global__",zS="Provider",jV=0,VS=Array.prototype.slice,LV=function(t,n){var r=t[n];if(r===void 0&&Gi.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},e0=function(t){var n;return this.nested[t]||(n=Gi.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},YD=function(t){return t.split(bo).reduce(LV,this)},MV=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,l=function(d){if(d)throw d;t[s]&&t[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},AV=function(t,n){var r,i;return typeof t===VD&&(n=t,t=WD),r=t.split(bo),i=r.shift(),r.length?e0.call(this,i).middleware(r.join(bo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},RV=function(t,n){return n(t)},Vk=function(t,n){return(t[n]||[]).concat(t.__global__||[])},NV=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+zS,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],d;return c&&(d=Vk(a,t).reduce(RV,c.$get(o)),delete o[r],delete o[t]),d===void 0?d:MV(Vk(s,t),t,d,o)}},Object.defineProperties(o,i),this},GD=function(t,n){var r,i;return r=t.split(bo),this.providerMap[t]&&r.length===1&&!this.container[t+zS]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(e0.call(this,i).provider(r.join(bo),n),this):NV.call(this,i,n))},HS=function(t,n){return GD.call(this,t,function(){this.$get=n})},qD=function(t,n,r){var i=arguments.length>3?VS.call(arguments,3):[],o=this;return HS.call(this,t,function(){var s=n,l=i.map(YD,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},DV=function(t,n){return qD.apply(this,[t,n,!0].concat(VS.call(arguments,2)))},IV=function(t,n){return qD.apply(this,[t,n,!1].concat(VS.call(arguments,2)))},KD=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},ZD=function(t,n){var r=t[n];return r||(r={},KD.call(t,n,r)),r},FV=function(t,n){var r;return r=t.split(bo),t=r.pop(),KD.call(r.reduce(ZD,this.container),t,n),this},$V=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},UV=function(t,n){var r=t.split(bo);return t=r.pop(),$V.call(r.reduce(ZD,this.container),t,n),this},QD=function(t,n){var r,i;return typeof t===VD&&(n=t,t=WD),r=t.split(bo),i=r.shift(),r.length?e0.call(this,i).decorator(r.join(bo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},BV=function(t){return this.deferred.push(t),this},zV=function(t){return(t||[]).map(YD,this.container)},VV=function(t,n){return HS.call(this,t,function(i){return{instance:n.bind(n,i)}})},HV=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},WS=function(t){return Object.keys(t||this.container||{}).filter(HV)},nv={},WV=function(t){var n;return typeof t===HD?(n=nv[t],n||(nv[t]=n=new Gi,n.constant("BOTTLE_NAME",t)),n):new Gi},YV=function(t){typeof t===HD?delete nv[t]:nv={}},XD=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},Hk=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+zS]},GV=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(bo);a.length>1&&a.forEach(Hk,e0.call(this,a[0])),Hk.call(this,o),this.provider(o,n[o])}},this)},qV=function(t){return this.deferred.forEach(function(r){r(t)}),this};Gi=function e(t){if(!(this instanceof e))return e.pop(t);this.id=jV++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:QD.bind(this),$register:XD.bind(this),$list:WS.bind(this)}};Gi.prototype={constant:UV,decorator:QD,defer:BV,digest:zV,factory:HS,instanceFactory:VV,list:WS,middleware:AV,provider:GD,resetProviders:GV,register:XD,resolve:qV,service:DV,serviceFactory:IV,value:FV};Gi.pop=WV;Gi.clear=YV;Gi.list=WS;Gi.config={strict:!1};const KV=Gi;function Mt(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function en(e){return function t(n){return arguments.length===0||Mt(n)?t:e.apply(this,arguments)}}function Nt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return Mt(n)?t:en(function(i){return e(n,i)});default:return Mt(n)&&Mt(r)?t:Mt(n)?en(function(i){return e(i,r)}):Mt(r)?en(function(i){return e(n,i)}):e(n,r)}}}function ZV(e,t){e=e||[],t=t||[];var n,r=e.length,i=t.length,o=[];for(n=0;n=arguments.length)?s=t[a]:(s=arguments[i],i+=1),r[a]=s,Mt(s)||(o-=1),a+=1}return o<=0?n.apply(this,r):Nh(o,JD(e,r,n))}}var QV=Nt(function(t,n){return t===1?en(n):Nh(t,JD(t,[],n))});const Zb=QV;function Dh(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return Mt(n)?t:Nt(function(o,a){return e(n,o,a)});case 2:return Mt(n)&&Mt(r)?t:Mt(n)?Nt(function(o,a){return e(o,r,a)}):Mt(r)?Nt(function(o,a){return e(n,o,a)}):en(function(o){return e(n,r,o)});default:return Mt(n)&&Mt(r)&&Mt(i)?t:Mt(n)&&Mt(r)?Nt(function(o,a){return e(o,a,i)}):Mt(n)&&Mt(i)?Nt(function(o,a){return e(o,r,a)}):Mt(r)&&Mt(i)?Nt(function(o,a){return e(n,o,a)}):Mt(n)?en(function(o){return e(o,r,i)}):Mt(r)?en(function(o){return e(n,o,i)}):Mt(i)?en(function(o){return e(n,r,o)}):e(n,r,i)}}}const t0=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function XV(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function e4(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!t0(i)){for(var o=0;o0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1});const tH=eH;var nH=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 rH(e){return new nH(e)}var iH=Nt(function(t,n){return Nh(t.length,function(){return t.apply(n,arguments)})});const oH=iH;function aH(e,t,n){for(var r=0,i=n.length;r=0;)n=Kk[r],fo(n,t)&&!fH(i,n)&&(i[i.length]=n),r-=1;return i});const qf=hH;var pH=Nt(e4(["fantasy-land/map","map"],cH,function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Zb(n.length,function(){return t.call(this,n.apply(this,arguments))});case"[object Object]":return Ih(function(r,i){return r[i]=t(n[i]),r},{},qf(n));default:return JV(t,n)}}));const GS=pH,mH=Number.isInteger||function(t){return t<<0===t};var gH=Nt(function(t,n){var r=t<0?n.length+t:t;return YS(n)?n.charAt(r):n[r]});const vH=gH;var yH=Nt(function(t,n){return t.map(function(r){for(var i=n,o=0,a;o=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:eP(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:eP(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 a=qf(e);if(a.length!==qf(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(o=a.length-1;o>=0;){var c=a[o];if(!(fo(c,t)&&KS(t[c],e[c],s,l)))return!1;o-=1}return!0}var qH=Nt(function(t,n){return KS(t,n,[],[])});const KH=qH;function ZH(e){return function(){return!e.apply(this,arguments)}}function QH(e,t){for(var n=0,r=t.length,i=[];n!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),of=e=>!!(e!=null&&e.id),c4=e=>!!(e!=null&&e.version),EW=e=>!!(e!=null&&e.serverNotFound),TW=e=>of(e)?e.id:"",OW=e=>_W(["id","autoConnect"],e);var CW={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"]},kW=CW,PW={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 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"]},ZS=PW,jW={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM200 352h16c22.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-8H200c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h16c4.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 40H200c-22.1 0-40-17.9-40-40V392c0-22.1 17.9-40 40-40zm133.1 0H368c8.8 0 16 7.2 16 16s-7.2 16-16 16H333.1c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1H304c-8.8 0-16-7.2-16-16s7.2-16 16-16h42.9c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V368c0-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.6V368c0-8.8 7.2-16 16-16z"]},LW={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"]},MW=LW,u4={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"]},AW={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"]},d4={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"]},RW={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},NW=RW,DW={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.7 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"]},QS=DW,IW={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"]},FW={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 20.9 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"]},$W={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.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},tP={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-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 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-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},UW={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"]},BW=UW,zW={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 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Qb=zW,VW={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"]},HW={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 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},WW={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"]},YW=WW,XS={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"]},f4={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 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},nP={prefix:"fas",iconName:"calendar-xmark",icon:[512,512,["calendar-times"],"f273","M160 0c17.7 0 32 14.3 32 32V64H320V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H32V112c0-26.5 21.5-48 48-48h48V32c0-17.7 14.3-32 32-32zM32 192H480V464c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V192zM337 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"]},GW={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"]},h4={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"]},qW={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"]},KW=qW,ZW={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 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},QW={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 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-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},JS=QW,XW={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"]},JW=XW,eY={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"]},tY={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},nY=tY,rY={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"]},iY=rY,oY={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"]},aY=oY,sY={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"]},p4=sY,lY={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.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},cY={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"]},uY={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 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},dY=uY,fY={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"]},eE={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"]},hY={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Xb=hY,pY={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.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.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},mY={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"]},gY=mY,rP={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-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 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 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"]},vY={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.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 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.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.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 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},yY=vY,_Y={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80zM64 96v64h64V96H64zM0 336c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V336zm64 16v64h64V352H64zM304 32h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H304c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48zm80 64H320v64h64V96zM256 304c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16v96c0 8.8-7.2 16-16 16H368c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16v64c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V304zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},bY={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"]},wY={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"]},xY={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V288H64V64H512z"]},Kf={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.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 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function iP(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 Ie(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],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Ft.head.insertBefore(t,r),e}}var GY="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function eh(){for(var e=12,t="";e-- >0;)t+=GY[Math.random()*62|0];return t}function Uu(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function aE(e){return e.classList?Uu(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function O4(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function qY(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(O4(e[n]),'" ')},"").trim()}function n0(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function sE(e){return e.size!==ho.size||e.x!==ho.x||e.y!==ho.y||e.rotate!==ho.rotate||e.flipX||e.flipY}function KY(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,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function ZY(e){var t=e.transform,n=e.width,r=n===void 0?ew:n,i=e.height,o=i===void 0?ew:i,a=e.startCentered,s=a===void 0?!1:a,l="";return s&&_4?l+="translate(".concat(t.x/ba-r/2,"em, ").concat(t.y/ba-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/ba,"em), calc(-50% + ").concat(t.y/ba,"em)) "):l+="translate(".concat(t.x/ba,"em, ").concat(t.y/ba,"em) "),l+="scale(".concat(t.size/ba*(t.flipX?-1:1),", ").concat(t.size/ba*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var QY=`: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-sharp-light: normal 300 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 C4(){var e=b4,t=w4,n=Be.cssPrefix,r=Be.replacementClass,i=QY;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var dP=!1;function B_(){Be.autoAddCss&&!dP&&(YY(C4()),dP=!0)}var XY={mixout:function(){return{dom:{css:C4,insertCss:B_}}},hooks:function(){return{beforeDOMElementCreation:function(){B_()},beforeI2svg:function(){B_()}}}},Jo=as||{};Jo[Xo]||(Jo[Xo]={});Jo[Xo].styles||(Jo[Xo].styles={});Jo[Xo].hooks||(Jo[Xo].hooks={});Jo[Xo].shims||(Jo[Xo].shims=[]);var Ui=Jo[Xo],k4=[],JY=function e(){Ft.removeEventListener("DOMContentLoaded",e),lv=1,k4.map(function(t){return t()})},lv=!1;ca&&(lv=(Ft.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ft.readyState),lv||Ft.addEventListener("DOMContentLoaded",JY));function eG(e){ca&&(lv?setTimeout(e,0):k4.push(e))}function Uh(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"?O4(e):"<".concat(t," ").concat(qY(r),">").concat(o.map(Uh).join(""),"")}function fP(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var tG=function(t,n){return function(r,i,o,a){return t.call(n,r,i,o,a)}},z_=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=i!==void 0?tG(n,i):n,l,c,d;for(r===void 0?(l=1,d=t[o[0]]):(l=0,d=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 hP(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 rw(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=hP(t);typeof Ui.hooks.addPack=="function"&&!i?Ui.hooks.addPack(e,hP(t)):Ui.styles[e]=Ie(Ie({},Ui.styles[e]||{}),o),e==="fas"&&rw("fa",t)}var sm,lm,cm,Ac=Ui.styles,iG=Ui.shims,oG=(sm={},Tn(sm,Rt,Object.values(Xf[Rt])),Tn(sm,Jt,Object.values(Xf[Jt])),sm),lE=null,P4={},j4={},L4={},M4={},A4={},aG=(lm={},Tn(lm,Rt,Object.keys(Zf[Rt])),Tn(lm,Jt,Object.keys(Zf[Jt])),lm);function sG(e){return~BY.indexOf(e)}function lG(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!sG(i)?i:null}var R4=function(){var t=function(o){return z_(Ac,function(a,s,l){return a[l]=z_(s,o,{}),a},{})};P4=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var s=o[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){i[l.toString(16)]=a})}return i}),j4=t(function(i,o,a){if(i[a]=a,o[2]){var s=o[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){i[l]=a})}return i}),A4=t(function(i,o,a){var s=o[2];return i[a]=a,s.forEach(function(l){i[l]=a}),i});var n="far"in Ac||Be.autoFetchSvg,r=z_(iG,function(i,o){var a=o[0],s=o[1],l=o[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(i.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:s,iconName:l}),i},{names:{},unicodes:{}});L4=r.names,M4=r.unicodes,lE=r0(Be.styleDefault,{family:Be.familyDefault})};WY(function(e){lE=r0(e.styleDefault,{family:Be.familyDefault})});R4();function cE(e,t){return(P4[e]||{})[t]}function cG(e,t){return(j4[e]||{})[t]}function Js(e,t){return(A4[e]||{})[t]}function N4(e){return L4[e]||{prefix:null,iconName:null}}function uG(e){var t=M4[e],n=cE("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function ss(){return lE}var uE=function(){return{prefix:null,iconName:null,rest:[]}};function r0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Rt:n,i=Zf[r][e],o=Qf[r][e]||Qf[r][i],a=e in Ui.styles?e:null;return o||a||null}var pP=(cm={},Tn(cm,Rt,Object.keys(Xf[Rt])),Tn(cm,Jt,Object.keys(Xf[Jt])),cm);function i0(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(t={},Tn(t,Rt,"".concat(Be.cssPrefix,"-").concat(Rt)),Tn(t,Jt,"".concat(Be.cssPrefix,"-").concat(Jt)),t),a=null,s=Rt;(e.includes(o[Rt])||e.some(function(c){return pP[Rt].includes(c)}))&&(s=Rt),(e.includes(o[Jt])||e.some(function(c){return pP[Jt].includes(c)}))&&(s=Jt);var l=e.reduce(function(c,d){var f=lG(Be.cssPrefix,d);if(Ac[d]?(d=oG[s].includes(d)?NY[s][d]:d,a=d,c.prefix=d):aG[s].indexOf(d)>-1?(a=d,c.prefix=r0(d,{family:s})):f?c.iconName=f:d!==Be.replacementClass&&d!==o[Rt]&&d!==o[Jt]&&c.rest.push(d),!i&&c.prefix&&c.iconName){var p=a==="fa"?N4(c.iconName):{},m=Js(c.prefix,c.iconName);p.prefix&&(a=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Ac.far&&Ac.fas&&!Be.autoFetchSvg&&(c.prefix="fas")}return c},uE());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===Jt&&(Ac.fass||Be.autoFetchSvg)&&(l.prefix="fass",l.iconName=Js(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=ss()||"fas"),l}var dG=function(){function e(){SY(this,e),this.definitions={}}return EY(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&d.forEach(function(f){typeof f=="string"&&(n[s][f]=c)}),n[s][l]=c}),n}}]),e}(),mP=[],Rc={},qc={},fG=Object.keys(qc);function hG(e,t){var n=t.mixoutsTo;return mP=e,Rc={},Object.keys(qc).forEach(function(r){fG.indexOf(r)===-1&&delete qc[r]}),mP.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),sv(i[a])==="object"&&Object.keys(i[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){Rc[a]||(Rc[a]=[]),Rc[a].push(o[a])})}r.provides&&r.provides(qc)}),n}function iw(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 ca?(bl("beforeI2svg",t),ea("pseudoElements2svg",t),ea("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;Be.autoReplaceSvg===!1&&(Be.autoReplaceSvg=!0),Be.observeMutations=!0,eG(function(){vG({autoReplaceSvgRoot:n}),bl("watch",t)})}},gG={icon:function(t){if(t===null)return null;if(sv(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Js(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=r0(t[0]);return{prefix:r,iconName:Js(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Be.cssPrefix,"-"))>-1||t.match(DY))){var i=i0(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||ss(),iconName:Js(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=ss();return{prefix:o,iconName:Js(o,t)||t}}}},ii={noAuto:pG,config:Be,dom:mG,parse:gG,library:D4,findIconDefinition:ow,toHtml:Uh},vG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Ft:n;(Object.keys(Ui.styles).length>0||Be.autoFetchSvg)&&ca&&Be.autoReplaceSvg&&ii.dom.i2svg({node:r})};function o0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Uh(r)})}}),Object.defineProperty(e,"node",{get:function(){if(ca){var r=Ft.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function yG(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(sE(a)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};i.style=n0(Ie(Ie({},o),{},{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function _G(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(Be.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ie(Ie({},i),{},{id:a}),children:r}]}]}function dE(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,c=e.maskId,d=e.titleId,f=e.extra,p=e.watchable,m=p===void 0?!1:p,v=r.found?r:n,y=v.width,x=v.height,_=i==="fak",w=[Be.replacementClass,o?"".concat(Be.cssPrefix,"-").concat(o):""].filter(function($){return f.classes.indexOf($)===-1}).filter(function($){return $!==""||!!$}).concat(f.classes).join(" "),S={children:[],attributes:Ie(Ie({},f.attributes),{},{"data-prefix":i,"data-icon":o,class:w,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(x)})},E=_&&!~f.classes.indexOf("fa-fw")?{width:"".concat(y/x*16*.0625,"em")}:{};m&&(S.attributes[_l]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(d||eh())},children:[l]}),delete S.attributes.title);var C=Ie(Ie({},S),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:s,styles:Ie(Ie({},E),f.styles)}),k=r.found&&n.found?ea("generateAbstractMask",C)||{children:[],attributes:{}}:ea("generateAbstractIcon",C)||{children:[],attributes:{}},j=k.children,A=k.attributes;return C.children=j,C.attributes=A,s?_G(C):yG(C)}function gP(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.title,a=e.extra,s=e.watchable,l=s===void 0?!1:s,c=Ie(Ie(Ie({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(c[_l]="");var d=Ie({},a.styles);sE(i)&&(d.transform=ZY({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var f=n0(d);f.length>0&&(c.style=f);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function bG(e){var t=e.content,n=e.title,r=e.extra,i=Ie(Ie(Ie({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=n0(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var V_=Ui.styles;function aw(e){var t=e[0],n=e[1],r=e.slice(4),i=tE(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(Be.cssPrefix,"-").concat(Xs.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Be.cssPrefix,"-").concat(Xs.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Be.cssPrefix,"-").concat(Xs.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var wG={found:!1,width:512,height:512};function xG(e,t){!x4&&!Be.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function sw(e,t){var n=t;return t==="fa"&&Be.styleDefault!==null&&(t=ss()),new Promise(function(r,i){if(ea("missingIconAbstract"),n==="fa"){var o=N4(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&V_[t]&&V_[t][e]){var a=V_[t][e];return r(aw(a))}xG(e,t),r(Ie(Ie({},wG),{},{icon:Be.showMissingIcons&&e?ea("missingIconAbstract")||{}:{}}))})}var vP=function(){},lw=Be.measurePerformance&&tm&&tm.mark&&tm.measure?tm:{mark:vP,measure:vP},Fd='FA "6.4.2"',SG=function(t){return lw.mark("".concat(Fd," ").concat(t," begins")),function(){return I4(t)}},I4=function(t){lw.mark("".concat(Fd," ").concat(t," ends")),lw.measure("".concat(Fd," ").concat(t),"".concat(Fd," ").concat(t," begins"),"".concat(Fd," ").concat(t," ends"))},fE={begin:SG,end:I4},ig=function(){};function yP(e){var t=e.getAttribute?e.getAttribute(_l):null;return typeof t=="string"}function EG(e){var t=e.getAttribute?e.getAttribute(rE):null,n=e.getAttribute?e.getAttribute(iE):null;return t&&n}function TG(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Be.replacementClass)}function OG(){if(Be.autoReplaceSvg===!0)return og.replace;var e=og[Be.autoReplaceSvg];return e||og.replace}function CG(e){return Ft.createElementNS("http://www.w3.org/2000/svg",e)}function kG(e){return Ft.createElement(e)}function F4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?CG:kG:n;if(typeof e=="string")return Ft.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(F4(a,{ceFn:r}))}),i}function PG(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var og={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(F4(i),n)}),n.getAttribute(_l)===null&&Be.keepOriginalSource){var r=Ft.createComment(PG(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~aE(n).indexOf(Be.replacementClass))return og.replace(t);var i=new RegExp("".concat(Be.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(s,l){return l===Be.replacementClass||l.match(i)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(s){return Uh(s)}).join(` +`);n.setAttribute(_l,""),n.innerHTML=a}};function _P(e){e()}function $4(e,t){var n=typeof t=="function"?t:ig;if(e.length===0)n();else{var r=_P;Be.mutateApproach===AY&&(r=as.requestAnimationFrame||_P),r(function(){var i=OG(),o=fE.begin("mutate");e.map(i),o(),n()})}}var hE=!1;function U4(){hE=!0}function cw(){hE=!1}var cv=null;function bP(e){if(cP&&Be.observeMutations){var t=e.treeCallback,n=t===void 0?ig:t,r=e.nodeCallback,i=r===void 0?ig:r,o=e.pseudoElementsCallback,a=o===void 0?ig:o,s=e.observeMutationsRoot,l=s===void 0?Ft:s;cv=new cP(function(c){if(!hE){var d=ss();Uu(c).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!yP(f.addedNodes[0])&&(Be.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&Be.searchPseudoElements&&a(f.target.parentNode),f.type==="attributes"&&yP(f.target)&&~UY.indexOf(f.attributeName))if(f.attributeName==="class"&&EG(f.target)){var p=i0(aE(f.target)),m=p.prefix,v=p.iconName;f.target.setAttribute(rE,m||d),v&&f.target.setAttribute(iE,v)}else TG(f.target)&&i(f.target)})}}),ca&&cv.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function jG(){cv&&cv.disconnect()}function LG(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function MG(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=i0(aE(e));return i.prefix||(i.prefix=ss()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=cG(i.prefix,e.innerText)||cE(i.prefix,nw(e.innerText))),!i.iconName&&Be.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function AG(e){var t=Uu(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 Be.autoA11y&&(n?t["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(r||eh()):(t["aria-hidden"]="true",t.focusable="false")),t}function RG(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ho,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function wP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=MG(e),r=n.iconName,i=n.prefix,o=n.rest,a=AG(e),s=iw("parseNodeAttributes",{},e),l=t.styleParser?LG(e):[];return Ie({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ho,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var NG=Ui.styles;function B4(e){var t=Be.autoReplaceSvg==="nest"?wP(e,{styleParser:!1}):wP(e);return~t.extra.classes.indexOf(S4)?ea("generateLayersText",e,t):ea("generateSvgReplacementMutation",e,t)}var ls=new Set;oE.map(function(e){ls.add("fa-".concat(e))});Object.keys(Zf[Rt]).map(ls.add.bind(ls));Object.keys(Zf[Jt]).map(ls.add.bind(ls));ls=Fh(ls);function xP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ca)return Promise.resolve();var n=Ft.documentElement.classList,r=function(f){return n.add("".concat(uP,"-").concat(f))},i=function(f){return n.remove("".concat(uP,"-").concat(f))},o=Be.autoFetchSvg?ls:oE.map(function(d){return"fa-".concat(d)}).concat(Object.keys(NG));o.includes("fa")||o.push("fa");var a=[".".concat(S4,":not([").concat(_l,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(_l,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=Uu(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=fE.begin("onTree"),c=s.reduce(function(d,f){try{var p=B4(f);p&&d.push(p)}catch(m){x4||m.name==="MissingIcon"&&console.error(m)}return d},[]);return new Promise(function(d,f){Promise.all(c).then(function(p){$4(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),d()})}).catch(function(p){l(),f(p)})})}function DG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;B4(e).then(function(n){n&&$4([n],t)})}function IG(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:ow(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:ow(i||{})),e(r,Ie(Ie({},n),{},{mask:i}))}}var FG=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?ho:r,o=n.symbol,a=o===void 0?!1:o,s=n.mask,l=s===void 0?null:s,c=n.maskId,d=c===void 0?null:c,f=n.title,p=f===void 0?null:f,m=n.titleId,v=m===void 0?null:m,y=n.classes,x=y===void 0?[]:y,_=n.attributes,w=_===void 0?{}:_,S=n.styles,E=S===void 0?{}:S;if(t){var C=t.prefix,k=t.iconName,j=t.icon;return o0(Ie({type:"icon"},t),function(){return bl("beforeDOMElementCreation",{iconDefinition:t,params:n}),Be.autoA11y&&(p?w["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(v||eh()):(w["aria-hidden"]="true",w.focusable="false")),dE({icons:{main:aw(j),mask:l?aw(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:C,iconName:k,transform:Ie(Ie({},ho),i),symbol:a,title:p,maskId:d,titleId:v,extra:{attributes:w,styles:E,classes:x}})})}},$G={mixout:function(){return{icon:IG(FG)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=xP,n.nodeCallback=DG,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?Ft:r,o=n.callback,a=o===void 0?function(){}:o;return xP(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,a=r.titleId,s=r.prefix,l=r.transform,c=r.symbol,d=r.mask,f=r.maskId,p=r.extra;return new Promise(function(m,v){Promise.all([sw(i,s),d.iconName?sw(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var x=tE(y,2),_=x[0],w=x[1];m([n,dE({icons:{main:_,mask:w},prefix:s,iconName:i,transform:l,symbol:c,maskId:f,title:o,titleId:a,extra:p,watchable:!0})])}).catch(v)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=n0(s);l.length>0&&(i.style=l);var c;return sE(a)&&(c=ea("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},UG={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 o0({type:"layer"},function(){bl("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Be.cssPrefix,"-layers")].concat(Fh(o)).join(" ")},children:a}]})}}}},BG={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,a=r.classes,s=a===void 0?[]:a,l=r.attributes,c=l===void 0?{}:l,d=r.styles,f=d===void 0?{}:d;return o0({type:"counter",content:n},function(){return bl("beforeDOMElementCreation",{content:n,params:r}),bG({content:n.toString(),title:o,extra:{attributes:c,styles:f,classes:["".concat(Be.cssPrefix,"-layers-counter")].concat(Fh(s))}})})}}}},zG={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?ho:i,a=r.title,s=a===void 0?null:a,l=r.classes,c=l===void 0?[]:l,d=r.attributes,f=d===void 0?{}:d,p=r.styles,m=p===void 0?{}:p;return o0({type:"text",content:n},function(){return bl("beforeDOMElementCreation",{content:n,params:r}),gP({content:n,transform:Ie(Ie({},ho),o),title:s,extra:{attributes:f,styles:m,classes:["".concat(Be.cssPrefix,"-layers-text")].concat(Fh(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(_4){var c=parseInt(getComputedStyle(n).fontSize,10),d=n.getBoundingClientRect();s=d.width/c,l=d.height/c}return Be.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([n,gP({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},VG=new RegExp('"',"ug"),SP=[1105920,1112319];function HG(e){var t=e.replace(VG,""),n=rG(t,0),r=n>=SP[0]&&n<=SP[1],i=t.length===2?t[0]===t[1]:!1;return{value:nw(i?t[0]:t),isSecondary:r||i}}function EP(e,t){var n="".concat(MY).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Uu(e.children),a=o.filter(function(j){return j.getAttribute(tw)===t})[0],s=as.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(IY),c=s.getPropertyValue("font-weight"),d=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&d!=="none"&&d!==""){var f=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?Jt:Rt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Qf[p][l[2].toLowerCase()]:FY[p][c],v=HG(f),y=v.value,x=v.isSecondary,_=l[0].startsWith("FontAwesome"),w=cE(m,y),S=w;if(_){var E=uG(y);E.iconName&&E.prefix&&(w=E.iconName,m=E.prefix)}if(w&&!x&&(!a||a.getAttribute(rE)!==m||a.getAttribute(iE)!==S)){e.setAttribute(n,S),a&&e.removeChild(a);var C=RG(),k=C.extra;k.attributes[tw]=t,sw(w,m).then(function(j){var A=dE(Ie(Ie({},C),{},{icons:{main:j,mask:uE()},prefix:m,iconName:S,extra:k,watchable:!0})),$=Ft.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore($,e.firstChild):e.appendChild($),$.outerHTML=A.map(function(N){return Uh(N)}).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function WG(e){return Promise.all([EP(e,"::before"),EP(e,"::after")])}function YG(e){return e.parentNode!==document.head&&!~RY.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(tw)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function TP(e){if(ca)return new Promise(function(t,n){var r=Uu(e.querySelectorAll("*")).filter(YG).map(WG),i=fE.begin("searchPseudoElements");U4(),Promise.all(r).then(function(){i(),cw(),t()}).catch(function(){i(),cw(),n()})})}var GG={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=TP,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Ft:r;Be.searchPseudoElements&&TP(i)}}},OP=!1,qG={mixout:function(){return{dom:{unwatch:function(){U4(),OP=!0}}}},hooks:function(){return{bootstrap:function(){bP(iw("mutationObserverCallbacks",{}))},noAuto:function(){jG()},watch:function(n){var r=n.observeMutationsRoot;OP?cw():bP(iw("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},CP=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("-"),a=o[0],s=o.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},KG={mixout:function(){return{parse:{transform:function(n){return CP(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=CP(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,s={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),") "),d="rotate(".concat(i.rotate," 0 0)"),f={transform:"".concat(l," ").concat(c," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},m={outer:s,inner:f,path:p};return{tag:"g",attributes:Ie({},m.outer),children:[{tag:"g",attributes:Ie({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Ie(Ie({},r.icon.attributes),m.path)}]}]}}}},H_={x:0,y:0,width:"100%",height:"100%"};function kP(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 ZG(e){return e.tag==="g"?e.children:[e]}var QG={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?i0(i.split(" ").map(function(a){return a.trim()})):uE();return o.prefix||(o.prefix=ss()),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,a=n.mask,s=n.maskId,l=n.transform,c=o.width,d=o.icon,f=a.width,p=a.icon,m=KY({transform:l,containerWidth:f,iconWidth:c}),v={tag:"rect",attributes:Ie(Ie({},H_),{},{fill:"white"})},y=d.children?{children:d.children.map(kP)}:{},x={tag:"g",attributes:Ie({},m.inner),children:[kP(Ie({tag:d.tag,attributes:Ie(Ie({},d.attributes),m.path)},y))]},_={tag:"g",attributes:Ie({},m.outer),children:[x]},w="mask-".concat(s||eh()),S="clip-".concat(s||eh()),E={tag:"mask",attributes:Ie(Ie({},H_),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,_]},C={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:ZG(p)},E]};return r.push(C,{tag:"rect",attributes:Ie({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(w,")")},H_)}),{children:r,attributes:i}}}},XG={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:Ie(Ie({},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 a=Ie(Ie({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Ie(Ie({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:Ie(Ie({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ie(Ie({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:Ie(Ie({},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:Ie(Ie({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Ie(Ie({},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:Ie(Ie({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},JG={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}}}},eq=[XY,$G,UG,BG,zG,GG,qG,KG,QG,XG,JG];hG(eq,{mixoutsTo:ii});ii.noAuto;ii.config;ii.library;ii.dom;var uw=ii.parse;ii.findIconDefinition;ii.toHtml;var tq=ii.icon;ii.layer;ii.text;ii.counter;var z4={exports:{}},nq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rq=nq,iq=rq;function V4(){}function H4(){}H4.resetWarningCache=V4;var oq=function(){function e(r,i,o,a,s,l){if(l!==iq){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:H4,resetWarningCache:V4};return n.PropTypes=n,n};z4.exports=oq();var aq=z4.exports;const R=aa(aq);function PP(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 Da(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function lq(e,t){if(e==null)return{};var n=sq(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 cq(e)||uq(e)||dq(e)||fq()}function cq(e){if(Array.isArray(e))return fw(e)}function uq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dq(e,t){if(e){if(typeof e=="string")return fw(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 fw(e,t)}}function fw(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 Y4(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var d=t.attributes[c];switch(c){case"class":l.attrs.className=d,delete t.attributes.class;break;case"style":l.attrs.style=vq(d);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=d:l.attrs[W4(c)]=d}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=lq(n,mq);return i.attrs.style=Da(Da({},i.attrs.style),a),e.apply(void 0,[t.tag,Da(Da({},i.attrs),s)].concat(dw(r)))}var G4=!1;try{G4=!0}catch{}function yq(){if(!G4&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function jP(e){if(e&&uv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(uw.icon)return uw.icon(e);if(e===null)return null;if(e&&uv(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 W_(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Nc({},e,t):{}}var Ae=Y.forwardRef(function(e,t){var n=e.icon,r=e.mask,i=e.symbol,o=e.className,a=e.title,s=e.titleId,l=e.maskId,c=jP(n),d=W_("classes",[].concat(dw(hq(e)),dw(o.split(" ")))),f=W_("transform",typeof e.transform=="string"?uw.transform(e.transform):e.transform),p=W_("mask",jP(r)),m=tq(c,Da(Da(Da(Da({},d),f),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!m)return yq("Could not find icon",c),null;var v=m.abstract,y={ref:t};return Object.keys(e).forEach(function(x){Ae.defaultProps.hasOwnProperty(x)||(y[x]=e[x])}),_q(v[0],y)});Ae.displayName="FontAwesomeIcon";Ae.propTypes={beat:R.bool,border:R.bool,beatFade:R.bool,bounce:R.bool,className:R.string,fade:R.bool,flash:R.bool,mask:R.oneOfType([R.object,R.array,R.string]),maskId:R.string,fixedWidth:R.bool,inverse:R.bool,flip:R.oneOf([!0,!1,"horizontal","vertical","both"]),icon:R.oneOfType([R.object,R.array,R.string]),listItem:R.bool,pull:R.oneOf(["right","left"]),pulse:R.bool,rotation:R.oneOf([0,90,180,270]),shake:R.bool,size:R.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:R.bool,spinPulse:R.bool,spinReverse:R.bool,symbol:R.oneOfType([R.bool,R.string]),title:R.string,titleId:R.string,transform:R.oneOfType([R.string,R.object]),swapOpacity:R.bool};Ae.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 _q=Y4.bind(null,Y.createElement),q4={exports:{}};/*! + 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;i0?"".concat(e,"px"):null}function xq(){return document.body.clientWidth0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tq;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function ys(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Z4(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var LP={};function hw(e){LP[e]||(typeof console<"u"&&console.error(e),LP[e]=!0)}function Q4(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&hw('"'.concat(i,'" property of "').concat(o,`" has been deprecated. +`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l"u"?"undefined":cu(window))==="object"&&window.Element||function(){};function pE(e,t,n){if(!(e[t]instanceof Oq))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var uu=R.oneOfType([R.string,R.func,pE,R.shape({current:R.any})]),it=R.oneOfType([R.func,R.string,R.shape({$$typeof:R.symbol,render:R.func}),R.arrayOf(R.oneOfType([R.func,R.string,R.shape({$$typeof:R.symbol,render:R.func})]))]),dv={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},fv=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],um={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},bt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},Cq=["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"],mE=!!(typeof window<"u"&&window.document&&window.document.createElement);function kq(e){return e&&cu(e)==="object"?"current"in e:!1}function X4(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function pw(e){var t=cu(e);return e!=null&&(t==="object"||t==="function")}function MP(e){var t=cu(e),n=0/0;if(t==="number")return e;if(t==="symbol"||t==="object"&&X4(e)==="[object Symbol]")return n;if(pw(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=pw(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function Pq(e){if(!pw(e))return!1;var t=X4(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function jq(e){if(kq(e))return e.current;if(Pq(e))return e();if(typeof e=="string"&&mE){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function AP(e){return e===null?!1:Array.isArray(e)||mE&&typeof e.length=="number"}function th(e,t){var n=jq(e);return t?AP(n)?n:n===null?[]:[n]:AP(n)?n[0]:n}var Lq=["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"])'],Mq=["className","cssModule","noGutters","tag","widths"];function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rq(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}var Nq=["xs","sm","md","lg","xl","xxl"],ic=R.oneOfType([R.number,R.string]),Dq={tag:it,noGutters:Q4(R.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:R.string,cssModule:R.object,xs:ic,sm:ic,md:ic,lg:ic,xl:ic,xxl:ic,widths:R.array};function _r(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?Nq:a,l=Aq(e,Mq),c=[];s.forEach(function(f,p){var m=e[f];if(delete l[f],!!m){var v=!p;c.push(v?"row-cols-".concat(m):"row-cols-".concat(f,"-").concat(m))}});var d=Ve(He(t,r?"gx-0":null,"row",c),n);return Y.createElement(o,mw({},l,{className:d}))}_r.propTypes=Dq;var Iq=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function gw(){return gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $q(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}var Uq={children:R.node,className:R.string,color:R.string,container:R.oneOfType([R.bool,R.string]),cssModule:R.object,dark:R.bool,expand:R.oneOfType([R.bool,R.string]),fixed:R.string,light:R.bool,role:R.string,sticky:R.string,tag:it},Bq=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function J4(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,l=e.fixed,c=e.sticky,d=e.color,f=e.container,p=f===void 0?"fluid":f,m=e.tag,v=m===void 0?"nav":m,y=e.children,x=Fq(e,Iq),_=Ve(He(i,"navbar",Bq(r),(t={"navbar-light":a,"navbar-dark":s},Y_(t,"bg-".concat(d),d),Y_(t,"fixed-".concat(l),l),Y_(t,"sticky-".concat(c),c),t)),o),w=p&&p===!0?"container":"container-".concat(p);return Y.createElement(v,gw({},x,{className:_}),p?Y.createElement("div",{className:w},y):y)}J4.propTypes=Uq;var zq=["className","cssModule","tag"];function vw(){return vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hq(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}var Wq={className:R.string,cssModule:R.object,tag:it};function eI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=Vq(e,zq),a=Ve(He(t,"navbar-brand"),n);return Y.createElement(i,vw({},o,{className:a}))}eI.propTypes=Wq;var Yq=["className","cssModule","children","tag"];function yw(){return yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zq(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}var Qq={className:R.string,cssModule:R.object,tag:it,type:R.string,children:R.node};function tI(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=Kq(e,Yq),s=Ve(He(t,"navbar-toggler"),n);return Y.createElement(o,yw({"aria-label":"Toggle navigation"},Gq({type:"button"},a),{className:s}),r||Y.createElement("span",{className:Ve("navbar-toggler-icon",n)}))}tI.propTypes=Qq;var Xq=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function _w(){return _w=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eK(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}var tK={card:R.bool,className:R.string,cssModule:R.object,fill:R.bool,horizontal:R.oneOf(["center","end"]),justified:R.bool,navbar:R.bool,pills:R.bool,tabs:R.bool,tag:it,vertical:R.oneOfType([R.bool,R.string])},nK=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function gE(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,l=e.justified,c=e.fill,d=e.navbar,f=e.card,p=e.tag,m=p===void 0?"ul":p,v=Jq(e,Xq),y=Ve(He(t,d?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,nK(a),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":l,"nav-fill":c}),n);return Y.createElement(m,_w({},v,{className:y}))}gE.propTypes=tK;var rK=["className","cssModule","active","tag"];function bw(){return bw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oK(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}var aK={active:R.bool,className:R.string,cssModule:R.object,tag:it};function nI(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=iK(e,rK),s=Ve(He(t,"nav-item",r?"active":!1),n);return Y.createElement(o,bw({},a,{className:s}))}nI.propTypes=aK;function ww(e){"@babel/helpers - typeof";return ww=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},ww(e)}var sK=["className","cssModule","active","tag","innerRef"];function xw(){return xw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cK(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 uK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NP(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 hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hv(e)}var gK={active:R.bool,className:R.string,cssModule:R.object,disabled:R.bool,href:R.any,innerRef:R.oneOfType([R.object,R.func,R.string]),onClick:R.func,tag:it},iI=function(e){fK(n,e);var t=hK(n);function n(r){var i;return uK(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(rI(i)),i}return dK(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.active,l=i.tag,c=l===void 0?"a":l,d=i.innerRef,f=lK(i,sK),p=Ve(He(o,"nav-link",{disabled:f.disabled,active:s}),a);return Y.createElement(c,xw({},f,{ref:d,onClick:this.onClick,className:p}))}}]),n}(Y.Component);iI.propTypes=gK;const oI=iI;var vK=["className","cssModule","variant","innerRef"];function Ew(){return Ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wK(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}var xK={active:R.bool,"aria-label":R.string,onClick:R.func,variant:R.oneOf(["white"]),className:R.string,cssModule:R.object,innerRef:R.oneOfType([R.object,R.string,R.func])};function aI(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=bK(e,vK),o=Ve(He(t,"btn-close",n&&"btn-close-".concat(n)));return Y.createElement("button",Ew({ref:r,type:"button",className:o},yK({"aria-label":"close"},i)))}aI.propTypes=xK;var SK=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function Tw(){return Tw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TK(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}var OK={active:R.bool,"aria-label":R.string,block:R.bool,children:R.node,className:R.string,cssModule:R.object,close:R.bool,color:R.string,disabled:R.bool,innerRef:R.oneOfType([R.object,R.func,R.string]),onClick:R.func,outline:R.bool,size:R.string,tag:it};function _t(e){var t=U.useCallback(function(w){if(e.disabled){w.preventDefault();return}if(e.onClick)return e.onClick(w)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,l=e.color,c=l===void 0?"secondary":l,d=e.outline,f=e.size,p=e.tag,m=p===void 0?"button":p,v=e.innerRef,y=EK(e,SK);if(a)return Y.createElement(aI,y);var x="btn".concat(d?"-outline":"","-").concat(c),_=Ve(He(o,"btn",x,f?"btn-".concat(f):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return y.href&&m==="button"&&(m="a"),Y.createElement(m,Tw({type:m==="button"&&y.onClick?"button":void 0},y,{className:_,ref:v,onClick:t,"aria-label":r}))}_t.propTypes=OK;var sI=U.createContext(),lI=U.createContext();function IP(e){var t=e.children,n=U.useState(null),r=n[0],i=n[1],o=U.useRef(!1);U.useEffect(function(){return function(){o.current=!0}},[]);var a=U.useCallback(function(s){o.current||i(s)},[]);return U.createElement(sI.Provider,{value:r},U.createElement(lI.Provider,{value:a},t))}var cI=function(t){return Array.isArray(t)?t[0]:t},uI=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=Zr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $K(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];!vi(o)||!wo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function UK(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]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!vi(i)||!wo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const BK={name:"applyStyles",enabled:!0,phase:"write",fn:$K,effect:UK,requires:["computeStyles"]};function go(e){return e.split("-")[0]}var ol=Math.max,pv=Math.min,fu=Math.round;function Cw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function hI(){return!/^((?!chrome|android).)*safari/i.test(Cw())}function hu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&vi(e)&&(i=e.offsetWidth>0&&fu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&fu(r.height)/e.offsetHeight||1);var a=wl(e)?Zr(e):window,s=a.visualViewport,l=!hI()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,d=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function _E(e){var t=hu(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 pI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ta(e){return Zr(e).getComputedStyle(e)}function zK(e){return["table","td","th"].indexOf(wo(e))>=0}function _s(e){return((wl(e)?e.ownerDocument:e.document)||window.document).documentElement}function a0(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(yE(e)?e.host:null)||_s(e)}function BP(e){return!vi(e)||ta(e).position==="fixed"?null:e.offsetParent}function VK(e){var t=/firefox/i.test(Cw()),n=/Trident/i.test(Cw());if(n&&vi(e)){var r=ta(e);if(r.position==="fixed")return null}var i=a0(e);for(yE(i)&&(i=i.host);vi(i)&&["html","body"].indexOf(wo(i))<0;){var o=ta(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 zh(e){for(var t=Zr(e),n=BP(e);n&&zK(n)&&ta(n).position==="static";)n=BP(n);return n&&(wo(n)==="html"||wo(n)==="body"&&ta(n).position==="static")?t:n||VK(e)||t}function bE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lf(e,t,n){return ol(e,pv(t,n))}function HK(e,t,n){var r=lf(e,t,n);return r>n?n:r}function mI(){return{top:0,right:0,bottom:0,left:0}}function gI(e){return Object.assign({},mI(),e)}function vI(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var WK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,gI(typeof t!="number"?t:vI(t,Bh))};function YK(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=go(n.placement),l=bE(s),c=[Ar,Ei].indexOf(s)>=0,d=c?"height":"width";if(!(!o||!a)){var f=WK(i.padding,n),p=_E(o),m=l==="y"?Mr:Ar,v=l==="y"?Si:Ei,y=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],x=a[l]-n.rects.reference[l],_=zh(o),w=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-x/2,E=f[m],C=w-p[d]-f[v],k=w/2-p[d]/2+S,j=lf(E,k,C),A=l;n.modifiersData[r]=(t={},t[A]=j,t.centerOffset=j-k,t)}}function GK(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)||pI(t.elements.popper,i)&&(t.elements.arrow=i))}const qK={name:"arrow",enabled:!0,phase:"main",fn:YK,effect:GK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pu(e){return e.split("-")[1]}var KK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZK(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:fu(n*i)/i||0,y:fu(r*i)/i||0}}function zP(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,y=v===void 0?0:v,x=typeof d=="function"?d({x:m,y}):{x:m,y};m=x.x,y=x.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Ar,E=Mr,C=window;if(c){var k=zh(n),j="clientHeight",A="clientWidth";if(k===Zr(n)&&(k=_s(n),ta(k).position!=="static"&&s==="absolute"&&(j="scrollHeight",A="scrollWidth")),k=k,i===Mr||(i===Ar||i===Ei)&&o===nh){E=Si;var $=f&&k===C&&C.visualViewport?C.visualViewport.height:k[j];y-=$-r.height,y*=l?1:-1}if(i===Ar||(i===Mr||i===Si)&&o===nh){S=Ei;var N=f&&k===C&&C.visualViewport?C.visualViewport.width:k[A];m-=N-r.width,m*=l?1:-1}}var z=Object.assign({position:s},c&&KK),W=d===!0?ZK({x:m,y},Zr(n)):{x:m,y};if(m=W.x,y=W.y,l){var X;return Object.assign({},z,(X={},X[E]=w?"0":"",X[S]=_?"0":"",X.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",X))}return Object.assign({},z,(t={},t[E]=w?y+"px":"",t[S]=_?m+"px":"",t.transform="",t))}function QK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:go(t.placement),variation:pu(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,zP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zP(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 XK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QK,data:{}};var dm={passive:!0};function JK(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Zr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",n.update,dm)}),s&&l.addEventListener("resize",n.update,dm),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",n.update,dm)}),s&&l.removeEventListener("resize",n.update,dm)}}const eZ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:JK,data:{}};var tZ={left:"right",right:"left",bottom:"top",top:"bottom"};function ag(e){return e.replace(/left|right|bottom|top/g,function(t){return tZ[t]})}var nZ={start:"end",end:"start"};function VP(e){return e.replace(/start|end/g,function(t){return nZ[t]})}function wE(e){var t=Zr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xE(e){return hu(_s(e)).left+wE(e).scrollLeft}function rZ(e,t){var n=Zr(e),r=_s(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=hI();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+xE(e),y:l}}function iZ(e){var t,n=_s(e),r=wE(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ol(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ol(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+xE(e),l=-r.scrollTop;return ta(i||n).direction==="rtl"&&(s+=ol(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function SE(e){var t=ta(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function yI(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:vi(e)&&SE(e)?e:yI(a0(e))}function cf(e,t){var n;t===void 0&&(t=[]);var r=yI(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Zr(r),a=i?[o].concat(o.visualViewport||[],SE(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(cf(a0(a)))}function kw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oZ(e,t){var n=hu(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 HP(e,t,n){return t===dI?kw(rZ(e,n)):wl(t)?oZ(t,n):kw(iZ(_s(e)))}function aZ(e){var t=cf(a0(e)),n=["absolute","fixed"].indexOf(ta(e).position)>=0,r=n&&vi(e)?zh(e):e;return wl(r)?t.filter(function(i){return wl(i)&&pI(i,r)&&wo(i)!=="body"}):[]}function sZ(e,t,n,r){var i=t==="clippingParents"?aZ(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var d=HP(e,c,r);return l.top=ol(d.top,l.top),l.right=pv(d.right,l.right),l.bottom=pv(d.bottom,l.bottom),l.left=ol(d.left,l.left),l},HP(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function _I(e){var t=e.reference,n=e.element,r=e.placement,i=r?go(r):null,o=r?pu(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Mr:l={x:a,y:t.y-n.height};break;case Si:l={x:a,y:t.y+t.height};break;case Ei:l={x:t.x+t.width,y:s};break;case Ar:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?bE(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case du:l[c]=l[c]-(t[d]/2-n[d]/2);break;case nh:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function rh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?CK:s,c=n.rootBoundary,d=c===void 0?dI:c,f=n.elementContext,p=f===void 0?bd:f,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,x=y===void 0?0:y,_=gI(typeof x!="number"?x:vI(x,Bh)),w=p===bd?kK:bd,S=e.rects.popper,E=e.elements[v?w:p],C=sZ(wl(E)?E:E.contextElement||_s(e.elements.popper),l,d,a),k=hu(e.elements.reference),j=_I({reference:k,element:S,strategy:"absolute",placement:i}),A=kw(Object.assign({},S,j)),$=p===bd?A:k,N={top:C.top-$.top+_.top,bottom:$.bottom-C.bottom+_.bottom,left:C.left-$.left+_.left,right:$.right-C.right+_.right},z=e.modifiersData.offset;if(p===bd&&z){var W=z[i];Object.keys(N).forEach(function(X){var G=[Ei,Si].indexOf(X)>=0?1:-1,Z=[Mr,Si].indexOf(X)>=0?"y":"x";N[X]+=W[Z]*G})}return N}function lZ(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?fI:l,d=pu(r),f=d?s?UP:UP.filter(function(v){return pu(v)===d}):Bh,p=f.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,y){return v[y]=rh(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[go(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function cZ(e){if(go(e)===vE)return[];var t=ag(e);return[VP(e),t,VP(t)]}function uZ(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,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,x=t.options.placement,_=go(x),w=_===x,S=l||(w||!v?[ag(x)]:cZ(x)),E=[x].concat(S).reduce(function(K,re){return K.concat(go(re)===vE?lZ(t,{placement:re,boundary:d,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:y}):re)},[]),C=t.rects.reference,k=t.rects.popper,j=new Map,A=!0,$=E[0],N=0;N=0,Z=G?"width":"height",te=rh(t,{placement:z,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),le=G?X?Ei:Ar:X?Si:Mr;C[Z]>k[Z]&&(le=ag(le));var q=ag(le),I=[];if(o&&I.push(te[W]<=0),s&&I.push(te[le]<=0,te[q]<=0),I.every(function(K){return K})){$=z,A=!1;break}j.set(z,I)}if(A)for(var D=v?3:1,H=function(re){var ae=E.find(function(he){var O=j.get(he);if(O)return O.slice(0,re).every(function(M){return M})});if(ae)return $=ae,"break"},ie=D;ie>0;ie--){var V=H(ie);if(V==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const dZ={name:"flip",enabled:!0,phase:"main",fn:uZ,requiresIfExists:["offset"],data:{_skip:!1}};function WP(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 YP(e){return[Mr,Ei,Si,Ar].some(function(t){return e[t]>=0})}function fZ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=rh(t,{elementContext:"reference"}),s=rh(t,{altBoundary:!0}),l=WP(a,r),c=WP(s,i,o),d=YP(l),f=YP(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const hZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fZ};function pZ(e,t,n){var r=go(e),i=[Ar,Mr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ar,Ei].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function mZ(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=fI.reduce(function(d,f){return d[f]=pZ(f,t.rects,o),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const gZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mZ};function vZ(e){var t=e.state,n=e.name;t.modifiersData[n]=_I({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const yZ={name:"popperOffsets",enabled:!0,phase:"read",fn:vZ,data:{}};function _Z(e){return e==="x"?"y":"x"}function bZ(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=rh(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),_=go(t.placement),w=pu(t.placement),S=!w,E=bE(_),C=_Z(E),k=t.modifiersData.popperOffsets,j=t.rects.reference,A=t.rects.popper,$=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(k){if(o){var X,G=E==="y"?Mr:Ar,Z=E==="y"?Si:Ei,te=E==="y"?"height":"width",le=k[E],q=le+x[G],I=le-x[Z],D=m?-A[te]/2:0,H=w===du?j[te]:A[te],ie=w===du?-A[te]:-j[te],V=t.elements.arrow,K=m&&V?_E(V):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mI(),ae=re[G],he=re[Z],O=lf(0,j[te],K[te]),M=S?j[te]/2-D-O-ae-N.mainAxis:H-O-ae-N.mainAxis,F=S?-j[te]/2+D+O+he+N.mainAxis:ie+O+he+N.mainAxis,ee=t.elements.arrow&&zh(t.elements.arrow),J=ee?E==="y"?ee.clientTop||0:ee.clientLeft||0:0,se=(X=z==null?void 0:z[E])!=null?X:0,ge=le+M-se-J,Me=le+F-se,ue=lf(m?pv(q,ge):q,le,m?ol(I,Me):I);k[E]=ue,W[E]=ue-le}if(s){var me,_e=E==="x"?Mr:Ar,Se=E==="x"?Si:Ei,ke=k[C],Ce=C==="y"?"height":"width",Le=ke+x[_e],ce=ke-x[Se],fe=[Mr,Ar].indexOf(_)!==-1,ye=(me=z==null?void 0:z[C])!=null?me:0,ve=fe?Le:ke-j[Ce]-A[Ce]-ye+N.altAxis,xe=fe?ke+j[Ce]+A[Ce]-ye-N.altAxis:ce,Pe=m&&fe?HK(ve,ke,xe):lf(m?ve:Le,ke,m?xe:ce);k[C]=Pe,W[C]=Pe-ke}t.modifiersData[r]=W}}const wZ={name:"preventOverflow",enabled:!0,phase:"main",fn:bZ,requiresIfExists:["offset"]};function xZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function SZ(e){return e===Zr(e)||!vi(e)?wE(e):xZ(e)}function EZ(e){var t=e.getBoundingClientRect(),n=fu(t.width)/e.offsetWidth||1,r=fu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function TZ(e,t,n){n===void 0&&(n=!1);var r=vi(t),i=vi(t)&&EZ(t),o=_s(t),a=hu(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||SE(o))&&(s=SZ(t)),vi(t)?(l=hu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=xE(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function OZ(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 a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function CZ(e){var t=OZ(e);return FK.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function kZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function PZ(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 GP={placement:"bottom",modifiers:[],strategy:"absolute"};function qP(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZZ(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 QZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KP(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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mv(e)}var rQ={a11y:R.bool,disabled:R.bool,direction:R.oneOf(["up","down","start","end","left","right"]),group:R.bool,isOpen:R.bool,nav:R.bool,active:R.bool,size:R.string,tag:it,toggle:R.func,children:R.node,className:R.string,cssModule:R.object,dropup:R.bool,inNavbar:R.bool,setActiveFromChild:R.bool,menuRole:R.oneOf(["listbox","menu"])},iQ={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},oQ=[bt.space,bt.enter,bt.up,bt.down,bt.end,bt.home],s0=function(e){JZ(n,e);var t=eQ(n);function n(r){var i;return QZ(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(Ea(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Ea(i)),i.handleKeyDown=i.handleKeyDown.bind(Ea(i)),i.removeEvents=i.removeEvents.bind(Ea(i)),i.toggle=i.toggle.bind(Ea(i)),i.handleMenuRef=i.handleMenuRef.bind(Ea(i)),i.handleToggleRef=i.handleToggleRef.bind(Ea(i)),i.containerRef=Y.createRef(),i.menuRef=Y.createRef(),i.toggleRef=Y.createRef(),i}return XZ(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==bt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle(),l=s.contains(i.target),c=a&&a.contains(i.target)&&a!==i.target,d=!1;o&&(d=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((l&&!d||c)&&(i.type!=="keyup"||i.which===bt.tab))&&this.toggle(i)}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,l=bt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||l&&!this.props.a11y||l&&!(a||s))&&((oQ.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([bt.space,bt.enter,bt.up,bt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var w;return(w=o.getMenuItems()[0])===null||w===void 0?void 0:w.focus()});else if(this.props.isOpen&&l){var c;i.preventDefault(),(c=this.getMenuItems()[0])===null||c===void 0||c.focus()}else this.props.isOpen&&i.which===bt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([bt.tab,bt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([bt.space,bt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([bt.down,bt.up].indexOf(i.which)>-1||[bt.n,bt.p].indexOf(i.which)>-1&&i.ctrlKey){var d=this.getMenuItems(),f=d.indexOf(i.target);bt.up===i.which||bt.p===i.which&&i.ctrlKey?f=f!==0?f-1:d.length-1:(bt.down===i.which||bt.n===i.which&&i.ctrlKey)&&(f=f===d.length-1?0:f+1),d[f].focus()}else if(bt.end===i.which){var p=this.getMenuItems();p[p.length-1].focus()}else if(bt.home===i.which){var m=this.getMenuItems();m[0].focus()}else if(i.which>=48&&i.which<=90)for(var v=this.getMenuItems(),y=String.fromCharCode(i.which).toLowerCase(),x=0;x=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lQ(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 cQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZP(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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gv(e)}var mQ={children:R.node,active:R.bool,disabled:R.bool,divider:R.bool,tag:it,header:R.bool,onClick:R.func,className:R.string,cssModule:R.object,toggle:R.bool,text:R.bool},EE=function(e){dQ(n,e);var t=fQ(n);function n(r){var i;return cQ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(Nw(i)),i.getTabIndex=i.getTabIndex.bind(Nw(i)),i}return uQ(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,l=a.header,c=a.divider,d=a.text;if(s||l||c||d){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,l=i.text;return o||a||s||l?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=ys(this.props,["toggle"]),s=a.className,l=a.cssModule,c=a.divider,d=a.tag,f=d===void 0?"button":d,p=a.header,m=a.active,v=a.text,y=sQ(a,aQ),x=Ve(He(s,{disabled:y.disabled,"dropdown-item":!c&&!p&&!v,active:m,"dropdown-header":p,"dropdown-divider":c,"dropdown-item-text":v}),l);return f==="button"&&(p?f="h6":c?f="div":y.href?f="a":v&&(f="span")),Y.createElement(f,Aw({type:f==="button"&&(y.onClick||this.props.toggle)?"button":void 0},y,{tabIndex:i,role:o,className:x,onClick:this.onClick}))}}]),n}(Y.Component);EE.propTypes=mQ;EE.contextType=ih;const Ue=EE;function Dw(e){"@babel/helpers - typeof";return Dw=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},Dw(e)}var gQ=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function vv(){return vv=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EQ(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 TQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JP(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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yv(e)}var MQ={tag:it,children:R.node.isRequired,dark:R.bool,end:R.bool,flip:R.bool,modifiers:R.array,className:R.string,cssModule:R.object,style:R.object,persist:R.bool,strategy:R.string,container:uu,updateOnSelect:R.bool,right:Q4(R.bool,'Please use "end" instead.')},AQ={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},TE=function(e){CQ(n,e);var t=kQ(n);function n(){return TQ(this,n),t.apply(this,arguments)}return OQ(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,l=o.dark,c=o.end,d=o.right,f=o.tag,p=f===void 0?"div":f,m=o.flip,v=m===void 0?!0:m,y=o.modifiers,x=y===void 0?[]:y,_=o.persist,w=o.strategy,S=o.container,E=o.updateOnSelect,C=SQ(o,gQ),k=Ve(He(a,"dropdown-menu",{"dropdown-menu-dark":l,"dropdown-menu-end":c||d,show:this.context.isOpen}),s),j=p;if(_||this.context.isOpen&&!this.context.inNavbar){var A=AQ[this.context.direction]||"bottom",$=c||d?"end":"start",N="".concat(A,"-").concat($),z=[].concat(yQ(x),[{name:"flip",enabled:!!v}]),W=Y.createElement(bI,{placement:N,modifiers:z,strategy:w},function(G){var Z=G.ref,te=G.style,le=G.placement,q=G.update,I=XP(XP({},i.props.style),te),D=function(ie){Z(ie);var V=i.context.onMenuRef;V&&V(ie)};return Y.createElement(j,vv({tabIndex:"-1",role:i.getRole(),ref:D},C,{style:I,"aria-hidden":!i.context.isOpen,className:k,"data-popper-placement":le,onClick:function(){return E&&q()}}))});return S?rl.createPortal(W,th(S)):W}var X=this.context.onMenuRef;return Y.createElement(j,vv({tabIndex:"-1",role:this.getRole()},C,{ref:X,"aria-hidden":!this.context.isOpen,className:k,"data-popper-placement":C.placement}))}}]),n}(Y.Component);TE.propTypes=MQ;TE.contextType=ih;const Bu=TE;function $w(e){"@babel/helpers - typeof";return $w=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},$w(e)}var RQ=["className","color","cssModule","caret","split","nav","tag","innerRef"];function NQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IQ(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 FQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ej(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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bv(e)}var HQ={caret:R.bool,color:R.string,children:R.node,className:R.string,cssModule:R.object,disabled:R.bool,onClick:R.func,"aria-haspopup":R.bool,split:R.bool,tag:it,nav:R.bool,innerRef:R.oneOfType([R.object,R.string,R.func])},WQ={color:"secondary","aria-haspopup":!0},l0=function(e){UQ(n,e);var t=BQ(n);function n(r){var i;return FQ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(xI(i)),i}return $Q(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.color,l=o.cssModule,c=o.caret,d=o.split,f=o.nav,p=o.tag,m=o.innerRef,v=DQ(o,RQ),y=v["aria-label"]||"Toggle Dropdown",x=Ve(He(a,{"dropdown-toggle":c||d,"dropdown-toggle-split":d,"nav-link":f}),l),_=typeof v.children<"u"?v.children:Y.createElement("span",{className:"visually-hidden"},y),w;return f&&!p?(w="a",v.href="#"):p?w=p:(w=_t,v.color=s,v.cssModule=l),this.context.inNavbar?Y.createElement(w,_v({},v,{className:x,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:_})):Y.createElement(GZ,{innerRef:m},function(S){var E=S.ref,C=function(j){E(j);var A=i.context.onToggleRef;A&&A(j)};return Y.createElement(w,_v({},v,NQ({},typeof w=="string"?"ref":"innerRef",C),{className:x,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:_}))})}}]),n}(Y.Component);l0.propTypes=HQ;l0.defaultProps=WQ;l0.contextType=ih;const zu=l0;function Bw(e,t){return Bw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Bw(e,t)}function YQ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bw(e,t)}const tj={disabled:!1},SI=Y.createContext(null);var $d="unmounted",Bs="exited",zs="entering",vc="entered",zw="exiting",ua=function(e){YQ(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Bs,o.appearStatus=zs):l=vc:r.unmountOnExit||r.mountOnEnter?l=$d:l=Bs,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===$d?{status:Bs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==zs&&a!==vc&&(o=zs):(a===zs||a===vc)&&(o=zw)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===zs?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Bs&&this.setState({status:$d})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[rl.findDOMNode(this),s],c=l[0],d=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!i&&!a||tj.disabled){this.safeSetState({status:vc},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:zs},function(){o.props.onEntering(c,d),o.onTransitionEnd(p,function(){o.safeSetState({status:vc},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:rl.findDOMNode(this);if(!o||tj.disabled){this.safeSetState({status:Bs},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:zw},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Bs},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:rl.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===$d)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=OS(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(SI.Provider,{value:null},typeof a=="function"?a(i,s):Y.cloneElement(Y.Children.only(a),s))},t}(Y.Component);ua.contextType=SI;ua.propTypes={};function oc(){}ua.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oc,onEntering:oc,onEntered:oc,onExit:oc,onExiting:oc,onExited:oc};ua.UNMOUNTED=$d;ua.EXITED=Bs;ua.ENTERING=zs;ua.ENTERED=vc;ua.EXITING=zw;const Vu=ua;var GQ=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KQ(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 nj(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 oh(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eX(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 tX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rj(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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sv(e)}function ij(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 mu(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pX(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}var mX={body:R.bool,className:R.string,color:R.string,cssModule:R.object,innerRef:R.oneOfType([R.object,R.string,R.func]),inverse:R.bool,outline:R.bool,tag:it};function Qr(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,l=s===void 0?"div":s,c=e.innerRef,d=hX(e,fX),f=Ve(He(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return Y.createElement(l,Ww({},d,{className:f,ref:c}))}Qr.propTypes=mX;var gX=["className","cssModule","innerRef","tag"];function Yw(){return Yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yX(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}var _X={className:R.string,cssModule:R.object,innerRef:R.oneOfType([R.object,R.string,R.func]),tag:it};function gu(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=vX(e,gX),s=Ve(He(t,"card-body"),n);return Y.createElement(o,Yw({},a,{className:s,ref:r}))}gu.propTypes=_X;var bX=["className","cssModule","tag"];function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xX(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}var SX={className:R.string,cssModule:R.object,tag:it};function OI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=wX(e,bX),a=Ve(He(t,"card-footer"),n);return Y.createElement(i,Gw({},o,{className:a}))}OI.propTypes=SX;var EX=["className","cssModule","tag"];function qw(){return qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OX(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}var CX={className:R.string,cssModule:R.object,tag:it};function vu(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=TX(e,EX),a=Ve(He(t,"card-header"),n);return Y.createElement(i,qw({},o,{className:a}))}vu.propTypes=CX;var kX=["className","cssModule","tag"];function Kw(){return Kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jX(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}var LX={className:R.string,cssModule:R.object,tag:it};function CI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=PX(e,kX),a=Ve(He(t,"card-text"),n);return Y.createElement(i,Kw({},o,{className:a}))}CI.propTypes=LX;var MX=["className","cssModule","tag"];function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RX(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}var NX={className:R.string,cssModule:R.object,tag:it};function kI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=AX(e,MX),a=Ve(He(t,"card-title"),n);return Y.createElement(i,Zw({},o,{className:a}))}kI.propTypes=NX;function Qw(e){"@babel/helpers - typeof";return Qw=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},Qw(e)}var DX=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function Xw(){return Xw=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zX(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 VX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aj(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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ev(e)}function sj(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 lg(e){for(var t=1;t"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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tv(e)}var kE={children:R.oneOfType([R.node,R.func]),placement:R.oneOf(Cq),target:uu.isRequired,container:uu,isOpen:R.bool,disabled:R.bool,hideArrow:R.bool,boundariesElement:R.oneOfType([R.string,pE]),className:R.string,innerClassName:R.string,arrowClassName:R.string,popperClassName:R.string,cssModule:R.object,toggle:R.func,autohide:R.bool,placementPrefix:R.string,delay:R.oneOfType([R.shape({show:R.number,hide:R.number}),R.number]),modifiers:R.array,strategy:R.string,offset:R.arrayOf(R.number),innerRef:R.oneOfType([R.func,R.string,R.object]),trigger:R.string,fade:R.bool,flip:R.bool},PI={show:0,hide:50},aJ={isOpen:!1,hideArrow:!1,autohide:!1,delay:PI,toggle:function(){},trigger:"click",fade:!0};function jI(e,t){return t&&(e===t||t.contains(e))}function cj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return jI(e,n)})[0]}var PE=function(e){nJ(n,e);var t=rJ(n);function n(r){var i;return eJ(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(Fr(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Fr(i)),i.removeTargetEvents=i.removeTargetEvents.bind(Fr(i)),i.toggle=i.toggle.bind(Fr(i)),i.showWithDelay=i.showWithDelay.bind(Fr(i)),i.hideWithDelay=i.hideWithDelay.bind(Fr(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(Fr(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(Fr(i)),i.show=i.show.bind(Fr(i)),i.hide=i.hide.bind(Fr(i)),i.onEscKeyDown=i.onEscKeyDown.bind(Fr(i)),i.getRef=i.getRef.bind(Fr(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return tJ(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||cj(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!jI(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&cj(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var o=this.props.innerRef;o&&(typeof o=="function"?o(i):ah(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return ah(o)==="object"?isNaN(o[i])?PI[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var o=i.composedPath();this.currentTargetElement=o&&o[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.addEventListener(i,o,a)})}},{key:"removeEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.removeEventListener(i,o,a)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){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)}},{key:"updateTarget",value:function(){var i=th(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,l=a.cssModule,c=a.innerClassName,d=a.isOpen,f=a.hideArrow,p=a.boundariesElement,m=a.placement,v=a.placementPrefix,y=a.arrowClassName,x=a.popperClassName,_=a.container,w=a.modifiers,S=a.strategy,E=a.offset,C=a.fade,k=a.flip,j=a.children,A=ys(this.props,Object.keys(kE)),$=Ve(x,l),N=Ve(c,l);return Y.createElement(JX,{className:s,target:o,isOpen:d,hideArrow:f,boundariesElement:p,placement:m,placementPrefix:v,arrowClassName:y,popperClassName:$,container:_,modifiers:w,strategy:S,offset:E,cssModule:l,fade:C,flip:k},function(z){var W=z.update;return Y.createElement("div",tx({},A,{ref:i.getRef,className:N,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof j=="function"?j({update:W}):j)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(Y.Component);PE.propTypes=kE;PE.defaultProps=aJ;const sJ=PE;var lJ=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dJ(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}var fJ={animated:R.bool,bar:R.bool,barAriaLabelledBy:R.string,barAriaValueText:R.string,barClassName:R.string,barStyle:R.object,children:R.node,className:R.string,cssModule:R.object,color:R.string,max:R.oneOfType([R.string,R.number]),min:R.oneOfType([R.string,R.number]),multi:R.bool,striped:R.bool,style:R.object,tag:it,value:R.oneOfType([R.string,R.number])};function LI(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,l=s===void 0?0:s,c=e.max,d=c===void 0?100:c,f=e.animated,p=e.striped,m=e.color,v=e.bar,y=e.multi,x=e.tag,_=x===void 0?"div":x,w=e.style,S=w===void 0?{}:w,E=e.barStyle,C=E===void 0?{}:E,k=e.barAriaValueText,j=e.barAriaLabelledBy,A=uJ(e,lJ),$=MP(a)/MP(d)*100,N=Ve(He(n,"progress"),i),z=Ve(He("progress-bar",v&&n||r,f?"progress-bar-animated":null,m?"bg-".concat(m):null,p||f?"progress-bar-striped":null),i),W={className:z,style:G_(G_(G_({},v?S:{}),C),{},{width:"".concat($,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":l,"aria-valuemax":d,"aria-valuetext":k,"aria-labelledby":j,children:t};return v?Y.createElement(_,Ov({},A,W)):Y.createElement(_,Ov({},A,{style:S,className:N}),y?t:Y.createElement("div",W))}LI.propTypes=fJ;function rx(e){"@babel/helpers - typeof";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)}function hJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dj(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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cv(e)}var bJ={children:R.node.isRequired,node:R.any},MI=function(e){mJ(n,e);var t=gJ(n);function n(){return hJ(this,n),t.apply(this,arguments)}return pJ(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return mE?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),rl.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(Y.Component);MI.propTypes=bJ;const wJ=MI;function ox(e){"@babel/helpers - typeof";return ox=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},ox(e)}function fj(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 sc(e){for(var t=1;t"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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kv(e)}function Pv(){}var pj=R.shape(br.propTypes),AI={autoFocus:R.bool,backdrop:R.oneOfType([R.bool,R.oneOf(["static"])]),backdropClassName:R.string,backdropTransition:pj,centered:R.bool,children:R.node,contentClassName:R.string,className:R.string,container:uu,cssModule:R.object,external:R.node,fade:R.bool,fullscreen:R.oneOfType([R.bool,R.oneOf(["sm","md","lg","xl"])]),innerRef:R.oneOfType([R.object,R.string,R.func]),isOpen:R.bool,keyboard:R.bool,labelledBy:R.string,modalClassName:R.string,modalTransition:pj,onClosed:R.func,onEnter:R.func,onExit:R.func,onOpened:R.func,returnFocusAfterClose:R.bool,role:R.string,scrollable:R.bool,size:R.string,toggle:R.func,trapFocus:R.bool,unmountOnClose:R.bool,wrapClassName:R.string,zIndex:R.oneOfType([R.number,R.string])},kJ=Object.keys(AI),PJ={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Pv,onClosed:Pv,modalTransition:{timeout:dv.Modal},backdropTransition:{mountOnEnter:!0,timeout:dv.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Hh=function(e){EJ(n,e);var t=TJ(n);function n(r){var i;return xJ(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(ci(i)),i.handleBackdropClick=i.handleBackdropClick.bind(ci(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(ci(i)),i.handleEscape=i.handleEscape.bind(ci(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(ci(i)),i.handleTab=i.handleTab.bind(ci(i)),i.onOpened=i.onOpened.bind(ci(i)),i.onClosed=i.onClosed.bind(ci(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(ci(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(ci(i)),i.trapFocus=i.trapFocus.bind(ci(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return SJ(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){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}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){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=th(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Sq(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),Eq(),n.openCount===0&&(document.body.className=He(document.body.className,Ve("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=Ve("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),K4(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=ys(this.props,kJ),s="modal-dialog";return Y.createElement("div",uf({},a,{className:Ve(He(s,this.props.className,(i={},yc(i,"modal-".concat(this.props.size),this.props.size),yc(i,"".concat(s,"-centered"),this.props.centered),yc(i,"".concat(s,"-scrollable"),this.props.scrollable),yc(i,"modal-fullscreen",this.props.fullscreen===!0),yc(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(c){o._dialog=c}}),Y.createElement("div",{className:Ve(He("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,l=a.modalClassName,c=a.backdropClassName,d=a.cssModule,f=a.isOpen,p=a.backdrop,m=a.role,v=a.labelledBy,y=a.external,x=a.innerRef,_={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":v,"aria-modal":!0,role:m,tabIndex:"-1"},w=this.props.fade,S=sc(sc(sc({},br.defaultProps),this.props.modalTransition),{},{baseClass:w?this.props.modalTransition.baseClass:"",timeout:w?this.props.modalTransition.timeout:0}),E=sc(sc(sc({},br.defaultProps),this.props.backdropTransition),{},{baseClass:w?this.props.backdropTransition.baseClass:"",timeout:w?this.props.backdropTransition.timeout:0}),C=p&&(w?Y.createElement(br,uf({},E,{in:f&&!!p,cssModule:d,className:Ve(He("modal-backdrop",c),d)})):Y.createElement("div",{className:Ve(He("modal-backdrop","show",c),d)}));return Y.createElement(wJ,{node:this._element},Y.createElement("div",{className:Ve(s)},Y.createElement(br,uf({},_,S,{in:f,onEntered:this.onOpened,onExited:this.onClosed,cssModule:d,className:Ve(He("modal",l,this.state.showStaticBackdropAnimation&&"modal-static"),d),innerRef:x}),y,this.renderModalDialog()),C))}return null}}]),n}(Y.Component);Hh.propTypes=AI;Hh.defaultProps=PJ;Hh.openCount=0;Hh.originalBodyOverflow=null;const da=Hh;var jJ=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MJ(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}var AJ={children:R.node,className:R.string,close:R.object,closeAriaLabel:R.string,cssModule:R.object,tag:it,toggle:R.func,wrapTag:it};function fa(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,l=e.wrapTag,c=l===void 0?"div":l,d=e.closeAriaLabel,f=d===void 0?"Close":d,p=e.close,m=LJ(e,jJ),v=Ve(He(n,"modal-header"),r);return!p&&o&&(t=Y.createElement("button",{type:"button",onClick:o,className:Ve("btn-close",r),"aria-label":f})),Y.createElement(c,sx({},m,{className:v}),Y.createElement(s,{className:Ve("modal-title",r)},i),p||t)}fa.propTypes=AJ;var RJ=["className","cssModule","tag"];function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DJ(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}var IJ={className:R.string,cssModule:R.object,tag:it};function Oo(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=NJ(e,RJ),a=Ve(He(t,"modal-body"),n);return Y.createElement(i,lx({},o,{className:a}))}Oo.propTypes=IJ;var FJ=["className","cssModule","tag"];function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UJ(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}var BJ={className:R.string,cssModule:R.object,tag:it};function Il(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=$J(e,FJ),a=Ve(He(t,"modal-footer"),n);return Y.createElement(i,cx({},o,{className:a}))}Il.propTypes=BJ;function ux(){return ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WJ(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}var YJ={className:R.string,cssModule:R.object,flush:R.bool,horizontal:R.oneOfType([R.bool,R.string]),numbered:R.bool,tag:it},GJ=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function RI(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,l=e.numbered,c=l===void 0?!1:l,d=HJ(e,VJ),f=Ve(He(t,"list-group",o?"list-group-flush":GJ(s),{"list-group-numbered":c}),n);return Y.createElement(i,dx({},d,{className:f}))}RI.propTypes=YJ;var qJ=["className","cssModule","row","disabled","check","inline","floating","tag","switch"];function fx(){return fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZJ(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}var QJ={children:R.node,row:R.bool,check:R.bool,switch:R.bool,inline:R.bool,floating:R.bool,disabled:R.bool,tag:it,className:R.string,cssModule:R.object};function Vr(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,l=e.tag,c=l===void 0?"div":l,d=e.switch,f=KJ(e,qJ),p=o||d,m=Ve(He(t,r?"row":!1,p?"form-check":"mb-3",d?"form-switch":!1,p&&a?"form-check-inline":!1,p&&i?"disabled":!1,s&&"form-floating"),n);return c==="fieldset"&&(f.disabled=i),Y.createElement(c,fx({},f,{className:m}))}Vr.propTypes=QJ;function hx(e){"@babel/helpers - typeof";return hx=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},hx(e)}var XJ=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eee(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 tee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mj(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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jv(e)}var see={children:R.node,type:R.string,size:R.oneOfType([R.number,R.string]),bsSize:R.string,valid:R.bool,invalid:R.bool,tag:it,innerRef:R.oneOfType([R.object,R.func,R.string]),plaintext:R.bool,addon:R.bool,className:R.string,cssModule:R.object},NI=function(e){ree(n,e);var t=iee(n);function n(r){var i;return tee(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(gx(i)),i.focus=i.focus.bind(gx(i)),i}return nee(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.type,l=s===void 0?"text":s,c=i.bsSize,d=i.valid,f=i.invalid,p=i.tag,m=i.addon,v=i.plaintext,y=i.innerRef,x=JJ(i,XJ),_=["switch","radio","checkbox"].indexOf(l)>-1,w=/\D/g,S=l==="textarea",E=l==="select",C=l==="range",k=p||(E||S?l:"input"),j="form-control";v?(j="".concat(j,"-plaintext"),k=p||"input"):C?j="form-range":E?j="form-select":_&&(m?j=null:j="form-check-input"),x.size&&w.test(x.size)&&(hw(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),c=x.size,delete x.size);var A=Ve(He(o,f&&"is-invalid",d&&"is-valid",c?E?"form-select-".concat(c):"form-control-".concat(c):!1,j),a);return(k==="input"||p&&typeof p=="function")&&(x.type=l==="switch"?"checkbox":l),x.children&&!(v||l==="select"||typeof k!="string"||k==="select")&&(hw('Input with a type of "'.concat(l,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete x.children),Y.createElement(k,px({},x,{ref:y,className:A,"aria-invalid":f}))}}]),n}(Y.Component);NI.propTypes=see;const xl=NI;var lee=["className","cssModule","tag","type","size"];function Lv(){return Lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uee(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}var dee={className:R.string,cssModule:R.object,size:R.string,tag:it,type:R.string};function c0(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=cee(e,lee),s=Ve(He(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?Y.createElement(Vh,Lv({},a,{className:s})):Y.createElement(wI.Provider,{value:{insideInputGroup:!0}},Y.createElement(i,Lv({},a,{className:s})))}c0.propTypes=dee;var fee=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mee(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}var gee={children:R.node,className:R.string,listClassName:R.string,cssModule:R.object,size:R.string,tag:it,listTag:it,"aria-label":R.string};function jE(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,l=s===void 0?"ul":s,c=e["aria-label"],d=c===void 0?"pagination":c,f=pee(e,fee),p=Ve(He(t),r),m=Ve(He(n,"pagination",hee({},"pagination-".concat(i),!!i)),r);return Y.createElement(a,{className:p,"aria-label":d},Y.createElement(l,vx({},f,{className:m})))}jE.propTypes=gee;var vee=["active","className","cssModule","disabled","tag"];function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ee(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}var bee={active:R.bool,children:R.node,className:R.string,cssModule:R.object,disabled:R.bool,tag:it};function al(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=yee(e,vee),l=Ve(He(n,"page-item",{active:t,disabled:i}),r);return Y.createElement(a,yx({},s,{className:l}))}al.propTypes=bee;var wee=["className","cssModule","next","previous","first","last","tag"];function _x(){return _x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function See(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}var Eee={"aria-label":R.string,children:R.node,className:R.string,cssModule:R.object,next:R.bool,previous:R.bool,first:R.bool,last:R.bool,tag:it};function sl(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,l=s===void 0?"a":s,c=xee(e,wee),d=Ve(He(t,"page-link"),n),f;i?f="Previous":r?f="Next":o?f="First":a&&(f="Last");var p=e["aria-label"]||f,m;i?m="‹":r?m="›":o?m="«":a&&(m="»");var v=e.children;return v&&Array.isArray(v)&&v.length===0&&(v=null),!c.href&&l==="a"&&(l="button"),(i||r||o||a)&&(v=[Y.createElement("span",{"aria-hidden":"true",key:"caret"},v||m),Y.createElement("span",{className:"visually-hidden",key:"ariaLabel"},p)]),Y.createElement(l,_x({},c,{className:d,"aria-label":p}),v)}sl.propTypes=Eee;var Tee=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kee(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}var Pee={children:R.node,className:R.string,closeClassName:R.string,closeAriaLabel:R.string,color:R.string,cssModule:R.object,fade:R.bool,innerRef:R.oneOfType([R.object,R.string,R.func]),isOpen:R.bool,tag:it,toggle:R.func,transition:R.shape(br.propTypes)};function DI(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,l=e.color,c=l===void 0?"success":l,d=e.isOpen,f=d===void 0?!0:d,p=e.toggle,m=e.children,v=e.transition,y=v===void 0?wd(wd({},br.defaultProps),{},{unmountOnExit:!0}):v,x=e.fade,_=x===void 0?!0:x,w=e.innerRef,S=Cee(e,Tee),E=Ve(He(t,"alert","alert-".concat(c),{"alert-dismissible":p}),o),C=Ve(He("btn-close",n),o),k=wd(wd(wd({},br.defaultProps),y),{},{baseClass:_?y.baseClass:"",timeout:_?y.timeout:0});return Y.createElement(br,bx({},S,k,{tag:s,className:E,in:f,role:"alert",innerRef:w}),p?Y.createElement("button",{type:"button",className:C,"aria-label":i,onClick:p}):null,m)}DI.propTypes=Pee;var jee=["className","cssModule","tag","active","disabled","action","color"];function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mee(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}var Aee={action:R.bool,active:R.bool,className:R.string,cssModule:R.object,color:R.string,disabled:R.bool,tag:it},Ree=function(t){t.preventDefault()};function II(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,l=e.color,c=Lee(e,jee),d=Ve(He(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,l?"list-group-item-".concat(l):!1,"list-group-item"),n);return a&&(c.onClick=Ree),Y.createElement(i,wx({},c,{className:d}))}II.propTypes=Aee;function xx(e){"@babel/helpers - typeof";return xx=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},xx(e)}function vj(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 Nee(e){for(var t=1;t"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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mv(e)}var Vee=["defaultOpen"],Yh=function(e){$ee(n,e);var t=Uee(n);function n(r){var i;return Iee(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(FI(i)),i}return Fee(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return Y.createElement(Vh,Sx({isOpen:this.state.isOpen,toggle:this.toggle},ys(this.props,Vee)))}}]),n}(U.Component);Yh.propTypes=Nee({defaultOpen:R.bool,onToggle:R.func},Vh.propTypes);function Tx(e){"@babel/helpers - typeof";return Tx=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},Tx(e)}function _j(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 Hee(e){for(var t=1;t"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.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Av(e)}var Xee=["defaultOpen"],Ir=function(e){qee(n,e);var t=Kee(n);function n(r){var i;return Yee(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind($I(i)),i}return Gee(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return Y.createElement(Wh,Ox({isOpen:this.state.isOpen,toggle:this.toggle},ys(this.props,Xee)))}}]),n}(U.Component);Ir.propTypes=Hee({defaultOpen:R.bool},Wh.propTypes);function UI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jee(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):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 BI={exports:{}};/*! + 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;i({error:"border-danger",default:""})[e],nte=e=>({error:"text-danger",default:"text-muted"})[e],Yo=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=yi({"col-md-12":i,"col-md-10 offset-md-1":!i});return g.jsx(_r,{className:yi("g-0",e),children:g.jsx("div",{className:o,children:g.jsx(Qr,{className:tte(r),body:!0,children:g.jsxs("h3",{className:yi("text-center mb-0",nte(r)),children:[n&&g.jsx(Ae,{icon:u4,spin:!0}),n&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},vn=({title:e,children:t,bodyClassName:n,...r})=>g.jsxs(Qr,{...r,children:[e&&g.jsx(vu,{role:"heading",children:e}),g.jsx(gu,{className:n,children:t})]}),Gr=({children:e,type:t,className:n,small:r=!1})=>g.jsx(_r,{className:n,children:g.jsx("div",{className:yi({"col-md-10 offset-md-1":!r,"col-12":r}),children:g.jsx(vn,{role:"document",className:yi("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:yi({"p-2":r}),children:e})})});let fm;const rte=new Uint8Array(16);function ite(){if(!fm&&(fm=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fm(rte)}const qn=[];for(let e=0;e<256;++e)qn.push((e+256).toString(16).slice(1));function ote(e,t=0){return(qn[e[t+0]]+qn[e[t+1]]+qn[e[t+2]]+qn[e[t+3]]+"-"+qn[e[t+4]]+qn[e[t+5]]+"-"+qn[e[t+6]]+qn[e[t+7]]+"-"+qn[e[t+8]]+qn[e[t+9]]+"-"+qn[e[t+10]]+qn[e[t+11]]+qn[e[t+12]]+qn[e[t+13]]+qn[e[t+14]]+qn[e[t+15]]).toLowerCase()}const ate=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),wj={randomUUID:ate};function ste(e,t,n){if(wj.randomUUID&&!t&&!e)return wj.randomUUID();e=e||{};const r=e.random||(e.rng||ite)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return ote(r)}const On=(e=!1)=>{const[t,n]=U.useState(e);return[t,()=>n(!t),()=>n(!0),()=>n(!1)]},u0=()=>{const{current:e}=U.useRef(`dom-${ste()}`);return e},bs=()=>U.useRef(null),zI=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=u0(),s=d=>t==null?void 0:t(d.target.checked,d),l={"form-switch":i==="switch","form-checkbox":i==="checkbox"},c=o?{display:"inline-block"}:{};return g.jsxs("span",{className:yi("form-check",l,n),style:c,children:[g.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),g.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},VI=e=>g.jsx(zI,{type:"checkbox",...e}),yu=e=>g.jsx(zI,{type:"switch",...e}),Hu=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>g.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[g.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),cg=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const l=u0();return g.jsx(Hu,{label:g.jsxs(g.Fragment,{children:[e,":"]}),className:a??"",labelClassName:s,id:l,children:g.jsx("input",{id:l,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:c=>n(c.target.value)})})},lte=500;let ug;const xj=()=>{ug&&clearTimeout(ug),ug=null},Gh=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=U.useState(i),l=(c,d=lte)=>{s(c),xj(),ug=o(()=>{e(c),xj()},d)};return g.jsxs("div",{className:yi("search-field",t),children:[g.jsx("input",{type:"text",className:yi("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:c=>l(c.target.value)}),g.jsx(Ae,{icon:dY,className:"search-field__icon"}),g.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>l("",0)})]})},ha=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:l,size:c})=>{const[d,f]=On(),p=yi("dropdown-btn__toggle",n,{"btn-block":!l,"dropdown-btn__toggle--with-caret":!o}),m={minWidth:s&&`${s}px`};return g.jsxs(Vh,{isOpen:d,toggle:f,disabled:t,className:i,children:[g.jsx(zu,{size:c,caret:!o,className:p,color:"primary",children:e}),g.jsx(Bu,{className:"w-100",end:a,style:m,children:r})]})},d0=({children:e,minWidth:t})=>g.jsx(ha,{text:g.jsx(Ae,{className:"px-1",icon:nY}),size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),df=({children:e,...t})=>g.jsx(oI,{className:"nav-pills__nav-link",tag:zD,...t,children:e}),HI=({children:e,fill:t=!1,className:n=""})=>g.jsx(Qr,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:g.jsx(gE,{pills:!0,fill:t,children:U.Children.map(e,r=>{if(!U.isValidElement(r)||r.type!==df)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),f0=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",WI=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),YI=e=>e.dir?`${e.field}-${e.dir}`:void 0,cte=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function qh({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const l=f0(s,t.field,t.dir);n(l?s:void 0,l)};return g.jsxs(Yh,{children:[g.jsxs(zu,{caret:!0,color:r?"primary":"link",className:yi({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&g.jsx(g.Fragment,{children:"Order by"}),r&&!t.field&&g.jsx("i",{children:"Order by..."}),r&&t.field&&g.jsxs(g.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",g.jsx("small",{children:t.dir??"DESC"})]})]}),g.jsxs(Bu,{end:i,className:yi("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,l])=>g.jsxs(Ue,{active:t.field===s,onClick:a(s),children:[l,t.field===s&&g.jsx(Ae,{icon:t.dir==="ASC"?aY:YW,className:"ordering-dropdown__sort-icon"})]},s)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!t.field,onClick:()=>n(),children:g.jsx("i",{children:"Clear selection"})})]})]})}const LE="#4696e5",ute="rgba(70, 150, 229, 0.4)",GI="#f77f28",dte="rgba(247, 127, 40, 0.4)",fte="white",hte="#161b22",qI=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},pte=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"};var mte=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0},Sj=typeof Symbol<"u"&&Symbol,gte=mte,vte=function(){return typeof Sj!="function"||typeof Symbol!="function"||typeof Sj("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gte()},Ej={foo:{}},yte=Object,_te=function(){return{__proto__:Ej}.foo===Ej.foo&&!({__proto__:null}instanceof yte)},bte="Function.prototype.bind called on incompatible ",q_=Array.prototype.slice,wte=Object.prototype.toString,xte="[object Function]",Ste=function(e){var t=this;if(typeof t!="function"||wte.call(t)!==xte)throw new TypeError(bte+t);for(var n=q_.call(arguments,1),r,i=function(){if(this instanceof r){var c=t.apply(this,n.concat(q_.call(arguments)));return Object(c)===c?c:this}else return t.apply(e,n.concat(q_.call(arguments)))},o=Math.max(0,t.length-n.length),a=[],s=0;s"u"||!Mn?at:Mn(Uint8Array),cl={"%AggregateError%":typeof AggregateError>"u"?at:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?at:ArrayBuffer,"%ArrayIteratorPrototype%":lc&&Mn?Mn([][Symbol.iterator]()):at,"%AsyncFromSyncIteratorPrototype%":at,"%AsyncFunction%":_c,"%AsyncGenerator%":_c,"%AsyncGeneratorFunction%":_c,"%AsyncIteratorPrototype%":_c,"%Atomics%":typeof Atomics>"u"?at:Atomics,"%BigInt%":typeof BigInt>"u"?at:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?at:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?at:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?at:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?at:Float32Array,"%Float64Array%":typeof Float64Array>"u"?at:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?at:FinalizationRegistry,"%Function%":KI,"%GeneratorFunction%":_c,"%Int8Array%":typeof Int8Array>"u"?at:Int8Array,"%Int16Array%":typeof Int16Array>"u"?at:Int16Array,"%Int32Array%":typeof Int32Array>"u"?at:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":lc&&Mn?Mn(Mn([][Symbol.iterator]())):at,"%JSON%":typeof JSON=="object"?JSON:at,"%Map%":typeof Map>"u"?at:Map,"%MapIteratorPrototype%":typeof Map>"u"||!lc||!Mn?at:Mn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?at:Promise,"%Proxy%":typeof Proxy>"u"?at:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?at:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?at:Set,"%SetIteratorPrototype%":typeof Set>"u"||!lc||!Mn?at:Mn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?at:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":lc&&Mn?Mn(""[Symbol.iterator]()):at,"%Symbol%":lc?Symbol:at,"%SyntaxError%":_u,"%ThrowTypeError%":Cte,"%TypedArray%":Pte,"%TypeError%":Kc,"%Uint8Array%":typeof Uint8Array>"u"?at:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?at:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?at:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?at:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?at:WeakMap,"%WeakRef%":typeof WeakRef>"u"?at:WeakRef,"%WeakSet%":typeof WeakSet>"u"?at:WeakSet};if(Mn)try{null.error}catch(e){var jte=Mn(Mn(e));cl["%Error.prototype%"]=jte}var Lte=function e(t){var n;if(t==="%AsyncFunction%")n=K_("async function () {}");else if(t==="%GeneratorFunction%")n=K_("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=K_("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Mn&&(n=Mn(i.prototype))}return cl[t]=n,n},Tj={"%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"]},Kh=ME,Rv=Ote,Mte=Kh.call(Function.call,Array.prototype.concat),Ate=Kh.call(Function.apply,Array.prototype.splice),Oj=Kh.call(Function.call,String.prototype.replace),Nv=Kh.call(Function.call,String.prototype.slice),Rte=Kh.call(Function.call,RegExp.prototype.exec),Nte=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dte=/\\(\\)?/g,Ite=function(e){var t=Nv(e,0,1),n=Nv(e,-1);if(t==="%"&&n!=="%")throw new _u("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new _u("invalid intrinsic syntax, expected opening `%`");var r=[];return Oj(e,Nte,function(i,o,a,s){r[r.length]=a?Oj(s,Dte,"$1"):o||i}),r},Fte=function(e,t){var n=e,r;if(Rv(Tj,n)&&(r=Tj[n],n="%"+r[0]+"%"),Rv(cl,n)){var i=cl[n];if(i===_c&&(i=Lte(n)),typeof i>"u"&&!t)throw new Kc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new _u("intrinsic "+e+" does not exist!")},AE=function(e,t){if(typeof e!="string"||e.length===0)throw new Kc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Kc('"allowMissing" argument must be a boolean');if(Rte(/^%?[^%]*%?$/,e)===null)throw new _u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ite(e),r=n.length>0?n[0]:"",i=Fte("%"+r+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(r=l[0],Ate(n,Mte([0,1],l)));for(var c=1,d=!0;c=n.length){var v=ll(a,f);d=!!v,d&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[f]}else d=Rv(a,f),a=a[f];d&&!s&&(cl[o]=a)}}return a},ZI={exports:{}};(function(e){var t=ME,n=AE,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(d){var f=o(t,i,arguments);if(a&&s){var p=a(f,"length");p.configurable&&s(f,"length",{value:1+l(0,d.length-(arguments.length-1))})}return f};var c=function(){return o(t,r,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(ZI);var $te=ZI.exports,QI=AE,XI=$te,Ute=XI(QI("String.prototype.indexOf")),Bte=function(e,t){var n=QI(e,!!t);return typeof n=="function"&&Ute(e,".prototype.")>-1?XI(n):n};const zte={},Vte=Object.freeze(Object.defineProperty({__proto__:null,default:zte},Symbol.toStringTag,{value:"Module"})),Hte=Jee(Vte);var RE=typeof Map=="function"&&Map.prototype,Q_=Object.getOwnPropertyDescriptor&&RE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Dv=RE&&Q_&&typeof Q_.get=="function"?Q_.get:null,Cj=RE&&Map.prototype.forEach,NE=typeof Set=="function"&&Set.prototype,X_=Object.getOwnPropertyDescriptor&&NE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Iv=NE&&X_&&typeof X_.get=="function"?X_.get:null,kj=NE&&Set.prototype.forEach,Wte=typeof WeakMap=="function"&&WeakMap.prototype,ff=Wte?WeakMap.prototype.has:null,Yte=typeof WeakSet=="function"&&WeakSet.prototype,hf=Yte?WeakSet.prototype.has:null,Gte=typeof WeakRef=="function"&&WeakRef.prototype,Pj=Gte?WeakRef.prototype.deref:null,qte=Boolean.prototype.valueOf,Kte=Object.prototype.toString,Zte=Function.prototype.toString,Qte=String.prototype.match,DE=String.prototype.slice,Ia=String.prototype.replace,Xte=String.prototype.toUpperCase,jj=String.prototype.toLowerCase,JI=RegExp.prototype.test,Lj=Array.prototype.concat,ao=Array.prototype.join,Jte=Array.prototype.slice,Mj=Math.floor,kx=typeof BigInt=="function"?BigInt.prototype.valueOf:null,J_=Object.getOwnPropertySymbols,Px=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,bu=typeof Symbol=="function"&&typeof Symbol.iterator=="object",cr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===bu||"symbol")?Symbol.toStringTag:null,e6=Object.prototype.propertyIsEnumerable,Aj=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Rj(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||JI.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Mj(-e):Mj(e);if(r!==e){var i=String(r),o=DE.call(t,i.length+1);return Ia.call(i,n,"$&_")+"."+Ia.call(Ia.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ia.call(t,n,"$&_")}var jx=Hte,Nj=jx.custom,Dj=n6(Nj)?Nj:null,ene=function e(t,n,r,i){var o=n||{};if(ka(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ka(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 a=ka(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ka(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(ka(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=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 i6(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?Rj(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?Rj(t,c):c}var d=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof t=="object")return Lx(t)?"[Array]":"[Object]";var f=yne(o,r);if(typeof i>"u")i=[];else if(r6(i,t)>=0)return"[Circular]";function p(X,G,Z){if(G&&(i=Jte.call(i),i.push(G)),Z){var te={depth:o.depth};return ka(o,"quoteStyle")&&(te.quoteStyle=o.quoteStyle),e(X,te,r+1,i)}return e(X,o,r+1,i)}if(typeof t=="function"&&!Ij(t)){var m=cne(t),v=hm(t,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+ao.call(v,", ")+" }":"")}if(n6(t)){var y=bu?Ia.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Px.call(t);return typeof t=="object"&&!bu?xd(y):y}if(mne(t)){for(var x="<"+jj.call(String(t.nodeName)),_=t.attributes||[],w=0;w<_.length;w++)x+=" "+_[w].name+"="+t6(tne(_[w].value),"double",o);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="",x}if(Lx(t)){if(t.length===0)return"[]";var S=hm(t,p);return f&&!vne(S)?"["+Mx(S,f)+"]":"[ "+ao.call(S,", ")+" ]"}if(rne(t)){var E=hm(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!e6.call(t,"cause")?"{ ["+String(t)+"] "+ao.call(Lj.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ao.call(E,", ")+" }"}if(typeof t=="object"&&a){if(Dj&&typeof t[Dj]=="function"&&jx)return jx(t,{depth:d-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(une(t)){var C=[];return Cj&&Cj.call(t,function(X,G){C.push(p(G,t,!0)+" => "+p(X,t))}),Fj("Map",Dv.call(t),C,f)}if(hne(t)){var k=[];return kj&&kj.call(t,function(X){k.push(p(X,t))}),Fj("Set",Iv.call(t),k,f)}if(dne(t))return e1("WeakMap");if(pne(t))return e1("WeakSet");if(fne(t))return e1("WeakRef");if(one(t))return xd(p(Number(t)));if(sne(t))return xd(p(kx.call(t)));if(ane(t))return xd(qte.call(t));if(ine(t))return xd(p(String(t)));if(!nne(t)&&!Ij(t)){var j=hm(t,p),A=Aj?Aj(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",N=!A&&cr&&Object(t)===t&&cr in t?DE.call(ws(t),8,-1):$?"Object":"",z=A||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",W=z+(N||$?"["+ao.call(Lj.call([],N||[],$||[]),": ")+"] ":"");return j.length===0?W+"{}":f?W+"{"+Mx(j,f)+"}":W+"{ "+ao.call(j,", ")+" }"}return String(t)};function t6(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function tne(e){return Ia.call(String(e),/"/g,""")}function Lx(e){return ws(e)==="[object Array]"&&(!cr||!(typeof e=="object"&&cr in e))}function nne(e){return ws(e)==="[object Date]"&&(!cr||!(typeof e=="object"&&cr in e))}function Ij(e){return ws(e)==="[object RegExp]"&&(!cr||!(typeof e=="object"&&cr in e))}function rne(e){return ws(e)==="[object Error]"&&(!cr||!(typeof e=="object"&&cr in e))}function ine(e){return ws(e)==="[object String]"&&(!cr||!(typeof e=="object"&&cr in e))}function one(e){return ws(e)==="[object Number]"&&(!cr||!(typeof e=="object"&&cr in e))}function ane(e){return ws(e)==="[object Boolean]"&&(!cr||!(typeof e=="object"&&cr in e))}function n6(e){if(bu)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Px)return!1;try{return Px.call(e),!0}catch{}return!1}function sne(e){if(!e||typeof e!="object"||!kx)return!1;try{return kx.call(e),!0}catch{}return!1}var lne=Object.prototype.hasOwnProperty||function(e){return e in this};function ka(e,t){return lne.call(e,t)}function ws(e){return Kte.call(e)}function cne(e){if(e.name)return e.name;var t=Qte.call(Zte.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function r6(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 i6(DE.call(e,0,t.maxStringLength),t)+r}var i=Ia.call(Ia.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,gne);return t6(i,"single",t)}function gne(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":"")+Xte.call(t.toString(16))}function xd(e){return"Object("+e+")"}function e1(e){return e+" { ? }"}function Fj(e,t,n,r){var i=r?Mx(n,r):ao.call(n,", ");return e+" ("+t+") {"+i+"}"}function vne(e){for(var t=0;t=0)return!1;return!0}function yne(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=ao.call(Array(e.indent+1)," ");else return null;return{base:n,prev:ao.call(Array(t+1),n)}}function Mx(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+ao.call(e,","+n)+` +`+t.prev}function hm(e,t){var n=Lx(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var t=e.pop(),n=t.obj[t.prop];if(qs(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Ane.RFC1738&&(l===40||l===41)){a+=o.charAt(s);continue}if(l<128){a=a+to[l];continue}if(l<2048){a=a+(to[192|l>>6]+to[128|l&63]);continue}if(l<55296||l>=57344){a=a+(to[224|l>>12]+to[128|l>>6&63]+to[128|l&63]);continue}s+=1,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a+=to[240|l>>18]+to[128|l>>12&63]+to[128|l>>6&63]+to[128|l&63]}return a},$ne=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r"u"&&(S=0)}if(typeof l=="function"?_=l(n,_):_ instanceof Date?_=f(_):r==="comma"&&Io(_)&&(_=dg.maybeMap(_,function(te){return te instanceof Date?f(te):te})),_===null){if(o)return s&&!v?s(n,nr.encoder,y,"key",p):n;_=""}if(Gne(_)||dg.isBuffer(_)){if(s){var k=v?n:s(n,nr.encoder,y,"key",p);return[m(k)+"="+m(s(_,nr.encoder,y,"value",p))]}return[m(n)+"="+m(String(_))]}var j=[];if(typeof _>"u")return j;var A;if(r==="comma"&&Io(_))v&&s&&(_=dg.maybeMap(_,s)),A=[{value:_.length>0?_.join(",")||null:void 0}];else if(Io(l))A=l;else{var $=Object.keys(_);A=c?$.sort(c):$}for(var N=i&&Io(_)&&_.length===1?n+"[]":n,z=0;z"u"?nr.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:nr.charsetSentinel,delimiter:typeof e.delimiter>"u"?nr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:nr.encode,encoder:typeof e.encoder=="function"?e.encoder:nr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:nr.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:nr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:nr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:nr.strictNullHandling}},Zne=function(e,t){var n=e,r=Kne(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):Io(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s;t&&t.arrayFormat in $j?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var l=$j[s];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 d=s6(),f=0;f0?v+m:""},wu=a6,Ax=Object.prototype.hasOwnProperty,Qne=Array.isArray,Ln={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:wu.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Xne=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},c6=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Jne="utf8=%26%2310003%3B",ere="utf8=%E2%9C%93",tre=function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,s,l=t.charset;if(t.charsetSentinel)for(s=0;s-1&&(m=Qne(m)?[m]:m),Ax.call(n,p)?n[p]=wu.combine(n[p],m):n[p]=m}return n},nre=function(e,t,n,r){for(var i=r?t:c6(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if(s==="[]"&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=parseInt(l,10);!n.parseArrays&&l===""?a={0:i}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},rre=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&o.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!n.plainObjects&&Ax.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var d=0;n.depth>0&&(s=a.exec(i))!==null&&d"u"?Ln.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Ln.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ln.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ln.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ln.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ln.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ln.comma,decoder:typeof e.decoder=="function"?e.decoder:Ln.decoder,delimiter:typeof e.delimiter=="string"||wu.isRegExp(e.delimiter)?e.delimiter:Ln.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ln.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ln.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ln.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ln.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ln.strictNullHandling}},ore=function(e,t){var n=ire(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?tre(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;au6.parse(e,{ignoreQueryPrefix:!0}),Zh=e=>u6.stringify(e,{arrayFormat:"brackets"});var h0=(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))(h0||{}),p0=(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))(p0||{});const ure=(e,t)=>{const[n,r]=e.split("://"),[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},dre=(e,t)=>`${e}/rest/v${t}`,fre=a4(r4),hre=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:YI(e)}),pre=e=>e===null||!(typeof e=="object"&&"type"in e&&"status"in e)?!1:(e.type===h0.NOT_FOUND||e.type===p0.NOT_FOUND)&&e.status===404;class mre{constructor(t,n,r){gt(this,"apiVersion");gt(this,"listShortUrls",async(t={})=>this.performRequest({url:"/short-urls",query:hre(t)}).then(({shortUrls:n})=>n));gt(this,"createShortUrl",async t=>{const n=a4(r=>av(r)||r4(r),t);return this.performRequest({url:"/short-urls",method:"POST",body:n})});gt(this,"getShortUrlVisits",async(t,n)=>this.performRequest({url:`/short-urls/${t}/visits`,query:n}).then(({visits:r})=>r));gt(this,"getTagVisits",async(t,n)=>this.performRequest({url:`/tags/${t}/visits`,query:n}).then(({visits:r})=>r));gt(this,"getDomainVisits",async(t,n)=>this.performRequest({url:`/domains/${t}/visits`,query:n}).then(({visits:r})=>r));gt(this,"getOrphanVisits",async t=>this.performRequest({url:"/visits/orphan",query:t}).then(({visits:n})=>n));gt(this,"getNonOrphanVisits",async t=>this.performRequest({url:"/visits/non-orphan",query:t}).then(({visits:n})=>n));gt(this,"getVisitsOverview",async()=>this.performRequest({url:"/visits"}).then(({visits:t})=>t));gt(this,"getShortUrl",async(t,n)=>this.performRequest({url:`/short-urls/${t}`,query:{domain:n}}));gt(this,"deleteShortUrl",async(t,n)=>this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}}));gt(this,"updateShortUrl",async(t,n,r)=>this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r}));gt(this,"listTags",async()=>this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t).then(({data:t,stats:n})=>({tags:t,stats:n})));gt(this,"tagsStats",async()=>this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t).then(({data:t})=>({tags:t.map(({tag:n})=>n),stats:t})));gt(this,"deleteTags",async t=>this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t})));gt(this,"editTag",async(t,n)=>this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n})));gt(this,"health",async t=>this.performRequest({url:"/health",domain:t}));gt(this,"mercureInfo",async()=>this.performRequest({url:"/mercure-info"}));gt(this,"listDomains",async()=>this.performRequest({url:"/domains"}).then(({domains:t})=>t));gt(this,"editDomainRedirects",async t=>this.performRequest({url:"/domains/redirects",method:"PATCH",body:t}));gt(this,"performRequest",async t=>this.httpClient.fetchJson(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchJson(...this.toFetchParams(t)))));gt(this,"performEmptyRequest",async t=>this.httpClient.fetchEmpty(...this.toFetchParams(t)).catch(this.handleFetchError(()=>this.httpClient.fetchEmpty(...this.toFetchParams(t)))));gt(this,"toFetchParams",({url:t,method:n="GET",query:r={},body:i,domain:o})=>{const a=Zh(fre(r)),s=av(a)?"":`?${a}`,l=o?ure(this.baseUrl,o):this.baseUrl;return[`${dre(l,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.apiKey}}]});gt(this,"handleFetchError",t=>n=>{if(!pre(n))throw n;return this.apiVersion=2,t()});this.httpClient=t,this.baseUrl=n,this.apiKey=r,this.apiVersion=3}}const i1={},gre=e=>typeof e=="function",vre=e=>{const{selectedServer:t}=e();if(!l4(t))throw new Error("There's no selected server or it is not found");return t},yre=e=>t=>{const{url:n,apiKey:r}=gre(t)?vre(t):t,i=`${n}_${r}`;return i1[i]||(i1[i]=new mre(e,n,r)),i1[i]},_re=e=>{e.serviceFactory("buildShlinkApiClient",yre,"HttpClient")};const bre=({isOpen:e,toggle:t,forceUpdate:n})=>{const[r,,i]=On(),o=()=>{i(),n()};return g.jsxs(DI,{className:"app-update-banner",isOpen:e,toggle:t,tag:vn,color:"secondary",children:[g.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),g.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",g.jsxs(_t,{role:"button",disabled:r,className:"ms-2",color:"secondary",size:"sm",onClick:o,children:[!r&&g.jsxs(g.Fragment,{children:["Restart now ",g.jsx(Ae,{icon:gY,className:"ms-1"})]}),r&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})},d6=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(vn,{className:"p-4",children:[g.jsx("h2",{children:"Oops! We could not find requested route."}),g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(Ut,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})}),wre=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 xre=(e,t,n,r,i,o,a,s)=>({fetchServers:l,servers:c,settings:d,appUpdated:f,resetAppUpdate:p})=>{const v=_n().pathname==="/";return U.useEffect(()=>{var y;Object.keys(c).length===0&&l(),qI(((y=d.ui)==null?void 0:y.theme)??"light")},[]),g.jsxs("div",{className:"container-fluid app-container",children:[g.jsx(e,{}),g.jsxs("div",{className:"app",children:[g.jsx("div",{className:He("shlink-wrapper",{"d-flex d-md-block align-items-center":v}),children:g.jsxs(Jy,{children:[g.jsx(yt,{index:!0,element:g.jsx(t,{})}),g.jsx(yt,{path:"/settings/*",element:g.jsx(o,{})}),g.jsx(yt,{path:"/manage-servers",element:g.jsx(a,{})}),g.jsx(yt,{path:"/server/create",element:g.jsx(r,{})}),g.jsx(yt,{path:"/server/:serverId/edit",element:g.jsx(i,{})}),g.jsx(yt,{path:"/server/:serverId/*",element:g.jsx(n,{})}),g.jsx(yt,{path:"*",element:g.jsx(d6,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(s,{})})]}),g.jsx(bre,{isOpen:f,toggle:p,forceUpdate:wre})]})};function $i(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:UE(e)?2:BE(e)?3:0}function Zc(e,t){return Yu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sre(e,t){return Yu(e)===2?e.get(t):e[t]}function f6(e,t,n){var r=Yu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function h6(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function UE(e){return Pre&&e instanceof Map}function BE(e){return jre&&e instanceof Set}function Vs(e){return e.o||e.t}function zE(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=m6(e);delete t[zt];for(var n=Qc(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Ere),Object.freeze(e),t&&Sl(e,function(n,r){return VE(r,!0)},!0)),e}function Ere(){$i(2)}function HE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function vo(e){var t=Ix[e];return t||$i(18,e),t}function Tre(e,t){Ix[e]||(Ix[e]=t)}function Rx(){return sh}function o1(e,t){t&&(vo("Patches"),e.u=[],e.s=[],e.v=t)}function Fv(e){Nx(e),e.p.forEach(Ore),e.p=null}function Nx(e){e===sh&&(sh=e.l)}function Bj(e){return sh={p:[],l:sh,h:e,m:!0,_:0}}function Ore(e){var t=e[zt];t.i===0||t.i===1?t.j():t.g=!0}function a1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||vo("ES5").S(t,e,r),r?(n[zt].P&&(Fv(t),$i(4)),na(e)&&(e=$v(t,e),t.l||Uv(t,e)),t.u&&vo("Patches").M(n[zt].t,e,t.u,t.s)):e=$v(t,n,[]),Fv(t),t.u&&t.v(t.u,t.s),e!==p6?e:void 0}function $v(e,t,n){if(HE(t))return t;var r=t[zt];if(!r)return Sl(t,function(s,l){return zj(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Uv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=zE(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),Sl(o,function(s,l){return zj(e,r,i,s,l,n,a)}),Uv(e,i,!1),n&&e.u&&vo("Patches").N(r,n,e.u,e.s)}return r.o}function zj(e,t,n,r,i,o,a){if(cs(i)){var s=$v(e,i,o&&t&&t.i!==3&&!Zc(t.R,r)?o.concat(r):void 0);if(f6(n,r,s),!cs(s))return;e.m=!1}else a&&n.add(i);if(na(i)&&!HE(i)){if(!e.h.D&&e._<1)return;$v(e,i),t&&t.A.l||Uv(e,i)}}function Uv(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&VE(t,n)}function s1(e,t){var n=e[zt];return(n?Vs(n):e)[t]}function Vj(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 Ma(e){e.P||(e.P=!0,e.l&&Ma(e.l))}function l1(e){e.o||(e.o=zE(e.t))}function Dx(e,t,n){var r=UE(t)?vo("MapSet").F(t,n):BE(t)?vo("MapSet").T(t,n):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Rx(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,c=lh;a&&(l=[s],c=Bd);var d=Proxy.revocable(l,c),f=d.revoke,p=d.proxy;return s.k=p,s.j=f,p}(t,n):vo("ES5").J(t,n);return(n?n.A:Rx()).p.push(r),r}function Cre(e){return cs(e)||$i(22,e),function t(n){if(!na(n))return n;var r,i=n[zt],o=Yu(n);if(i){if(!i.P&&(i.i<4||!vo("ES5").K(i)))return i.t;i.I=!0,r=Hj(n,o),i.I=!1}else r=Hj(n,o);return Sl(r,function(a,s){i&&Sre(i.t,a)===s||f6(r,a,t(s))}),o===3?new Set(r):r}(e)}function Hj(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zE(e)}function kre(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[zt];return lh.get(l,o)},set:function(l){var c=this[zt];lh.set(c,o,l)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][zt];if(!s.P)switch(s.i){case 5:r(s)&&Ma(s);break;case 4:n(s)&&Ma(s)}}}function n(o){for(var a=o.t,s=o.k,l=Qc(s),c=l.length-1;c>=0;c--){var d=l[c];if(d!==zt){var f=a[d];if(f===void 0&&!Zc(a,d))return!0;var p=s[d],m=p&&p[zt];if(m?m.t!==f:!h6(p,f))return!0}}var v=!!a[zt];return l.length!==Qc(a).length+(v?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l1?_-1:0),S=1;S<_;S++)w[S-1]=arguments[S];return l.produce(y,function(E){var C;return(C=o).call.apply(C,[x,E].concat(w))})}}var c;if(typeof o!="function"&&$i(6),a!==void 0&&typeof a!="function"&&$i(7),na(i)){var d=Bj(r),f=Dx(r,i,void 0),p=!0;try{c=o(f),p=!1}finally{p?Fv(d):Nx(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return o1(d,a),a1(y,d)},function(y){throw Fv(d),y}):(o1(d,a),a1(c,d))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===p6&&(c=void 0),r.D&&VE(c,!0),a){var m=[],v=[];vo("Patches").M(i,c,m,v),a(m,v)}return c}$i(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var d=arguments.length,f=Array(d>1?d-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 a=vo("Patches").$;return cs(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),Xr=new Mre,g6=Xr.produce;Xr.produceWithPatches.bind(Xr);Xr.setAutoFreeze.bind(Xr);Xr.setUseProxies.bind(Xr);Xr.applyPatches.bind(Xr);Xr.createDraft.bind(Xr);Xr.finishDraft.bind(Xr);function ch(e){"@babel/helpers - typeof";return ch=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},ch(e)}function Are(e,t){if(ch(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ch(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rre(e){var t=Are(e,"string");return ch(t)==="symbol"?t:String(t)}function Nre(e,t,n){return t=Rre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qj(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 Kj(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(rr(1));return n(v6)(e,t)}if(typeof e!="function")throw new Error(rr(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function d(){if(l)throw new Error(rr(3));return o}function f(y){if(typeof y!="function")throw new Error(rr(4));if(l)throw new Error(rr(5));var x=!0;return c(),s.push(y),function(){if(x){if(l)throw new Error(rr(6));x=!1,c();var w=s.indexOf(y);s.splice(w,1),a=null}}}function p(y){if(!Dre(y))throw new Error(rr(7));if(typeof y.type>"u")throw new Error(rr(8));if(l)throw new Error(rr(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var x=a=s,_=0;_"u")throw new Error(rr(12));if(typeof n(void 0,{type:Bv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(rr(13))})}function YE(e){for(var t=Object.keys(e),n={},r=0;r"u")throw c&&c.type,new Error(rr(14));f[m]=x,d=d||x!==y}return d=d||o.length!==Object.keys(l).length,d?f:l}}function zv(){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,resetAppUpdate:()=>!1}}),{appUpdateAvailable:die,resetAppUpdate:fie}=cie,hie=uie,pie=(e,t)=>{e.serviceFactory("App",xre,"MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>die),e.serviceFactory("resetAppUpdate",()=>fie)};var mie={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"]},gie=mie,vie={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"]},yie=vie,_ie={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},E6={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"]},bie={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"]},wie={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"]},xie=Object.defineProperty,Sie=(e,t,n)=>t in e?xie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Te=(e,t,n)=>(Sie(e,typeof t!="symbol"?t+"":t,n),n);/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function Qh(e){return e+.5|0}const Fa=(e,t,n)=>Math.max(Math.min(e,n),t);function zd(e){return Fa(Qh(e*2.55),0,255)}function ts(e){return Fa(Qh(e*255),0,255)}function Fo(e){return Fa(Qh(e/2.55)/100,0,1)}function nL(e){return Fa(Qh(e*100),0,100)}const li={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},$x=[..."0123456789ABCDEF"],Eie=e=>$x[e&15],Tie=e=>$x[(e&240)>>4]+$x[e&15],gm=e=>(e&240)>>4===(e&15),Oie=e=>gm(e.r)&&gm(e.g)&&gm(e.b)&&gm(e.a);function Cie(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&li[e[1]]*17,g:255&li[e[2]]*17,b:255&li[e[3]]*17,a:t===5?li[e[4]]*17:255}:(t===7||t===9)&&(n={r:li[e[1]]<<4|li[e[2]],g:li[e[3]]<<4|li[e[4]],b:li[e[5]]<<4|li[e[6]],a:t===9?li[e[7]]<<4|li[e[8]]:255})),n}const kie=(e,t)=>e<255?t(e):"";function Pie(e){var t=Oie(e)?Eie:Tie;return e?"#"+t(e.r)+t(e.g)+t(e.b)+kie(e.a,t):void 0}const jie=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function T6(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function Lie(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 Mie(e,t,n){const r=T6(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 Aie(e,t,n,r,i){return e===i?(t-n)/r+(t.5?c/(2-i-o):c/(i+o),s=Aie(t,n,r,c,i),s=s*60+.5),[s|0,l||0,a]}function KE(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ts)}function ZE(e,t,n){return KE(T6,e,t,n)}function Rie(e,t,n){return KE(Mie,e,t,n)}function Nie(e,t,n){return KE(Lie,e,t,n)}function O6(e){return(e%360+360)%360}function Die(e){const t=jie.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?zd(+t[5]):ts(+t[5]));const i=O6(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=Rie(i,o,a):t[1]==="hsv"?r=Nie(i,o,a):r=ZE(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function Iie(e,t){var n=qE(e);n[0]=O6(n[0]+t),n=ZE(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Fie(e){if(!e)return;const t=qE(e),n=t[0],r=nL(t[1]),i=nL(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Fo(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const rL={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"},iL={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 $ie(){const e={},t=Object.keys(iL),n=Object.keys(rL);let r,i,o,a,s;for(r=0;r>16&255,o>>8&255,o&255]}return e}let vm;function Uie(e){vm||(vm=$ie(),vm.transparent=[0,0,0,0]);const t=vm[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Bie=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function zie(e){const t=Bie.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?zd(a):Fa(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?zd(r):Fa(r,0,255)),i=255&(t[4]?zd(i):Fa(i,0,255)),o=255&(t[6]?zd(o):Fa(o,0,255)),{r,g:i,b:o,a:n}}}function Vie(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Fo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const f1=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,cc=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Hie(e,t,n){const r=cc(Fo(e.r)),i=cc(Fo(e.g)),o=cc(Fo(e.b));return{r:ts(f1(r+n*(cc(Fo(t.r))-r))),g:ts(f1(i+n*(cc(Fo(t.g))-i))),b:ts(f1(o+n*(cc(Fo(t.b))-o))),a:e.a+n*(t.a-e.a)}}function ym(e,t,n){if(e){let r=qE(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ZE(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function C6(e,t){return e&&Object.assign(t||{},e)}function oL(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=ts(e[3]))):(t=C6(e,{r:0,g:0,b:0,a:1}),t.a=ts(t.a)),t}function Wie(e){return e.charAt(0)==="r"?zie(e):Die(e)}class uh{constructor(t){if(t instanceof uh)return t;const n=typeof t;let r;n==="object"?r=oL(t):n==="string"&&(r=Cie(t)||Uie(t)||Wie(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=C6(this._rgb);return t&&(t.a=Fo(t.a)),t}set rgb(t){this._rgb=oL(t)}rgbString(){return this._valid?Vie(this._rgb):void 0}hexString(){return this._valid?Pie(this._rgb):void 0}hslString(){return this._valid?Fie(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*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=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Hie(this._rgb,t._rgb,n)),this}clone(){return new uh(this.rgb)}alpha(t){return this._rgb.a=ts(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Qh(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 ym(this._rgb,2,t),this}darken(t){return ym(this._rgb,2,-t),this}saturate(t){return ym(this._rgb,1,t),this}desaturate(t){return ym(this._rgb,1,-t),this}rotate(t){return Iie(this._rgb,t),this}}/*! + * Chart.js v4.4.0 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */function Mo(){}const Yie=(()=>{let e=0;return()=>e++})();function dt(e){return e===null||typeof e>"u"}function Dt(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 nt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function tn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function $r(e,t){return tn(e)?e:t}function Ke(e,t){return typeof e>"u"?t:e}const Gie=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,k6=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Pt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function wt(e,t,n,r){let i,o,a;if(Dt(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 Zie(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 Qie(e){const t=Zie(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function us(e,t){return(aL[t]||(aL[t]=Qie(t)))(e)}function QE(e){return e.charAt(0).toUpperCase()+e.slice(1)}const fh=e=>typeof e<"u",ds=e=>typeof e=="function",sL=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Xie(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Bt=Math.PI,$t=2*Bt,Jie=$t+Bt,Wv=Number.POSITIVE_INFINITY,eoe=Bt/180,cn=Bt/2,Ls=Bt/4,lL=Bt*2/3,$a=Math.log10,yo=Math.sign;function gf(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Su(e){return!isNaN(parseFloat(e))&&isFinite(e)}function noe(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function j6(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 JE(e,t,n){n=n||(a=>e[a]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Vo=(e,t,n,r)=>JE(e,n,r?i=>{const o=e[i][t];return oe[i][t]JE(e,n,r=>e[r][t]>=n);function aoe(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+QE(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function dL(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)&&(M6.forEach(o=>{delete e[o]}),delete e._chartjs)}function A6(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const R6=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function N6(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,R6.call(window,()=>{r=!1,e.apply(t,n)}))}}function loe(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const eT=e=>e==="start"?"left":e==="end"?"right":"center",ir=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,coe=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function D6(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:d,minDefined:f,maxDefined:p}=a.getUserBounds();f&&(i=Rn(Math.min(Vo(s,l,c).lo,n?r:Vo(t,l,a.getPixelForValue(c)).lo),0,r-1)),p?o=Rn(Math.max(Vo(s,a.axis,d,!0).hi+1,n?0:Vo(t,l,a.getPixelForValue(d),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function I6(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 _m=e=>e===0||e===1,fL=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*$t/n)),hL=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*$t/n)+1,vf={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*cn)+1,easeOutSine:e=>Math.sin(e*cn),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=>_m(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=>_m(e)?e:fL(e,.075,.3),easeOutElastic:e=>_m(e)?e:hL(e,.075,.3),easeInOutElastic(e){return _m(e)?e:e<.5?.5*fL(e*2,.1125,.45):.5+.5*hL(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-vf.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?vf.easeInBounce(e*2)*.5:vf.easeOutBounce(e*2-1)*.5+.5};function tT(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function pL(e){return tT(e)?e:new uh(e)}function h1(e){return tT(e)?e:new uh(e).saturate(.5).darken(.1).hexString()}const uoe=["x","y","borderWidth","radius","tension"],doe=["color","borderColor","backgroundColor"];function foe(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:doe},numbers:{type:"number",properties:uoe}}),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 hoe(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const mL=new Map;function poe(e,t){t=t||{};const n=e+JSON.stringify(t);let r=mL.get(n);return r||(r=new Intl.NumberFormat(e,t),mL.set(n,r)),r}function Xh(e,t,n){return poe(t,n).format(e)}const F6={values(e){return Dt(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=moe(e,n)}const a=$a(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Xh(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor($a(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?F6.numeric.call(this,e,t,n):""}};function moe(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 m0={formatters:F6};function goe(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,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:m0.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 El=Object.create(null),Bx=Object.create(null);function yf(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)=>h1(i.backgroundColor),this.hoverBorderColor=(r,i)=>h1(i.borderColor),this.hoverColor=(r,i)=>h1(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 p1(this,t,n)}get(t){return yf(this,t)}describe(t,n){return p1(Bx,t,n)}override(t,n){return p1(El,t,n)}route(t,n,r,i){const o=yf(this,t),a=yf(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return nt(l)?Object.assign({},c,l):Ke(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var nn=new voe({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[foe,hoe,goe]);function yoe(e){return!e||dt(e.size)||dt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Yv(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 _oe(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 a=0;const s=n.length;let l,c,d,f,p;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function Ho(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,xoe(e,o),l=0;l+e||0;function nT(e,t){const n={},r=nt(t),i=r?Object.keys(t):t,o=nt(e)?r?a=>Ke(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=koe(o(a));return n}function U6(e){return nT(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ul(e){return nT(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ur(e){const t=U6(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Sn(e,t){e=e||{},t=t||nn.font;let n=Ke(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ke(e.style,t.style);r&&!(""+r).match(Ooe)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ke(e.family,t.family),lineHeight:Coe(Ke(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ke(e.weight,t.weight),string:""};return i.string=yoe(i),i}function Vd(e,t,n,r){let i=!0,o,a,s;for(o=0,a=e.length;on&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function xs(e,t){return Object.assign(Object.create(e),t)}function rT(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=H6("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>rT([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return z6(s,l,()=>Ioe(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return yL(s).includes(l)},ownKeys(s){return yL(s)},set(s,l,c){const d=s._storage||(s._storage=i());return s[l]=d[l]=c,delete s._keys,!0}})}function Eu(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:B6(e,r),setContext:o=>Eu(e,o,n,r),override:o=>Eu(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return z6(o,a,()=>Loe(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function B6(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:ds(n)?n:()=>n,isIndexable:ds(r)?r:()=>r}}const joe=(e,t)=>e?e+QE(t):t,iT=(e,t)=>nt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function z6(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Loe(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return ds(s)&&a.isScriptable(t)&&(s=Moe(t,s,e,n)),Dt(s)&&s.length&&(s=Aoe(t,s,e,a.isIndexable)),iT(t,s)&&(s=Eu(s,i,o&&o[t],a)),s}function Moe(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),iT(e,l)&&(l=oT(i._scopes,i,e,l)),l}function Aoe(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(nt(t[0])){const l=t,c=i._scopes.filter(d=>d!==l);t=[];for(const d of l){const f=oT(c,i,e,d);t.push(Eu(f,o,a&&a[e],s))}}return t}function V6(e,t,n){return ds(e)?e(t,n):e}const Roe=(e,t)=>e===!0?t:typeof e=="string"?us(t,e):void 0;function Noe(e,t,n,r,i){for(const o of t){const a=Roe(n,o);if(a){e.add(a);const s=V6(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function oT(e,t,n,r){const i=t._rootScopes,o=V6(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=vL(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=vL(s,a,o,l,r),l===null)?!1:rT(Array.from(s),[""],i,o,()=>Doe(t,n,r))}function vL(e,t,n,r,i){for(;n;)n=Noe(e,t,n,r,i);return n}function Doe(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Dt(i)&&nt(n)?n:i||{}}function Ioe(e,t,n,r){let i;for(const o of t)if(i=H6(joe(o,e),n),typeof i<"u")return iT(e,i)?oT(n,r,e,i):i}function H6(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function yL(e){let t=e._keys;return t||(t=e._keys=Foe(e._scopes)),t}function Foe(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 W6(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,a=new Array(r);let s,l,c,d;for(s=0,l=r;ste==="x"?"y":"x";function Uoe(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=Ux(o,i),l=Ux(a,o);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const f=r*c,p=r*d;return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function Boe(e,t,n){const r=e.length;let i,o,a,s,l,c=Tu(e,0);for(let d=0;d!c.skip)),t.cubicInterpolationMode==="monotone")Voe(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function Yoe(e,t){return y0(e).getPropertyValue(t)}const Goe=["top","right","bottom","left"];function dl(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=Goe[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const qoe=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Koe(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(qoe(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Hs(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=y0(n),o=i.boxSizing==="border-box",a=dl(i,"padding"),s=dl(i,"border","width"),{x:l,y:c,box:d}=Koe(e,n),f=a.left+(d&&s.left),p=a.top+(d&&s.top);let{width:m,height:v}=t;return o&&(m-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-f)/m*n.width/r),y:Math.round((c-p)/v*n.height/r)}}function Zoe(e,t,n){let r,i;if(t===void 0||n===void 0){const o=aT(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=y0(o),l=dl(s,"border","width"),c=dl(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=Gv(s.maxWidth,o,"clientWidth"),i=Gv(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||Wv,maxHeight:i||Wv}}const wm=e=>Math.round(e*10)/10;function Qoe(e,t,n,r){const i=y0(e),o=dl(i,"margin"),a=Gv(i.maxWidth,e,"clientWidth")||Wv,s=Gv(i.maxHeight,e,"clientHeight")||Wv,l=Zoe(e,t,n);let{width:c,height:d}=l;if(i.boxSizing==="content-box"){const f=dl(i,"border","width"),p=dl(i,"padding");c-=p.width+f.width,d-=p.height+f.height}return c=Math.max(0,c-o.width),d=Math.max(0,r?c/r:d-o.height),c=wm(Math.min(c,a,l.maxWidth)),d=wm(Math.min(d,s,l.maxHeight)),c&&!d&&(d=wm(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=wm(Math.floor(d*r))),{width:c,height:d}}function _L(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 a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Xoe=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 bL(e,t){const n=Yoe(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Ws(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Joe(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 eae(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=Ws(e,i,n),s=Ws(i,o,n),l=Ws(o,t,n),c=Ws(a,s,n),d=Ws(s,l,n);return Ws(c,d,n)}const tae=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}}},nae=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Xc(e,t,n){return e?tae(t,n):nae()}function q6(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 K6(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Z6(e){return e==="angle"?{between:hh,compare:roe,normalize:Br}:{between:zo,compare:(t,n)=>t-n,normalize:t=>t}}function wL({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 rae(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=Z6(r),l=t.length;let{start:c,end:d,loop:f}=e,p,m;if(f){for(c+=l,d+=l,p=0,m=l;pl(i,S,_)&&s(i,S)!==0,C=()=>s(o,_)===0||l(o,S,_),k=()=>y||E(),j=()=>!y||C();for(let A=d,$=d;A<=f;++A)w=t[A%a],!w.skip&&(_=c(w[r]),_!==S&&(y=l(_,i,o),x===null&&k()&&(x=s(_,i)===0?A:$),x!==null&&j()&&(v.push(wL({start:x,end:A,loop:p,count:a,style:m})),x=null),$=A,S=_));return x!==null&&v.push(wL({start:x,end:f,loop:p,count:a,style:m})),v}function X6(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 oae(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function aae(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=iae(n,i,o,r);if(r===!0)return xL(e,[{start:a,end:s,loop:o}],n,t);const l=ss({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=R6.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 a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(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 Ao=new cae;const EL="transparent",uae={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=pL(e||EL),i=r.valid&&pL(t||EL);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class dae{constructor(t,n,r,i){const o=n[r];i=Vd([t.to,i,o,t.from]);const a=Vd([t.from,o,i]);this._active=!0,this._fn=t.fn||uae[t.type||typeof a],this._easing=vf[t.easing]||vf.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=a,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,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Vd([t.to,n,i,t.from]),this._from=Vd([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,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,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(!nt(o))return;const a={};for(const s of n)a[s]=o[s];(Dt(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=hae(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&fae(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[c];let f=o[c];const p=r.get(c);if(f)if(p&&f.active()){f.update(p,d,s);continue}else f.cancel();if(!p||!p.duration){t[c]=d;continue}o[c]=f=new dae(p,t,c,d),i.push(f)}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 Ao.add(this._chart,r),!0}}function fae(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function PL(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,d=vae(o,a,r),f=t.length;let p;for(let m=0;mn[r].axis===t).shift()}function bae(e,t){return xs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function wae(e,t,n){return xs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Sd(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 g1=e=>e==="reset"||e==="none",jL=(e,t)=>t?e:Object.assign({},e),xae=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:e5(n,!0),values:null};class Wi{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=CL(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&&Sd(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,p,m,v)=>f==="x"?p:f==="r"?v:m,o=n.xAxisID=Ke(r.xAxisID,m1(t,"x")),a=n.yAxisID=Ke(r.yAxisID,m1(t,"y")),s=n.rAxisID=Ke(r.rAxisID,m1(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),d=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}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&&dL(this._data,this),t._stacked&&Sd(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(nt(n))this._data=gae(n);else if(r!==n){if(r){dL(r,this);const i=this._cachedMeta;Sd(i),i._parsed=[]}n&&Object.isExtensible(n)&&soe(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=CL(n.vScale,n),n.stack!==r.stack&&(i=!0,Sd(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&PL(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:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{Dt(i[t])?p=this.parseArrayData(r,i,t,n):nt(i[t])?p=this.parseObjectData(r,i,t,n):p=this.parsePrimitiveData(r,i,t,n);const m=()=>f[s]===null||c&&f[s]y||f=0;--p)if(!v()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),y=c.resolveNamedOptions(p,m,v,f);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(jL(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),p=d.getOptionScopes(this.getDataset(),f);l=d.createResolver(p,this.getContext(t,r,n))}const c=new J6(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||g1(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){g1(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!g1(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[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;si-o))}return e._cache.$bar}function Eae(e){const t=e.iScale,n=Sae(t,e.type);let r=t._length,i,o,a,s;const l=()=>{a===32767||a===-32768||(fh(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i0?i[e-1]:null,s=eMath.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}function t5(e,t,n,r){return Dt(e)?Cae(e,t,n,r):t[n.axis]=n.parse(e,r),t}function LL(e,t,n,r){const i=e.iScale,o=e.vScale,a=i.getLabels(),s=i===o,l=[];let c,d,f,p;for(c=n,d=n+r;c=n?1:-1)}function Pae(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,a=[],s=l=>{const c=l.controller.getParsed(n),d=c&&c[l.vScale.axis];if(dt(d)||isNaN(d))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((o===!1||a.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&a.push(l.stack),l.index===t))break;return a.length||a.push(void 0),a}_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,a;for(o=0,a=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,a=this.getParsed(t),s=i.getLabelForValue(a.x),l=o.getLabelForValue(a.y),c=a._custom;return{label:r[t]||"",value:"("+s+", "+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:a,vScale:s}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),d=a.axis,f=s.axis;for(let p=n;phh(S,s,l,!0)?1:Math.max(E,E*n,C,C*n),v=(S,E,C)=>hh(S,s,l,!0)?-1:Math.min(E,E*n,C,C*n),y=m(0,c,f),x=m(cn,d,p),_=v(Bt,c,f),w=v(Bt+cn,d,p);r=(y-_)/2,i=(x-w)/2,o=-(y+_)/2,a=-(x+w)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}class Ua extends Wi{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(nt(r[t])){const{key:l="value"}=this._parsing;o=c=>+us(r[c],l)}let a,s;for(a=t,s=t+n;a0&&!isNaN(t)?$t*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Xh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,a,s,l;if(!t){for(i=0,o=r.data.datasets.length;ie!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),Te(Ua,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,o)=>{const a=e.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class bf extends Wi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=D6(n,i,a);this._drawStart=s,this._drawCount=l,I6(n)&&(s=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:!a,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i),p=a.axis,m=s.axis,{spanGaps:v,segment:y}=this.options,x=Su(v)?v:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||o||i==="none",w=n+r,S=t.length;let E=n>0&&this.getParsed(n-1);for(let C=0;C=w){j.skip=!0;continue}const A=this.getParsed(C),$=dt(A[m]),N=j[p]=a.getPixelForValue(A[p],C),z=j[m]=o||$?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,A,l):A[m],C);j.skip=isNaN(N)||isNaN(z)||$,j.stop=C>0&&Math.abs(A[p]-E[p])>x,y&&(j.parsed=A,j.raw=c.data[C]),f&&(j.options=d||this.resolveDataElementOptions(C,k.active?"active":i)),_||this.updateElement(k,C,j,i),E=A}}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)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Te(bf,"id","line"),Te(bf,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Te(bf,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class wf extends Wi{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=Xh(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return W6.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),a=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),s=(o-a)/t.getVisibleDatasetCount();this.outerRadius=o-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,n,r,i){const o=i==="reset",a=this.chart,s=a.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,d=l.yCenter,f=l.getIndexAngle(0)-.5*Bt;let p=f,m;const v=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Bi(this.resolveDataElementOptions(t,n).angle||r):0}}Te(wf,"id","polarArea"),Te(wf,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Te(wf,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,o)=>{const a=e.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Vx extends Ua{}Te(Vx,"id","pie"),Te(Vx,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class hg extends Wi{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 W6.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 a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);const s={_loop:!0,_fullLoop:o.length===i.length,options:a};this.updateElement(r,void 0,s,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,a=i==="reset";for(let s=n;s0&&this.getParsed(n-1);for(let E=n;E0&&Math.abs(k[m]-S[m])>_,x&&(j.parsed=k,j.raw=c.data[E]),p&&(j.options=f||this.resolveDataElementOptions(E,C.active?"active":i)),w||this.updateElement(C,E,j,i),S=k}this.updateSharedOptions(f,i,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let s=0;for(let l=n.length-1;l>=0;--l)s=Math.max(s,n[l].size(this.resolveDataElementOptions(l))/2);return s>0&&s}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,a)/2}}Te(pg,"id","scatter"),Te(pg,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Te(pg,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var Rae=Object.freeze({__proto__:null,BarController:_f,BubbleController:fg,DoughnutController:Ua,LineController:bf,PieController:Vx,PolarAreaController:wf,RadarController:hg,ScatterController:pg});function As(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class sT{constructor(t){Te(this,"options"),this.options=t||{}}static override(t){Object.assign(sT.prototype,t)}init(){}formats(){return As()}parse(){return As()}format(){return As()}add(){return As()}diff(){return As()}startOf(){return As()}endOf(){return As()}}var Nae={_date:sT};function Dae(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?ooe:Vo;if(r){if(i._sharedOptions){const c=o[0],d=typeof c.getRange=="function"&&c.getRange(t);if(d){const f=l(o,t,n-d),p=l(o,t,n+d);return{lo:f.lo,hi:p.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Jh(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:d}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var Uae={evaluateInteractionItems:Jh,modes:{index(e,t,n,r){const i=Hs(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?y1(e,i,o,r,a):_1(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=s[0].index,f=c.data[d];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:d})}),l):[]},dataset(e,t,n,r){const i=Hs(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?y1(e,i,o,r,a):_1(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let d=0;dn.pos===t)}function NL(e,t){return e.filter(n=>n5.indexOf(n.pos)===-1&&n.box.axis===t)}function Td(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 Bae(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Td(Ed(t,"left"),!0),i=Td(Ed(t,"right")),o=Td(Ed(t,"top"),!0),a=Td(Ed(t,"bottom")),s=NL(t,"x"),l=NL(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:Ed(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function DL(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function r5(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 Wae(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!nt(i)){n.size&&(e[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[i]+=n.size}o.getPadding&&r5(a,o.getPadding());const s=Math.max(0,t.outerWidth-DL(a,e,"left","right")),l=Math.max(0,t.outerHeight-DL(a,e,"top","bottom")),c=s!==e.w,d=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Yae(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 Gae(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function Hd(e,t,n,r){const i=[];let o,a,s,l,c,d;for(o=0,a=e.length,c=0;o{typeof y.beforeLayout=="function"&&y.beforeLayout()});const d=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),p=Object.assign({},i);r5(p,ur(r));const m=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),v=Vae(l.concat(c),f);Hd(s.fullSize,m,f,v),Hd(l,m,f,v),Hd(c,m,f,v)&&Hd(l,m,f,v),Yae(m),IL(s.leftAndTop,m,f,v),m.x+=m.w,m.y+=m.h,IL(s.rightAndBottom,m,f,v),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},wt(s.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class i5{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 qae extends i5{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const mg="$chartjs",Kae={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},FL=e=>e===null||e==="";function Zae(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[mg]={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",FL(i)){const o=bL(e,"width");o!==void 0&&(e.width=o)}if(FL(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=bL(e,"height");o!==void 0&&(e.height=o)}return e}const o5=Xoe?{passive:!0}:!1;function Qae(e,t,n){e.addEventListener(t,n,o5)}function Xae(e,t,n){e.canvas.removeEventListener(t,n,o5)}function Jae(e,t){const n=Kae[e.type]||e.type,{x:r,y:i}=Hs(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function qv(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function ese(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||qv(s.addedNodes,r),a=a&&!qv(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function tse(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||qv(s.removedNodes,r),a=a&&!qv(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const mh=new Map;let $L=0;function a5(){const e=window.devicePixelRatio;e!==$L&&($L=e,mh.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function nse(e,t){mh.size||window.addEventListener("resize",a5),mh.set(e,t)}function rse(e){mh.delete(e),mh.size||window.removeEventListener("resize",a5)}function ise(e,t,n){const r=e.canvas,i=r&&aT(r);if(!i)return;const o=N6((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||o(c,d)});return a.observe(i),nse(e,o),a}function b1(e,t,n){n&&n.disconnect(),t==="resize"&&rse(e)}function ose(e,t,n){const r=e.canvas,i=N6(o=>{e.ctx!==null&&n(Jae(o,e))},e);return Qae(r,t,i),i}class ase extends i5{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(Zae(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[mg])return!1;const r=n[mg].initial;["height","width"].forEach(o=>{const a=r[o];dt(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[mg],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:ese,detach:tse,resize:ise}[n]||ose;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];i&&(({attach:b1,detach:b1,resize:b1}[n]||Xae)(t,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Qoe(t,n,r,i)}isAttached(t){const n=aT(t);return!!(n&&n.isConnected)}}function sse(e){return!G6()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?qae:ase}var Sm;let pa=(Sm=class{constructor(){Te(this,"x"),Te(this,"y"),Te(this,"active",!1),Te(this,"options"),Te(this,"$animations")}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return Su(this.x)&&Su(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const r={};return e.forEach(i=>{r[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),r}},Te(Sm,"defaults",{}),Te(Sm,"defaultRoutes"),Sm);function lse(e,t){const n=e.options.ticks,r=cse(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?dse(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return fse(t,c,o,a/i),c;const d=use(o,t,i);if(a>0){let f,p;const m=a>1?Math.round((l-s)/(a-1)):null;for(Em(t,c,d,dt(m)?0:s-m,s),f=0,p=a-1;fi)return l}return Math.max(i,1)}function dse(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,UL=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,BL=(e,t)=>Math.min(t||e,e);function zL(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;oa+s)))return l}function gse(e,t){wt(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:$r(n,$r(r,n)),max:$r(r,$r(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(){Pt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.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=Poe(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),f=d.widest.width,p=d.highest.height,m=Rn(this.chart.width-f,0,this.maxWidth);s=t.offset?this.maxWidth/r:m/(r-1),f+6>s&&(s=m/(r-(t.offset?.5:1)),l=this.maxHeight-Od(t.grid)-n.padding-VL(t.title,this.chart.options.font),c=Math.sqrt(f*f+p*p),a=XE(Math.min(Math.asin(Rn((d.highest.height+6)/s,-1,1)),Math.asin(Rn(l/c,-1,1))-Math.asin(Rn(p/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Pt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=VL(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Od(o)+l):(t.height=this.maxHeight,t.width=Od(o)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:p}=this._getLabelSizes(),m=r.padding*2,v=Bi(this.labelRotation),y=Math.cos(v),x=Math.sin(v);if(s){const _=r.mirror?0:x*f.width+y*p.height;t.height=Math.min(this.maxHeight,t.height+_+m)}else{const _=r.mirror?0:y*f.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+_+m)}this._calculatePadding(c,d,x,y)}}this._handleMargins(),s?(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:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=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-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;o==="start"?(d=0,f=t.height):o==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_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(){Pt(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:a[$]||0,height:s[$]||0});return{first:A(0),last:A(n-1),widest:A(k),highest:A(j),widths:a,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 ioe(this._alignToPixels?Ms(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&&ts*i?s/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Od(o),p=[],m=s.setContext(this.getContext()),v=m.display?m.width:0,y=v/2,x=function(Z){return Ms(r,Z,v)};let _,w,S,E,C,k,j,A,$,N,z,W;if(a==="top")_=x(this.bottom),k=this.bottom-f,A=_-y,N=x(t.top)+y,W=t.bottom;else if(a==="bottom")_=x(this.top),N=t.top,W=x(t.bottom)-y,k=_+y,A=this.top+f;else if(a==="left")_=x(this.right),C=this.right-f,j=_-y,$=x(t.left)+y,z=t.right;else if(a==="right")_=x(this.left),$=t.left,z=x(t.right)-y,C=_+y,j=this.left+f;else if(n==="x"){if(a==="center")_=x((t.top+t.bottom)/2+.5);else if(nt(a)){const Z=Object.keys(a)[0],te=a[Z];_=x(this.chart.scales[Z].getPixelForValue(te))}N=t.top,W=t.bottom,k=_+y,A=k+f}else if(n==="y"){if(a==="center")_=x((t.left+t.right)/2);else if(nt(a)){const Z=Object.keys(a)[0],te=a[Z];_=x(this.chart.scales[Z].getPixelForValue(te))}C=_-y,j=C-f,$=t.left,z=t.right}const X=Ke(i.ticks.maxTicksLimit,d),G=Math.max(1,Math.ceil(d/X));for(w=0;wi.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.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,a=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,a;for(o=0,a=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");nn.route(o,i,l,s)})}function Sse(e){return"id"in e&&"defaults"in e}class Ese{constructor(){this.controllers=new Tm(Wi,"datasets",!0),this.elements=new Tm(pa,"elements"),this.plugins=new Tm(Object,"plugins"),this.scales=new Tm($l,"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):wt(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=QE(t);Pt(r["before"+i],[],r),n[t](r),Pt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function Ose(e){const t={},n=[],r=Object.keys(oo.plugins.items);for(let o=0;o1&&HL(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function WL(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Ase(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return WL(e,"x",n[0])||WL(e,"y",n[0])}return{}}function Rse(e,t){const n=El[e.type]||{scales:{}},r=t.scales||{},i=Hx(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!nt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=Wx(a,s,Ase(a,e),nn.scales[s.type]),c=Lse(l,i),d=n.scales||{};o[a]=mf(Object.create(null),[{axis:l},s,d[l],d[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||Hx(s,t),c=(El[s]||{}).scales||{};Object.keys(c).forEach(d=>{const f=jse(d,l),p=a[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),mf(o[p],[{axis:f},r[p],c[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];mf(s,[nn.scales[s.type],nn.scale])}),o}function s5(e){const t=e.options||(e.options={});t.plugins=Ke(t.plugins,{}),t.scales=Rse(e,t)}function l5(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Nse(e){return e=e||{},e.data=l5(e.data),s5(e),e}const YL=new Map,c5=new Set;function Om(e,t){let n=YL.get(e);return n||(n=t(),YL.set(e,n),c5.add(n)),n}const Cd=(e,t,n)=>{const r=us(t,n);r!==void 0&&e.add(r)};class Dse{constructor(t){this._config=Nse(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=l5(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(),s5(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Om(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Om(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Om(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Om(`${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,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(d=>{t&&(l.add(t),d.forEach(f=>Cd(l,t,f))),d.forEach(f=>Cd(l,i,f)),d.forEach(f=>Cd(l,El[o]||{},f)),d.forEach(f=>Cd(l,nn,f)),d.forEach(f=>Cd(l,Bx,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),c5.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,El[n]||{},nn.datasets[n]||{},{type:n},nn,Bx]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=GL(this._resolverCache,t,i);let l=a;if(Fse(a,n)){o.$shared=!1,r=ds(r)?r():r;const c=this.createResolver(t,r,s);l=Eu(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=GL(this._resolverCache,t,r);return nt(n)?Eu(o,n,void 0,i):o}}function GL(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:rT(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,o)),o}const Ise=e=>nt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||ds(e[n]),!1);function Fse(e,t){const{isScriptable:n,isIndexable:r}=B6(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(ds(s)||Ise(s))||a&&Dt(s))return!0}return!1}var $se="4.4.0";const Use=["top","bottom","left","right","chartArea"];function qL(e,t){return e==="top"||e==="bottom"||Use.indexOf(e)===-1&&t==="x"}function KL(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ZL(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Pt(n&&n.onComplete,[e],t)}function Bse(e){const t=e.chart,n=t.options.animation;Pt(n&&n.onProgress,[e],t)}function u5(e){return G6()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const gg={},QL=e=>{const t=u5(e);return Object.values(gg).filter(n=>n.canvas===t).pop()};function zse(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function Vse(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Cm(e,t,n){return e.options.clip?e[n]:t[n]}function Hse(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Cm(n,t,"left"),right:Cm(n,t,"right"),top:Cm(r,t,"top"),bottom:Cm(r,t,"bottom")}:t}var xa;let _0=(xa=class{static register(...e){oo.add(...e),XL()}static unregister(...e){oo.remove(...e),XL()}constructor(e,t){const n=this.config=new Dse(t),r=u5(e),i=QL(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||sse(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,o.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;if(this.id=Yie(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=o,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 Tse,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=loe(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],gg[this.id]=this,!a||!s){console.error("Failed to create chart: can't acquire context from the given item");return}Ao.listen(this,"complete",ZL),Ao.listen(this,"progress",Bse),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return dt(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return oo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():_L(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return gL(this.canvas,this.ctx),this}stop(){return Ao.stop(this),this}resize(e,t){Ao.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,e,t,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,_L(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),Pt(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};wt(e,(t,n)=>{t.id=n})}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((o,a)=>(o[a]=!1,o),{});let i=[];t&&(i=i.concat(Object.keys(t).map(o=>{const a=t[o],s=Wx(o,a),l=s==="r",c=s==="x";return{options:a,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),wt(i,o=>{const a=o.options,s=a.id,l=Wx(s,a),c=Ke(a.type,o.dtype);(a.position===void 0||qL(a.position,l)!==qL(o.dposition))&&(a.position=o.dposition),r[s]=!0;let d=null;if(s in n&&n[s].type===c)d=n[s];else{const f=oo.getScale(c);d=new f({id:s,type:c,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(a,e)}),wt(r,(o,a)=>{o||delete n[a]}),wt(n,o=>{sr.configure(this,o,o.options),sr.addBox(this,o)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((r,i)=>r.index-i.index),n>t){for(let r=t;rt.length&&delete this._stacks,e.forEach((n,r)=>{t.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let l=0,c=this.data.datasets.length;l{l.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(KL("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){wt(this.scales,e=>{sr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!sL(t,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of t){const o=n==="_removeElements"?-i:i;zse(e,r,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=i=>new Set(e.filter(o=>o[0]===i).map((o,a)=>a+","+o.splice(1).join(","))),r=n(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;sr.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],wt(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let t=0,n=this.data.datasets.length;t=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,i=Hse(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&g0(t,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&v0(t),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return Ho(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const i=Uae.modes[t];return typeof i=="function"?i(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter(i=>i&&i._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=xs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!t.hidden}setDatasetVisibility(e,t){const n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",i=this.getDatasetMeta(e),o=i.controller._resolveAnimations(void 0,r);fh(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(i,{visible:n}),this.update(a=>a.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Ao.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,i,o),e[i]=o},r=(i,o,a)=>{i.offsetX=o,i.offsetY=a,this._eventHandler(i)};wt(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(s,l)=>{t.addEventListener(this,s,l),e[s]=l},r=(s,l)=>{e[s]&&(t.removeEventListener(this,s,l),delete e[s])},i=(s,l)=>{this.canvas&&this.resize(s,l)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():o()}unbindEvents(){wt(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},wt(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let i,o,a,s;for(t==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=e.length;a{const o=this.getDatasetMeta(r);if(!o)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:o.data[i],index:i}});!Vv(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){const r=this.options.hover,i=(s,l)=>s.filter(c=>!l.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=i(t,e),a=n?e:i(e,t);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:i}=this,o=t,a=this._getActiveElements(e,r,n,o),s=Xie(e),l=Vse(e,this._lastEvent,n,s);n&&(this._lastEvent=null,Pt(i.onHover,[e,a,this],this),s&&Pt(i.onClick,[e,a,this],this));const c=!Vv(a,r);return(c||t)&&(this._active=a,this._updateHoverStyles(a,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if(e.type==="mouseout")return[];if(!n)return t;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}},Te(xa,"defaults",nn),Te(xa,"instances",gg),Te(xa,"overrides",El),Te(xa,"registry",oo),Te(xa,"version",$se),Te(xa,"getChart",QL),xa);function XL(){return wt(_0.instances,e=>e._plugins.invalidate())}function Wse(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(o,a,s,r-c,n+c),l>i?(c=i/l,e.arc(o,a,l,n+c,r-c,!0)):e.arc(o,a,i,n+cn,r-cn),e.closePath(),e.clip()}function Yse(e){return nT(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Gse(e,t,n,r){const i=Yse(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),s=l=>{const c=(n-Math.min(o,l))*r/2;return Rn(l,0,Math.min(o,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Rn(i.innerStart,0,a),innerEnd:Rn(i.innerEnd,0,a)}}function uc(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Kv(e,t,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=t,f=Math.max(t.outerRadius+r+n-c,0),p=d>0?d+r+n+c:0;let m=0;const v=i-l;if(r){const Z=d>0?d-r:0,te=f>0?f-r:0,le=(Z+te)/2,q=le!==0?v*le/(le+r):v;m=(v-q)/2}const y=Math.max(.001,v*f-n/Bt)/f,x=(v-y)/2,_=l+x+m,w=i-x-m,{outerStart:S,outerEnd:E,innerStart:C,innerEnd:k}=Gse(t,p,f,w-_),j=f-S,A=f-E,$=_+S/j,N=w-E/A,z=p+C,W=p+k,X=_+C/z,G=w-k/W;if(e.beginPath(),o){const Z=($+N)/2;if(e.arc(a,s,f,$,Z),e.arc(a,s,f,Z,N),E>0){const I=uc(A,N,a,s);e.arc(I.x,I.y,E,N,w+cn)}const te=uc(W,w,a,s);if(e.lineTo(te.x,te.y),k>0){const I=uc(W,G,a,s);e.arc(I.x,I.y,k,w+cn,G+Math.PI)}const le=(w-k/p+(_+C/p))/2;if(e.arc(a,s,p,w-k/p,le,!0),e.arc(a,s,p,le,_+C/p,!0),C>0){const I=uc(z,X,a,s);e.arc(I.x,I.y,C,X+Math.PI,_-cn)}const q=uc(j,_,a,s);if(e.lineTo(q.x,q.y),S>0){const I=uc(j,$,a,s);e.arc(I.x,I.y,S,_-cn,$)}}else{e.moveTo(a,s);const Z=Math.cos($)*f+a,te=Math.sin($)*f+s;e.lineTo(Z,te);const le=Math.cos(N)*f+a,q=Math.sin(N)*f+s;e.lineTo(le,q)}e.closePath()}function qse(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=t;let l=t.endAngle;if(o){Kv(e,t,n,r,l,i);for(let c=0;c=$t||hh(o,s,l),v=zo(a,c+p,d+p);return m&&v}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,d=(i+o)/2,f=(a+s+c+l)/2;return{x:n+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>$t?Math.floor(r/$t):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(Bt,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,qse(t,this,c,o,a),Kse(t,this,c,o,a),t.restore()}}Te(Wd,"id","arc"),Te(Wd,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Te(Wd,"defaultRoutes",{backgroundColor:"backgroundColor"}),Te(Wd,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function d5(e,t,n=t){e.lineCap=Ke(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ke(n.borderDash,t.borderDash)),e.lineDashOffset=Ke(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ke(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ke(n.borderWidth,t.borderWidth),e.strokeStyle=Ke(n.borderColor,t.borderColor)}function Zse(e,t,n){e.lineTo(n.x,n.y)}function Qse(e){return e.stepped?boe:e.tension||e.cubicInterpolationMode==="monotone"?woe:Zse}function f5(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),d=is&&o>s;return{count:r,start:l,loop:t.loop,ilen:c(a+(c?s-E:E))%o,S=()=>{y!==x&&(e.lineTo(d,x),e.lineTo(d,y),e.lineTo(d,_))};for(l&&(m=i[w(0)],e.moveTo(m.x,m.y)),p=0;p<=s;++p){if(m=i[w(p)],m.skip)continue;const E=m.x,C=m.y,k=E|0;k===v?(Cx&&(x=C),d=(f*d+E)/++f):(S(),e.lineTo(E,C),v=k,f=0,y=x=C),_=C}S()}function Yx(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Jse:Xse}function ele(e){return e.stepped?Joe:e.tension||e.cubicInterpolationMode==="monotone"?eae:Ws}function tle(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),d5(e,t.options),e.stroke(i)}function nle(e,t,n,r){const{segments:i,options:o}=t,a=Yx(t);for(const s of i)d5(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const rle=typeof Path2D=="function";function ile(e,t,n,r){rle&&!t.options.segment?tle(e,t,n,r):nle(e,t,n,r)}class Ba extends pa{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;Woe(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=aae(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,a=X6(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=ele(r);let c,d;for(c=0,d=a.length;ce!=="borderDash"&&e!=="fill"});function JL(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 p5(e){return Gx[e%Gx.length]}function m5(e){return e3[e%e3.length]}function dle(e,t){return e.borderColor=p5(t),e.backgroundColor=m5(t),++t}function fle(e,t){return e.backgroundColor=e.data.map(()=>p5(t++)),t}function hle(e,t){return e.backgroundColor=e.data.map(()=>m5(t++)),t}function ple(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof Ua?t=fle(n,t):i instanceof wf?t=hle(n,t):i&&(t=dle(n,t))}}function t3(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function mle(e){return e&&(e.borderColor||e.backgroundColor)}var gle={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:o}=i;if(!n.forceOverride&&(t3(r)||mle(i)||o&&t3(o)))return;const a=ple(e);r.forEach(a)}};function vle(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const a=[],s=(n-2)/(o-2);let l=0;const c=t+n-1;let d=t,f,p,m,v,y;for(a[l++]=e[d],f=0;fm&&(m=v,p=e[w],y=w);a[l++]=p,d=y}return a[l++]=e[c],a}function yle(e,t,n,r){let i=0,o=0,a,s,l,c,d,f,p,m,v,y;const x=[],_=t+n-1,w=e[t].x,S=e[_].x-w;for(a=t;ay&&(y=c,p=a),i=(o*i+s.x)/++o;else{const C=a-1;if(!dt(f)&&!dt(p)){const k=Math.min(f,p),j=Math.max(f,p);k!==m&&k!==C&&x.push({...e[k],x:i}),j!==m&&j!==C&&x.push({...e[j],x:i})}a>0&&C!==m&&x.push(e[C]),x.push(s),d=E,o=0,v=y=c,f=p=m=a}}return x}function g5(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function n3(e){e.data.datasets.forEach(t=>{g5(t)})}function _le(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=Rn(Vo(t,o.axis,a).lo,0,n-1)),c?i=Rn(Vo(t,o.axis,s).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var ble={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){n3(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:a,indexAxis:s}=i,l=e.getDatasetMeta(o),c=a||i.data;if(Vd([s,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const d=e.scales[l.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:f,count:p}=_le(l,c);const m=n.threshold||4*r;if(p<=m){g5(i);return}dt(a)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(y){this._data=y}}));let v;switch(n.algorithm){case"lttb":v=vle(c,f,p,r,n);break;case"min-max":v=yle(c,f,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=v})},destroy(e){n3(e)}};function wle(e,t,n){const r=e.segments,i=e.points,o=t.points,a=[];for(const s of r){let{start:l,end:c}=s;c=lT(l,c,i);const d=qx(n,i[l],i[c],s.loop);if(!t.segments){a.push({source:s,target:d,start:i[l],end:i[c]});continue}const f=X6(t,d);for(const p of f){const m=qx(n,o[p.start],o[p.end],p.loop),v=Q6(s,i,m);for(const y of v)a.push({source:y,target:p,start:{[n]:r3(d,m,"start",Math.max)},end:{[n]:r3(d,m,"end",Math.min)}})}}return a}function qx(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Br(i),o=Br(o)),{property:e,start:i,end:o}}function xle(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:a,end:s})=>{s=lT(a,s,i);const l=i[a],c=i[s];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 lT(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function r3(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function v5(e,t){let n=[],r=!1;return Dt(e)?(r=!0,n=e):n=xle(e,t),n.length?new Ba({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function i3(e){return e&&e.fill!==!1}function Sle(e,t,n){let r=e[t].fill;const i=[t];let o;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!tn(r))return r;if(o=e[r],!o)return!1;if(o.visible)return r;i.push(r),r=o.fill}return!1}function Ele(e,t,n){const r=kle(e);if(nt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return tn(i)&&Math.floor(i)===i?Tle(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Tle(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function Ole(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:nt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function Cle(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:nt(e)?r=e.value:r=t.getBaseValue(),r}function kle(e){const t=e.options,n=t.fill;let r=Ke(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Ple(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,a=r.points,s=jle(t,n);s.push(v5({x:null,y:t.bottom},r));for(let l=0;l=0;--a){const s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&S1(e.ctx,s,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;i3(o)&&S1(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!i3(r)||n.drawTime!=="beforeDatasetDraw"||S1(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const l3=(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)}},Ble=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class c3 extends pa{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=Pt(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=Sn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=l3(r,o);let c,d;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,o,s,l)+10):(d=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=i+s;let f=t;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-d;return this.legendItems.forEach((v,y)=>{const x=r+n/2+o.measureText(v.text).width;(y===0||c[c.length-1]+x+2*s>a)&&(f+=d,c[c.length-(y>0?0:1)]=0,m+=d,p++),l[y]={left:0,top:m,row:p,width:x,height:i},c[c.length-1]+=x+s}),f}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=s,p=0,m=0,v=0,y=0;return this.legendItems.forEach((x,_)=>{const{itemWidth:w,itemHeight:S}=zle(r,n,o,x,i);_>0&&m+S+2*s>d&&(f+=p+s,c.push({width:p,height:m}),v+=p+s,y++,p=m=0),l[_]={left:v,top:m,col:y,width:w,height:S},p=Math.max(p,w),m+=S+s}),f+=p,c.push({width:p,height:m}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=Xc(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=ir(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=ir(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=ir(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=ir(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.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;g0(t,this),this._draw(),v0(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=nn.color,l=Xc(t.rtl,this.left,this.width),c=Sn(a.font),{padding:d}=a,f=c.size,p=f/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:x}=l3(a,f),_=function(k,j,A){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const $=Ke(A.lineWidth,1);if(i.fillStyle=Ke(A.fillStyle,s),i.lineCap=Ke(A.lineCap,"butt"),i.lineDashOffset=Ke(A.lineDashOffset,0),i.lineJoin=Ke(A.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=Ke(A.strokeStyle,s),i.setLineDash(Ke(A.lineDash,[])),a.usePointStyle){const N={radius:y*Math.SQRT2/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:$},z=l.xPlus(k,v/2),W=j+p;$6(i,N,z,W,a.pointStyleWidth&&v)}else{const N=j+Math.max((f-y)/2,0),z=l.leftForLtr(k,v),W=ul(A.borderRadius);i.beginPath(),Object.values(W).some(X=>X!==0)?ph(i,{x:z,y:N,w:v,h:y,radius:W}):i.rect(z,N,v,y),i.fill(),$!==0&&i.stroke()}i.restore()},w=function(k,j,A){Tl(i,A.text,k,j+x/2,c,{strikethrough:A.hidden,textAlign:l.textAlign(A.textAlign)})},S=this.isHorizontal(),E=this._computeTitleHeight();S?m={x:ir(o,this.left+d,this.right-r[0]),y:this.top+d+E,line:0}:m={x:this.left+d,y:ir(o,this.top+E+d,this.bottom-n[0].height),line:0},q6(this.ctx,t.textDirection);const C=x+d;this.legendItems.forEach((k,j)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const A=i.measureText(k.text).width,$=l.textAlign(k.textAlign||(k.textAlign=a.textAlign)),N=v+p+A;let z=m.x,W=m.y;l.setWidth(this.width),S?j>0&&z+N+d>this.right&&(W=m.y+=C,m.line++,z=m.x=ir(o,this.left+d,this.right-r[m.line])):j>0&&W+C>this.bottom&&(z=m.x=z+n[m.line].width+d,m.line++,W=m.y=ir(o,this.top+E+d,this.bottom-n[m.line].height));const X=l.x(z);if(_(X,W,k),z=coe($,z+v+p,S?z+N:this.right,t.rtl),w(l.x(z),W,k),S)m.x+=N+d;else if(typeof k.text!="string"){const G=c.lineHeight;m.y+=_5(k,G)+d}else m.y+=C}),K6(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Sn(n.font),i=ur(n.padding);if(!n.display)return;const o=Xc(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let d,f=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),d=this.top+c,f=ir(t.align,f,this.right-p);else{const v=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);d=c+ir(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const m=ir(s,f,f+p);a.textAlign=o.textAlign(eT(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Tl(a,n.text,m,d,r)}_computeTitleHeight(){const t=this.options.title,n=Sn(t.font),r=ur(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(zo(t,this.left,this.right)&&zo(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function Hle(e,t,n){let r=e;return typeof t.text!="string"&&(r=_5(t,n)),r}function _5(e,t){const n=e.text?e.text.length:0;return t*n}function Wle(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Yle={id:"legend",_element:c3,start(e,t,n){const r=e.legend=new c3({ctx:e.ctx,options:n,chart:e});sr.configure(e,r,n),sr.addBox(e,r)},stop(e){sr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;sr.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:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=ur(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:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||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 cT extends pa{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=Dt(r.text)?r.text.length:1;this._padding=ur(r.padding);const o=i*Sn(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:a}=this,s=a.align;let l=0,c,d,f;return this.isHorizontal()?(d=ir(s,r,o),f=n+t,c=o-r):(a.position==="left"?(d=r+t,f=ir(s,i,n),l=Bt*-.5):(d=o-t,f=ir(s,n,i),l=Bt*.5),c=i-n),{titleX:d,titleY:f,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Sn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:s,rotation:l}=this._drawArgs(i);Tl(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:l,textAlign:eT(n.align),textBaseline:"middle",translation:[o,a]})}}function Gle(e,t){const n=new cT({ctx:e.ctx,options:t,chart:e});sr.configure(e,n,t),sr.addBox(e,n),e.titleBlock=n}var qle={id:"title",_element:cT,start(e,t,n){Gle(e,n)},stop(e){const t=e.titleBlock;sr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;sr.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 km=new WeakMap;var Kle={id:"subtitle",start(e,t,n){const r=new cT({ctx:e.ctx,options:n,chart:e});sr.configure(e,r,n),sr.addBox(e,r),km.set(e,r)},stop(e){sr.removeBox(e,km.get(e)),km.delete(e)},beforeUpdate(e,t,n){const r=km.get(e);sr.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 xf={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 Zle(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function u3(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Sn(t.bodyFont),c=Sn(t.titleFont),d=Sn(t.footerFont),f=o.length,p=i.length,m=r.length,v=ur(t.padding);let y=v.height,x=0,_=r.reduce((E,C)=>E+C.before.length+C.lines.length+C.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,f&&(y+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),_){const E=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=m*E+(_-m)*l.lineHeight+(_-1)*t.bodySpacing}p&&(y+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let w=0;const S=function(E){x=Math.max(x,n.measureText(E).width+w)};return n.save(),n.font=c.string,wt(e.title,S),n.font=l.string,wt(e.beforeBody.concat(e.afterBody),S),w=t.displayColors?a+2+t.boxPadding:0,wt(r,E=>{wt(E.before,S),wt(E.lines,S),wt(E.after,S)}),w=0,n.font=d.string,wt(e.footer,S),n.restore(),x+=v.width,{width:x,height:y}}function Qle(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function Xle(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function Jle(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),Xle(c,e,t,n)&&(c="center"),c}function d3(e,t,n){const r=n.yAlign||t.yAlign||Qle(e,n);return{xAlign:n.xAlign||t.xAlign||Jle(e,t,n,r),yAlign:r}}function ece(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function tce(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function f3(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:m}=ul(a);let v=ece(t,s);const y=tce(t,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(d,p)+i:s==="right"&&(v+=Math.max(f,m)+i),{x:Rn(v,0,r.width-t.width),y:Rn(y,0,r.height-t.height)}}function Pm(e,t,n){const r=ur(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function h3(e){return ro([],Ro(e))}function nce(e,t,n){return xs(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function p3(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const b5={beforeTitle:Mo,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"?b5[t].call(n,r):i}class Kx extends pa{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 J6(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=nce(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Tr(r,"beforeTitle",this,t),o=Tr(r,"title",this,t),a=Tr(r,"afterTitle",this,t);let s=[];return s=ro(s,Ro(i)),s=ro(s,Ro(o)),s=ro(s,Ro(a)),s}getBeforeBody(t,n){return h3(Tr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return wt(t,o=>{const a={before:[],lines:[],after:[]},s=p3(r,o);ro(a.before,Ro(Tr(s,"beforeLabel",this,o))),ro(a.lines,Tr(s,"label",this,o)),ro(a.after,Ro(Tr(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return h3(Tr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Tr(r,"beforeFooter",this,t),o=Tr(r,"footer",this,t),a=Tr(r,"afterFooter",this,t);let s=[];return s=ro(s,Ro(i)),s=ro(s,Ro(o)),s=ro(s,Ro(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;lt.filter(d,f,p,r))),t.itemSort&&(s=s.sort((d,f)=>t.itemSort(d,f,r))),wt(s,d=>{const f=p3(t.callbacks,d);i.push(Tr(f,"labelColor",this,d)),o.push(Tr(f,"labelPointStyle",this,d)),a.push(Tr(f,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=xf[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=u3(this,r),c=Object.assign({},s,l),d=d3(this.chart,r,c),f=f3(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,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:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:f}=ul(s),{x:p,y:m}=t,{width:v,height:y}=n;let x,_,w,S,E,C;return o==="center"?(E=m+y/2,i==="left"?(x=p,_=x-a,S=E+a,C=E-a):(x=p+v,_=x+a,S=E-a,C=E+a),w=x):(i==="left"?_=p+Math.max(l,d)+a:i==="right"?_=p+v-Math.max(c,f)-a:_=this.caretX,o==="top"?(S=m,E=S-a,x=_-a,w=_+a):(S=m+y,E=S+a,x=_+a,w=_-a),C=S),{x1:x,x2:_,x3:w,y1:S,y2:E,y3:C}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=Xc(r.rtl,this.x,this.width);for(t.x=Pm(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Sn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;lw!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,ph(t,{x:y,y:v,w:c,h:l,radius:_}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),ph(t,{x,y:v+1,w:c-2,h:l-2,radius:_}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,v,c,l),t.strokeRect(y,v,c,l),t.fillStyle=a.backgroundColor,t.fillRect(x,v+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:d}=r,f=Sn(r.bodyFont);let p=f.lineHeight,m=0;const v=Xc(r.rtl,this.x,this.width),y=function(A){n.fillText(A,v.x(t.x+m),t.y+p/2),t.y+=p+o},x=v.textAlign(a);let _,w,S,E,C,k,j;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Pm(this,x,r),n.fillStyle=r.bodyColor,wt(this.beforeBody,y),m=s&&x!=="right"?a==="center"?c/2+d:c+2+d: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 a=xf[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=u3(this,t),l=Object.assign({},a,this._size),c=d3(n,t,l),d=f3(t,l,c,n);(i._to!==d.x||o._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_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 a=ur(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),q6(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),K6(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!Vv(r,i),a=this._positionChanged(i,n);(o||a)&&(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||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!Vv(a,o)||s;return l&&(this._active=a,(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 a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=xf[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}Te(Kx,"positioners",xf);var rce={id:"tooltip",_element:Kx,positioners:xf,afterInit(e,t,n){n&&(e.tooltip=new Kx({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:b5},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"]},ice=Object.freeze({__proto__:null,Colors:gle,Decimation:ble,Filler:Ule,Legend:Yle,SubTitle:Kle,Title:qle,Tooltip:rce});const oce=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function ace(e,t,n,r){const i=e.indexOf(t);if(i===-1)return oce(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const sce=(e,t)=>e===null?null:Rn(Math.round(e),0,t);function w5(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}}Te(Zx,"id","category"),Te(Zx,"defaults",{ticks:{callback:w5}});function lce(e,t){const n=[],{bounds:r,step:i,min:o,max:a,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:f}=e,p=i||1,m=c-1,{min:v,max:y}=t,x=!dt(o),_=!dt(a),w=!dt(l),S=(y-v)/(d+1);let E=cL((y-v)/m/p)*p,C,k,j,A;if(E<1e-14&&!x&&!_)return[{value:v},{value:y}];A=Math.ceil(y/E)-Math.floor(v/E),A>m&&(E=cL(A*E/m/p)*p),dt(s)||(C=Math.pow(10,s),E=Math.ceil(E*C)/C),r==="ticks"?(k=Math.floor(v/E)*E,j=Math.ceil(y/E)*E):(k=v,j=y),x&&_&&i&&noe((a-o)/i,E/1e3)?(A=Math.round(Math.min((a-o)/E,c)),E=(a-o)/A,k=o,j=a):w?(k=x?o:k,j=_?a:j,A=l-1,E=(j-k)/A):(A=(j-k)/E,gf(A,Math.round(A),E/1e3)?A=Math.round(A):A=Math.ceil(A));const $=Math.max(uL(E),uL(k));C=Math.pow(10,dt(s)?$:s),k=Math.round(k*C)/C,j=Math.round(j*C)/C;let N=0;for(x&&(f&&k!==o?(n.push({value:o}),ka)break;n.push({value:z})}return _&&f&&j!==a?n.length&&gf(n[n.length-1].value,a,m3(a,S,e))?n[n.length-1].value=a:n.push({value:a}):(!_||j===a)&&n.push({value:j}),n}function m3(e,t,{horizontal:n,minRotation:r}){const i=Bi(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class Zv extends $l{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return dt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=yo(i),c=yo(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(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,a=lce(i,o);return t.bounds==="ticks"&&j6(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}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 Xh(t,this.chart.options.locale,this.options.ticks.format)}}class Qx extends Zv{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=tn(t)?t:0,this.max=tn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Bi(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}}Te(Qx,"id","linear"),Te(Qx,"defaults",{ticks:{callback:m0.formatters.numeric}});const gh=e=>Math.floor($a(e)),Rs=(e,t)=>Math.pow(10,gh(e)+t);function g3(e){return e/Math.pow(10,gh(e))===1}function v3(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function cce(e,t){const n=t-e;let r=gh(n);for(;v3(e,t,r)>10;)r++;for(;v3(e,t,r)<10;)r--;return Math.min(r,gh(e))}function uce(e,{min:t,max:n}){t=$r(e.min,t);const r=[],i=gh(t);let o=cce(t,n),a=o<0?Math.pow(10,Math.abs(o)):1;const s=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*a)/a,d=Math.floor((t-l)/s/10)*s*10;let f=Math.floor((c-d)/Math.pow(10,o)),p=$r(e.min,Math.round((l+d+f*Math.pow(10,o))*a)/a);for(;p=10?f=f<15?15:20:f++,f>=20&&(o++,f=2,a=o>=0?1:a),p=Math.round((l+d+f*Math.pow(10,o))*a)/a;const m=$r(e.max,p);return r.push({value:m,major:g3(m),significand:f}),r}class Xx extends $l{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Zv.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return tn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=tn(t)?Math.max(0,t):null,this.max=tn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!tn(this._userMin)&&(this.min=t===Rs(this.min,0)?Rs(this.min,-1):Rs(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=s=>r=t?r:s,a=s=>i=n?i:s;r===i&&(r<=0?(o(1),a(10)):(o(Rs(r,-1)),a(Rs(i,1)))),r<=0&&o(Rs(i,-1)),i<=0&&a(Rs(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=uce(n,this);return t.bounds==="ticks"&&j6(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":Xh(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=$a(t),this._valueRange=$a(this.max)-$a(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:($a(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Te(Xx,"id","logarithmic"),Te(Xx,"defaults",{ticks:{callback:m0.formatters.logarithmic,major:{enabled:!0}}});function Jx(e){const t=e.ticks;if(t.display&&e.display){const n=ur(t.backdropPadding);return Ke(t.font&&t.font.size,nn.font.size)+n.height}return 0}function dce(e,t,n){return n=Dt(n)?n:[n],{w:_oe(e,t.string,n),h:n.length*t.lineHeight}}function y3(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 fce(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,a=e.options.pointLabels,s=a.centerPointLabels?Bt/o:0;for(let l=0;lt.r&&(s=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(l=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function pce(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:o,padding:a,size:s}=n,l=e.getPointPosition(t,r+i+a,o),c=Math.round(XE(Br(l.angle+cn))),d=_ce(l.y,s.h,c),f=vce(c),p=yce(l.x,s.w,f);return{visible:!0,x:l.x,y:d,textAlign:f,left:p,top:d,right:p+s.w,bottom:d+s.h}}function mce(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:o}=e;return!(Ho({x:n,y:r},t)||Ho({x:n,y:o},t)||Ho({x:i,y:r},t)||Ho({x:i,y:o},t))}function gce(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:Jx(o)/2,additionalAngle:a?Bt/i:0};let c;for(let d=0;d270||n<90)&&(e-=t),e}function bce(e,t,n){const{left:r,top:i,right:o,bottom:a}=n,{backdropColor:s}=t;if(!dt(s)){const l=ul(t.borderRadius),c=ur(t.backdropPadding);e.fillStyle=s;const d=r-c.left,f=i-c.top,p=o-r+c.width,m=a-i+c.height;Object.values(l).some(v=>v!==0)?(e.beginPath(),ph(e,{x:d,y:f,w:p,h:m,radius:l}),e.fill()):e.fillRect(d,f,p,m)}}function wce(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const a=r.setContext(e.getPointLabelContext(i));bce(n,a,o);const s=Sn(a.font),{x:l,y:c,textAlign:d}=o;Tl(n,e._pointLabels[i],l,c+s.lineHeight/2,s,{color:a.color,textAlign:d,textBaseline:"middle"})}}function x5(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,$t);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let a=1;a{const i=Pt(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?fce(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=$t/(this._pointLabels.length||1),r=this.options.startAngle||0;return Br(t*n+Bi(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(f!==0){l=this.getDistanceFromCenterForValue(d.value);const p=this.getContext(f),m=i.setContext(p),v=o.setContext(p);xce(this,m,l,a,v)}}),r.display){for(t.save(),s=a-1;s>=0;s--){const d=r.setContext(this.getPointLabelContext(s)),{color:f,lineWidth:p}=d;!p||!f||(t.lineWidth=p,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(s,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,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),d=Sn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(s.label).width,t.fillStyle=c.backdropColor;const f=ur(c.backdropPadding);t.fillRect(-a/2-f.left,-o-d.size/2-f.top,a+f.width,d.size+f.height)}Tl(t,s.label,0,-o,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}Te(Yd,"id","radialLinear"),Te(Yd,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:m0.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),Te(Yd,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Te(Yd,"descriptors",{angleLines:{_fallback:"grid"}});const b0={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}},Cr=Object.keys(b0);function _3(e,t){return e-t}function b3(e,t){if(dt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),tn(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Su(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function w3(e,t,n,r){const i=Cr.length;for(let o=Cr.indexOf(e);o=Cr.indexOf(n);o--){const a=Cr[o];if(b0[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return Cr[n?Cr.indexOf(n):0]}function Tce(e){for(let t=Cr.indexOf(e)+1,n=Cr.length;t=t?n[r]:n[i];e[o]=!0}}function Oce(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function S3(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a+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 a=t.length<3?.5:.25;n=Rn(n,0,a),r=Rn(r,0,a),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,a=o.unit||w3(o.minUnit,n,r,this._getLabelCapacity(n)),s=Ke(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Su(l)||l===!0,d={};let f=n,p,m;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(p=f,m=0;p+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,i=this._unit,o=n||r[i];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Pt(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&s[l],f=c&&s[c],p=r[n],m=c&&f&&p&&p.major;return this._adapter.format(t,i||(m?f:d))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?s: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}=Vo(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Vo(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class e2 extends vh{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=jm(n,this.min),this._tableRange=jm(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,d;for(a=0,s=t.length;a=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;ai-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(jm(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return jm(this._table,r*this._tableRange+this._minPos,!0)}}Te(e2,"id","timeseries"),Te(e2,"defaults",vh.defaults);var Cce=Object.freeze({__proto__:null,CategoryScale:Zx,LinearScale:Qx,LogarithmicScale:Xx,RadialLinearScale:Yd,TimeScale:vh,TimeSeriesScale:e2});const kce=[Rae,ule,ice,Cce];_0.register(...kce);var qi,xo=".",S5="function",E5="string",T5="__global__",uT="Provider",Pce=0,dT=Array.prototype.slice,jce=function(e,t){var n=e[t];if(n===void 0&&qi.config.strict)throw new Error("Bottle was unable to resolve a service. `"+t+"` is undefined.");return n},w0=function(e){var t;return this.nested[e]||(t=qi.pop(),this.nested[e]=t,this.factory(e,function(){return t.container})),this.nested[e]},O5=function(e){return e.split(xo).reduce(jce,this)},Lce=function(e,t,n,r){var i={configurable:!0,enumerable:!0};return e.length?i.get=function(){var o=0,a=function(s){if(s)throw s;e[o]&&e[o++](n,a)};return a(),n}:(i.value=n,i.writable=!0),Object.defineProperty(r,t,i),r[t]},Mce=function(e,t){var n,r;return typeof e===S5&&(t=e,e=T5),n=e.split(xo),r=n.shift(),n.length?w0.call(this,r).middleware(n.join(xo),t):(this.middlewares[r]||(this.middlewares[r]=[]),this.middlewares[r].push(t)),this},Ace=function(e,t){return t(e)},E3=function(e,t){return(e[t]||[]).concat(e.__global__||[])},Rce=function(e,t){var n,r,i,o,a;return this.id,i=this.container,o=this.decorators,a=this.middlewares,n=e+uT,r=Object.create(null),r[n]={configurable:!0,enumerable:!0,get:function(){var s=new t;return delete i[n],i[n]=s,s}},r[e]={configurable:!0,enumerable:!0,get:function(){var s=i[n],l;return s&&(l=E3(o,e).reduce(Ace,s.$get(i)),delete i[n],delete i[e]),l===void 0?l:Lce(E3(a,e),e,l,i)}},Object.defineProperties(i,r),this},C5=function(e,t){var n,r;return n=e.split(xo),this.providerMap[e]&&n.length===1&&!this.container[e+uT]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=t,this.providerMap[e]=!0,r=n.shift(),n.length?(w0.call(this,r).provider(n.join(xo),t),this):Rce.call(this,r,t))},fT=function(e,t){return C5.call(this,e,function(){this.$get=t})},k5=function(e,t,n){var r=arguments.length>3?dT.call(arguments,3):[],i=this;return fT.call(this,e,function(){var o=t,a=r.map(O5,i.container);return n?new(t.bind.apply(t,[null].concat(a))):o.apply(null,a)})},Nce=function(e,t){return k5.apply(this,[e,t,!0].concat(dT.call(arguments,2)))},Dce=function(e,t){return k5.apply(this,[e,t,!1].concat(dT.call(arguments,2)))},P5=function(e,t){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:t,writable:!0})},j5=function(e,t){var n=e[t];return n||(n={},P5.call(e,t,n)),n},Ice=function(e,t){var n;return n=e.split(xo),e=n.pop(),P5.call(n.reduce(j5,this.container),e,t),this},Fce=function(e,t){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:t,writable:!1})},$ce=function(e,t){var n=e.split(xo);return e=n.pop(),Fce.call(n.reduce(j5,this.container),e,t),this},L5=function(e,t){var n,r;return typeof e===S5&&(t=e,e=T5),n=e.split(xo),r=n.shift(),n.length?w0.call(this,r).decorator(n.join(xo),t):(this.decorators[r]||(this.decorators[r]=[]),this.decorators[r].push(t)),this},Uce=function(e){return this.deferred.push(e),this},Bce=function(e){return(e||[]).map(O5,this.container)},zce=function(e,t){return fT.call(this,e,function(n){return{instance:t.bind(t,n)}})},Vce=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},hT=function(e){return Object.keys(e||this.container||{}).filter(Vce)},Qv={},Hce=function(e){var t;return typeof e===E5?(t=Qv[e],t||(Qv[e]=t=new qi,t.constant("BOTTLE_NAME",e)),t):new qi},Wce=function(e){typeof e===E5?delete Qv[e]:Qv={}},M5=function(e){var t=e.$value===void 0?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,t].concat(e.$inject||[]))},T3=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+uT]},Yce=function(e){var t=this.originalProviders,n=Array.isArray(e);Object.keys(this.originalProviders).forEach(function(r){if(!(n&&e.indexOf(r)===-1)){var i=r.split(xo);i.length>1&&i.forEach(T3,w0.call(this,i[0])),T3.call(this,r),this.provider(r,t[r])}},this)},Gce=function(e){return this.deferred.forEach(function(t){t(e)}),this};qi=function e(t){if(!(this instanceof e))return e.pop(t);this.id=Pce++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:L5.bind(this),$register:M5.bind(this),$list:hT.bind(this)}};qi.prototype={constant:$ce,decorator:L5,defer:Uce,digest:Bce,factory:fT,instanceFactory:zce,list:hT,middleware:Mce,provider:C5,resetProviders:Yce,register:M5,resolve:Gce,service:Nce,serviceFactory:Dce,value:Ice};qi.pop=Hce;qi.clear=Wce;qi.list=hT;qi.config={strict:!1};const qce=qi;var Kce=function(){return!0};const A5=Kce;function At(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ht(e){return function t(n){return arguments.length===0||At(n)?t:e.apply(this,arguments)}}function Tt(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return At(n)?t:Ht(function(i){return e(n,i)});default:return At(n)&&At(r)?t:At(n)?Ht(function(i){return e(i,r)}):At(r)?Ht(function(i){return e(n,i)}):e(n,r)}}}function ep(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,i){return t.apply(this,arguments)};case 4:return function(n,r,i,o){return t.apply(this,arguments)};case 5:return function(n,r,i,o,a){return t.apply(this,arguments)};case 6:return function(n,r,i,o,a,s){return t.apply(this,arguments)};case 7:return function(n,r,i,o,a,s,l){return t.apply(this,arguments)};case 8:return function(n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 9:return function(n,r,i,o,a,s,l,c,d){return t.apply(this,arguments)};case 10:return function(n,r,i,o,a,s,l,c,d,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function x0(e,t,n){return function(){for(var r=[],i=0,o=e,a=0;a=arguments.length)?s=t[a]:(s=arguments[i],i+=1),r[a]=s,At(s)||(o-=1),a+=1}return o<=0?n.apply(this,r):ep(o,x0(e,r,n))}}var Zce=Tt(function(e,t){return e===1?Ht(t):ep(e,x0(e,[],t))});const R5=Zce;function Ul(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return At(n)?t:Tt(function(o,a){return e(n,o,a)});case 2:return At(n)&&At(r)?t:At(n)?Tt(function(o,a){return e(o,r,a)}):At(r)?Tt(function(o,a){return e(n,o,a)}):Ht(function(o){return e(n,r,o)});default:return At(n)&&At(r)&&At(i)?t:At(n)&&At(r)?Tt(function(o,a){return e(o,a,i)}):At(n)&&At(i)?Tt(function(o,a){return e(o,r,a)}):At(r)&&At(i)?Tt(function(o,a){return e(n,o,a)}):At(n)?Ht(function(o){return e(o,r,i)}):At(r)?Ht(function(o){return e(n,o,i)}):At(i)?Ht(function(o){return e(n,r,o)}):e(n,r,i)}}}const tp=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Qce(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function pT(e,t,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!tp(i)){for(var o=0;oe?t:e});const N5=Xce;function _g(e,t){for(var n=0,r=t.length,i=Array(r);n0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1});const D5=Jce;var eue=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 tue(e){return new eue(e)}var nue=Tt(function(e,t){return ep(e.length,function(){return e.apply(t,arguments)})});const rue=nue;function iue(e,t,n){for(var r=0,i=n.length;r=0;)t=j3[n],pi(t,e)&&!uue(r,t)&&(r[r.length]=t),n-=1;return r});const So=due;var fue=Tt(pT(["fantasy-land/map","map"],sue,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return R5(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return E0(function(n,r){return n[r]=e(t[r]),n},{},So(t));default:return _g(e,t)}}));const F5=fue,t2=Number.isInteger||function(e){return e<<0===e};var hue=Tt(function(e,t){var n=e<0?t.length+e:e;return S0(t)?t.charAt(n):t[n]});const $5=hue;var pue=Tt(function(e,t){return e.map(function(n){for(var r=t,i=0,o;i1){var o=!Bl(r)&&pi(i,r)?r[i]:t2(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,o)}if(t2(i)&&tp(r)){var a=[].concat(r);return a[i]=n,a}else return Sue(i,n,r)});const dc=Tue;function Oue(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}function Cue(e){return function t(n){for(var r,i,o,a=[],s=0,l=n.length;s=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:R3(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:R3(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 a=So(e);if(a.length!==So(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(o=a.length-1;o>=0;){var c=a[o];if(!(pi(c,t)&&vT(t[c],e[c],s,l)))return!1;o-=1}return!0}var Uue=Tt(function(e,t){return vT(e,t,[],[])});const yT=Uue;function Bue(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 O1(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 kd=function(e){return(e<10?"0":"")+e},Vue=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+kd(e.getUTCMonth()+1)+"-"+kd(e.getUTCDate())+"T"+kd(e.getUTCHours())+":"+kd(e.getUTCMinutes())+":"+kd(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const Hue=Vue;function Wue(e){return function(){return!e.apply(this,arguments)}}function Yue(e,t){for(var n=0,r=t.length,i=[];n":H5(o,a)},r=function(o,a){return _g(function(s){return O1(s)+": "+n(o[s])},a.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_g(n,e).join(", ")+"))";case"[object Array]":return"["+_g(n,e).concat(r(e,_T(function(o){return/^\d+$/.test(o)},So(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):O1(Hue(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())+")":O1(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,So(e)).join(", ")+"}"}}var Xue=Ht(function(e){return H5(e,[])});const Jue=Xue;var ede=Ht(function(e){var t=U5(N5,0,F5(function(n){return n[0].length},e));return ep(t,function(){for(var n=0;no?1:0})});const jde=Pde;var Lde=Tt(function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r{const[i,,o,a]=On(),{domains:s}=n,l=Pi(t),c=()=>r("");return U.useEffect(()=>{e()},[]),i?g.jsxs(c0,{children:[g.jsx(xl,{value:t??"",placeholder:"Domain",onChange:d=>r(d.target.value)}),g.jsx(_t,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:Xn(c,a),children:g.jsx(Ae,{icon:JW})}),g.jsx(Ir,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(ha,{text:l?"Domain":`Domain: ${t}`,className:l?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[s.map(({domain:d,isDefault:f})=>g.jsxs(Ue,{active:(t===d||f)&&l,onClick:()=>r(d),children:[d,f&&g.jsx("span",{className:"float-end text-muted",children:"default"})]},d)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{onClick:Xn(c,o),children:g.jsx("i",{children:"New domain"})})]})},Ide=e=>(e==null?void 0:e.type)===h0.INVALID_ARGUMENT||(e==null?void 0:e.type)===p0.INVALID_ARGUMENT,Fde=e=>(e==null?void 0:e.type)==="INVALID_SHORTCODE_DELETION"||(e==null?void 0:e.type)===h0.INVALID_SHORT_URL_DELETION||(e==null?void 0:e.type)===p0.INVALID_SHORT_URL_DELETION,$de=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),ma=e=>$de(e)?e:void 0,ra=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,Ide(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),Ude=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,I3=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Ude);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},F3=e=>e==="*"||e==="x"||e==="X",$3=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Bde=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],zde=(e,t)=>{if(F3(e)||F3(t))return 0;const[n,r]=Bde($3(e),$3(t));return n>r?1:n{for(let n=0;n{const n=I3(e),r=I3(t),i=n.pop(),o=r.pop(),a=U3(n,r);return a!==0?a:i&&o?U3(i.split("."),o.split(".")):i||o?i?-1:1:0},B3=(e,t,n)=>{Hde(n);const r=Vde(e,t);return Z5[n].includes(r)},Z5={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},z3=Object.keys(Z5),Hde=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(z3.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${z3.join("|")}`)},Wde=(e,{maxVersion:t,minVersion:n})=>{const r=!n||B3(e,n,">=");return(!t||B3(e,t,"<="))&&r},Q5={domainVisits:"3.1.0",excludeBotsOnShortUrls:"3.4.0",filterDisabledUrls:"3.4.0",deviceLongUrls:"3.5.0"};Object.freeze(Q5);const Mm=(e,t)=>t==="latest"||Wde(t,{minVersion:Q5[e]}),X5=e=>({domainVisits:Mm("domainVisits",e),excludeBotsOnShortUrls:Mm("excludeBotsOnShortUrls",e),filterDisabledUrls:Mm("filterDisabledUrls",e),deviceLongUrls:Mm("deviceLongUrls",e)}),Yde=e=>U.useMemo(()=>X5(e),[e]),J5=U.createContext(X5("0.0.0")),Gde=J5.Provider,np=e=>U.useContext(J5)[e],e8=U.createContext(""),qde=e8.Provider,zl=()=>U.useContext(e8),Sf=(e,t,n)=>Bl(n)?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Kde=(e,t)=>!e.domain&&t===L8?!0:e.domain===t,Zde=(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&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},t8="__",Qde=e=>e.replaceAll("/",t8),bg=e=>e.replaceAll(t8,"/");function Jr(e){"@babel/helpers - typeof";return Jr=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},Jr(e)}function Ye(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 Oe(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function je(e){Oe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Jr(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){Oe(2,arguments);var n=je(e),r=Ye(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Ti(e,t){Oe(2,arguments);var n=je(e),r=Ye(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 a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Xde(e,t){if(Oe(2,arguments),!t||Jr(t)!=="object")return new Date(NaN);var n=t.years?Ye(t.years):0,r=t.months?Ye(t.months):0,i=t.weeks?Ye(t.weeks):0,o=t.days?Ye(t.days):0,a=t.hours?Ye(t.hours):0,s=t.minutes?Ye(t.minutes):0,l=t.seconds?Ye(t.seconds):0,c=je(e),d=r||n?Ti(c,r+n*12):c,f=o||i?Vl(d,o+i*7):d,p=s+a*60,m=l+p*60,v=m*1e3,y=new Date(f.getTime()+v);return y}function xT(e,t){Oe(2,arguments);var n=je(e).getTime(),r=Ye(t);return new Date(n+r)}var Jde=36e5;function efe(e,t){Oe(2,arguments);var n=Ye(t);return xT(e,n*Jde)}var tfe={};function ga(){return tfe}function n8(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=ga(),f=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=je(e),m=p.getDay(),v=(m=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function rfe(e){Oe(1,arguments);var t=nfe(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=bh(n);return r}function Ou(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 qr(e){Oe(1,arguments);var t=je(e);return t.setHours(0,0,0,0),t}var ife=864e5;function wh(e,t){Oe(2,arguments);var n=qr(e),r=qr(t),i=n.getTime()-Ou(n),o=r.getTime()-Ou(r);return Math.round((i-o)/ife)}var ofe=6e4;function r2(e,t){Oe(2,arguments);var n=Ye(t);return xT(e,n*ofe)}function r8(e,t){Oe(2,arguments);var n=Ye(t),r=n*3;return Ti(e,r)}function ST(e,t){Oe(2,arguments);var n=Ye(t),r=n*7;return Vl(e,r)}function Cu(e,t){Oe(2,arguments);var n=Ye(t);return Ti(e,n*12)}function V3(e){Oe(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(Jr(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var i=je(r);(n===void 0||ni||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function wg(e,t){Oe(2,arguments);var n=je(e),r=je(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var ET=6e4,T0=36e5,afe=1e3;function sfe(e,t){Oe(2,arguments);var n=qr(e),r=qr(t);return n.getTime()===r.getTime()}function TT(e){return Oe(1,arguments),e instanceof Date||Jr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ey(e){if(Oe(1,arguments),!TT(e)&&typeof e!="number")return!1;var t=je(e);return!isNaN(Number(t))}function xh(e,t){Oe(2,arguments);var n=je(e),r=je(t),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Ic(e){Oe(1,arguments);var t=je(e),n=Math.floor(t.getMonth()/3)+1;return n}function ty(e,t){Oe(2,arguments);var n=je(e),r=je(t);return n.getFullYear()-r.getFullYear()}function W3(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 OT(e,t){Oe(2,arguments);var n=je(e),r=je(t),i=W3(n,r),o=Math.abs(wh(n,r));n.setDate(n.getDate()-i*o);var a=+(W3(n,r)===-i),s=i*(o-a);return s===0?0:s}function i8(e,t){return Oe(2,arguments),je(e).getTime()-je(t).getTime()}var Y3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},lfe="trunc";function CT(e){return e?Y3[e]:Y3[lfe]}function cfe(e,t,n){Oe(2,arguments);var r=i8(e,t)/T0;return CT(n==null?void 0:n.roundingMethod)(r)}function Ol(e){Oe(1,arguments);var t=je(e);return t.setHours(23,59,59,999),t}function o8(e){Oe(1,arguments);var t=je(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function ufe(e){Oe(1,arguments);var t=je(e);return Ol(t).getTime()===o8(t).getTime()}function ny(e,t){Oe(2,arguments);var n=je(e),r=je(t),i=wg(n,r),o=Math.abs(xh(n,r)),a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var s=wg(n,r)===-i;ufe(je(e))&&o===1&&wg(e,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function dfe(e,t,n){Oe(2,arguments);var r=i8(e,t)/1e3;return CT(n==null?void 0:n.roundingMethod)(r)}function ffe(e,t,n){Oe(2,arguments);var r=OT(e,t)/7;return CT(n==null?void 0:n.roundingMethod)(r)}function i2(e){Oe(1,arguments);var t=je(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function a8(e){Oe(1,arguments);var t=je(e);return t.setDate(1),t.setHours(0,0,0,0),t}function hfe(e){Oe(1,arguments);var t=je(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function s8(e){Oe(1,arguments);var t=je(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function pfe(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=ga(),f=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=je(e),m=p.getDay(),v=(m=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function yfe(e){Oe(1,arguments);var t=c8(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ku(n);return r}var _fe=6048e5;function u8(e){Oe(1,arguments);var t=je(e),n=ku(t).getTime()-yfe(t).getTime();return Math.round(n/_fe)+1}function Cl(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=ga(),f=Ye((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=je(e),m=p.getUTCDay(),v=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(f+1,0,m),v.setUTCHours(0,0,0,0);var y=Cl(v,t),x=new Date(0);x.setUTCFullYear(f,0,m),x.setUTCHours(0,0,0,0);var _=Cl(x,t);return d.getTime()>=y.getTime()?f+1:d.getTime()>=_.getTime()?f:f-1}function bfe(e,t){var n,r,i,o,a,s,l,c;Oe(1,arguments);var d=ga(),f=Ye((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=kT(e,t),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var v=Cl(m,t);return v}var wfe=6048e5;function d8(e,t){Oe(1,arguments);var n=je(e),r=Cl(n,t).getTime()-bfe(n,t).getTime();return Math.round(r/wfe)+1}function tt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return tt(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):tt(n+1,2)},d:function(e,t){return tt(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return tt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return tt(e.getUTCHours(),t.length)},m:function(e,t){return tt(e.getUTCMinutes(),t.length)},s:function(e,t){return tt(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return tt(i,t.length)}};const Sa=xfe;var fc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Sfe={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Sa.y(e,t)},Y:function(e,t,n,r){var i=kT(e,r),o=i>0?i:1-i;if(t==="YY"){var a=o%100;return tt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):tt(o,t.length)},R:function(e,t){var n=c8(e);return tt(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return tt(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return tt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return tt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Sa.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return tt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=d8(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):tt(i,t.length)},I:function(e,t,n){var r=u8(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):tt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Sa.d(e,t)},D:function(e,t,n){var r=vfe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):tt(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return tt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return tt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return tt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),i;switch(r===12?i=fc.noon:r===0?i=fc.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),i;switch(r>=17?i=fc.evening:r>=12?i=fc.afternoon:r>=4?i=fc.morning:i=fc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Sa.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Sa.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Sa.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Sa.s(e,t)},S:function(e,t){return Sa.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return q3(o);case"XXXX":case"XX":return Ys(o);case"XXXXX":case"XXX":default:return Ys(o,":")}},x:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return q3(o);case"xxxx":case"xx":return Ys(o);case"xxxxx":case"xxx":default:return Ys(o,":")}},O:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+G3(o,":");case"OOOO":default:return"GMT"+Ys(o,":")}},z:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+G3(o,":");case"zzzz":default:return"GMT"+Ys(o,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return tt(o,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,o=i.getTime();return tt(o,t.length)}};function G3(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 a=t||"";return n+String(i)+a+tt(o,2)}function q3(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tt(Math.abs(e)/60,2)}return Ys(e,t)}function Ys(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=tt(Math.floor(i/60),2),a=tt(i%60,2);return r+o+n+a}const Efe=Sfe;var K3=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},f8=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Tfe=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return K3(e,t);var o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",K3(r,t)).replace("{{time}}",f8(i,t))},Ofe={p:f8,P:Tfe};const o2=Ofe;var Cfe=["D","DD"],kfe=["YY","YYYY"];function h8(e){return Cfe.indexOf(e)!==-1}function p8(e){return kfe.indexOf(e)!==-1}function ry(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 Pfe={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"}},jfe=function(e,t,n){var r,i=Pfe[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const Lfe=jfe;function C1(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 Mfe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Afe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Rfe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nfe={date:C1({formats:Mfe,defaultWidth:"full"}),time:C1({formats:Afe,defaultWidth:"full"}),dateTime:C1({formats:Rfe,defaultWidth:"full"})};const Dfe=Nfe;var Ife={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ffe=function(e,t,n,r){return Ife[e]};const $fe=Ffe;function Pd(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,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var Ufe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Bfe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zfe={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"]},Vfe={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"]},Hfe={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"}},Wfe={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"}},Yfe=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Gfe={ordinalNumber:Yfe,era:Pd({values:Ufe,defaultWidth:"wide"}),quarter:Pd({values:Bfe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Pd({values:zfe,defaultWidth:"wide"}),day:Pd({values:Vfe,defaultWidth:"wide"}),dayPeriod:Pd({values:Hfe,defaultWidth:"wide",formattingValues:Wfe,defaultFormattingWidth:"wide"})};const qfe=Gfe;function jd(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 a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Zfe(s,function(f){return f.test(a)}):Kfe(s,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function Kfe(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Zfe(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 a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var Xfe=/^(\d+)(th|st|nd|rd)?/i,Jfe=/\d+/i,ehe={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},the={any:[/^b/i,/^(a|c)/i]},nhe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rhe={any:[/1/i,/2/i,/3/i,/4/i]},ihe={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},ohe={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]},ahe={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},she={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]},lhe={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},che={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}},uhe={ordinalNumber:Qfe({matchPattern:Xfe,parsePattern:Jfe,valueCallback:function(e){return parseInt(e,10)}}),era:jd({matchPatterns:ehe,defaultMatchWidth:"wide",parsePatterns:the,defaultParseWidth:"any"}),quarter:jd({matchPatterns:nhe,defaultMatchWidth:"wide",parsePatterns:rhe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:jd({matchPatterns:ihe,defaultMatchWidth:"wide",parsePatterns:ohe,defaultParseWidth:"any"}),day:jd({matchPatterns:ahe,defaultMatchWidth:"wide",parsePatterns:she,defaultParseWidth:"any"}),dayPeriod:jd({matchPatterns:lhe,defaultMatchWidth:"any",parsePatterns:che,defaultParseWidth:"any"})};const dhe=uhe;var fhe={code:"en-US",formatDistance:Lfe,formatLong:Dfe,formatRelative:$fe,localize:qfe,match:dhe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const PT=fhe;var hhe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,phe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mhe=/^'([^]*?)'?$/,ghe=/''/g,vhe=/[a-zA-Z]/;function Pu(e,t,n){var r,i,o,a,s,l,c,d,f,p,m,v,y,x,_,w,S,E;Oe(2,arguments);var C=String(t),k=ga(),j=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:PT,A=Ye((o=(a=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Ye((m=(v=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(_=n.locale)===null||_===void 0||(w=_.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&y!==void 0?y:k.weekStartsOn)!==null&&v!==void 0?v:(S=k.locale)===null||S===void 0||(E=S.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!j.localize)throw new RangeError("locale must contain localize property");if(!j.formatLong)throw new RangeError("locale must contain formatLong property");var N=je(e);if(!ey(N))throw new RangeError("Invalid time value");var z=Ou(N),W=l8(N,z),X={firstWeekContainsDate:A,weekStartsOn:$,locale:j,_originalDate:N},G=C.match(phe).map(function(Z){var te=Z[0];if(te==="p"||te==="P"){var le=o2[te];return le(Z,j.formatLong)}return Z}).join("").match(hhe).map(function(Z){if(Z==="''")return"'";var te=Z[0];if(te==="'")return yhe(Z);var le=Efe[te];if(le)return!(n!=null&&n.useAdditionalWeekYearTokens)&&p8(Z)&&ry(Z,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&h8(Z)&&ry(Z,t,String(e)),le(W,Z,j.localize,X);if(te.match(vhe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");return Z}).join("");return G}function yhe(e){var t=e.match(mhe);return t?t[1].replace(ghe,"'"):e}function jT(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 _he(e){return jT({},e)}var Z3=1440,bhe=2520,k1=43200,whe=86400;function xhe(e,t,n){var r,i;Oe(2,arguments);var o=ga(),a=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:PT;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=wg(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var l=jT(_he(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:s}),c,d;s>0?(c=je(t),d=je(e)):(c=je(e),d=je(t));var f=dfe(d,c),p=(Ou(d)-Ou(c))/1e3,m=Math.round((f-p)/60),v;if(m<2)return n!=null&&n.includeSeconds?f<5?a.formatDistance("lessThanXSeconds",5,l):f<10?a.formatDistance("lessThanXSeconds",10,l):f<20?a.formatDistance("lessThanXSeconds",20,l):f<40?a.formatDistance("halfAMinute",0,l):f<60?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",1,l):m===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",m,l);if(m<45)return a.formatDistance("xMinutes",m,l);if(m<90)return a.formatDistance("aboutXHours",1,l);if(mr.getTime()}function mi(e,t){Oe(2,arguments);var n=je(e),r=je(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},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,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a2(e,t){return a2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},a2(e,t)}function ft(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a2(e,t)}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oy(e)}function jhe(){if(typeof Reflect>"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 Lhe(e,t){if(t&&(Jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}function ht(e){var t=jhe();return function(){var n=oy(e),r;if(t){var i=oy(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Lhe(this,r)}}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mhe(e,t){if(Jr(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jr(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g8(e){var t=Mhe(e,"string");return Jr(t)==="symbol"?t:String(t)}function eM(e,t){for(var n=0;n0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var o=r+50,a=Math.floor(o/100)*100,s=e>=o%100;i=e+a-(s?100:0)}return n?i:1-i}function w8(e){return e%400===0||e%4===0&&e%100!==0}var Ihe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0}},{key:"set",value:function(r,i,o){var a=r.getUTCFullYear();if(o.isTwoDigitYear){var s=b8(o.year,a);return r.setUTCFullYear(s,0,1),r.setUTCHours(0,0,0,0),r}var l=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(l,0,1),r.setUTCHours(0,0,0,0),r}}]),n}(vt),Fhe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0}},{key:"set",value:function(r,i,o,a){var s=kT(r,a);if(o.isTwoDigitYear){var l=b8(o.year,s);return r.setUTCFullYear(l,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Cl(r,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return r.setUTCFullYear(c,0,a.firstWeekContainsDate),r.setUTCHours(0,0,0,0),Cl(r,a)}}]),n}(vt),$he=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(vt),zhe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=4}},{key:"set",value:function(r,i,o){return r.setUTCMonth((o-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),n}(vt),Vhe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(vt),Hhe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=11}},{key:"set",value:function(r,i,o){return r.setUTCMonth(o,1),r.setUTCHours(0,0,0,0),r}}]),n}(vt);function Whe(e,t,n){Oe(2,arguments);var r=je(e),i=Ye(t),o=d8(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}var Yhe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=53}},{key:"set",value:function(r,i,o,a){return Cl(Whe(r,o,a),a)}}]),n}(vt);function Ghe(e,t){Oe(2,arguments);var n=je(e),r=Ye(t),i=u8(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}var qhe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=53}},{key:"set",value:function(r,i,o){return ku(Ghe(r,o))}}]),n}(vt),Khe=[31,28,31,30,31,30,31,31,30,31,30,31],Zhe=[31,29,31,30,31,30,31,31,30,31,30,31],Qhe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=Zhe[s]:i>=1&&i<=Khe[s]}},{key:"set",value:function(r,i,o){return r.setUTCDate(o),r.setUTCHours(0,0,0,0),r}}]),n}(vt),Xhe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(r,i,o){return r.setUTCMonth(0,o),r.setUTCHours(0,0,0,0),r}}]),n}(vt);function MT(e,t,n){var r,i,o,a,s,l,c,d;Oe(2,arguments);var f=ga(),p=Ye((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&i!==void 0?i:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.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=je(e),v=Ye(t),y=m.getUTCDay(),x=v%7,_=(x+7)%7,w=(_=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=MT(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(vt),epe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=MT(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(vt),tpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=6}},{key:"set",value:function(r,i,o,a){return r=MT(r,o,a),r.setUTCHours(0,0,0,0),r}}]),n}(vt);function npe(e,t){Oe(2,arguments);var n=Ye(t);n%7===0&&(n=n-7);var r=1,i=je(e),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(r,i,o){return r=npe(r,o),r.setUTCHours(0,0,0,0),r}}]),n}(vt),ipe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=12}},{key:"set",value:function(r,i,o){var a=r.getUTCHours()>=12;return a&&o<12?r.setUTCHours(o+12,0,0,0):!a&&o===12?r.setUTCHours(0,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(vt),lpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=23}},{key:"set",value:function(r,i,o){return r.setUTCHours(o,0,0,0),r}}]),n}(vt),cpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=11}},{key:"set",value:function(r,i,o){var a=r.getUTCHours()>=12;return a&&o<12?r.setUTCHours(o+12,0,0,0):r.setUTCHours(o,0,0,0),r}}]),n}(vt),upe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&i<=24}},{key:"set",value:function(r,i,o){var a=o<=24?o%24:o;return r.setUTCHours(a,0,0,0),r}}]),n}(vt),dpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCMinutes(o,0,0),r}}]),n}(vt),fpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&i<=59}},{key:"set",value:function(r,i,o){return r.setUTCSeconds(o,0),r}}]),n}(vt),hpe=function(e){ft(n,e);var t=ht(n);function n(){var r;st(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=Ye((v=(y=(x=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(w=r.locale)===null||w===void 0||(S=w.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&x!==void 0?x:A.weekStartsOn)!==null&&y!==void 0?y:(E=A.locale)===null||E===void 0||(C=E.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&v!==void 0?v:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(j==="")return k===""?je(n):new Date(NaN);var W={firstWeekContainsDate:N,weekStartsOn:z,locale:$},X=[new Nhe],G=j.match(bpe).map(function(O){var M=O[0];if(M in o2){var F=o2[M];return F(O,$.formatLong)}return O}).join("").match(_pe),Z=[],te=J3(G),le;try{var q=function(){var O=le.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&p8(O)&&ry(O,j,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&h8(O)&&ry(O,j,e);var M=O[0],F=ype[M];if(F){var ee=F.incompatibleTokens;if(Array.isArray(ee)){var J=Z.find(function(ge){return ee.includes(ge.token)||ge.token===M});if(J)throw new RangeError("The format string mustn't contain `".concat(J.fullToken,"` and `").concat(O,"` at the same time"))}else if(F.incompatibleTokens==="*"&&Z.length>0)throw new RangeError("The format string mustn't contain `".concat(O,"` and any other token at the same time"));Z.push({token:M,fullToken:O});var se=F.run(k,O,$.match,W);if(!se)return{v:new Date(NaN)};X.push(se.setter),k=se.rest}else{if(M.match(Epe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");if(O==="''"?O="'":M==="'"&&(O=Tpe(O)),k.indexOf(O)===0)k=k.slice(O.length);else return{v:new Date(NaN)}}};for(te.s();!(le=te.n()).done;){var I=q();if(Jr(I)==="object")return I.v}}catch(O){te.e(O)}finally{te.f()}if(k.length>0&&Spe.test(k))return new Date(NaN);var D=X.map(function(O){return O.priority}).sort(function(O,M){return M-O}).filter(function(O,M,F){return F.indexOf(O)===M}).map(function(O){return X.filter(function(M){return M.priority===O}).sort(function(M,F){return F.subPriority-M.subPriority})}).map(function(O){return O[0]}),H=je(n);if(isNaN(H.getTime()))return new Date(NaN);var ie=l8(H,Ou(H)),V={},K=J3(D),re;try{for(K.s();!(re=K.n()).done;){var ae=re.value;if(!ae.validate(ie,W))return new Date(NaN);var he=ae.set(ie,V,W);Array.isArray(he)?(ie=he[0],jT(V,he[1])):ie=he}}catch(O){K.e(O)}finally{K.f()}return ie}function Tpe(e){return e.match(wpe)[1].replace(xpe,"'")}function Ope(e,t){Oe(2,arguments);var n=je(e),r=je(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Cpe(e,t){Oe(2,arguments);var n=i2(e),r=i2(t);return n.getTime()===r.getTime()}function kpe(e,t){Oe(2,arguments);var n=je(e),r=je(t);return n.getFullYear()===r.getFullYear()}function ju(e,t){Oe(2,arguments);var n=je(e).getTime(),r=je(t.start).getTime(),i=je(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function AT(e,t){Oe(2,arguments);var n=Ye(t);return Vl(e,-n)}function ia(e,t){var n;Oe(1,arguments);var r=Ye((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=Mpe(e),o;if(i.date){var a=Ape(i.date,r);o=Rpe(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,c;if(i.time&&(l=Npe(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=Dpe(i.timezone),isNaN(c))return new Date(NaN)}else{var d=new Date(s+l),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(s+l+c)}var Am={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ppe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jpe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Lpe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Mpe(e){var t={},n=e.split(Am.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Am.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Am.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var i=Am.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Ape(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 Rpe(e,t){if(t===null)return new Date(NaN);var n=e.match(Ppe);if(!n)return new Date(NaN);var r=!!n[4],i=Ld(n[1]),o=Ld(n[2])-1,a=Ld(n[3]),s=Ld(n[4]),l=Ld(n[5])-1;if(r)return Bpe(t,s,l)?Ipe(t,s,l):new Date(NaN);var c=new Date(0);return!$pe(t,o,a)||!Upe(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}function Ld(e){return e?parseInt(e):1}function Npe(e){var t=e.match(jpe);if(!t)return NaN;var n=L1(t[1]),r=L1(t[2]),i=L1(t[3]);return zpe(n,r,i)?n*T0+r*ET+i*1e3:NaN}function L1(e){return e&&parseFloat(e.replace(",","."))||0}function Dpe(e){if(e==="Z")return 0;var t=e.match(Lpe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Vpe(r,i)?n*(r*T0+i*ET):NaN}function Ipe(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 Fpe=[31,null,31,30,31,30,31,31,30,31,30,31];function x8(e){return e%400===0||e%4===0&&e%100!==0}function $pe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Fpe[t]||(x8(e)?29:28))}function Upe(e,t){return t>=1&&t<=(x8(e)?366:365)}function Bpe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zpe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Vpe(e,t){return t>=0&&t<=59}function vr(e,t){Oe(2,arguments);var n=je(e),r=Ye(t),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=The(a);return n.setMonth(r,Math.min(o,s)),n}function Hpe(e,t){if(Oe(2,arguments),Jr(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=je(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=vr(n,t.month)),t.date!=null&&n.setDate(Ye(t.date)),t.hours!=null&&n.setHours(Ye(t.hours)),t.minutes!=null&&n.setMinutes(Ye(t.minutes)),t.seconds!=null&&n.setSeconds(Ye(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Ye(t.milliseconds)),n)}function Ef(e,t){Oe(2,arguments);var n=je(e),r=Ye(t);return n.setHours(r),n}function Tf(e,t){Oe(2,arguments);var n=je(e),r=Ye(t);return n.setMinutes(r),n}function hc(e,t){Oe(2,arguments);var n=je(e),r=Ye(t),i=Math.floor(n.getMonth()/3)+1,o=r-i;return vr(n,n.getMonth()+o*3)}function Wpe(e,t){Oe(2,arguments);var n=je(e),r=Ye(t);return n.setSeconds(r),n}function $o(e,t){Oe(2,arguments);var n=je(e),r=Ye(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Lu(e,t){Oe(2,arguments);var n=Ye(t);return Ti(e,-n)}function Ype(e,t){Oe(2,arguments);var n=Ye(t);return r8(e,-n)}function Gpe(e,t){Oe(2,arguments);var n=Ye(t);return ST(e,-n)}function Sh(e,t){Oe(2,arguments);var n=Ye(t);return Cu(e,-n)}const S8="yyyy-MM-dd",RT="yyyy-MM-dd HH:mm",hs=()=>new Date,NT=e=>typeof e!="string",DT=(e,t)=>!e||!NT(e)?e:t?Pu(e,t):She(e),ps=e=>DT(e,void 0),el=e=>DT(e,S8),ay=e=>DT(e,RT),zi=e=>NT(e)?e:ia(e),rp=(e,t,n)=>{try{return ju(zi(e),{start:zi(t??e),end:zi(n??e)})}catch{return!1}},Ns=(e,t)=>m8(e,t)||mi(e,t),ip="all",E8={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[ip]:void 0},T8=Object.keys(E8),O8=e=>e===void 0||Pi(V5(Boolean,e)),sy=e=>typeof e=="string"&&T8.includes(e),qpe=T8.filter(e=>e!==ip),tM=e=>e?zi(e):null,C8=(e,t)=>({startDate:tM(e),endDate:tM(t)}),Kpe=e=>{if(!(!e||O8(e)))return e.startDate&&!e.endDate?`Since ${el(e.startDate)}`:!e.startDate&&e.endDate?`Until ${el(e.endDate)}`:`${el(e.startDate)} - ${el(e.endDate)}`},k8=e=>{if(!(!e||e===ip))return sy(e)?E8[e]:Kpe(e)},fi=e=>qr(AT(hs(),e)),pc=e=>({startDate:e,endDate:Ol(hs())}),Ds=e=>t=>e===t,P8=bT([[Ds("today"),()=>pc(qr(hs()))],[Ds("yesterday"),()=>({startDate:fi(1),endDate:Ol(AT(hs(),1))})],[Ds("last7Days"),()=>pc(fi(7))],[Ds("last30Days"),()=>pc(fi(30))],[Ds("last90Days"),()=>pc(fi(90))],[Ds("last180Days"),()=>pc(fi(180))],[Ds("last365Days"),()=>pc(fi(365))],[A5,()=>({})]]),Zpe=e=>{const t=zi(e);return bT([[()=>Ns(qr(hs()),t),()=>"today"],[()=>Ns(fi(1),t),()=>"yesterday"],[()=>Ns(fi(7),t),()=>"last7Days"],[()=>Ns(fi(30),t),()=>"last30Days"],[()=>Ns(fi(90),t),()=>"last90Days"],[()=>Ns(fi(180),t),()=>"last180Days"],[()=>Ns(fi(365),t),()=>"last365Days"],[A5,()=>ip]])()},Qpe=e=>sy(e)?P8(e):e,Dr=(e,t)=>S6(e,t,{serializeError:Iue}),op=Dn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),nM=5e3,rM=4,iM=2,Xpe=({currentPage:e,pagesCount:t})=>e>=t,Jpe=(e,t)=>t*100/e,ap=({typePrefix:e,createLoaders:t,getExtraFulfilledPayload:n,shouldCancel:r})=>{const i=Dn(`${e}/progressChanged`),o=Dn(`${e}/large`),a=Dn(`${e}/fallbackToInterval`),s=Dr(e,async(l,{getState:c,dispatch:d})=>{var f;const[p,m]=t(l),v=async S=>Promise.all(S.map(async E=>p(E,nM).then(mt("data")))).then(dde),y=async(S,E=0)=>{if(r(c))return[];const C=await v(S[E]);return d(i(Jpe(S.length,E+iM))),E{const{pagination:E,data:C}=await p(S,nM);if(!E||Xpe(E))return C;const k=wT(iM,E.pagesCount+1),j=_h(rM,k);return E.pagesCount-1>rM&&d(o()),C.concat(await y(j))},[_,w]=await Promise.all([x(),m((f=l.query)==null?void 0:f.excludeBots)]);return!_.length&&w&&d(a(Zpe(w.date))),{...n(l),visits:_}});return Object.assign(s,{progressChanged:i,large:o,fallbackToInterval:a})},sp=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),lp=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r})=>{const{pending:i,rejected:o,fulfilled:a,large:s,progressChanged:l,fallbackToInterval:c}=t,{reducer:d,actions:f}=dr({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(o,(v,{error:y})=>({...n,error:!0,errorData:ma(y)})),m.addCase(a,(v,{payload:y})=>({...v,...y,loading:!1,loadingLarge:!1,error:!1})),m.addCase(s,v=>({...v,loadingLarge:!0})),m.addCase(l,(v,{payload:y})=>({...v,progress:y})),m.addCase(c,(v,{payload:y})=>({...v,fallbackInterval:y})),m.addCase(op,(v,{payload:y})=>{const{visits:x}=v,_=r(v,y.createdVisits).map(({visit:w})=>w);return _.length?{...v,visits:[..._,...x]}:v})}}),{cancelGetVisits:p}=f;return{reducer:d,cancelGetVisits:p}},j8="shlink/domainVisits",L8="DEFAULT",eme={visits:[],domain:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},tme=e=>ap({typePrefix:`${j8}/getDomainVisits`,createLoaders:({domain:t,query:n={},doIntervalFallback:r=!1})=>{const{getDomainVisits:i}=e(),o=async(s,l)=>i(t,{...n,page:s,itemsPerPage:l}),a=sp(r,async s=>i(t,s));return[o,a]},getExtraFulfilledPayload:({domain:t,query:n={}})=>({domain:t,query:n}),shouldCancel:t=>t().domainVisits.cancelLoad}),nme=e=>lp({name:j8,initialState:eme,asyncThunkCreator:e,filterCreatedVisits:({domain:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>a&&Kde(a,t)&&rp(s.date,i,o))}}),xg=({className:e="",placement:t,children:n})=>{const r=bs();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:r,children:g.jsx(Ae,{icon:JS})}),g.jsx(Ir,{target:r,placement:t,children:n})]})},O0=e=>Xn(t=>t.preventDefault(),e),IT=(e,t,n=1)=>wT(n,e+1).map(t),uo=e=>!Bl(e)&&!Pi(e),M1=e=>Pi(e)?null:e,M8=e=>e?"true":"false",A1=e=>e===void 0?void 0:M8(e),R1=({isLast:e,...t})=>g.jsx(cg,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),rme=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,l]=U.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[c,d]=U.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[f,p]=U.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),m=O0(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:M1(s),regular404Redirect:M1(c),invalidShortUrlRedirect:M1(f)}}).then(t));return g.jsx(da,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:m,children:[g.jsxs(fa,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:n.domain})]}),g.jsxs(Oo,{children:[g.jsxs(R1,{value:s,onChange:l,children:[g.jsxs(xg,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",g.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),g.jsxs(R1,{value:c,onChange:d,children:[g.jsxs(xg,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",g.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),g.jsxs(R1,{value:f,isLast:!0,onChange:p,children:[g.jsx(xg,{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"]})]}),g.jsxs(Il,{children:[g.jsx(_t,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",children:"Save"})]})]})})},ime=({domain:e,editDomainRedirects:t})=>{const[n,r]=On(),i=np("domainVisits"),o=zl();return g.jsxs(d0,{children:[i&&g.jsxs(Ue,{tag:Ut,to:`${o}/domain/${e.domain}${e.isDefault?`_${L8}`:""}/visits`,children:[g.jsx(Ae,{icon:XS,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ue,{onClick:r,children:[g.jsx(Ae,{fixedWidth:!0,icon:QS})," Edit redirects"]}),g.jsx(rme,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},Go=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),ome=({status:e,matchMedia:t=window.matchMedia})=>{const n=bs(),r=()=>t("(max-width: 991px)").matches,[i,o]=U.useState(r());return U.useEffect(()=>{const a=()=>o(r());return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),e==="validating"?g.jsx(Ae,{fixedWidth:!0,icon:u4,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:n,children:e==="valid"?g.jsx(Ae,{fixedWidth:!0,icon:Kf,className:"text-muted"}):g.jsx(Ae,{fixedWidth:!0,icon:Xb,className:"text-danger"})}),g.jsx(Ir,{target:n,placement:i?"top-start":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":g.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",g.jsx("br",{}),"Check the ",g.jsx(Go,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},N1=({fallback:e})=>g.jsxs("span",{className:"text-muted",children:[!e&&g.jsx("small",{children:"No redirect"}),e&&g.jsxs(g.Fragment,{children:[e," ",g.jsx("small",{children:"(as fallback)"})]})]}),ame=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ae,{fixedWidth:!0,icon:NW,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(Ir,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),sme=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return U.useEffect(()=>{n(e.domain)},[]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&g.jsx(ame,{})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??g.jsx(N1,{fallback:r==null?void 0:r.baseUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??g.jsx(N1,{fallback:r==null?void 0:r.regular404Redirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??g.jsx(N1,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(ome,{status:s})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(ime,{domain:e,editDomainRedirects:t})})]})},oM=["","Domain","Base path redirect","Regular 404 redirect","Invalid short URL redirect","",""],lme=({listDomains:e,domainsList:t,filterDomains:n,editDomainRedirects:r,checkDomainHealth:i})=>{var o;const{filteredDomains:a,defaultRedirects:s,loading:l,error:c,errorData:d}=t,f=s??((o=a.find(({isDefault:p})=>p))==null?void 0:o.redirects);return U.useEffect(()=>{e()},[]),l?g.jsx(Yo,{loading:!0}):g.jsxs(g.Fragment,{children:[g.jsx(Gh,{className:"mb-3",onChange:n}),(()=>c?g.jsx(Gr,{type:"error",children:g.jsx(ra,{errorData:d,fallbackMessage:"Error loading domains :("})}):g.jsx(vn,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsx("tr",{children:oM.map((p,m)=>g.jsx("th",{children:p},m))})}),g.jsxs("tbody",{children:[a.length<1&&g.jsx("tr",{children:g.jsx("td",{colSpan:oM.length,className:"text-center",children:"No results found"})}),a.map(p=>g.jsx(sme,{domain:p,editDomainRedirects:r,checkDomainHealth:i,defaultRedirects:f},p.domain))]})]})}))()]})},cme="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",ume=e=>Dr(cme,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Rm="shlink/domainsList",Nm={domains:[],filteredDomains:[],loading:!1,error:!1},aM=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},sM=(e,t)=>n=>n.domain!==e?n:{...n,status:t},dme=(e,t)=>{const n=Dr(`${Rm}/listDomains`,async()=>{const{data:a,defaultRedirects:s}=await e().listDomains();return{domains:a.map(l=>({...l,status:"validating"})),defaultRedirects:s}}),r=Dr(`${Rm}/checkDomainHealth`,async a=>{try{const{status:s}=await e().health(a);return{domain:a,status:s==="pass"?"valid":"invalid"}}catch{return{domain:a,status:"invalid"}}}),i=Dn(`${Rm}/filterDomains`),{reducer:o}=dr({name:Rm,initialState:Nm,reducers:{},extraReducers:a=>{a.addCase(n.pending,()=>({...Nm,loading:!0})),a.addCase(n.rejected,(s,{error:l})=>({...Nm,error:!0,errorData:ma(l)})),a.addCase(n.fulfilled,(s,{payload:l})=>({...Nm,...l,filteredDomains:l.domains})),a.addCase(r.fulfilled,({domains:s,filteredDomains:l,...c},{payload:d})=>({...c,domains:s.map(sM(d.domain,d.status)),filteredDomains:l.map(sM(d.domain,d.status))})),a.addCase(i,(s,{payload:l})=>({...s,filteredDomains:s.domains.filter(({domain:c})=>c.toLowerCase().match(l.toLowerCase()))})),a.addCase(t.fulfilled,(s,{payload:l})=>({...s,domains:s.domains.map(aM(l)),filteredDomains:s.filteredDomains.map(aM(l))}))}});return{reducer:o,listDomains:n,checkDomainHealth:r,filterDomains:i}},fme=(e,t)=>{e.serviceFactory("DomainSelector",()=>Dde),e.decorator("DomainSelector",t(["domainsList"],["listDomains"])),e.serviceFactory("ManageDomains",()=>lme),e.decorator("ManageDomains",t(["domainsList"],["listDomains","filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",dme,"apiClientFactory","editDomainRedirects"),e.serviceFactory("domainsListReducer",mt("reducer"),"domainsListReducerCreator"),e.serviceFactory("listDomains",mt("listDomains"),"domainsListReducerCreator"),e.serviceFactory("filterDomains",mt("filterDomains"),"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",ume,"apiClientFactory"),e.serviceFactory("checkDomainHealth",mt("checkDomainHealth"),"domainsListReducerCreator")},lM="shlink/mercure",hme={loading:!0,error:!1},pme=e=>{const t=Dr(`${lM}/loadMercureInfo`,({realTimeUpdates:r})=>{if(r&&!r.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=dr({name:lM,initialState:hme,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}},mme=e=>{e.serviceFactory("mercureInfoReducerCreator",pme,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",mt("reducer"),"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",mt("loadMercureInfo"),"mercureInfoReducerCreator")};var Fc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s2={exports:{}};/** @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,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,c=n.document,d=n.Promise,f=n.fetch,p=n.Response,m=n.TextDecoder,v=n.TextEncoder,y=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(ue){c.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ue){function me(){}return me.prototype=ue,new me}),Date.now||(Date.now=function(){return new Date().getTime()}),y==null){var x=f;f=function(ue,me){var _e=me.signal;return x(ue,{headers:me.headers,credentials:me.credentials,cache:me.cache}).then(function(Se){var ke=Se.body.getReader();return _e._reader=ke,_e._aborted&&_e._reader.cancel(),{status:Se.status,statusText:Se.statusText,headers:Se.headers,body:{getReader:function(){return ke}}}})},y=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(ue){function me(ye,ve,xe){if(xe===1)return ye>=128>>ve&&ye<=2048>>ve&&ye<=57344>>ve&&ye<=65536>>ve&&ye<>6>15?3:ve>31?2:1;if(ye===6*2)return ve>15?3:2;if(ye===6*3)return 3;throw new Error}for(var Se=65533,ke="",Ce=this.bitsNeeded,Le=this.codePoint,ce=0;ce191||!me(Le<<6|fe&63,Ce-6,_e(Ce,Le)))&&(Ce=0,Le=Se,ke+=String.fromCharCode(Le)),Ce===0?(fe>=0&&fe<=127?(Ce=0,Le=fe):fe>=192&&fe<=223?(Ce=6*1,Le=fe&31):fe>=224&&fe<=239?(Ce=6*2,Le=fe&15):fe>=240&&fe<=247?(Ce=6*3,Le=fe&7):(Ce=0,Le=Se),Ce!==0&&!me(Le,Ce,_e(Ce,Le))&&(Ce=0,Le=Se)):(Ce-=6,Le=Le<<6|fe&63),Ce===0&&(Le<=65535?ke+=String.fromCharCode(Le):(ke+=String.fromCharCode(55296+(Le-65535-1>>10)),ke+=String.fromCharCode(56320+(Le-65535-1&1023))))}return this.bitsNeeded=Ce,this.codePoint=Le,ke};var w=function(){try{return new m().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(m==null||v==null||!w())&&(m=_);var S=function(){};function E(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=S}E.prototype.open=function(ue,me){this._abort(!0);var _e=this,Se=this._xhr,ke=1,Ce=0;this._abort=function(xe){_e._sendTimeout!==0&&(i(_e._sendTimeout),_e._sendTimeout=0),(ke===1||ke===2||ke===3)&&(ke=4,Se.onload=S,Se.onerror=S,Se.onabort=S,Se.onprogress=S,Se.onreadystatechange=S,Se.abort(),Ce!==0&&(i(Ce),Ce=0),xe||(_e.readyState=4,_e.onabort(null),_e.onreadystatechange())),ke=0};var Le=function(){if(ke===1){var xe=0,Pe="",Ne=void 0;if("contentType"in Se)xe=200,Pe="OK",Ne=Se.contentType;else try{xe=Se.status,Pe=Se.statusText,Ne=Se.getResponseHeader("Content-Type")}catch{xe=0,Pe="",Ne=void 0}xe!==0&&(ke=2,_e.readyState=2,_e.status=xe,_e.statusText=Pe,_e._contentType=Ne,_e.onreadystatechange())}},ce=function(){if(Le(),ke===2||ke===3){ke=3;var xe="";try{xe=Se.responseText}catch{}_e.readyState=3,_e.responseText=xe,_e.onprogress()}},fe=function(xe,Pe){if((Pe==null||Pe.preventDefault==null)&&(Pe={preventDefault:S}),ce(),ke===1||ke===2||ke===3){if(ke=4,Ce!==0&&(i(Ce),Ce=0),_e.readyState=4,xe==="load")_e.onload(Pe);else if(xe==="error")_e.onerror(Pe);else if(xe==="abort")_e.onabort(Pe);else throw new TypeError;_e.onreadystatechange()}},ye=function(xe){Se!=null&&(Se.readyState===4?(!("onload"in Se)||!("onerror"in Se)||!("onabort"in Se))&&fe(Se.responseText===""?"error":"load",xe):Se.readyState===3?"onprogress"in Se||ce():Se.readyState===2&&Le())},ve=function(){Ce=r(function(){ve()},500),Se.readyState===3&&ce()};"onload"in Se&&(Se.onload=function(xe){fe("load",xe)}),"onerror"in Se&&(Se.onerror=function(xe){fe("error",xe)}),"onabort"in Se&&(Se.onabort=function(xe){fe("abort",xe)}),"onprogress"in Se&&(Se.onprogress=ce),"onreadystatechange"in Se&&(Se.onreadystatechange=function(xe){ye(xe)}),("contentType"in Se||!("ontimeout"in o.prototype))&&(me+=(me.indexOf("?")===-1?"?":"&")+"padding=true"),Se.open(ue,me,!0),"readyState"in Se&&(Ce=r(function(){ve()},0))},E.prototype.abort=function(){this._abort(!1)},E.prototype.getResponseHeader=function(ue){return this._contentType},E.prototype.setRequestHeader=function(ue,me){var _e=this._xhr;"setRequestHeader"in _e&&_e.setRequestHeader(ue,me)},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 ue=this;ue._sendTimeout=r(function(){ue._sendTimeout=0,ue.send()},4);return}var me=this._xhr;"withCredentials"in me&&(me.withCredentials=this.withCredentials);try{me.send(void 0)}catch(_e){throw _e}};function C(ue){return ue.replace(/[A-Z]/g,function(me){return String.fromCharCode(me.charCodeAt(0)+32)})}function k(ue){for(var me=Object.create(null),_e=ue.split(`\r +`),Se=0;Se<_e.length;Se+=1){var ke=_e[Se],Ce=ke.split(": "),Le=Ce.shift(),ce=Ce.join(": ");me[C(Le)]=ce}this._map=me}k.prototype.get=function(ue){return this._map[C(ue)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function j(){}j.prototype.open=function(ue,me,_e,Se,ke,Ce,Le){ue.open("GET",ke);var ce=0;ue.onprogress=function(){var ye=ue.responseText,ve=ye.slice(ce);ce+=ve.length,_e(ve)},ue.onerror=function(ye){ye.preventDefault(),Se(new Error("NetworkError"))},ue.onload=function(){Se(null)},ue.onabort=function(){Se(null)},ue.onreadystatechange=function(){if(ue.readyState===o.HEADERS_RECEIVED){var ye=ue.status,ve=ue.statusText,xe=ue.getResponseHeader("Content-Type"),Pe=ue.getAllResponseHeaders();me(ye,ve,xe,new k(Pe))}},ue.withCredentials=Ce;for(var fe in Le)Object.prototype.hasOwnProperty.call(Le,fe)&&ue.setRequestHeader(fe,Le[fe]);return ue.send(),ue};function A(ue){this._headers=ue}A.prototype.get=function(ue){return this._headers.get(ue)};function $(){}$.prototype.open=function(ue,me,_e,Se,ke,Ce,Le){var ce=null,fe=new y,ye=fe.signal,ve=new m;return f(ke,{headers:Le,credentials:Ce?"include":"same-origin",signal:ye,cache:"no-store"}).then(function(xe){return ce=xe.body.getReader(),me(xe.status,xe.statusText,xe.headers.get("Content-Type"),new A(xe.headers)),new d(function(Pe,Ne){var Qe=function(){ce.read().then(function(et){if(et.done)Pe(void 0);else{var Ge=ve.decode(et.value,{stream:!0});_e(Ge),Qe()}}).catch(function(et){Ne(et)})};Qe()})}).catch(function(xe){if(xe.name!=="AbortError")return xe}).then(function(xe){Se(xe)}),{abort:function(){ce!=null&&ce.cancel(),fe.abort()}}};function N(){this._listeners=Object.create(null)}function z(ue){r(function(){throw ue},0)}N.prototype.dispatchEvent=function(ue){ue.target=this;var me=this._listeners[ue.type];if(me!=null)for(var _e=me.length,Se=0;Se<_e;Se+=1){var ke=me[Se];try{typeof ke.handleEvent=="function"?ke.handleEvent(ue):ke.call(this,ue)}catch(Ce){z(Ce)}}},N.prototype.addEventListener=function(ue,me){ue=String(ue);var _e=this._listeners,Se=_e[ue];Se==null&&(Se=[],_e[ue]=Se);for(var ke=!1,Ce=0;Ce"u"?typeof window<"u"?window:typeof self<"u"?self:Fc:globalThis)})(s2,s2.exports);var gme=s2.exports;const vme=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const l=({data:f})=>n(JSON.parse(f)),c=({status:f})=>f===401&&r(),d=t.map(f=>{const p=new URL(i);p.searchParams.append("topic",f);const m=new gme.EventSourcePolyfill(p,{headers:{Authorization:`Bearer ${o}`}});return m.onmessage=l,m.onerror=c,m});return()=>d.forEach(f=>f.close())};function Ss(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,{interval:s}=a,l=Dl();return U.useEffect(()=>{const c=m=>s?n.add(m):i([m]),d=t(r,l),f=vme(a,d,c,o);if(!s)return f;const p=setInterval(()=>{i([...n]),n.clear()},s*1e3*60);return Xn(()=>clearInterval(p),()=>f==null?void 0:f())},[a]),g.jsx(e,{...r})}}class _i{}Te(_i,"visits","https://shlink.io/new-visit"),Te(_i,"orphanVisits","https://shlink.io/new-orphan-visit"),Te(_i,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const FT="shlink/shortUrlDeletion",cM={shortCode:"",loading:!1,deleted:!1,error:!1},yme=e=>Dr(`${FT}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),A8=Dn(`${FT}/shortUrlDeleted`),_me=e=>{const{actions:t,reducer:n}=dr({name:FT,initialState:cM,reducers:{resetDeleteShortUrl:()=>cM},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:ma(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},R8="shlink/shortUrlsList",N8=5,bme={loading:!0,error:!1},wme=e=>Dr(`${R8}/listShortUrls`,t=>e().listShortUrls(t??{})),xme=(e,t,n)=>dr({name:R8,initialState:bme,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,Xn((i,{payload:o})=>i.shortUrls?dc(["shortUrls","data"],[o,...i.shortUrls.data.slice(0,N8-1)],i):i,i=>i.shortUrls?dc(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems+1,i):i)),r.addCase(t.fulfilled,(i,{payload:o})=>i.shortUrls?dc(["shortUrls","data"],i.shortUrls.data.map(a=>{const{shortCode:s,domain:l}=o;return Sf(a,s,l)?o:a}),i):i),r.addCase(A8,Xn((i,{payload:o})=>i.shortUrls?dc(["shortUrls","data"],_T(a=>Sf(a,o.shortCode,o.domain),i.shortUrls.data),i):i,i=>i.shortUrls?dc(["shortUrls","pagination","totalItems"],i.shortUrls.pagination.totalItems-1,i):i)),r.addCase(op,(i,{payload:o})=>{var a,s;return dc(["shortUrls","data"],(s=(a=i.shortUrls)==null?void 0:a.data)==null?void 0:s.map(l=>{var c;return((c=sde(o.createdVisits.filter(({shortUrl:d})=>d&&Sf(l,d.shortCode,d.domain))))==null?void 0:c.shortUrl)??l}),i)})}}),uM=10,{ceil:Sme}=Math,Eme=new Intl.NumberFormat("en-US"),En=e=>Eme.format(Number(e)),Tme=e=>Sme(e/uM)*uM,Ome={field:"dateCreated",dir:"DESC"},D8={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:Ome}},I8=U.createContext(D8),Cme=I8.Provider,$T=()=>U.useContext(I8)??D8,Hl=e=>$T()[e],kme=e=>({tag:Ut,to:e}),l2=({children:e,title:t,link:n,tooltip:r})=>{const i=bs();return g.jsxs(g.Fragment,{children:[g.jsxs(Qr,{innerRef:i,className:"highlight-card",body:!0,...kme(n),children:[g.jsx(Ae,{size:"3x",className:"highlight-card__link-icon",icon:yie}),g.jsx(kI,{tag:"h5",className:"highlight-card__title",children:t}),g.jsx(CI,{tag:"h2",children:e})]}),r&&g.jsx(Ir,{target:i,placement:"bottom",children:r})]})},dM=({loading:e,excludeBots:t,visitsSummary:n,...r})=>g.jsx(l2,{tooltip:n.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("strong",{children:En(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":En(t&&n.nonBots?n.nonBots:n.total)}),Pme=(e,t)=>Ss(({shortUrlsList:n,listShortUrls:r,tagsList:i,loadVisitsOverview:o,visitsOverview:a})=>{const{loading:s,shortUrls:l}=n,{loading:c}=i,{loading:d,nonOrphanVisits:f,orphanVisits:p}=a,m=zl(),v=To(),y=Hl("visits");return U.useEffect(()=>{r({itemsPerPage:N8,orderBy:{field:"dateCreated",dir:"DESC"}}),o()},[]),g.jsxs(g.Fragment,{children:[g.jsxs(_r,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(dM,{title:"Visits",link:`${m}/non-orphan-visits`,excludeBots:(y==null?void 0:y.excludeBots)??!1,loading:d,visitsSummary:f})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(dM,{title:"Orphan visits",link:`${m}/orphan-visits`,excludeBots:(y==null?void 0:y.excludeBots)??!1,loading:d,visitsSummary:p})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(l2,{title:"Short URLs",link:`${m}/list-short-urls/1`,children:s?"Loading...":En((l==null?void 0:l.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(l2,{title:"Tags",link:`${m}/manage-tags`,children:c?"Loading...":En(i.tags.length)})})]}),g.jsxs(Qr,{className:"mb-3",children:[g.jsxs(vu,{children:[g.jsx("span",{className:"d-sm-none",children:"Create a short URL"}),g.jsx("h5",{className:"d-none d-sm-inline",children:"Create a short URL"}),g.jsx(Ut,{className:"float-end",to:`${m}/create-short-url`,children:"Advanced options »"})]}),g.jsx(gu,{children:g.jsx(t,{basicMode:!0})})]}),g.jsxs(Qr,{children:[g.jsxs(vu,{children:[g.jsx("span",{className:"d-sm-none",children:"Recently created URLs"}),g.jsx("h5",{className:"d-none d-sm-inline",children:"Recently created URLs"}),g.jsx(Ut,{className:"float-end",to:`${m}/list-short-urls/1`,children:"See all »"})]}),g.jsx(gu,{children:g.jsx(e,{shortUrlsList:n,className:"mb-0",onTagClick:x=>v(`${m}/list-short-urls/1?tags=${encodeURIComponent(x)}`)})})]})]})},()=>[_i.visits,_i.orphanVisits]);function jme(e,t){e.serviceFactory("Overview",Pme,"ShortUrlsTable","CreateShortUrl"),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const Lme=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}),Mme=(e,t)=>({createShortUrl:n,shortUrlCreation:r,resetCreateShortUrl:i,basicMode:o=!1})=>{const a=Hl("shortUrlCreation"),s=U.useMemo(()=>Lme(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(e,{initialState:s,saving:r.saving,mode:o?"create-basic":"create",onSave:async l=>(i(),n(l))}),g.jsx(t,{creation:r,resetCreateShortUrl:i,canBeClosed:o})]})},Ame="Left",Rme="Right",Nme="Up",Dme="Down",$c={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},c2={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},fM="mousemove",hM="mouseup",Ime="touchend",Fme="touchmove",$me="touchstart";function Ume(e,t,n,r){return e>t?n>0?Rme:Ame:r>0?Dme:Nme}function pM(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 Bme(e,t){const n=c=>{const d="touches"in c;d&&c.touches.length>1||e((f,p)=>{p.trackMouse&&!d&&(document.addEventListener(fM,r),document.addEventListener(hM,a));const{clientX:m,clientY:v}=d?c.touches[0]:c,y=pM([m,v],p.rotationAngle);return p.onTouchStartOrOnMouseDown&&p.onTouchStartOrOnMouseDown({event:c}),Object.assign(Object.assign(Object.assign({},f),c2),{initial:y.slice(),xy:y,start:c.timeStamp||0})})},r=c=>{e((d,f)=>{const p="touches"in c;if(p&&c.touches.length>1)return d;if(c.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:m,clientY:v}=p?c.touches[0]:c,[y,x]=pM([m,v],f.rotationAngle),_=y-d.xy[0],w=x-d.xy[1],S=Math.abs(_),E=Math.abs(w),C=(c.timeStamp||0)-d.start,k=Math.sqrt(S*S+E*E)/(C||1),j=[_/(C||1),w/(C||1)],A=Ume(S,E,_,w),$=typeof f.delta=="number"?f.delta:f.delta[A.toLowerCase()]||$c.delta;if(S<$&&E<$&&!d.swiping)return d;const N={absX:S,absY:E,deltaX:_,deltaY:w,dir:A,event:c,first:d.first,initial:d.initial,velocity:k,vxvy:j};N.first&&f.onSwipeStart&&f.onSwipeStart(N),f.onSwiping&&f.onSwiping(N);let z=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${A}`])&&(z=!0),z&&f.preventScrollOnSwipe&&f.trackTouch&&c.cancelable&&c.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:N,swiping:!0})})},i=c=>{e((d,f)=>{let p;if(d.swiping&&d.eventData){if(c.timeStamp-d.start{document.removeEventListener(fM,r),document.removeEventListener(hM,a)},a=c=>{o(),i(c)},s=(c,d)=>{let f=()=>{};if(c&&c.addEventListener){const p=Object.assign(Object.assign({},$c.touchEventOptions),d.touchEventOptions),m=[[$me,n,p],[Fme,r,Object.assign(Object.assign({},p),d.preventScrollOnSwipe?{passive:!1}:{})],[Ime,i,p]];m.forEach(([v,y,x])=>c.addEventListener(v,y,x)),f=()=>m.forEach(([v,y])=>c.removeEventListener(v,y))}return f},l={ref:c=>{c!==null&&e((d,f)=>{if(d.el===c)return d;const p={};return d.el&&d.el!==c&&d.cleanUpTouch&&(d.cleanUpTouch(),p.cleanUpTouch=void 0),f.trackTouch&&c&&(p.cleanUpTouch=s(c,f)),Object.assign(Object.assign(Object.assign({},d),{el:c}),p)})}};return t.trackMouse&&(l.onMouseDown=n),[l,s]}function zme(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 Vme(e){const{trackMouse:t}=e,n=U.useRef(Object.assign({},c2)),r=U.useRef(Object.assign({},$c)),i=U.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},$c),e);let o;for(o in $c)r.current[o]===void 0&&(r.current[o]=$c[o]);const[a,s]=U.useMemo(()=>Bme(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=zme(n.current,r.current,i.current,s),a}const Hme=2e3,Wme=(e,t)=>(n=!1,r=Hme)=>{const[i,o]=U.useState(n),a=U.useRef(void 0);return[i,()=>{o(!n),a.current&&t(a.current),a.current=e(()=>o(n),r)}]},Yme=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return Vme({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Gme=(e,t)=>{const[n,r]=U.useState(t);return[n,i=>{const{location:o,history:a}=window,s=Fl(o.search);s[e]=i,a.pushState(null,"",`${o.pathname}?${Zh(s)}`),r(i)}]},qme=(e,t)=>{const n=U.useRef(!0);U.useEffect(()=>{!n.current&&e(),n.current=!1},t)},qu=()=>{const e=To();return()=>e(-1)},Kme=e=>({shortUrlDetail:t,getShortUrlDetail:n,shortUrlEdition:r,editShortUrl:i})=>{const{search:o}=_n(),a=Dl(),s=qu(),{loading:l,error:c,errorData:d,shortUrl:f}=t,{saving:p,saved:m,error:v,errorData:y}=r,{domain:x}=Fl(o),_=Hl("shortUrlCreation"),w=U.useMemo(()=>Zde(f,_),[f,_]);return U.useEffect(()=>{a.shortCode&&n({shortCode:bg(a.shortCode),domain:x})},[]),l?g.jsx(Yo,{loading:!0}):c?g.jsx(Gr,{type:"error",children:g.jsx(ra,{errorData:d,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs(g.Fragment,{children:[g.jsx("header",{className:"mb-3",children:g.jsx(Qr,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:s,children:g.jsx(Ae,{icon:h4})}),g.jsx("span",{className:"text-center",children:g.jsxs("small",{children:["Edit ",g.jsx(Go,{href:(f==null?void 0:f.shortUrl)??""})]})}),g.jsx("span",{})]})})}),g.jsx(e,{initialState:w,saving:p,mode:"edit",onSave:async S=>{f&&i({...f,data:S})}}),m&&v&&g.jsx(Gr,{type:"error",className:"mt-3",children:g.jsx(ra,{errorData:y,fallbackMessage:"An error occurred while updating short URL :("})}),m&&!v&&g.jsx(Gr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})};var C0={},Zme=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 f=mM[t.format]||mM.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=Jme("message"in t?t.message:Xme),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var tge=ege;function u2(e){"@babel/helpers - typeof";return u2=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},u2(e)}Object.defineProperty(C0,"__esModule",{value:!0});C0.CopyToClipboard=void 0;var Dm=F8(Y),nge=F8(tge),rge=["text","onCopy","options","children"];function F8(e){return e&&e.__esModule?e:{default:e}}function gM(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 vM(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oge(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 age(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yM(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 ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ly(e)}function UT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U8=function(e){lge(n,e);var t=cge(n);function n(){var r;age(this,n);for(var i=arguments.length,o=new Array(i),a=0;a({creation:t,resetCreateShortUrl:n,canBeClosed:r=!1})=>{const[i,o]=e(),{error:a,saved:s}=t;if(U.useEffect(()=>{n()},[]),a)return g.jsxs(Gr,{type:"error",className:"mt-3",children:[r&&g.jsx(Ae,{"data-testid":"error-close-button",icon:Xb,className:"float-end pointer",onClick:n}),g.jsx(ra,{errorData:t.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:l}=t.result;return g.jsxs(Gr,{type:"success",className:"mt-3",children:[r&&g.jsx(Ae,{"data-testid":"success-close-button",icon:Xb,className:"float-end pointer",onClick:n}),g.jsxs("span",{children:[g.jsx("b",{children:"Great!"})," The short URL is ",g.jsx("b",{children:l})]}),g.jsx(B8,{text:l,onCopy:o,children:g.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",children:[g.jsx(Ae,{icon:E6})," Copy"]})}),g.jsx(Wh,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},D1="delete",mge=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,l]=U.useState("");U.useEffect(()=>i,[]);const{loading:c,error:d,deleted:f,errorData:p}=r,m=Xn(i,t),v=O0(()=>o(e).then(t));return g.jsx(da,{isOpen:n,toggle:m,centered:!0,onClosed:()=>f&&a(e),children:g.jsxs("form",{onSubmit:v,children:[g.jsx(fa,{toggle:m,children:g.jsx("span",{className:"text-danger",children:"Delete short URL"})}),g.jsxs(Oo,{children:[g.jsxs("p",{children:[g.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),g.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),g.jsxs("p",{children:["Write ",g.jsx("b",{children:D1})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${D1}`,value:s,onChange:y=>l(y.target.value)}),d&&g.jsx(Gr,{type:Fde(p)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(ra,{errorData:p,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs(Il,{children:[g.jsx("button",{type:"button",className:"btn btn-link",onClick:m,children:"Cancel"}),g.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==D1||c,children:c?"Deleting...":"Delete"})]})]})})},z8=({amount:e=0,loading:t=!1,...n})=>g.jsxs(_t,{...n,outline:!0,color:"primary",disabled:t,children:[g.jsx(Ae,{icon:jW})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",En(e),")"]})]}),k0=()=>{const e=To(),{search:t}=_n(),n=zl(),r=U.useMemo(Xn(()=>Fl(t),({orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:l,excludePastValidUntil:c,...d})=>{const f=o?cte(o):void 0,p=(a==null?void 0:a.split(","))??[];return{...d,orderBy:f,tags:p,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:l!==void 0?l==="true":void 0,excludePastValidUntil:c!==void 0?c==="true":void 0}}),[t]),i=U.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:l,excludeBots:c,excludeMaxVisitsReached:d,excludePastValidUntil:f,...p}=a,m={...p,orderBy:s&&YI(s),tags:l.length>0?l.join(","):void 0,excludeBots:A1(c),excludeMaxVisitsReached:A1(d),excludePastValidUntil:A1(f)},v=Zh(m),y=Pi(v)?"":`?${v}`;e(`${n}/list-short-urls/1${y}`)},[r,e,n]);return[r,i]},_M=20,gge=(e,{exportShortUrls:t})=>({amount:n=0})=>{const[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:l}]=k0(),[c,,d,f]=On(),p=U.useCallback(async()=>{const m=n/_M,v=async(x=1)=>{const{data:_}=await e().listShortUrls({page:`${x}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:l,itemsPerPage:_M});return x>=m?_:_.concat(await v(x+1))};d();const y=await v();t(y.map(x=>{var _;const{hostname:w,pathname:S}=new URL(x.shortUrl),E=S.substring(1);return{createdAt:x.dateCreated,domain:w,shortCode:E,shortUrl:x.shortUrl,longUrl:x.longUrl,title:x.title??"",tags:x.tags.join("|"),visits:((_=x==null?void 0:x.visitsSummary)==null?void 0:_.total)??x.visitsCount}})),f()},[]);return g.jsx(z8,{loading:c,className:"btn-md-block",amount:n,onClick:p})},V8=({text:e,onCopy:t})=>g.jsx(B8,{text:e,onCopy:t,children:g.jsx(Ae,{icon:E6,className:"ms-2 copy-to-clipboard-icon"})}),vge=(e,{margin:t,...n})=>{const r=`${e}/qr-code`,i=Zh({...n,margin:t>0?t:void 0});return`${r}${Pi(i)?"":`?${i}`}`},yge=({errorCorrection:e,setErrorCorrection:t})=>g.jsxs(ha,{text:`Error correction (${e})`,children:[g.jsxs(Ue,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Ue,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Ue,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Ue,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),_ge=({format:e,setFormat:t})=>g.jsxs(ha,{text:`Format (${e})`,children:[g.jsx(Ue,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),g.jsx(Ue,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),bge=e=>({shortUrl:{shortUrl:t,shortCode:n},toggle:r,isOpen:i})=>{const[o,a]=U.useState(300),[s,l]=U.useState(0),[c,d]=U.useState("png"),[f,p]=U.useState("L"),m=U.useMemo(()=>vge(t,{size:o,format:c,margin:s,errorCorrection:f}),[t,o,c,s,f]),v=U.useMemo(()=>o+s,[o,s]),y=U.useMemo(()=>{if(!(v<500))return v<800?"lg":"xl"},[v]);return g.jsxs(da,{isOpen:i,toggle:r,centered:!0,size:y,children:[g.jsxs(fa,{toggle:r,children:["QR code for ",g.jsx(Go,{href:t,children:t})]}),g.jsxs(Oo,{children:[g.jsxs(_r,{children:[g.jsxs(Vr,{className:"d-grid col-md-6",children:[g.jsxs("label",{children:["Size: ",o,"px"]}),g.jsx("input",{type:"range",className:"form-control-range",value:o,step:10,min:50,max:1e3,onChange:x=>a(Number(x.target.value))})]}),g.jsxs(Vr,{className:"d-grid col-md-6",children:[g.jsxs("label",{htmlFor:"marginControl",children:["Margin: ",s,"px"]}),g.jsx("input",{id:"marginControl",type:"range",className:"form-control-range",value:s,step:1,min:0,max:100,onChange:x=>l(Number(x.target.value))})]}),g.jsx(Vr,{className:"d-grid col-md-6",children:g.jsx(_ge,{format:c,setFormat:d})}),g.jsx(Vr,{className:"col-md-6",children:g.jsx(yge,{errorCorrection:f,setErrorCorrection:p})})]}),g.jsxs("div",{className:"text-center",children:[g.jsxs("div",{className:"mb-3",children:[g.jsx(Go,{href:m}),g.jsx(V8,{text:m})]}),g.jsx("img",{src:m,className:"qr-code-modal__img",alt:"QR code"}),g.jsx("div",{className:"mt-3",children:g.jsxs(_t,{block:!0,color:"primary",onClick:()=>{e.saveImage(m,`${n}-qr-code.${c}`).catch(()=>{})},children:["Download ",g.jsx(Ae,{icon:p4,className:"ms-1"})]})})]})]})]})},cy=({date:e,format:t=RT,relative:n=!1})=>{const r=NT(e)?e:ia(e);return g.jsx("time",{dateTime:`${khe(r)}000`,children:n?`${xhe(hs(),r)} ago`:Pu(r,t)})},wge=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n;return i&&s>=i?{icon:wY,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",g.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&mi(zi(a),hs())?{icon:nP,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:ay(zi(a))}),"."]})}:o&&mi(hs(),zi(o))?{icon:nP,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:ay(zi(o))}),"."]})}:{icon:Kf,className:"text-primary",description:"This short URL can be visited normally."}},xge=({shortUrl:e})=>{const t=bs(),{icon:n,className:r,description:i}=wge(e);return g.jsxs(g.Fragment,{children:[g.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:g.jsx(Ae,{icon:n,className:r})}),g.jsx(Ir,{target:t,placement:"bottom",children:i})]})};var H8={exports:{}};/*! + 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;i{const i=n?`?domain=${n}`:"";return`${e}/short-code/${Qde(t)}/${r}${i}`},h2=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=zl();return!n||!e?g.jsx("span",{...i,children:r}):g.jsx(Ut,{to:Ege(o,e,t),...i,children:r})},W8=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const{maxVisits:i,validSince:o,validUntil:a}=(t==null?void 0:t.meta)??{},s=!!i||!!o||!!a,l=g.jsx(h2,{shortUrl:t,suffix:"visits",asLink:r,children:g.jsx("strong",{className:rt("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:En(e)})});if(!s)return l;const c=bs();return g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"indivisible",children:[l,g.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:c,children:[i&&g.jsxs(g.Fragment,{children:[" / ",En(i)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(Ae,{icon:JS})})]})]}),g.jsx(Ir,{target:c,placement:"bottom",children:g.jsxs("ul",{className:"list-unstyled mb-0",children:[i&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",g.jsx("b",{children:En(i)})," visit",i===1?"":"s","."]}),o&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",g.jsx("b",{className:"indivisible",children:ay(zi(o))}),"."]}),a&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",g.jsx("b",{className:"indivisible",children:ay(zi(a))}),"."]})]})})]})},BT=({text:e,children:t,clearable:n,className:r="",colorGenerator:i,onClick:o,onClose:a})=>g.jsxs("span",{className:rt("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&&g.jsx("span",{"aria-label":`Remove ${e}`,className:"close tag__close-selected-tag",onClick:a,children:"×"})]}),Tge=({tags:e,onTagClick:t,colorGenerator:n})=>Pi(e)?g.jsx("i",{className:"indivisible",children:g.jsx("small",{children:"No tags"})}):g.jsx(g.Fragment,{children:e.map(r=>g.jsx(BT,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),Oge=(e,t,n)=>({shortUrl:r,onTagClick:i})=>{var o,a,s,l;const[c,d]=n(),[f,p]=n(!1,500),m=U.useRef(!0),[{excludeBots:v}]=k0(),y=Hl("visits"),x=v??(y==null?void 0:y.excludeBots);return U.useEffect(()=>{!m.current&&p(),m.current=!1},[(o=r.visitsSummary)==null?void 0:o.total,(a=r.visitsSummary)==null?void 0:a.nonBots,r.visitsCount]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:g.jsx(cy,{date:r.dateCreated})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:g.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[g.jsx("span",{className:"short-urls-row__short-url-wrapper",children:g.jsx(Go,{href:r.shortUrl})}),g.jsx(V8,{text:r.shortUrl,onCopy:d}),g.jsx("span",{className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!c,children:"Copied short URL!"})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${r.title?"Title":"Long URL"}`,children:g.jsx(Go,{href:r.longUrl,children:r.title??r.longUrl})}),r.title&&g.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:g.jsx(Go,{href:r.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(Tge,{tags:r.tags,colorGenerator:t,onTagClick:i})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:g.jsx(W8,{visitsCount:(x?(s=r.visitsSummary)==null?void 0:s.nonBots:(l=r.visitsSummary)==null?void 0:l.total)??r.visitsCount,shortUrl:r,active:f,asLink:!0})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:g.jsx(xge,{shortUrl:r})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(e,{shortUrl:r})})]})},Cge=(e,t)=>({shortUrl:n})=>{const[r,,i,o]=On(),[a,,s,l]=On();return g.jsxs(d0,{minWidth:190,children:[g.jsxs(Ue,{tag:h2,shortUrl:n,suffix:"visits",asLink:!0,children:[g.jsx(Ae,{icon:XS,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ue,{tag:h2,shortUrl:n,suffix:"edit",asLink:!0,children:[g.jsx(Ae,{icon:QS,fixedWidth:!0})," Edit short URL"]}),g.jsxs(Ue,{onClick:i,children:[g.jsx(Ae,{icon:_Y,fixedWidth:!0})," QR code"]}),g.jsx(t,{shortUrl:n,isOpen:r,toggle:o}),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{className:"dropdown-item--danger",onClick:s,children:[g.jsx(Ae,{icon:ZS,fixedWidth:!0})," Delete short URL"]}),g.jsx(e,{shortUrl:n,isOpen:a,toggle:l})]})},Y8="shlink/shortUrlCreation",bM={saving:!1,saved:!1,error:!1},kge=e=>Dr(`${Y8}/createShortUrl`,t=>e().createShortUrl(t)),Pge=e=>{const{reducer:t,actions:n}=dr({name:Y8,initialState:bM,reducers:{resetCreateShortUrl:()=>bM},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:ma(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},wM="shlink/shortUrlDetail",xM={loading:!1,error:!1},jge=e=>{const t=Dr(`${wM}/getShortUrlDetail`,async({shortCode:r,domain:i},{getState:o})=>{var a;const{shortUrlsList:s}=o();return((a=s==null?void 0:s.shortUrls)==null?void 0:a.data.find(l=>Sf(l,r,i)))??await e().getShortUrl(r,i)}),{reducer:n}=dr({name:wM,initialState:xM,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:ma(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...xM,shortUrl:o}))}});return{reducer:n,getShortUrlDetail:t}},G8="shlink/shortUrlEdition",Lge={saving:!1,saved:!1,error:!1},Mge=e=>Dr(`${G8}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),Age=e=>dr({name:G8,initialState:Lge,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:ma(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),Rge=({icon:e,className:t,...n})=>{const r=bs(),i=rt("icon-input-container__input",t);return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(xl,{className:i,innerRef:r,...n}),g.jsx(Ae,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var o;return(o=r.current)==null?void 0:o.focus()}})]})};function Nge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p2(e,t)}function p2(e,t){return p2=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},p2(e,t)}function Dge(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 SM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ige(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Fge(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Ige(e,t,n))return!0;e=e.parentNode||e.host}return e}function $ge(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var Uge=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};function Bge(e){return e===void 0&&(e=0),function(){return++e}}var zge=Bge(),m2,Im={},I1={},Vge=["touchstart","touchmove"],Hge="ignore-react-onclickoutside";function EM(e,t){var n={},r=Vge.indexOf(t)!==-1;return r&&m2&&(n.passive=!e.props.preventDefault),n}function P0(e,t){var n,r,i=e.displayName||e.name||"Component";return r=n=function(o){Nge(a,o);function a(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(d){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(d);return}var f=c.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(d);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(d);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var d=c.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(d):typeof d.setClickOutsideRef=="function"?d.setClickOutsideRef():Al.findDOMNode(d)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||I1[c._uid])){typeof m2>"u"&&(m2=Uge()),I1[c._uid]=!0;var d=c.props.eventTypes;d.forEach||(d=[d]),Im[c._uid]=function(f){if(c.componentNode!==null&&(c.props.preventDefault&&f.preventDefault(),c.props.stopPropagation&&f.stopPropagation(),!(c.props.excludeScrollbar&&$ge(f)))){var p=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Fge(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(f)}},d.forEach(function(f){document.addEventListener(f,Im[c._uid],EM(SM(c),f))})}},c.disableOnClickOutside=function(){delete I1[c._uid];var d=Im[c._uid];if(d&&typeof document<"u"){var f=c.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(p){return document.removeEventListener(p,d,EM(SM(c),p))}),delete Im[c._uid]}},c.getRef=function(d){return c.instanceRef=d},c._uid=zge(),c}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var l=this.instanceRef;return l.getInstance?l.getInstance():l},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var l=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(l),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()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var l=this.props;l.excludeScrollbar;var c=Dge(l,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?c.ref=this.getRef:c.wrappedRef=this.getRef,c.disableOnClickOutside=this.disableOnClickOutside,c.enableOnClickOutside=this.enableOnClickOutside,U.createElement(e,c)},a}(U.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:Hge,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var q8=U.createContext(),K8=U.createContext();function Wge(e){var t=e.children,n=U.useState(null),r=n[0],i=n[1],o=U.useRef(!1);U.useEffect(function(){return function(){o.current=!0}},[]);var a=U.useCallback(function(s){o.current||i(s)},[]);return U.createElement(q8.Provider,{value:r},U.createElement(K8.Provider,{value:a},t))}var Z8=function(e){return Array.isArray(e)?e[0]:e},Q8=function(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"u")return!1;var t=ei(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ive(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];!bi(o)||!Eo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function ove(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]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!bi(i)||!Eo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const ave={name:"applyStyles",enabled:!0,phase:"write",fn:ive,effect:ove,requires:["computeStyles"]};function _o(e){return e.split("-")[0]}var fl=Math.max,uy=Math.min,Au=Math.round;function v2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function eF(){return!/^((?!chrome|android).)*safari/i.test(v2())}function Ru(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&bi(e)&&(i=e.offsetWidth>0&&Au(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Au(r.height)/e.offsetHeight||1);var a=kl(e)?ei(e):window,s=a.visualViewport,l=!eF()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,d=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:c+f,bottom:d+p,left:c,x:c,y:d}}function HT(e){var t=Ru(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 tF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&VT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oa(e){return ei(e).getComputedStyle(e)}function sve(e){return["table","td","th"].indexOf(Eo(e))>=0}function Es(e){return((kl(e)?e.ownerDocument:e.document)||window.document).documentElement}function j0(e){return Eo(e)==="html"?e:e.assignedSlot||e.parentNode||(VT(e)?e.host:null)||Es(e)}function kM(e){return!bi(e)||oa(e).position==="fixed"?null:e.offsetParent}function lve(e){var t=/firefox/i.test(v2()),n=/Trident/i.test(v2());if(n&&bi(e)){var r=oa(e);if(r.position==="fixed")return null}var i=j0(e);for(VT(i)&&(i=i.host);bi(i)&&["html","body"].indexOf(Eo(i))<0;){var o=oa(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 up(e){for(var t=ei(e),n=kM(e);n&&sve(n)&&oa(n).position==="static";)n=kM(n);return n&&(Eo(n)==="html"||Eo(n)==="body"&&oa(n).position==="static")?t:n||lve(e)||t}function WT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Of(e,t,n){return fl(e,uy(t,n))}function cve(e,t,n){var r=Of(e,t,n);return r>n?n:r}function nF(){return{top:0,right:0,bottom:0,left:0}}function rF(e){return Object.assign({},nF(),e)}function iF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uve=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,rF(typeof e!="number"?e:iF(e,cp))};function dve(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=_o(n.placement),l=WT(s),c=[Nr,Ci].indexOf(s)>=0,d=c?"height":"width";if(!(!o||!a)){var f=uve(i.padding,n),p=HT(o),m=l==="y"?Rr:Nr,v=l==="y"?Oi:Ci,y=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],x=a[l]-n.rects.reference[l],_=up(o),w=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-x/2,E=f[m],C=w-p[d]-f[v],k=w/2-p[d]/2+S,j=Of(E,k,C),A=l;n.modifiersData[r]=(t={},t[A]=j,t.centerOffset=j-k,t)}}function fve(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)||tF(t.elements.popper,i)&&(t.elements.arrow=i))}const hve={name:"arrow",enabled:!0,phase:"main",fn:dve,effect:fve,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nu(e){return e.split("-")[1]}var pve={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mve(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Au(n*i)/i||0,y:Au(r*i)/i||0}}function PM(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,y=v===void 0?0:v,x=typeof d=="function"?d({x:m,y}):{x:m,y};m=x.x,y=x.y;var _=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Nr,E=Rr,C=window;if(c){var k=up(n),j="clientHeight",A="clientWidth";if(k===ei(n)&&(k=Es(n),oa(k).position!=="static"&&s==="absolute"&&(j="scrollHeight",A="scrollWidth")),k=k,i===Rr||(i===Nr||i===Ci)&&o===Eh){E=Oi;var $=f&&k===C&&C.visualViewport?C.visualViewport.height:k[j];y-=$-r.height,y*=l?1:-1}if(i===Nr||(i===Rr||i===Oi)&&o===Eh){S=Ci;var N=f&&k===C&&C.visualViewport?C.visualViewport.width:k[A];m-=N-r.width,m*=l?1:-1}}var z=Object.assign({position:s},c&&pve),W=d===!0?mve({x:m,y},ei(n)):{x:m,y};if(m=W.x,y=W.y,l){var X;return Object.assign({},z,(X={},X[E]=w?"0":"",X[S]=_?"0":"",X.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",X))}return Object.assign({},z,(t={},t[E]=w?y+"px":"",t[S]=_?m+"px":"",t.transform="",t))}function gve(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:_o(t.placement),variation:Nu(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,PM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,PM(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 vve={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gve,data:{}};var Fm={passive:!0};function yve(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ei(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",n.update,Fm)}),s&&l.addEventListener("resize",n.update,Fm),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Fm)}),s&&l.removeEventListener("resize",n.update,Fm)}}const _ve={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yve,data:{}};var bve={left:"right",right:"left",bottom:"top",top:"bottom"};function Sg(e){return e.replace(/left|right|bottom|top/g,function(t){return bve[t]})}var wve={start:"end",end:"start"};function jM(e){return e.replace(/start|end/g,function(t){return wve[t]})}function YT(e){var t=ei(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function GT(e){return Ru(Es(e)).left+YT(e).scrollLeft}function xve(e,t){var n=ei(e),r=Es(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=eF();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+GT(e),y:l}}function Sve(e){var t,n=Es(e),r=YT(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=fl(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=fl(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+GT(e),l=-r.scrollTop;return oa(i||n).direction==="rtl"&&(s+=fl(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function qT(e){var t=oa(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function oF(e){return["html","body","#document"].indexOf(Eo(e))>=0?e.ownerDocument.body:bi(e)&&qT(e)?e:oF(j0(e))}function Cf(e,t){var n;t===void 0&&(t=[]);var r=oF(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ei(r),a=i?[o].concat(o.visualViewport||[],qT(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Cf(j0(a)))}function y2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Eve(e,t){var n=Ru(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 LM(e,t,n){return t===X8?y2(xve(e,n)):kl(t)?Eve(t,n):y2(Sve(Es(e)))}function Tve(e){var t=Cf(j0(e)),n=["absolute","fixed"].indexOf(oa(e).position)>=0,r=n&&bi(e)?up(e):e;return kl(r)?t.filter(function(i){return kl(i)&&tF(i,r)&&Eo(i)!=="body"}):[]}function Ove(e,t,n,r){var i=t==="clippingParents"?Tve(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var d=LM(e,c,r);return l.top=fl(d.top,l.top),l.right=uy(d.right,l.right),l.bottom=uy(d.bottom,l.bottom),l.left=fl(d.left,l.left),l},LM(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function aF(e){var t=e.reference,n=e.element,r=e.placement,i=r?_o(r):null,o=r?Nu(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Rr:l={x:a,y:t.y-n.height};break;case Oi:l={x:a,y:t.y+t.height};break;case Ci:l={x:t.x+t.width,y:s};break;case Nr:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?WT(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case Mu:l[c]=l[c]-(t[d]/2-n[d]/2);break;case Eh:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function Th(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Yge:s,c=n.rootBoundary,d=c===void 0?X8:c,f=n.elementContext,p=f===void 0?Md:f,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,x=y===void 0?0:y,_=rF(typeof x!="number"?x:iF(x,cp)),w=p===Md?Gge:Md,S=e.rects.popper,E=e.elements[v?w:p],C=Ove(kl(E)?E:E.contextElement||Es(e.elements.popper),l,d,a),k=Ru(e.elements.reference),j=aF({reference:k,element:S,strategy:"absolute",placement:i}),A=y2(Object.assign({},S,j)),$=p===Md?A:k,N={top:C.top-$.top+_.top,bottom:$.bottom-C.bottom+_.bottom,left:C.left-$.left+_.left,right:$.right-C.right+_.right},z=e.modifiersData.offset;if(p===Md&&z){var W=z[i];Object.keys(N).forEach(function(X){var G=[Ci,Oi].indexOf(X)>=0?1:-1,Z=[Rr,Oi].indexOf(X)>=0?"y":"x";N[X]+=W[Z]*G})}return N}function Cve(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?J8:l,d=Nu(r),f=d?s?CM:CM.filter(function(v){return Nu(v)===d}):cp,p=f.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,y){return v[y]=Th(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[_o(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function kve(e){if(_o(e)===zT)return[];var t=Sg(e);return[jM(e),t,jM(t)]}function Pve(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,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,x=t.options.placement,_=_o(x),w=_===x,S=l||(w||!v?[Sg(x)]:kve(x)),E=[x].concat(S).reduce(function(K,re){return K.concat(_o(re)===zT?Cve(t,{placement:re,boundary:d,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:y}):re)},[]),C=t.rects.reference,k=t.rects.popper,j=new Map,A=!0,$=E[0],N=0;N=0,Z=G?"width":"height",te=Th(t,{placement:z,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),le=G?X?Ci:Nr:X?Oi:Rr;C[Z]>k[Z]&&(le=Sg(le));var q=Sg(le),I=[];if(o&&I.push(te[W]<=0),s&&I.push(te[le]<=0,te[q]<=0),I.every(function(K){return K})){$=z,A=!1;break}j.set(z,I)}if(A)for(var D=v?3:1,H=function(K){var re=E.find(function(ae){var he=j.get(ae);if(he)return he.slice(0,K).every(function(O){return O})});if(re)return $=re,"break"},ie=D;ie>0;ie--){var V=H(ie);if(V==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const jve={name:"flip",enabled:!0,phase:"main",fn:Pve,requiresIfExists:["offset"],data:{_skip:!1}};function MM(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 AM(e){return[Rr,Ci,Oi,Nr].some(function(t){return e[t]>=0})}function Lve(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Th(t,{elementContext:"reference"}),s=Th(t,{altBoundary:!0}),l=MM(a,r),c=MM(s,i,o),d=AM(l),f=AM(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Mve={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lve};function Ave(e,t,n){var r=_o(e),i=[Nr,Rr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Nr,Ci].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Rve(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=J8.reduce(function(d,f){return d[f]=Ave(f,t.rects,o),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const Nve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rve};function Dve(e){var t=e.state,n=e.name;t.modifiersData[n]=aF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ive={name:"popperOffsets",enabled:!0,phase:"read",fn:Dve,data:{}};function Fve(e){return e==="x"?"y":"x"}function $ve(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,x=Th(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:d}),_=_o(t.placement),w=Nu(t.placement),S=!w,E=WT(_),C=Fve(E),k=t.modifiersData.popperOffsets,j=t.rects.reference,A=t.rects.popper,$=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(k){if(o){var X,G=E==="y"?Rr:Nr,Z=E==="y"?Oi:Ci,te=E==="y"?"height":"width",le=k[E],q=le+x[G],I=le-x[Z],D=m?-A[te]/2:0,H=w===Mu?j[te]:A[te],ie=w===Mu?-A[te]:-j[te],V=t.elements.arrow,K=m&&V?HT(V):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nF(),ae=re[G],he=re[Z],O=Of(0,j[te],K[te]),M=S?j[te]/2-D-O-ae-N.mainAxis:H-O-ae-N.mainAxis,F=S?-j[te]/2+D+O+he+N.mainAxis:ie+O+he+N.mainAxis,ee=t.elements.arrow&&up(t.elements.arrow),J=ee?E==="y"?ee.clientTop||0:ee.clientLeft||0:0,se=(X=z==null?void 0:z[E])!=null?X:0,ge=le+M-se-J,Me=le+F-se,ue=Of(m?uy(q,ge):q,le,m?fl(I,Me):I);k[E]=ue,W[E]=ue-le}if(s){var me,_e=E==="x"?Rr:Nr,Se=E==="x"?Oi:Ci,ke=k[C],Ce=C==="y"?"height":"width",Le=ke+x[_e],ce=ke-x[Se],fe=[Rr,Nr].indexOf(_)!==-1,ye=(me=z==null?void 0:z[C])!=null?me:0,ve=fe?Le:ke-j[Ce]-A[Ce]-ye+N.altAxis,xe=fe?ke+j[Ce]+A[Ce]-ye-N.altAxis:ce,Pe=m&&fe?cve(ve,ke,xe):Of(m?ve:Le,ke,m?xe:ce);k[C]=Pe,W[C]=Pe-ke}t.modifiersData[r]=W}}const Uve={name:"preventOverflow",enabled:!0,phase:"main",fn:$ve,requiresIfExists:["offset"]};function Bve(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zve(e){return e===ei(e)||!bi(e)?YT(e):Bve(e)}function Vve(e){var t=e.getBoundingClientRect(),n=Au(t.width)/e.offsetWidth||1,r=Au(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hve(e,t,n){n===void 0&&(n=!1);var r=bi(t),i=bi(t)&&Vve(t),o=Es(t),a=Ru(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Eo(t)!=="body"||qT(o))&&(s=zve(t)),bi(t)?(l=Ru(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=GT(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Wve(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 a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Yve(e){var t=Wve(e);return rve.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Gve(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qve(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 RM={placement:"bottom",modifiers:[],strategy:"absolute"};function NM(){for(var e=arguments.length,t=new Array(e),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}}();return function(){var n,r=dy(e);if(t){var i=dy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ne(o)}(this,n)}}function w2(e){return function(t){if(Array.isArray(t))return F1(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 F1(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 F1(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 F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return M0(e,{minDate:n,maxDate:r})||i&&i.some(function(c){return yr(e,c)})||o&&o.some(function(c){var d=c.start,f=c.end;return ju(e,{start:d,end:f})})||a&&!a.some(function(c){return yr(e,c)})||s&&!s.some(function(c){var d=c.start,f=c.end;return ju(e,{start:d,end:f})})||l&&!l(Ot(e))||!1}function QT(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,a=i.end;return ju(e,{start:o,end:a})}):n&&n.some(function(i){return yr(e,i)})||!1}function cF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return M0(e,{minDate:a8(n),maxDate:o8(r)})||i&&i.some(function(s){return Fi(e,s)})||o&&!o.some(function(s){return Fi(e,s)})||a&&!a(Ot(e))||!1}function $1(e,t,n,r){var i=Je(e),o=ar(e),a=Je(t),s=ar(t),l=Je(r);return i===a&&i===l?o<=n&&n<=s:i=n||li:void 0}function gye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return M0(e,{minDate:n,maxDate:r})||i&&i.some(function(s){return fy(e,s)})||o&&!o.some(function(s){return fy(e,s)})||a&&!a(Ot(e))||!1}function U1(e,t,n){if(!ey(t)||!ey(n))return!1;var r=Je(t),i=Je(n);return r<=e&&i>=e}function uF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return M0(s,{minDate:s8(n),maxDate:hfe(r)})||i&&i.some(function(l){return Va(s,l)})||o&&!o.some(function(l){return Va(s,l)})||a&&!a(Ot(s))||!1}function B1(e,t,n,r){var i=Je(e),o=Ic(e),a=Je(t),s=Ic(t),l=Je(r);return i===a&&i===l?o<=n&&n<=s:i=n||li:void 0}function M0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&wh(e,n)<0||r&&wh(e,r)>0}function HM(e,t){return t.some(function(n){return Hr(n)===Hr(e)&&Wr(n)===Wr(e)})}function WM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&HM(e,n)||r&&!HM(e,r)||i&&!i(e)||!1}function YM(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=Ot(),a=Ef(Tf(o,Wr(e)),Hr(e)),s=Ef(Tf(o,Wr(n)),Hr(n)),l=Ef(Tf(o,Wr(r)),Hr(r));try{i=!ju(a,{start:s,end:l})}catch{i=!1}return i}function GM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Lu(e,1);return n&&xh(n,i)>0||r&&r.every(function(o){return xh(o,i)>0})||!1}function qM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Ti(e,1);return n&&xh(i,n)>0||r&&r.every(function(o){return xh(i,o)>0})||!1}function KM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Sh(e,1);return n&&ty(n,i)>0||r&&r.every(function(o){return ty(o,i)>0})||!1}function ZM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=Cu(e,1);return n&&ty(i,n)>0||r&&r.every(function(o){return ty(i,o)>0})||!1}function dF(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return wh(i,t)>=0});return H3(r)}return n?H3(n):t}function fF(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return wh(i,t)<=0});return V3(r)}return n?V3(n):t}function QM(){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]:kf,n=Math.ceil(Je(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function yye(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=Je(n)<=a),r&&s&&(s=Je(r)>=a),s&&i.push(a)}return i}var _ye=P0(function(e){Un(n,Y.Component);var t=Bn(n);function n(r){var i;Fn(this,n),Q(ne(i=t.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return Y.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(ne(i),p),"aria-selected":l===p?"true":void 0},l===p?Y.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),d=i.props.minDate?Je(i.props.minDate):null,f=i.props.maxDate?Je(i.props.maxDate):null;return f&&i.state.yearsList.find(function(p){return p===f})||c.unshift(Y.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},Y.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),d&&i.state.yearsList.find(function(p){return p===d})||c.push(Y.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},Y.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),Q(ne(i),"onChange",function(l){i.props.onChange(l)}),Q(ne(i),"handleClickOutside",function(){i.props.onCancel()}),Q(ne(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(d){return d+l});i.setState({yearsList:c})}),Q(ne(i),"incrementYears",function(){return i.shiftYears(1)}),Q(ne(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:yye(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=U.createRef(),i}return $n(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var i=r.children?Array.from(r.children):null,o=i?i.find(function(a){return a.ariaSelected}):null;r.scrollTop=o?o.offsetTop+(o.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=rt({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return Y.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),bye=function(e){Un(n,Y.Component);var t=Bn(n);function n(){var r;Fn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.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),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(l=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(l=!1)),l&&r.dayEl.current.focus({preventScroll:!0})}),Q(ne(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(Q3(r.props.day),r.props.day):Q3(r.props.day)}),Q(ne(r),"render",function(){return Y.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.isInRange()},r.renderDayContents())}),r}return $n(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),Cye=function(e){Un(n,Y.Component);var t=Bn(n);function n(){var r;Fn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=6,m=!l&&!r.isWeekInMonth(f);if(p||m){if(!r.props.peekNextMonth)break;d=!0}}return s}),Q(ne(r),"onMonthClick",function(s,l){r.handleDayClick(ns(vr(r.props.day,l)),s)}),Q(ne(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(ns(vr(r.props.day,s)))}),Q(ne(r),"handleMonthNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),Q(ne(r),"onMonthKeyDown",function(s,l){var c=r.props,d=c.selected,f=c.preSelection,p=c.disabledKeyboardNavigation,m=c.showTwoColumnMonthYearPicker,v=c.showFourColumnMonthYearPicker,y=c.setPreSelection,x=s.key;if(x!=="Tab"&&s.preventDefault(),!p){var _=JM(v,m),w=z1[_].verticalNavigationOffset,S=z1[_].grid;switch(x){case"Enter":r.onMonthClick(s,l),y(d);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,Ti(f,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,Lu(f,1));break;case"ArrowUp":r.handleMonthNavigation(S[0].includes(l)?l+12-w:l-w,Lu(f,w));break;case"ArrowDown":r.handleMonthNavigation(S[S.length-1].includes(l)?l-12+w:l+w,Ti(f,w))}}}),Q(ne(r),"onQuarterClick",function(s,l){r.handleDayClick(zM(hc(r.props.day,l)),s)}),Q(ne(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(zM(hc(r.props.day,s)))}),Q(ne(r),"handleQuarterNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())}),Q(ne(r),"onQuarterKeyDown",function(s,l){var c=s.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onQuarterClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(l===4?1:l+1,r8(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(l===1?4:l-1,Ype(r.props.preSelection,1))}}),Q(ne(r),"getMonthClassNames",function(s){var l=r.props,c=l.day,d=l.startDate,f=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,y=l.preSelection,x=l.monthClassName,_=l.excludeDates,w=l.includeDates,S=x?x(vr(c,s)):void 0,E=vr(c,s);return rt("react-datepicker__month-text","react-datepicker__month-".concat(s),S,{"react-datepicker__month-text--disabled":(m||v||_||w)&&cF(E,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(c,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&ar(y)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":$1(d,f,s,c),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(c,s)})}),Q(ne(r),"getTabIndex",function(s){var l=ar(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),Q(ne(r),"getQuarterTabIndex",function(s){var l=Ic(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),Q(ne(r),"getAriaLabel",function(s){var l=r.props,c=l.chooseDayAriaLabelPrefix,d=c===void 0?"Choose":c,f=l.disabledDayAriaLabelPrefix,p=f===void 0?"Not available":f,m=l.day,v=vr(m,s),y=r.isDisabled(v)||r.isExcluded(v)?p:d;return"".concat(y," ").concat(fn(v,"MMMM yyyy"))}),Q(ne(r),"getQuarterClassNames",function(s){var l=r.props,c=l.day,d=l.startDate,f=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,y=l.preSelection;return rt("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(m||v)&&gye(hc(c,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(c,s,p),"react-datepicker__quarter-text--keyboard-selected":Ic(y)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":B1(d,f,s,c),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})}),Q(ne(r),"getMonthContent",function(s){var l=r.props,c=l.showFullMonthYearPicker,d=l.renderMonthContent,f=l.locale,p=lF(s,f),m=ZT(s,f);return d?d(s,p,m):c?m:p}),Q(ne(r),"getQuarterContent",function(s){var l=r.props,c=l.renderQuarterContent,d=function(f,p){return fn(hc(Ot(),f),"QQQ",p)}(s,l.locale);return c?c(s,d):d}),Q(ne(r),"renderMonths",function(){var s=r.props,l=s.showTwoColumnMonthYearPicker,c=s.showFourColumnMonthYearPicker,d=s.day,f=s.selected;return z1[JM(c,l)].grid.map(function(p,m){return Y.createElement("div",{className:"react-datepicker__month-wrapper",key:m},p.map(function(v,y){return Y.createElement("div",{ref:r.MONTH_REFS[v],key:y,onClick:function(x){r.onMonthClick(x,v)},onKeyDown:function(x){r.onMonthKeyDown(x,v)},onMouseEnter:function(){return r.onMonthMouseEnter(v)},tabIndex:r.getTabIndex(v),className:r.getMonthClassNames(v),role:"option","aria-label":r.getAriaLabel(v),"aria-current":r.isCurrentMonth(d,v)?"date":void 0,"aria-selected":r.isSelectedMonth(d,v,f)},r.getMonthContent(v))}))})}),Q(ne(r),"renderQuarters",function(){var s=r.props,l=s.day,c=s.selected;return Y.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(d,f){return Y.createElement("div",{key:f,ref:r.QUARTER_REFS[f],role:"option",onClick:function(p){r.onQuarterClick(p,d)},onKeyDown:function(p){r.onQuarterKeyDown(p,d)},onMouseEnter:function(){return r.onQuarterMouseEnter(d)},className:r.getQuarterClassNames(d),"aria-selected":r.isSelectedQuarter(l,d,c),tabIndex:r.getQuarterTabIndex(d),"aria-current":r.isCurrentQuarter(l,d)?"date":void 0},r.getQuarterContent(d))}))}),Q(ne(r),"getClassNames",function(){var s=r.props,l=s.selectingDate,c=s.selectsStart,d=s.selectsEnd,f=s.showMonthYearPicker,p=s.showQuarterYearPicker;return rt("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||d)},{"react-datepicker__monthPicker":f},{"react-datepicker__quarterPicker":p})}),r}return $n(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return Y.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(fn(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),gF=function(e){Un(n,Y.Component);var t=Bn(n);function n(){var r;Fn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return Aye.some(function(s){return a.indexOf(s)>=0})})(o.target)&&i.props.onDropdownFocus()}),Q(ne(i),"getDateInView",function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,c=dF(i.props),d=fF(i.props),f=Ot(),p=l||s||a;return p||(c&&mi(f,c)?c:d&&fs(f,d)?d:f)}),Q(ne(i),"increaseMonth",function(){i.setState(function(o){var a=o.date;return{date:Ti(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),Q(ne(i),"decreaseMonth",function(){i.setState(function(o){var a=o.date;return{date:Lu(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),Q(ne(i),"handleDayClick",function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)}),Q(ne(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),Q(ne(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),Q(ne(i),"handleYearMouseEnter",function(o,a){i.setState({selectingDate:$o(Ot(),a)}),i.props.onYearMouseEnter&&i.props.onYearMouseEnter(o,a)}),Q(ne(i),"handleYearMouseLeave",function(o,a){i.props.onYearMouseLeave&&i.props.onYearMouseLeave(o,a)}),Q(ne(i),"handleYearChange",function(o){i.props.onYearChange&&(i.props.onYearChange(o),i.setState({isRenderAriaLiveMessage:!0})),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),Q(ne(i),"handleMonthChange",function(o){i.handleCustomMonthChange(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)}),Q(ne(i),"handleCustomMonthChange",function(o){i.props.onMonthChange&&(i.props.onMonthChange(o),i.setState({isRenderAriaLiveMessage:!0}))}),Q(ne(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),Q(ne(i),"changeYear",function(o){i.setState(function(a){var s=a.date;return{date:$o(s,o)}},function(){return i.handleYearChange(i.state.date)})}),Q(ne(i),"changeMonth",function(o){i.setState(function(a){var s=a.date;return{date:vr(s,o)}},function(){return i.handleMonthChange(i.state.date)})}),Q(ne(i),"changeMonthYear",function(o){i.setState(function(a){var s=a.date;return{date:$o(vr(s,ar(o)),Je(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),Q(ne(i),"header",function(){var o=KT(arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,i.props.locale,i.props.calendarStartDay),a=[];return i.props.showWeekNumbers&&a.push(Y.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var l=Vl(o,s),c=i.formatWeekday(l,i.props.locale),d=i.props.weekDayClassName?i.props.weekDayClassName(l):void 0;return Y.createElement("div",{key:s,className:rt("react-datepicker__day-name",d)},c)}))}),Q(ne(i),"formatWeekday",function(o,a){return i.props.formatWeekDay?function(s,l,c){return l(fn(s,"EEEE",c))}(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?function(s,l){return fn(s,"EEE",l)}(o,a):function(s,l){return fn(s,"EEEEEE",l)}(o,a)}),Q(ne(i),"decreaseYear",function(){i.setState(function(o){var a=o.date;return{date:Sh(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),Q(ne(i),"clearSelectingDate",function(){i.setState({selectingDate:null})}),Q(ne(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=KM(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.minDate,E=w.yearItemNumber,C=E===void 0?kf:E,k=Uc(Gd(Sh(_,C)),C).endPeriod,j=S&&Je(S);return j&&j>k||!1}(i.state.date,i.props);break;default:o=GM(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,d=c.previousMonthButtonLabel,f=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,v=m===void 0?typeof d=="string"?d:"Previous Month":m,y=p.previousYearAriaLabel,x=y===void 0?typeof f=="string"?f:"Previous Year":y;return Y.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?x:v},Y.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),Q(ne(i),"increaseYear",function(){i.setState(function(o){var a=o.date;return{date:Cu(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),Q(ne(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=ZM(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=w.maxDate,E=w.yearItemNumber,C=E===void 0?kf:E,k=Uc(Cu(_,C),C).startPeriod,j=S&&Je(S);return j&&j0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),Y.createElement("div",{className:a.join(" ")},fn(o,i.props.dateFormat,i.props.locale))}),Q(ne(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return Y.createElement(bye,{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:Je(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),Q(ne(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return Y.createElement(xye,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:ar(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),Q(ne(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return Y.createElement(Tye,{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})}),Q(ne(i),"handleTodayButtonClick",function(o){i.props.onSelect(VM(),o),i.props.setPreSelection&&i.props.setPreSelection(VM())}),Q(ne(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return Y.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.handleTodayButtonClick(o)}},i.props.todayButton)}),Q(ne(i),"renderDefaultHeader",function(o){var a=o.monthDate,s=o.i;return Y.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(a),Y.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),Y.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),Q(ne(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,s=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=GM(i.state.date,i.props),c=qM(i.state.date,i.props),d=KM(i.state.date,i.props),f=ZM(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return Y.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(IM(IM({},i.state),{},{customHeaderCount:s,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:d,nextYearButtonDisabled:f})),p&&Y.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),Q(ne(i),"renderYearHeader",function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=Uc(o,a.yearItemNumber),c=l.startPeriod,d=l.endPeriod;return Y.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(d):Je(o))}),Q(ne(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)}}),Q(ne(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],a=i.props.showPreviousMonths?i.props.monthsShown-1:0,s=Lu(i.state.date,a),l=0;l0;o.push(Y.createElement("div",{key:f,ref:function(v){i.monthContainer=v},className:"react-datepicker__month-container"},i.renderHeader({monthDate:d,i:l}),Y.createElement(Pye,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:d,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,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,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}}),Q(ne(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?Y.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),Y.createElement(jye,Oh({onDayClick:i.handleDayClick,selectingDate:i.state.selectingDate,clearSelectingDate:i.clearSelectingDate,date:i.state.date},i.props,{onYearMouseEnter:i.handleYearMouseEnter,onYearMouseLeave:i.handleYearMouseLeave}))):void 0}),Q(ne(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return Y.createElement(gF,{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})}),Q(ne(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),a=Pa(o)&&i.props.selected?"".concat(XM(o.getHours()),":").concat(XM(o.getMinutes())):"";if(i.props.showTimeInput)return Y.createElement(Lye,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),Q(ne(i),"renderAriaLiveRegion",function(){var o,a=Uc(i.state.date,i.props.yearItemNumber),s=a.startPeriod,l=a.endPeriod;return o=i.props.showYearPicker?"".concat(s," - ").concat(l):i.props.showMonthYearPicker||i.props.showQuarterYearPicker?Je(i.state.date):"".concat(ZT(ar(i.state.date),i.props.locale)," ").concat(Je(i.state.date)),Y.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i.state.isRenderAriaLiveMessage&&o)}),Q(ne(i),"renderChildren",function(){if(i.props.children)return Y.createElement("div",{className:"react-datepicker__children-container"},i.props.children)}),i.containerRef=Y.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},i}return $n(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var i=this;if(!this.props.preSelection||yr(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!yr(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var o=!Fi(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&i.handleCustomMonthChange(i.state.date)})}}},{key:"render",value:function(){var r=this.props.container||Mye;return Y.createElement("div",{ref:this.containerRef},Y.createElement(r,{className:rt("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{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:kf}}}]),n}(),vF=function(e){Un(n,Y.Component);var t=Bn(n);function n(r){var i;return Fn(this,n),(i=t.call(this,r)).el=document.createElement("div"),i}return $n(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 rl.createPortal(this.props.children,this.el)}}]),n}(),Nye=function(e){return!e.disabled&&e.tabIndex!==-1},yF=function(e){Un(n,Y.Component);var t=Bn(n);function n(r){var i;return Fn(this,n),Q(ne(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(Nye)}),Q(ne(i),"handleFocusStart",function(){var o=i.getTabChildren();o&&o.length>1&&o[o.length-1].focus()}),Q(ne(i),"handleFocusEnd",function(){var o=i.getTabChildren();o&&o.length>1&&o[0].focus()}),i.tabLoopRef=Y.createRef(),i}return $n(n,[{key:"render",value:function(){return this.props.enableTabLoop?Y.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},Y.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,Y.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),Dye=function(e){Un(n,Y.Component);var t=Bn(n);function n(){return Fn(this,n),t.apply(this,arguments)}return $n(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,d=i.popperPlacement,f=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,v=i.popperOnKeyDown,y=i.portalId,x=i.portalHost;if(!s){var _=rt("react-datepicker-popper",o);r=Y.createElement(cye,Oh({modifiers:c,placement:d},f),function(S){var E=S.ref,C=S.style,k=S.placement,j=S.arrowProps;return Y.createElement(yF,{enableTabLoop:m},Y.createElement("div",{ref:E,style:C,className:_,"data-placement":k,onKeyDown:v},Y.cloneElement(l,{arrowProps:j})))})}this.props.popperContainer&&(r=Y.createElement(this.props.popperContainer,{},r)),y&&!s&&(r=Y.createElement(vF,{portalId:y,portalHost:x},r));var w=rt("react-datepicker-wrapper",a);return Y.createElement(Wge,{className:"react-datepicker-manager"},Y.createElement(hye,null,function(S){var E=S.ref;return Y.createElement("div",{ref:E,className:w},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),eA="react-datepicker-ignore-onclickoutside",Iye=P0(Rye),V1="Date input not valid.",Fye=function(e){Un(n,Y.Component);var t=Bn(n);function n(r){var i;return Fn(this,n),Q(ne(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:Ot()}),Q(ne(i),"calcInitialState",function(){var o,a=i.getPreSelection(),s=dF(i.props),l=fF(i.props),c=s&&mi(a,qr(s))?s:l&&fs(a,Ol(l))?l:a;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:QM(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),Q(ne(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),Q(ne(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),Q(ne(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),Q(ne(i),"setOpen",function(o){var a=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:H1},function(){o||i.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&i.setBlur(),i.setState({inputValue:null})})})}),Q(ne(i),"inputOk",function(){return TT(i.state.preSelection)}),Q(ne(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),Q(ne(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),Q(ne(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),Q(ne(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),Q(ne(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),Q(ne(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),Q(ne(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),Q(ne(i),"handleChange",function(){for(var o=arguments.length,a=new Array(o),s=0;s0&&(v=j1(c,d.slice(0,c.length),new Date)),Pa(v)||(v=new Date(c))),Pa(v)&&x?v:null));i.props.showTimeSelectOnly&&i.props.selected&&!yr(_,i.props.selected)&&(_=Hpe(i.props.selected,_==null?{hours:Hr(i.props.selected),minutes:Wr(i.props.selected),seconds:P1(i.props.selected)}:{hours:Hr(_),minutes:Wr(_),seconds:P1(_)})),!_&&l.target.value||i.setSelected(_,l,!0)}}),Q(ne(i),"handleSelect",function(o,a,s){if(i.setState({preventFocus:!0},function(){return i.preventFocusTimeout=setTimeout(function(){return i.setState({preventFocus:!1})},50),i.preventFocusTimeout}),i.props.onChangeRaw&&i.props.onChangeRaw(a),i.setSelected(o,a,!1,s),i.props.showDateSelect&&i.setState({isRenderAriaLiveMessage:!0}),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,c=l.startDate,d=l.endDate;!c||d||mi(o,c)||i.setOpen(!1)}}),Q(ne(i),"setSelected",function(o,a,s,l){var c=o;if(i.props.showYearPicker){if(c!==null&&uF(Je(c),i.props))return}else if(i.props.showMonthYearPicker){if(c!==null&&cF(c,i.props))return}else if(c!==null&&L0(c,i.props))return;var d=i.props,f=d.onChange,p=d.selectsRange,m=d.startDate,v=d.endDate;if(!Ha(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||s&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=BM(c,{hour:Hr(i.props.selected),minute:Wr(i.props.selected),second:P1(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var y=m&&!v,x=m&&v;!m&&!v?f([c,null],a):y&&(mi(c,m)?f([c,null],a):f([m,c],a)),x&&f([c,null],a)}else f(c,a);s||(i.props.onSelect(c,a),i.setState({inputValue:null}))}),Q(ne(i),"setPreSelection",function(o){var a=i.props.minDate!==void 0,s=i.props.maxDate!==void 0,l=!0;if(o){var c=qr(o);if(a&&s)l=Tg(o,i.props.minDate,i.props.maxDate);else if(a){var d=qr(i.props.minDate);l=fs(o,d)||Ha(c,d)}else if(s){var f=Ol(i.props.maxDate);l=mi(o,f)||Ha(c,f)}}l&&i.setState({preSelection:o})}),Q(ne(i),"handleTimeChange",function(o){var a=BM(i.props.selected?i.props.selected:i.getPreSelection(),{hour:Hr(o),minute:Wr(o)});i.setState({preSelection:a}),i.props.onChange(a),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),(i.props.showTimeSelectOnly||i.props.showTimeSelect)&&i.setState({isRenderAriaLiveMessage:!0}),i.setState({inputValue:null})}),Q(ne(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),Q(ne(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var a=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(a==="ArrowDown"||a==="ArrowUp"){o.preventDefault();var s=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(s&&s.focus({preventScroll:!0}))}var l=Ot(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===H1?(i.handleSelect(l,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(l)):i.setOpen(!1)):a==="Escape"?(o.preventDefault(),i.setOpen(!1)):a==="Tab"&&o.shiftKey&&i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:V1})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()}),Q(ne(i),"onPortalKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),Q(ne(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var a=o.key,s=Ot(i.state.preSelection);if(a==="Enter")o.preventDefault(),i.handleSelect(s,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(s);else if(a==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:V1});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=AT(s,1);break;case"ArrowRight":l=Vl(s,1);break;case"ArrowUp":l=Gpe(s,1);break;case"ArrowDown":l=ST(s,1);break;case"PageUp":l=Lu(s,1);break;case"PageDown":l=Ti(s,1);break;case"Home":l=Sh(s,1);break;case"End":l=Cu(s,1)}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:V1}));if(o.preventDefault(),i.setState({lastPreSelectChange:H1}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=ar(s),d=ar(l),f=Je(s),p=Je(l);c!==d||f!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),Q(ne(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),Q(ne(i),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})}),Q(ne(i),"clear",function(){i.onClearClick()}),Q(ne(i),"onScroll",function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)}),Q(ne(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?Y.createElement(Iye,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:eA,fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showDateSelect:i.props.showDateSelect,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,renderMonthContent:i.props.renderMonthContent,renderQuarterContent:i.props.renderQuarterContent,renderYearContent:i.props.renderYearContent,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,onYearMouseEnter:i.props.onYearMouseEnter,onYearMouseLeave:i.props.onYearMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null}),Q(ne(i),"renderAriaLiveRegion",function(){var o,a=i.props,s=a.dateFormat,l=a.locale,c=i.props.showTimeInput||i.props.showTimeSelect?"PPPPp":"PPPP";return o=i.props.selectsRange?"Selected start date: ".concat(no(i.props.startDate,{dateFormat:c,locale:l}),". ").concat(i.props.endDate?"End date: "+no(i.props.endDate,{dateFormat:c,locale:l}):""):i.props.showTimeSelectOnly?"Selected time: ".concat(no(i.props.selected,{dateFormat:s,locale:l})):i.props.showYearPicker?"Selected year: ".concat(no(i.props.selected,{dateFormat:"yyyy",locale:l})):i.props.showMonthYearPicker?"Selected month: ".concat(no(i.props.selected,{dateFormat:"MMMM yyyy",locale:l})):i.props.showQuarterYearPicker?"Selected quarter: ".concat(no(i.props.selected,{dateFormat:"yyyy, QQQ",locale:l})):"Selected date: ".concat(no(i.props.selected,{dateFormat:c,locale:l})),Y.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o)}),Q(ne(i),"renderDateInput",function(){var o,a=rt(i.props.className,Q({},eA,i.state.open)),s=i.props.customInput||Y.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",c=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?function(d,f,p){if(!d)return"";var m=no(d,p),v=f?no(f,p):"";return"".concat(m," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):no(i.props.selected,i.props);return Y.cloneElement(s,(Q(o={},l,function(d){i.input=d}),Q(o,"value",c),Q(o,"onBlur",i.handleBlur),Q(o,"onChange",i.handleChange),Q(o,"onClick",i.onInputClick),Q(o,"onFocus",i.handleFocus),Q(o,"onKeyDown",i.onInputKeyDown),Q(o,"id",i.props.id),Q(o,"name",i.props.name),Q(o,"form",i.props.form),Q(o,"autoFocus",i.props.autoFocus),Q(o,"placeholder",i.props.placeholderText),Q(o,"disabled",i.props.disabled),Q(o,"autoComplete",i.props.autoComplete),Q(o,"className",rt(s.props.className,a)),Q(o,"title",i.props.title),Q(o,"readOnly",i.props.readOnly),Q(o,"required",i.props.required),Q(o,"tabIndex",i.props.tabIndex),Q(o,"aria-describedby",i.props.ariaDescribedBy),Q(o,"aria-invalid",i.props.ariaInvalid),Q(o,"aria-labelledby",i.props.ariaLabelledBy),Q(o,"aria-required",i.props.ariaRequired),o))}),Q(ne(i),"renderClearButton",function(){var o=i.props,a=o.isClearable,s=o.selected,l=o.startDate,c=o.endDate,d=o.clearButtonTitle,f=o.clearButtonClassName,p=f===void 0?"":f,m=o.ariaLabelClose,v=m===void 0?"Close":m;return!a||s==null&&l==null&&c==null?null:Y.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(p).trim(),"aria-label":v,onClick:i.onClearClick,title:d,tabIndex:-1})}),i.state=i.calcInitialState(),i}return $n(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,a;r.inline&&(o=r.selected,a=this.props.selected,o&&a?ar(o)!==ar(a)||Je(o)!==Je(a):o!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:QM(this.props.highlightDates)}),i.focused||Ha(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props.showIcon;return Y.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&Y.createElement("svg",{className:"react-datepicker__calendar-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},Y.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"})),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?Y.createElement(yF,{enableTabLoop:this.props.enableTabLoop},Y.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(i=Y.createElement(vF,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),Y.createElement("div",null,this.renderInputContainer(),i)}return Y.createElement(Dye,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:kf,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),$ye="input",H1="navigate";const x2=e=>{const{className:t,isClearable:n,selected:r,dateFormat:i}=e,o=!n||Bl(r),a=U.useRef();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Fye,{...e,popperModifiers:[{name:"arrow",options:{padding:24}}],dateFormat:i??S8,className:rt("icon-input-container__input form-control",t),ref:a}),o&&g.jsx(Ae,{icon:gie,className:"icon-input-container__icon",onClick:()=>{var s;return(s=a.current)==null?void 0:s.input.focus()}})]})},Uye=e=>g.jsx(x2,{...e,dateFormat:RT,showTimeSelect:!0,timeIntervals:10}),W1=({children:e,infoTooltip:t,checked:n,onChange:r})=>g.jsxs("p",{children:[g.jsx(VI,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&g.jsx(xg,{placement:"right",children:t})]}),Bye=({isOpen:e,toggle:t})=>g.jsxs(da,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(fa,{toggle:t,children:"Info"}),g.jsxs(Oo,{children:[g.jsxs("p",{children:["When the ",g.jsx("b",{children:g.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),g.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),g.jsxs("ul",{children:[g.jsx("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."}),g.jsxs("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.",g.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),g.jsx("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"})]})]})]}),zye=()=>{const[e,t]=On();return g.jsxs(g.Fragment,{children:[g.jsx("span",{title:"What does this mean?",children:g.jsx(Ae,{icon:JS,style:{cursor:"pointer"},onClick:t})}),g.jsx(Bye,{isOpen:e,toggle:t})]})},Y1=e=>typeof e=="string"?ia(e):e,Vye=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Hye=(e,t)=>function({mode:n,saving:r,onSave:i,initialState:o,tagsList:a}){const[s,l]=U.useState(o),c=()=>l(o),d=np("deviceLongUrls"),f=n==="edit",p=Vye(s),m=n==="create-basic",v=C=>l(k=>({...k,tags:C})),y=(C,k)=>uo(C)?C:uo(k)?null:void 0,x=O0(async()=>i({...s,validSince:ps(s.validSince)??null,validUntil:ps(s.validUntil)??null,maxVisits:uo(s.maxVisits)?Number(s.maxVisits):null}).then(()=>!f&&c()).catch(()=>{}));U.useEffect(()=>{l(o)},[o]);const _=(C,k,j="text",A={},$={})=>g.jsx(Vr,{...$,children:g.jsx(xl,{name:C,id:C,type:j,placeholder:k,value:s[C]??"",onChange:A.onChange??(N=>l(z=>({...z,[C]:N.target.value}))),...A})}),w=(C,k,j)=>{var A;return g.jsx(Rge,{icon:j,name:C,id:C,type:"url",placeholder:k,value:((A=s.deviceLongUrls)==null?void 0:A[C])??"",onChange:$=>l(N=>{var z;return{...N,deviceLongUrls:{...N.deviceLongUrls??{},[C]:y($.target.value,(z=o.deviceLongUrls)==null?void 0:z[C])}}})})},S=(C,k,j={})=>g.jsx(Uye,{name:C,selected:s[C]?Y1(s[C]):null,placeholderText:k,isClearable:!0,onChange:A=>l($=>({...$,[C]:A})),...j}),E=g.jsxs(g.Fragment,{children:[g.jsx(Vr,{children:g.jsx(xl,{name:"longUrl",bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:s.longUrl,onChange:C=>l(k=>({...k,longUrl:C.target.value}))})}),g.jsxs(_r,{children:[m&&_("customSlug","Custom slug","text",{bsSize:"lg"},{className:"col-lg-6"}),g.jsx("div",{className:m?"col-lg-6 mb-3":"col-12",children:g.jsx(e,{tags:a.tags,selectedTags:s.tags??[],onChange:v})})]})]});return g.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:x,children:[m&&E,!m&&g.jsxs(g.Fragment,{children:[g.jsxs(_r,{children:[g.jsx("div",{className:rt("mb-3",{"col-sm-6":d,"col-12":!d}),children:g.jsx(vn,{title:"Main options",className:"mb-3",children:E})}),d&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(vn,{title:"Device-specific long URLs",children:[g.jsx(Vr,{children:w("android","Android-specific redirection",wie)}),g.jsx(Vr,{children:w("ios","iOS-specific redirection",bie)}),w("desktop","Desktop-specific redirection",xY)]})})]}),g.jsxs(_r,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(vn,{title:"Customize the short URL",children:[_("title","Title","text",{onChange:({target:C})=>l(k=>({...k,title:y(C.value,o.title)}))}),!f&&p&&g.jsxs(g.Fragment,{children:[g.jsxs(_r,{children:[g.jsx("div",{className:"col-lg-6",children:_("customSlug","Custom slug","text",{disabled:uo(s.shortCodeLength)})}),g.jsx("div",{className:"col-lg-6",children:_("shortCodeLength","Short code length","number",{min:4,disabled:uo(s.customSlug)})})]}),g.jsx(t,{value:s.domain,onChange:C=>l(k=>({...k,domain:C}))})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(vn,{title:"Limit access to the short URL",children:[_("maxVisits","Maximum number of visits allowed","number",{min:1}),g.jsx("div",{className:"mb-3",children:S("validSince","Enabled since...",{maxDate:s.validUntil?Y1(s.validUntil):void 0})}),S("validUntil","Enabled until...",{minDate:s.validSince?Y1(s.validSince):void 0})]})})]}),g.jsxs(_r,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(vn,{title:"Extra checks",children:[g.jsx(W1,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:s.validateUrl,onChange:C=>l(k=>({...k,validateUrl:C})),children:"Validate URL"}),!f&&p&&g.jsxs("p",{children:[g.jsx(VI,{inline:!0,className:"me-2",checked:s.findIfExists,onChange:C=>l(k=>({...k,findIfExists:C})),children:"Use existing URL if found"}),g.jsx(zye,{})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(vn,{title:"Configure behavior",children:[g.jsx(W1,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:s.crawlable,onChange:C=>l(k=>({...k,crawlable:C})),children:"Make it crawlable"}),g.jsx(W1,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:s.forwardQuery,onChange:C=>l(k=>({...k,forwardQuery:C})),children:"Forward query params on redirect"})]})})]})]}),g.jsx("div",{className:"text-center",children:g.jsx(_t,{outline:!0,color:"primary",disabled:r||Pi(s.longUrl),className:"btn-xs-block",children:r?"Saving...":"Save"})})]})},Wye=({active:e,allText:t,onChange:n})=>g.jsxs(g.Fragment,{children:[g.jsx(Ue,{active:e==="all",onClick:()=>n("all"),children:t}),g.jsx(Ue,{divider:!0}),qpe.map(r=>g.jsx(Ue,{active:e===r,onClick:()=>n(r),children:k8(r)},r))]}),Yye=({startDate:e=null,endDate:t=null,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(x2,{selected:e,placeholderText:"Since...",isClearable:!0,maxDate:t??void 0,disabled:n,onChange:r})}),g.jsx("div",{className:"col-md-6",children:g.jsx(x2,{className:"mt-2 mt-md-0",selected:t,placeholderText:"Until...",isClearable:!0,minDate:e??void 0,disabled:n,onChange:o=>i(o&&Ol(o))})})]}),_F=({onDatesChange:e,initialDateRange:t,defaultText:n,disabled:r,updatable:i=!1})=>{const o=sy(t),[a,s]=U.useState(o?t:void 0),[l,c]=U.useState(o?void 0:t),d=p=>{s(O8(p)?ip:void 0),c(p),e(p)},f=p=>{s(p),c(void 0),e(P8(p))};return i&&qme(()=>{const p=sy(t);p&&f(t),t&&!p&&d(t)},[t]),g.jsxs(ha,{disabled:r,text:k8(a??l)??n,children:[g.jsx(Wye,{allText:n,active:a,onChange:f}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Custom:"}),g.jsx(Ue,{text:!0,children:g.jsx(Yye,{...l,onStartDateChange:p=>d({...l,startDate:p}),onEndDateChange:p=>d({...l,endDate:p})})})]})},Gye={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},qye=({onChange:e,selected:t={},className:n,supportsDisabledFiltering:r})=>{const{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:a=!1}=t,s=l=>()=>e({...t,[l]:!(t!=null&&t[l])});return g.jsxs(ha,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[g.jsx(Ue,{header:!0,children:"Visits:"}),g.jsx(Ue,{active:i,onClick:s("excludeBots"),children:"Ignore visits from bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Short URLs:"}),g.jsx(Ue,{active:o,onClick:s("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),g.jsx(Ue,{active:a,onClick:s("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!uo(t),onClick:()=>e({excludeBots:!1,excludeMaxVisitsReached:!1,excludePastValidUntil:!1}),children:g.jsx("i",{children:"Clear filters"})})]})},Kye=(e,t)=>({className:n,shortUrlsAmount:r,order:i,handleOrderBy:o,tagsList:a})=>{const[s,l]=k0(),{search:c,tags:d,startDate:f,endDate:p,excludeBots:m,excludeMaxVisitsReached:v,excludePastValidUntil:y,tagsMode:x="any"}=s,_=np("filterDisabledUrls"),w=Hl("visits"),S=Xn(({startDate:j,endDate:A})=>({startDate:ps(j)??void 0,endDate:ps(A)??void 0}),l),E=Xn(j=>Pi(j)?void 0:j,j=>l({search:j})),C=j=>l({tags:j}),k=Xn(()=>x==="any"?"all":"any",j=>l({tagsMode:j}));return g.jsxs("div",{className:rt("short-urls-filtering-bar-container",n),children:[g.jsx(Gh,{initialValue:c,onChange:E}),g.jsxs(c0,{className:"mt-3",children:[g.jsx(t,{immutable:!0,placeholder:"With tags...",tags:a.tags,selectedTags:d,onChange:C}),d.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(_t,{outline:!0,color:"secondary",onClick:k,id:"tagsModeBtn","aria-label":"Change tags mode",children:g.jsx(Ae,{className:"short-urls-filtering-bar__tags-icon",icon:x==="all"?f4:ZW})}),g.jsx(Ir,{target:"tagsModeBtn",placement:"left",children:x==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(_r,{className:"flex-lg-row-reverse",children:[g.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-fill",children:g.jsx(_F,{defaultText:"All short URLs",initialDateRange:C8(f,p),onDatesChange:S})}),g.jsx(qye,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:m??(w==null?void 0:w.excludeBots),excludeMaxVisitsReached:v,excludePastValidUntil:y},onChange:l,supportsDisabledFiltering:_})]})}),g.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:g.jsx(e,{amount:r})}),g.jsx("div",{className:"col-6 d-lg-none mt-3",children:g.jsx(qh,{prefixed:!1,items:Gye,order:i,onChange:o})})]})]})};function Pf({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(Ae,{icon:e.dir==="ASC"?VW:eY,className:n})}const mc=2,S2="...",bF=(e,t)=>{const n=wT(N5(mc,e-mc),G5(t-1,e+mc)+1);return e-mc>mc&&n.unshift(S2),e+mce===S2,wF=e=>Ch(e)?e:En(e),xF=(e,t)=>Ch(e)?`${e}_${t}`:`${e}`,Zye=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=zl(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return g.jsx("div",{className:"pb-3"});const a=()=>bF(n,r).map((s,l)=>g.jsx(al,{disabled:Ch(s),active:n===s,children:g.jsx(sl,{tag:Ut,to:o(s),children:wF(s)})},xF(s,l)));return g.jsxs(jE,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(al,{disabled:n===1,children:g.jsx(sl,{previous:!0,tag:Ut,to:o(n-1)})}),a(),g.jsx(al,{disabled:n>=r,children:g.jsx(sl,{next:!0,tag:Ut,to:o(n+1)})})]})},Qye={field:"dateCreated",dir:"DESC"},Xye=(e,t)=>Ss(({listShortUrls:n,shortUrlsList:r})=>{var i,o,a;const{page:s}=Dl(),l=_n(),[c,d]=k0(),f=$T(),{tags:p,search:m,startDate:v,endDate:y,orderBy:x,tagsMode:_,excludeBots:w,excludePastValidUntil:S,excludeMaxVisitsReached:E}=c,[C,k]=U.useState(x??((i=f.shortUrlsList)==null?void 0:i.defaultOrdering)??Qye),{pagination:j}=(r==null?void 0:r.shortUrls)??{},A=w??((o=f.visits)==null?void 0:o.excludeBots),$=np("excludeBotsOnShortUrls"),N=(Z,te)=>{d({orderBy:{field:Z,dir:te}}),k({field:Z,dir:te})},z=Z=>()=>N(Z,f0(Z,C.field,C.dir)),W=Z=>g.jsx(Pf,{currentOrder:C,field:Z}),X=Xn(Z=>[...new Set([...p,Z])],Z=>d({tags:Z})),G=({field:Z,dir:te})=>$&&A&&Z==="visits"?{field:"nonBotVisits",dir:te}:{field:Z,dir:te};return U.useEffect(()=>{n({page:s,searchTerm:m,tags:p,startDate:v,endDate:y,orderBy:G(C),tagsMode:_,excludePastValidUntil:S,excludeMaxVisitsReached:E})},[s,m,p,v,y,C.field,C.dir,_,S,E]),g.jsxs(g.Fragment,{children:[g.jsx(t,{shortUrlsAmount:(a=r.shortUrls)==null?void 0:a.pagination.totalItems,order:C,handleOrderBy:N,className:"mb-3"}),g.jsxs(Qr,{body:!0,className:"pb-0",children:[g.jsx(e,{shortUrlsList:r,orderByColumn:z,renderOrderIcon:W,onTagClick:X}),g.jsx(Zye,{paginator:j,currentQueryString:l.search})]})]})},()=>[_i.visits]),Jye=e=>({orderByColumn:t,renderOrderIcon:n,shortUrlsList:r,onTagClick:i,className:o})=>{const{error:a,loading:s,shortUrls:l}=r,c=rt({"short-urls-table__header-cell--with-action":!!t}),d=rt("short-urls-table__header-cell",c),f=rt("table table-hover responsive-table short-urls-table",o),p=()=>a?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):s?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!s&&Pi(l==null?void 0:l.data)?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):l==null?void 0:l.data.map(m=>g.jsx(e,{shortUrl:m,onTagClick:i},m.shortUrl));return g.jsxs("table",{className:f,children:[g.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:g.jsxs("tr",{children:[g.jsxs("th",{className:d,onClick:t==null?void 0:t("dateCreated"),children:["Created at ",n==null?void 0:n("dateCreated")]}),g.jsxs("th",{className:d,onClick:t==null?void 0:t("shortCode"),children:["Short URL ",n==null?void 0:n("shortCode")]}),g.jsxs("th",{className:"short-urls-table__header-cell",children:[g.jsxs("span",{className:c,onClick:t==null?void 0:t("title"),children:["Title ",n==null?void 0:n("title")]}),"  /  ",g.jsxs("span",{className:c,onClick:t==null?void 0:t("longUrl"),children:[g.jsx("span",{className:"indivisible",children:"Long URL"})," ",n==null?void 0:n("longUrl")]})]}),g.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),g.jsx("th",{className:d,onClick:t==null?void 0:t("visits"),children:g.jsxs("span",{className:"indivisible",children:["Visits ",n==null?void 0:n("visits")]})}),g.jsx("th",{className:"short-urls-table__header-cell",colSpan:2})]})}),g.jsx("tbody",{children:p()})]})},e0e=(e,t)=>{e.serviceFactory("ShortUrlsList",Xye,"ShortUrlsTable","ShortUrlsFilteringBar"),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.serviceFactory("ShortUrlsTable",Jye,"ShortUrlsRow"),e.serviceFactory("ShortUrlsRow",Oge,"ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"),e.serviceFactory("ShortUrlsRowMenu",Cge,"DeleteShortUrlModal","QrCodeModal"),e.serviceFactory("CreateShortUrlResult",pge,"useTimeoutToggle"),e.serviceFactory("ShortUrlForm",Hye,"TagsSelector","DomainSelector"),e.decorator("ShortUrlForm",t(["tagsList"])),e.serviceFactory("CreateShortUrl",Mme,"ShortUrlForm","CreateShortUrlResult"),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.serviceFactory("EditShortUrl",Kme,"ShortUrlForm"),e.decorator("EditShortUrl",t(["shortUrlDetail","shortUrlEdition"],["getShortUrlDetail","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>mge),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["deleteShortUrl","shortUrlDeleted","resetDeleteShortUrl"])),e.serviceFactory("QrCodeModal",bge,"ImageDownloader"),e.serviceFactory("ExportShortUrlsBtn",gge,"apiClientFactory","ReportExporter"),e.serviceFactory("ShortUrlsFilteringBar",Kye,"ExportShortUrlsBtn","TagsSelector"),e.decorator("ShortUrlsFilteringBar",t(["tagsList"])),e.serviceFactory("shortUrlsListReducerCreator",xme,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",mt("reducer"),"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",Pge,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",mt("reducer"),"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Age,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",mt("reducer"),"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",_me,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",mt("reducer"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDetailReducerCreator",jge,"apiClientFactory"),e.serviceFactory("shortUrlDetailReducer",mt("reducer"),"shortUrlDetailReducerCreator"),e.serviceFactory("listShortUrls",wme,"apiClientFactory"),e.serviceFactory("createShortUrl",kge,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",mt("resetCreateShortUrl"),"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",yme,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",mt("resetDeleteShortUrl"),"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>A8),e.serviceFactory("getShortUrlDetail",mt("getShortUrlDetail"),"shortUrlDetailReducerCreator"),e.serviceFactory("editShortUrl",Mge,"apiClientFactory")},t0e=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:l,errorData:c}=i;return g.jsxs(da,{toggle:t,isOpen:n,centered:!0,onClosed:()=>l&&o(e),children:[g.jsx(fa,{toggle:t,className:"text-danger",children:"Delete tag"}),g.jsxs(Oo,{children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",s&&g.jsx(Gr,{type:"error",small:!0,className:"mt-2",children:g.jsx(ra,{errorData:c,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs(Il,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},n0e=({getColorForKey:e})=>({tag:t,editTag:n,toggle:r,tagEdited:i,isOpen:o,tagEdit:a})=>{const[s,l]=U.useState(t),[c,d]=U.useState(e(t)),{editing:f,error:p,edited:m,errorData:v}=a,y=O0(async()=>{await n({oldName:t,newName:s,color:c}),r()}),x=U.useCallback(()=>m&&i({oldName:t,newName:s,color:c}),[m,i]);return g.jsx(da,{isOpen:o,toggle:r,centered:!0,onClosed:x,children:g.jsxs("form",{name:"editTag",onSubmit:y,children:[g.jsx(fa,{toggle:r,children:"Edit tag"}),g.jsxs(Oo,{children:[g.jsxs(c0,{children:[g.jsxs("div",{className:"input-group-text p-0 position-relative",style:{backgroundColor:c,borderColor:c},children:[g.jsx(Ae,{icon:HW,className:"position-absolute top-50 start-50 translate-middle text-white"}),g.jsx(xl,{className:"form-control-color opacity-0",type:"color",value:c,onChange:_=>d(_.target.value)})]}),g.jsx(xl,{value:s,placeholder:"Tag",required:!0,onChange:({target:_})=>l(_.value)})]}),p&&g.jsx(Gr,{type:"error",small:!0,className:"mt-2",children:g.jsx(ra,{errorData:v,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs(Il,{children:[g.jsx(_t,{type:"button",color:"link",onClick:r,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:f,children:f?"Saving...":"Save"})]})]})})},Gs={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},XT=Symbol("Create new tag"),SF=Symbol("No options"),bc=()=>{},zn=Y.createContext(void 0);function tA(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function r0e(e){return e.selectionStart===0&&e.selectionEnd===0}function i0e(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function A0(e){return`${e}-label`}function o0e(e){return`${e}-combobox`}function a0e(e){return`${e}-input`}function EF(e){return`${e}-listbox`}function TF(e,t){return`${e}-option-${h0e(t)}`}function s0e(e,t){if((e==null?void 0:e.value)===XT&&e.disabled===!1)return{value:t,label:t}}function l0e(e){const t=s0e(e.activeOption,e.value)||e.activeOption||v0e(e.value,e.options);return t&&!t.disabled?t:void 0}function c0e(e,t,n){const r=t-1;return e>r?n:en===e.value)}const p0e=/[-\\^$*+?.()|[\]{}]/g;function OF(e){return e.replace(p0e,"\\$&")}function CF(e){return new RegExp(OF(e),"i")}function m0e(e){return new RegExp(`^${OF(e)}$`,"i")}function g0e(e,t){if(e){const n=CF(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function v0e(e,t){const n=m0e(e);return t.find(r=>n.test(r.label))||null}const y0e={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function _0e({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:l,managerRef:c}=U.useContext(zn),d=U.useMemo(()=>{const v=$=>{const N=$.currentTarget.value;c.current.updateInputValue(N),document.activeElement===a.current&&c.current.listBoxExpand(N)},y=()=>{c.current.listBoxExpand()},x=$=>{var N;((N=o.current)==null?void 0:N.contains($.relatedTarget))===!1&&c.current.listBoxCollapse()},_=()=>{c.current.listBoxExpand()},w=$=>{const{activeIndex:N,isExpanded:z}=c.current.state;z?($.preventDefault(),c.current.updateActiveIndex(N+1)):(i0e($.currentTarget)||$.altKey)&&($.preventDefault(),c.current.listBoxExpand())},S=$=>{const{activeIndex:N,isExpanded:z}=c.current.state;z?($.preventDefault(),c.current.updateActiveIndex(N-1)):r0e($.currentTarget)&&($.preventDefault(),c.current.listBoxExpand())},E=$=>{const{isExpanded:N,options:z}=c.current.state;N&&($.preventDefault(),c.current.updateActiveIndex(z.length-1))},C=$=>{c.current.state.isExpanded&&($.preventDefault(),c.current.updateActiveIndex(0))},k=()=>{c.current.state.isExpanded?c.current.listBoxCollapse():c.current.updateInputValue("")},j=()=>{if(e){const{value:$,selected:N}=c.current.state,z=N[N.length-1];$===""&&z&&c.current.selectTag(z)}},A=$=>{c.current.state.isExpanded&&($.preventDefault(),c.current.selectTag())};return{onBlur:x,onChange:v,onClick:_,onFocus:y,onKeyDown:$=>{if($.key===Gs.UpArrow)return S($);if($.key===Gs.DownArrow)return w($);if($.key===Gs.PageUp)return C($);if($.key===Gs.PageDown)return E($);if($.key===Gs.Escape)return k();if($.key===Gs.Backspace)return j();if(r.includes($.key))return A($)}}},[e,o,r,a,c]),{activeOption:f,isExpanded:p,value:m}=c.current.state;return{...y0e,"aria-autocomplete":"list","aria-activedescendant":f?TF(i,f):void 0,"aria-controls":EF(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":l&&n||void 0,"aria-invalid":l,"aria-labelledby":A0(i),"aria-expanded":p,id:a0e(i),onBlur:s?bc:d.onBlur,onChange:s?bc:d.onChange,onClick:s?bc:d.onClick,onFocus:s?bc:d.onFocus,onKeyDown:s?bc:d.onKeyDown,ref:a,role:"combobox",type:"text",value:m}}const b0e={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},w0e=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function x0e({allowResize:e=!0,text:t}){const n=U.useRef(null),{inputRef:r}=U.useContext(zn),[i,o]=U.useState(null);return U.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);w0e.forEach(s=>{const l=a.getPropertyValue(s);n.current.style.setProperty(s,l)})}},[e,r,n]),U.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=n.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:b0e}}}function S0e(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=U.useContext(zn),i=r.current.state.activeIndex===-1,o=U.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return U.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":A0(e),id:EF(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function E0e({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionText:r,noOptionsText:i,onAdd:o,onDelete:a,onCollapse:s,onExpand:l,onInput:c,onShouldCollapse:d,onShouldExpand:f,onValidate:p,selected:m,suggestions:v,suggestionsTransform:y}){const x=U.useRef(),[_,w]=U.useState(null),[S,E]=U.useState(!1),[C,k]=U.useState(""),j=U.useMemo(()=>{const G=y(C,v);return C&&(t&&G.push({disabled:p?!p(C):!1,label:r,value:XT}),G.length===0&&G.push({disabled:!0,label:i,value:SF})),G},[t,r,i,p,v,y,C]),A=_?T2(_,j):-1,$=e?Math.max(A,0):A,N=j[$],z={activeIndex:$,activeOption:N,isExpanded:S,options:j,selected:m,value:C},W={tagsAdded:x.current?tA(m,x.current.state.selected):[],tagsDeleted:x.current?tA(x.current.state.selected,m):[]},X={listBoxCollapse(G){S&&(!d||d(G??z.value))&&(E(!1),w(null),s==null||s())},listBoxExpand(G){S||(!f||f(G??z.value))&&(E(!0),w(j[$]),l==null||l())},updateActiveIndex(G){const Z=c0e(G,j.length,e?0:-1);w(j[Z])},updateInputValue(G){C!==G&&(k(G),c==null||c(G))},selectTag(G){if(G??(G=l0e(z)),G){const Z=T2(G,z.selected);Z>-1?a(Z):o(G),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return x.current={...X,flags:W,state:z},x}function T0e(e){const{id:t,inputRef:n,managerRef:r}=U.useContext(zn),i=U.useRef(null),o=r.current.state.options[e],a=e===r.current.state.activeIndex,s=o.disabled??!1,l=T2(o,r.current.state.selected)>-1,c=U.useCallback(()=>{var f;r.current.selectTag(),(f=n.current)==null||f.focus()},[n,r]),d=U.useCallback(()=>{e!==r.current.state.activeIndex&&r.current.updateActiveIndex(e)},[e,r]);return U.useEffect(()=>{var f;a&&((f=i.current)==null||f.scrollIntoView({block:"nearest",inline:"start"}))},[a,r.current.state.options]),{option:{...o,active:a,disabled:s,index:e,selected:l},optionProps:{"aria-disabled":s,"aria-posinset":e+1,"aria-selected":s?void 0:l,"aria-setsize":r.current.state.options.length,id:TF(t,o),onClick:c,onMouseDown:d,ref:i,role:"option",tabIndex:-1}}}function O0e({inputRef:e,managerRef:t}){return U.useRef({input:{blur(){var n;(n=e.current)==null||n.blur()},focus(){var n;(n=e.current)==null||n.focus()},get value(){return t.current.state.value},set value(n){typeof n!="string"&&(n=String(n)),t.current.updateInputValue(n)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(n){t.current.selectTag(n)}}).current}function C0e({onBlur:e,onFocus:t}){const[n,r]=U.useState(!1),{id:i,inputRef:o}=U.useContext(zn),a=U.useRef(null),s=U.useMemo(()=>({"aria-describedby":A0(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var l;(l=a.current)!=null&&l.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var l;document.activeElement===a.current&&((l=o.current)==null||l.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function k0e(e,t){const{isDisabled:n,managerRef:r}=U.useContext(zn),i=r.current.state.selected[e],o=U.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:hy(t,i.label),onClick:n?bc:o}}}function P0e(){var e;const{inputRef:t,managerRef:n}=U.useContext(zn),r=U.useRef(),i=n.current.flags.tagsDeleted.length,o=(e=r.current)==null?void 0:e.contains(document.activeElement);return U.useLayoutEffect(()=>{var a,s;if(i){const l=(a=r.current)==null?void 0:a.contains(document.activeElement);o&&!l&&((s=t.current)==null||s.focus({preventScroll:!0}))}},[t,o,r,i]),{listRef:r}}const j0e={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function L0e({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=U.useContext(zn),r=U.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(hy(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(hy(t,i.label))}),Y.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:j0e},r.current.join(` +`))}function M0e({children:e}){const{classNames:t,comboBoxRef:n,id:r}=U.useContext(zn);return Y.createElement("div",{className:t.comboBox,id:o0e(r),ref:n},e)}const A0e=({classNames:e,text:t})=>Y.createElement("mark",{className:e.highlight},t);function R0e({option:e,query:t,render:n=A0e}){const{classNames:r}=U.useContext(zn);if(e.value===XT||e.value===SF)return Y.createElement(Y.Fragment,null,hy(e.label,t));if(t){const i=d0e(e.label,t);if(i){const o=n({text:i[1],classNames:r});return Y.createElement(Y.Fragment,null,i[0],o,i[2])}}return Y.createElement(Y.Fragment,null,e.label)}const N0e=Y.memo(R0e),D0e=({classNames:e,inputWidth:t,...n})=>Y.createElement("input",{className:e.input,style:{width:t},...n});function I0e({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=D0e}){const{classNames:s}=U.useContext(zn),{value:l,...c}=_0e({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),d=l.lengthY.createElement("div",{className:t.label,id:n},e);function $0e({children:e,render:t=F0e}){const{classNames:n,id:r}=U.useContext(zn);return t({children:e,classNames:n,id:A0(r)})}function U0e({children:e}){const{classNames:t,managerRef:n}=U.useContext(zn),r=S0e();return!n.current.state.isExpanded||Y.Children.count(e)===0?null:Y.createElement("div",{className:t.listBox,...r},e)}const B0e=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),Y.createElement("div",{className:i.join(" "),...r},e)};function z0e({children:e,index:t,render:n=B0e}){const{classNames:r}=U.useContext(zn),{option:i,optionProps:o}=T0e(t);return n({classNames:r,children:e,option:i,...o})}const V0e=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const a=[t.root];return n&&a.push(t.rootIsActive),r&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),Y.createElement("div",{className:a.join(" "),...o},e)};function H0e({children:e,onBlur:t,onFocus:n,render:r=V0e}){const{classNames:i,isDisabled:o,isInvalid:a}=U.useContext(zn),{isActive:s,rootProps:l}=C0e({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...l})}const W0e=({classNames:e,tag:t,...n})=>Y.createElement("button",{type:"button",className:e.tag,...n},Y.createElement("span",{className:e.tagName},t.label));function Y0e({render:e=W0e,index:t,title:n}){const{classNames:r}=U.useContext(zn),{tag:i,tagProps:o}=k0e(t,n);return e({classNames:r,tag:i,...o})}function G0e({children:e,label:t}){const{classNames:n}=U.useContext(zn),{listRef:r}=P0e();return Y.createElement("ul",{className:n.tagList,"aria-label":t,ref:r,role:"list"},e.map(i=>Y.createElement("li",{className:n.tagListItem,key:i.key,role:"listitem"},i)))}const q0e={root:"react-tags",rootIsActive:"is-active",rootIsDisabled:"is-disabled",rootIsInvalid:"is-invalid",label:"react-tags__label",tagList:"react-tags__list",tagListItem:"react-tags__list-item",tag:"react-tags__tag",tagName:"react-tags__tag-name",comboBox:"react-tags__combobox",input:"react-tags__combobox-input",listBox:"react-tags__listbox",option:"react-tags__listbox-option",optionIsActive:"is-active",highlight:"react-tags__listbox-option-highlight"},K0e=[Gs.Enter];function Z0e({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:l=q0e,collapseOnSelect:c=!1,deleteButtonText:d="Remove %value% from the list",delimiterKeys:f=K0e,id:p="react-tags",isDisabled:m=!1,isInvalid:v=!1,labelText:y="Select tags",newOptionText:x="Add %value%",noOptionsText:_="No options found for %value%",onAdd:w,onBlur:S,onCollapse:E,onDelete:C,onExpand:k,onFocus:j,onInput:A,onShouldCollapse:$,onShouldExpand:N,onValidate:z,placeholderText:W="Add a tag",renderHighlight:X,renderInput:G,renderLabel:Z,renderOption:te,renderRoot:le,renderTag:q,selected:I=[],suggestions:D=[],suggestionsTransform:H=g0e,tagListLabelText:ie="Selected tags"},V){const K=U.useRef(null),re=U.useRef(null),ae=U.useRef(null),he=E0e({activateFirstOption:e,allowNew:n,collapseOnSelect:c,newOptionText:x,noOptionsText:_,onAdd:w,onDelete:C,onCollapse:E,onExpand:k,onInput:A,onShouldCollapse:$,onShouldExpand:N,onValidate:z,selected:I,suggestions:D,suggestionsTransform:H}),O=O0e({inputRef:re,managerRef:he});return V&&(typeof V=="function"?V(O):V.current=O),Y.createElement(zn.Provider,{value:{classNames:l,comboBoxRef:K,id:p,inputRef:re,isDisabled:m,isInvalid:v,listBoxRef:ae,managerRef:he}},Y.createElement(H0e,{onBlur:S,onFocus:j,render:le},Y.createElement($0e,{render:Z},y),Y.createElement(G0e,{label:ie},he.current.state.selected.map((M,F)=>Y.createElement(Y0e,{key:E2(M),index:F,render:q,title:d}))),Y.createElement(M0e,null,Y.createElement(I0e,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:f,placeholderText:W,render:G}),Y.createElement(U0e,null,he.current.state.options.map((M,F)=>Y.createElement(z0e,{key:E2(M),index:F,render:te},Y.createElement(N0e,{option:M,query:he.current.state.value,render:X}))))),Y.createElement(L0e,{ariaAddedText:i,ariaDeletedText:s})))}const Q0e=Y.forwardRef(Z0e),X0e=/\s+/g,kF=e=>e.trim().toLowerCase().replace(X0e,"-"),PF=({tag:e,colorGenerator:t})=>g.jsx("div",{style:{backgroundColor:t.getColorForKey(e)},className:"tag-bullet"});let nA=1;const jF="Tag not found",LF="Add tag",J0e=e=>e!==jF,e_e=e=>e===LF,rA=e=>(nA+=1,{label:e,value:`${e}${nA}`}),t_e=e=>({tag:t,onClick:n})=>g.jsx(BT,{colorGenerator:e,text:t.label,clearable:!0,className:"react-tags__tag",onClose:n}),n_e=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=J0e(n.label),s=e_e(n.label);return g.jsx("div",{className:rt(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?g.jsxs(g.Fragment,{children:[!s&&g.jsx(PF,{tag:`${n.label}`,colorGenerator:e}),s?g.jsxs("i",{children:['Add "',kF(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):g.jsx("i",{children:n.label})})},r_e=e=>({selectedTags:t,onChange:n,placeholder:r,tags:i,immutable:o=!1})=>{const a=Hl("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",l=bs();return g.jsx(Q0e,{ref:l,selected:t.map(rA),suggestions:i.filter(c=>!t.includes(c)).map(rA),renderTag:t_e(e),renderOption:n_e(e,l),activateFirstOption:!0,allowNew:!o,newOptionText:LF,noOptionsText:jF,placeholderText:r??"Add tags to the URL",delimiterKeys:["Enter","Tab",","],suggestionsTransform:(c,d)=>{const f=c.toLowerCase().trim();return f.length<1?[]:[...d.filter(({label:p})=>s==="includes"?p.includes(f):p.startsWith(f))].slice(0,5)},onDelete:c=>{const d=[...t];d.splice(c,1),n(d)},onAdd:({label:c})=>n([...new Set([...t,...c.split(",").map(kF)])])})},O2="shlink/tagDelete",i_e={deleting:!1,deleted:!1,error:!1},MF=Dn(`${O2}/tagDeleted`),o_e=e=>{const t=Dr(`${O2}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=dr({name:O2,initialState:i_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:ma(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},JT="shlink/tagEdit",a_e={editing:!1,edited:!1,error:!1},AF=Dn(`${JT}/tagEdited`),s_e=(e,t)=>Dr(`${JT}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),l_e=e=>dr({name:JT,initialState:a_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:ma(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({...q5(["oldName","newName"],r),editing:!1,edited:!0,error:!1}))}}),eO="shlink/tagsList",G1={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},iA=(e,t)=>n=>n===e?t:n,oA=(e,t)=>_T(n=>n===t,e),c_e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:s.visitsCount+o+a}}},{...t}),u_e=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),{})),d_e=e=>Dr(`${eO}/listTags`,async()=>{const{tags:t,stats:n}=await e().tagsStats(),r=n.reduce((i,{tag:o,...a})=>(i[o]=a,i),{});return{tags:t,stats:r}}),RF=Dn(`${eO}/filterTags`),f_e=(e,t)=>dr({name:eO,initialState:G1,reducers:{},extraReducers:n=>{n.addCase(RF,(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})=>({...G1,error:!0,errorData:ma(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...G1,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(MF,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:oA(r,a),filteredTags:oA(i,a)})),n.addCase(AF,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(iA(s.oldName,s.newName)).sort(),filteredTags:i.map(iA(s.oldName,s.newName)).sort()})),n.addCase(op,(r,{payload:i})=>({...r,stats:c_e(u_e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),h_e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},p_e=e=>Ss(({filterTags:t,tagsList:n})=>{var r;const i=$T(),[o,a]=U.useState(((r=i.tags)==null?void 0:r.defaultOrdering)??{}),s=Xn(()=>n.filteredTags.map(c=>{var d,f,p;const m=n.stats[c],v=((d=i.visits)!=null&&d.excludeBots?(f=m==null?void 0:m.visitsSummary)==null?void 0:f.nonBots:(p=m==null?void 0:m.visitsSummary)==null?void 0:p.total)??(m==null?void 0:m.visitsCount)??0;return{tag:c,visits:v,shortUrls:(m==null?void 0:m.shortUrlsCount)??0}}),c=>WI(c,o));if(n.loading)return g.jsx(Yo,{loading:!0});if(n.error)return g.jsx(Gr,{type:"error",children:g.jsx(ra,{errorData:n.errorData,fallbackMessage:"Error loading tags :("})});const l=c=>()=>{const d=f0(c,o.field,o.dir);a({field:d?c:void 0,dir:d})};return g.jsxs(g.Fragment,{children:[g.jsx(Gh,{className:"mb-3",onChange:t}),g.jsx(_r,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(qh,{items:h_e,order:o,onChange:(c,d)=>a({field:c,dir:d})})})}),(()=>{if(n.filteredTags.length<1)return g.jsx(Yo,{children:"No tags found"});const c=s();return g.jsx(e,{sortedTags:c,currentOrder:o,orderByColumn:l})})()]})},()=>[_i.visits]),tO=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!Ch(o)&&n(o);return g.jsxs(jE,{listClassName:rt("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[g.jsx(al,{disabled:t<=1,children:g.jsx(sl,{previous:!0,tag:"span",onClick:i(t-1)})}),bF(t,e).map((o,a)=>g.jsx(al,{disabled:Ch(o),active:t===o,children:g.jsx(sl,{role:"link",tag:"span",onClick:i(o),children:wF(o)})},xF(o,a))),g.jsx(al,{disabled:t>=e,children:g.jsx(sl,{next:!0,tag:"span",onClick:i(t+1)})})]})},m_e=20,g_e=e=>({sortedTags:t,orderByColumn:n,currentOrder:r})=>{const i=U.useRef(!0),{search:o}=_n(),{page:a=1}=Fl(o),[s,l]=Gme("page",Number(a)),c=_h(m_e,t),d=c.length>1,f=c[s-1]??[];return U.useEffect(()=>{!i.current&&l(1),i.current=!1},[t]),U.useEffect(()=>{scrollTo(0,0)},[s]),g.jsxs(vn,{bodyClassName:d?"pb-1":"",children:[g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsxs("thead",{className:"responsive-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:"tags-table__header-cell",onClick:n("tag"),children:["Tag ",g.jsx(Pf,{currentOrder:r,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:n("shortUrls"),children:["Short URLs ",g.jsx(Pf,{currentOrder:r,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:n("visits"),children:["Visits ",g.jsx(Pf,{currentOrder:r,field:"visits"})]}),g.jsx("th",{"aria-label":"Options",className:"tags-table__header-cell"})]}),g.jsx("tr",{children:g.jsx("th",{"aria-label":"Separator",colSpan:4,className:"p-0 border-top-0"})})]}),g.jsxs("tbody",{children:[f.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:4,className:"text-center",children:"No results found"})}),f.map(p=>g.jsx(e,{tag:p},p.tag))]})]}),d&&g.jsx("div",{className:"sticky-card-paginator",children:g.jsx(tO,{pagesCount:c.length,currentPage:s,setCurrentPage:l})})]},s)},v_e=(e,t,n)=>({tag:r})=>{const[i,o]=On(),[a,s]=On(),l=zl();return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(PF,{tag:r.tag,colorGenerator:n})," ",r.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Ut,{to:`${l}/list-short-urls/1?tags=${encodeURIComponent(r.tag)}`,children:En(r.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Ut,{to:`${l}/tag/${r.tag}/visits`,children:En(r.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs(d0,{children:[g.jsxs(Ue,{onClick:s,children:[g.jsx(Ae,{icon:MW,fixedWidth:!0,className:"me-1"})," Edit"]}),g.jsxs(Ue,{onClick:o,children:[g.jsx(Ae,{icon:GW,fixedWidth:!0,className:"me-1"})," Delete"]})]})}),g.jsx(t,{tag:r.tag,toggle:s,isOpen:a}),g.jsx(e,{tag:r.tag,toggle:o,isOpen:i})]})},y_e=(e,t)=>{e.serviceFactory("TagsSelector",r_e,"ColorGenerator"),e.serviceFactory("DeleteTagConfirmModal",()=>t0e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.serviceFactory("EditTagModal",n0e,"ColorGenerator"),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.serviceFactory("TagsTableRow",v_e,"DeleteTagConfirmModal","EditTagModal","ColorGenerator"),e.serviceFactory("TagsTable",g_e,"TagsTableRow"),e.serviceFactory("TagsList",p_e,"TagsTable"),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",l_e,"editTag"),e.serviceFactory("tagEditReducer",mt("reducer"),"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",o_e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",mt("reducer"),"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",f_e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",mt("reducer"),"tagsListReducerCreator"),e.serviceFactory("listTags",d_e,"apiClientFactory"),e.serviceFactory("filterTags",()=>RF),e.serviceFactory("deleteTag",mt("deleteTag"),"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>MF),e.serviceFactory("editTag",s_e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>AF)};var __e="Expected a function",NF="__lodash_hash_undefined__",DF=1/0,b_e="[object Function]",w_e="[object GeneratorFunction]",x_e="[object Symbol]",S_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E_e=/^\w*$/,T_e=/^\./,O_e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C_e=/[\\^$.*+?()[\]{}|]/g,k_e=/\\(\\)?/g,P_e=/^\[object .+?Constructor\]$/,j_e=typeof Fc=="object"&&Fc&&Fc.Object===Object&&Fc,L_e=typeof self=="object"&&self&&self.Object===Object&&self,nO=j_e||L_e||Function("return this")();function M_e(e,t){return e==null?void 0:e[t]}function A_e(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var R_e=Array.prototype,N_e=Function.prototype,IF=Object.prototype,q1=nO["__core-js_shared__"],aA=function(){var e=/[^.]+$/.exec(q1&&q1.keys&&q1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),FF=N_e.toString,rO=IF.hasOwnProperty,$F=IF.toString,D_e=RegExp("^"+FF.call(rO).replace(C_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sA=nO.Symbol,I_e=R_e.splice,F_e=UF(nO,"Map"),kh=UF(Object,"create"),lA=sA?sA.prototype:void 0,cA=lA?lA.toString:void 0;function Pl(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function q_e(e,t){var n=this.__data__,r=R0(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ku.prototype.clear=H_e;Ku.prototype.delete=W_e;Ku.prototype.get=Y_e;Ku.prototype.has=G_e;Ku.prototype.set=q_e;function Wl(e){var t=-1,n=e?e.length:0;for(this.clear();++tr.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function aO(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 v1e(e={stringFormatter:aO()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function y1e(e={stringFormatter:aO()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}function dA(e,t,n){const r=e[t];return r===void 0?n:r}function VF(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function C2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var fA;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(fA||(fA={}));class _1e{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||aO(),i=y1e({stringFormatter:r}),o={header:r,undefined:K1,boolean:K1,number:g1e(),bigint:K1,string:r,symbol:v1e({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},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=>uA(i,r,n):i=>dA(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?a=>uA(a,o,i):a=>dA(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const c=s(l,a);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return C2(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(VF,[]),[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 C2(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class b1e extends _1e{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,a)=>(Object.keys(a).forEach(s=>{o.includes(s)||o.push(s)}),o),[]),this.opts.defaultValue);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){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(VF,[])}processData(t){return C2(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Pn;(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"})(Pn||(Pn={}));Pn.QUOTATION_MARK+"",Pn.QUOTATION_MARK,Pn.REVERSE_SOLIDUS+"",Pn.REVERSE_SOLIDUS,Pn.SOLIDUS+"",Pn.SOLIDUS,Pn.LATIN_SMALL_LETTER_B+"",Pn.BACKSPACE,Pn.LATIN_SMALL_LETTER_F+"",Pn.FORM_FEED,Pn.LATIN_SMALL_LETTER_N+"",Pn.NEWLINE,Pn.LATIN_SMALL_LETTER_R+"",Pn.CARRIAGE_RETURN,Pn.LATIN_SMALL_LETTER_T+"",Pn.TAB;var hA;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(hA||(hA={}));var pA;(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"})(pA||(pA={}));var mA;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(mA||(mA={}));var gA;(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"})(gA||(gA={}));const w1e=new b1e,x1e=e=>w1e.parse(e),S1e=6,vA="0123456789ABCDEF",E1e=128,{floor:T1e,random:O1e,sqrt:C1e,round:k1e}=Math,P1e=()=>`#${IT(S1e,()=>vA[T1e(O1e()*vA.length)]).join("")}`,yA=e=>e.toLowerCase().trim(),j1e=e=>(e.match(/../g)??[]).map(t=>parseInt(t,16)||0),L1e=(e=0,t=0,n=0)=>k1e(C1e(.299*e**2+.587*t**2+.114*n**2));class M1e{constructor(t){Te(this,"colors"),Te(this,"lights"),Te(this,"getColorForKey",r=>{const i=yA(r);return this.colors[i]||this.setColorForKey(i,P1e())}),Te(this,"setColorForKey",(r,i)=>{var o;const a=yA(r);return this.colors[a]=i,(o=this.storage)==null||o.storeTagColors(this.colors),i}),Te(this,"isColorLightForKey",r=>{const i=this.getColorForKey(r).substring(1);if(Bl(this.lights[i])){const o=j1e(i);this.lights[i]=L1e(...o)>=E1e}return this.lights[i]});var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}}const HF=({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)},A1e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);HF(e,i,n)};class R1e{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);HF(this.window,i,n)}}class N1e{constructor(t,n){Te(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Te(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Te(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);A1e(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function D1e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",R1e,"fetch","window"),e.service("ColorGenerator",M1e,"TagColorsStorage"),e.constant("jsonToCsv",x1e),e.service("ReportExporter",N1e,"window","jsonToCsv"),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",Wme,"setTimeout","clearTimeout")}const sO=e=>e.visitedUrl!==void 0,I1e=e=>e.visitedUrl!==void 0,F1e=Xn(pde(e=>sO(e.visit)?"orphanVisits":"nonOrphanVisits"),e=>({orphanVisits:[],nonOrphanVisits:[],...e})),Um=(e,t)=>Y5(mt(t),e),dp=({page:e,itemsPerPage:t,filter:n,dateRange:r})=>{const i=((r==null?void 0:r.startDate)&&ps(r==null?void 0:r.startDate))??void 0,o=((r==null?void 0:r.endDate)&&ps(r==null?void 0:r.endDate))??void 0,a=(n==null?void 0:n.excludeBots)||void 0;return{page:e,itemsPerPage:t,startDate:i,endDate:o,excludeBots:a}},fp=({visits:e,goBack:t,shortUrl:n,children:r,title:i})=>g.jsx("header",{children:g.jsxs(Qr,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:t,children:g.jsx(Ae,{icon:h4})}),g.jsx("span",{className:"text-center d-none d-sm-block",children:g.jsx("small",{children:i})}),g.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",g.jsx(W8,{visitsCount:e.length,shortUrl:n})]})]}),g.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:g.jsx("small",{children:i})}),r&&g.jsx("div",{className:"mt-md-2",children:r})]})}),WF=({title:e,footer:t,children:n})=>g.jsxs(Qr,{role:"document",children:[g.jsx(vu,{className:"chart-card__header",children:typeof e=="function"?e():e}),g.jsx(gu,{children:n}),t&&g.jsx(OI,{className:"chart-card__footer--sticky",children:t})]}),YF="label";function _A(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function $1e(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function GF(e,t){e.labels=t}function qF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:YF;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function U1e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:YF;const n={labels:[],datasets:[]};return GF(n,e.labels),qF(n,e.datasets,t),n}function KF(e,t){return e.getElementsAtEventForMode(t.nativeEvent,"nearest",{intersect:!0},!1)}function B1e(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:d,updateMode:f,...p}=e,m=U.useRef(null),v=U.useRef(),y=()=>{m.current&&(v.current=new _0(m.current,{type:a,data:U1e(s,o),options:l&&{...l},plugins:c}),_A(t,v.current))},x=()=>{_A(t,null),v.current&&(v.current.destroy(),v.current=null)};return U.useEffect(()=>{!i&&v.current&&l&&$1e(v.current,l)},[i,l]),U.useEffect(()=>{!i&&v.current&&GF(v.current.config.data,s.labels)},[i,s.labels]),U.useEffect(()=>{!i&&v.current&&s.datasets&&qF(v.current.config.data,s.datasets,o)},[i,s.datasets]),U.useEffect(()=>{v.current&&(i?(x(),setTimeout(y)):v.current.update(f))},[i,l,s.labels,s.datasets,f]),U.useEffect(()=>{v.current&&(x(),setTimeout(y))},[a]),U.useEffect(()=>(y(),()=>x()),[]),Y.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),d)}const z1e=U.forwardRef(B1e);function lO(e,t){return _0.register(t),U.forwardRef((n,r)=>Y.createElement(z1e,Object.assign({},n,{ref:r,type:e})))}const V1e=lO("line",bf),H1e=lO("bar",_f),W1e=lO("doughnut",Ua),ZF=({native:e},[t])=>{if(!(e!=null&&e.target))return;const n=e.target;n.style.cursor=t?"pointer":"default"},QF=({dataset:e,raw:t})=>`${e.label}: ${En(`${t}`)}`,Y1e=({label:e,raw:t})=>`${e}: ${En(`${t}`)}`,G1e=({chart:e})=>{const{config:t}=e,{labels:n=[],datasets:r=[]}=t.data??{},[{backgroundColor:i}]=r,{defaultColor:o}=t.options??{};return g.jsx("ul",{className:"doughnut-chart-legend",children:n.map((a,s)=>g.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[g.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:i[s]??o}}),g.jsx("small",{className:"doughnut-chart-legend__item-text flex-fill",children:a})]},a))})},q1e=e=>[{data:e,backgroundColor:["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],borderColor:pte()?hte:fte,borderWidth:2}],K1e=(e,t)=>({labels:e,datasets:q1e(t)}),Z1e=U.memo(({stats:e})=>{const[t,n]=U.useState(),r=So(e),i=mT(e),o={plugins:{legend:{display:!1},tooltip:{intersect:!0,callbacks:{label:Y1e}}}},a=K1e(r,i);return g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-sm-12 col-md-7",children:g.jsx(W1e,{height:300,data:a,options:o,ref:s=>{s&&n(s)}})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:t&&g.jsx(G1e,{chart:t})})]})}),bA=({title:e,stats:t})=>g.jsx(WF,{title:e,children:g.jsx(Z1e,{stats:t})}),Q1e={"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"},XF={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"},sn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},mr={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"},Ta={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class be{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=be.getVersionPrecision(t),o=be.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=be.map([t,n],c=>{const d=a-be.getVersionPrecision(c),f=c+new Array(d+1).join(".0");return be.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]{r[s]=a[s]})}return t}static getBrowserAlias(t){return Q1e[t]}static getBrowserTypeByAlias(t){return XF[t]||""}}const Ct=/version\/(\d+(\.?_?\d+)+)/i,X1e=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(Ct,e)||be.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=be.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=be.getFirstMatch(Ct,e)||be.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=be.getFirstMatch(Ct,e)||be.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=be.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=be.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=be.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=be.getFirstMatch(Ct,e)||be.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=be.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=be.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=be.getFirstMatch(Ct,e)||be.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=be.getFirstMatch(Ct,e)||be.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=be.getFirstMatch(Ct,e)||be.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=be.getFirstMatch(Ct,e)||be.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=be.getFirstMatch(Ct,e)||be.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=be.getFirstMatch(Ct,e)||be.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=be.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||be.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=be.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=be.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=be.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=be.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=be.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=be.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=be.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=be.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=be.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=be.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=be.getFirstMatch(Ct,e)||be.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=be.getFirstMatch(Ct,e)||be.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=be.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=be.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=be.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=be.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=be.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=be.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=be.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=be.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=be.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=be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=be.getFirstMatch(Ct,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,r=e.search("\\(")!==-1?n:t;return{name:be.getFirstMatch(r,e),version:be.getSecondMatch(r,e)}}}],J1e=[{test:[/Roku\/DVP/],describe(e){const t=be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:mr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:mr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=be.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=be.getWindowsVersionName(t);return{name:mr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:mr.iOS},n=be.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=be.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=be.getMacOSVersionName(t),r={name:mr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=be.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:mr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=be.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=be.getAndroidVersionName(t),r={name:mr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=be.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:mr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=be.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||be.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||be.getFirstMatch(/\bbb(\d+)/i,e);return{name:mr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:mr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:mr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:mr.Linux}}},{test:[/CrOS/],describe(){return{name:mr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:mr.PlayStation4,version:t}}}],ebe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=be.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:sn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:sn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:sn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:sn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:sn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:sn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:sn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=be.getFirstMatch(/(ipod|iphone)/i,e);return{type:sn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:sn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:sn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:sn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:sn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:sn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:sn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:sn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:sn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:sn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:sn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:sn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:sn.tv}}}],tbe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ta.Blink};const t=be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ta.EdgeHTML,version:t}}},{test:[/trident/i],describe(e){const t={name:Ta.Trident},n=be.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Ta.Presto},n=be.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:Ta.Gecko},n=be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ta.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Ta.WebKit},n=be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class wA{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=be.find(X1e,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=be.find(J1e,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=be.find(ebe,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=be.find(tbe,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 be.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(a=>{const s=t[a];typeof s=="string"?(i[a]=s,o+=1):typeof s=="object"&&(n[a]=s,r+=1)}),r>0){const a=Object.keys(n),s=be.find(a,c=>this.isOS(c));if(s){const c=this.satisfies(n[s]);if(c!==void 0)return c}const l=be.find(a,c=>this.isPlatform(c));if(l){const c=this.satisfies(n[l]);if(c!==void 0)return c}}if(o>0){const a=Object.keys(i),s=be.find(a,l=>this.isBrowser(l,!0));if(s!==void 0)return this.compareVersion(i[s])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=be.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(be.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 nbe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new wA(t,n)}static parse(t){return new wA(t).getResult()}static get BROWSER_MAP(){return XF}static get ENGINE_MAP(){return Ta}static get OS_MAP(){return mr}static get PLATFORMS_MAP(){return sn}}const Bm="Others",rbe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],ibe=e=>{if(!uo(e))return{browser:Bm,os:Bm};const{browser:{name:t},os:{name:n}}=nbe.parse(e);return{os:n??Bm,browser:t&&rbe.includes(t)?t:Bm}},obe=e=>{var t;return uo(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},cO=(e,t)=>Object.values({...K5(t,t.map(()=>0)),...e}),xA={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},abe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},sbe={hourly:cfe,daily:OT,weekly:ffe,monthly:ny},uO={hourly:e=>Pu(e,"yyyy-MM-dd HH:00"),daily:e=>el(e),weekly(e){const t=el(bh(e)),n=el(mfe(e));return`${t} - ${n}`},monthly:e=>Pu(e,"yyyy-MM")},lbe=e=>{const t=new Date,n=ia(e);return bT([[()=>OT(t,n)<=2,E1("hourly")],[()=>ny(t,n)<=1,E1("daily")],[()=>ny(t,n)<=6,E1("weekly")]])()??"monthly"},SA=(e,t)=>Y5(n=>uO[e](ia(n.date)),t),cbe=(e,t)=>t.reduce((n,r)=>{const i=uO[e](ia(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),ube=(e,t)=>{const n=sbe[e],r=uO[e],i=ia(t[0].date),o=ia(t[t.length-1].date),a=n(i,o),s=abe[e];return[r(o),...IT(a,l=>r(Xde(o,s(l))))]},dbe=(e,t,n,r)=>{if(r)return[Object.keys(t),Object.values(t)];const i=ube(n,e);return[i,cO(t,i)]},EA=(e,t,n)=>({label:t,data:e,fill:!1,tension:.2,borderColor:n,backgroundColor:n});let Z1=null;const fbe=(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)},hbe=({title:e,visits:t,highlightedVisits:n,highlightedLabel:r="Selected",setSelectedVisits:i})=>{const[o,a]=U.useState(t.length>0?lbe(t[t.length-1].date):"monthly"),[s,l]=On(!0),c=U.useRef(null),d=U.useRef(null),f=U.useMemo(()=>cbe(o,t),[o,t]),p=U.useMemo(()=>SA(o,n2(t)),[o,t]),[m,v]=U.useMemo(()=>dbe(t,p,o,s),[t,o,s]),y=U.useMemo(()=>cO(SA(o,n2(n)),m),[n,o,m]),x=()=>{const E=EA(v,"Visits",LE);if(n.length===0)return[E];const C=EA(y,r,GI);return[E,C]},_=()=>({labels:m,datasets:x()}),w={maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{intersect:!1,axis:"x",callbacks:{label:QF}}},scales:{y:{beginAtZero:!0,ticks:{precision:0,callback:En}},x:{title:{display:!0,text:xA[o]}}},onHover:ZF},S=E=>g.jsx(V1e,{ref:E,data:_(),options:w,onClick:C=>fbe(m,f,KF(E.current,C),i)});return g.jsxs(Qr,{children:[g.jsxs(vu,{role:"heading",children:[e,g.jsx("div",{className:"float-end",children:g.jsxs(Yh,{children:[g.jsx(zu,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(Bu,{end:!0,children:Object.entries(xA).map(([E,C])=>g.jsx(Ue,{active:o===E,onClick:()=>a(E),children:C},E))})]})}),g.jsx("div",{className:"float-end me-2",children:g.jsx(yu,{checked:s,onChange:l,children:g.jsx("small",{children:"Skip dates with no visits"})})})]}),g.jsxs(gu,{className:"line-chart-card__body",children:[n.length>0&&S(c),n.length===0&&S(d)]})]})},pbe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>g.jsxs(Yh,{children:[g.jsx(zu,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(Bu,{end:!0,children:[t.map(i=>g.jsxs(Ue,{active:i===n,onClick:()=>r(i),children:[g.jsx("b",{children:i})," items per page"]},i)),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:n===1/0,onClick:()=>r(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})]}),mbe=e=>e.startsWith("hidden")?"":e,gbe=e=>!!e&&Object.keys(e).length>0,vbe=e=>e.length>20?e.length*10:void 0,ybe=(e,t,n)=>{const r={data:e,label:n?"Non-selected":"Visits",backgroundColor:ute,borderColor:LE,borderWidth:2};return t.every(i=>i===0)?[r]:[r,{label:n??"Selected",data:t,backgroundColor:dte,borderColor:GI,borderWidth:2}]},_be=(e,t,n,r)=>({labels:e,datasets:ybe(t,n,r)}),bbe=(e,[t],n)=>{!n||!t||n(e[t.index])},wbe=({stats:e,highlightedStats:t,highlightedLabel:n,onClick:r,max:i})=>{const o=So(e).map(mbe),a=mT(gbe(t)?So(t).reduce((v,y)=>(v[y]&&(v[y]-=t[y]),v),{...e}):e),s=cO(t??{},o),l=U.useRef(null),c=U.useRef(null),d={plugins:{legend:{display:!1},tooltip:{mode:"y",filter:({label:v})=>v!=="",callbacks:{label:QF}}},scales:{x:{beginAtZero:!0,stacked:!0,max:i,ticks:{precision:0,callback:En}},y:{stacked:!0}},onHover:ZF,indexAxis:"y"},f=_be(o,a,s,n),p=vbe(o),m=(v,y)=>g.jsx(H1e,{ref:y,data:f,options:d,height:p,onClick:x=>bbe(o,KF(y.current,x),r)},`${p}_${v}`);return g.jsxs(g.Fragment,{children:[t!==void 0&&m("with_stats",l),t===void 0&&m("without_stats",c)]})},xbe=e=>Xv(e)==="String"?Ade(e):e,TA=([e])=>e,OA=([,e])=>e,zm=({stats:e,highlightedStats:t,title:n,sortingItems:r,extraHeaderContent:i,withPagination:o=!0,...a})=>{const[s,l]=U.useState({}),[c,d]=U.useState(1),[f,p]=U.useState(50),m=(k,j)=>{const A=D3(k),$=s.field?jde(Xn(s.field===Object.keys(j)[0]?TA:OA,xbe),A):A;return!s.dir||s.dir==="ASC"?$:n2($)},v=k=>{const j=k[c-1];if(c[`hidden_${$}`,0])]},y=k=>g.jsx(tO,{currentPage:c,pagesCount:k,setCurrentPage:d}),x=(k,j,A)=>{const $=m(k,j),N=$.map(TA),z=A&&D3({...K5(N,N.map(()=>0)),...A});if($.length<=f)return{currentPageStats:Lm($),currentPageHighlightedStats:z&&Lm(z)};const W=_h(f,$),X=z&&_h(f,z);return{currentPageStats:Lm(v(W)),currentPageHighlightedStats:X&&Lm(v(X)),pagination:y(W.length),max:Tme(Math.max(...$.map(OA)))}},{currentPageStats:_,currentPageHighlightedStats:w,pagination:S,max:E}=x(e,r,t&&Object.keys(t).length>0?t:void 0),C=Object.keys(_);return g.jsx(WF,{title:()=>g.jsxs(g.Fragment,{children:[n,g.jsx("div",{className:"float-end",children:g.jsx(qh,{isButton:!1,right:!0,items:r,order:s,onChange:(k,j)=>{l({field:k,dir:j}),d(1)}})}),o&&Object.keys(e).length>50&&g.jsx("div",{className:"float-end",children:g.jsx(pbe,{toggleClassName:"btn-sm p-0 me-3",ranges:[50,100,200,500],value:f,setValue:k=>{p(k),d(1)}})}),i&&g.jsx("div",{className:"float-end",children:i(S?C:void 0)})]}),footer:S,children:g.jsx(wbe,{stats:_,highlightedStats:w,max:E,...a})})},Sbe=()=>{const e=To(),{search:t}=_n(),{filtering:n,domain:r}=U.useMemo(Xn(()=>Fl(t),({startDate:i,endDate:o,orphanVisitsType:a,excludeBots:s,domain:l})=>({domain:l,filtering:{dateRange:i!=null||o!=null?C8(i,o):void 0,visitsFilter:{orphanVisitsType:a,excludeBots:Bl(s)?void 0:s==="true"}}})),[t]);return[n,i=>{const{dateRange:o,visitsFilter:a}=Sde(n,i),{excludeBots:s,orphanVisitsType:l}=a,c={startDate:(o==null?void 0:o.startDate)&&ps(o.startDate)||"",endDate:(o==null?void 0:o.endDate)&&ps(o.endDate)||"",excludeBots:s===void 0?void 0:M8(s),orphanVisitsType:l,domain:r},d=Zh(c),f=Pi(d)?"":`?${d}`;e(f,{replace:!0,relative:"route"})}]};function JF(e,t){const n=U.useRef(t);U.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 Ebe=1;function Tbe(e){return Object.freeze({__version:Ebe,map:e})}function Obe(e,t){return Object.freeze({...e,...t})}const e$=U.createContext(null),t$=e$.Provider;function n$(){const e=U.useContext(e$);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function Cbe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return U.useImperativeHandle(r,()=>i),n.children==null?null:Y.createElement(t$,{value:o},n.children)}return U.forwardRef(t)}function kbe(e){function t(n,r){const[i,o]=U.useState(!1),{instance:a}=e(n,o).current;U.useImperativeHandle(r,()=>a),U.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?Al.createPortal(n.children,s):null}return U.forwardRef(t)}function Pbe(e){function t(n,r){const{instance:i}=e(n).current;return U.useImperativeHandle(r,()=>i),null}return U.forwardRef(t)}function r$(e,t){const n=U.useRef();U.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 dO(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function jbe(e,t){return function(n,r){const i=n$(),o=e(dO(n,i),i);return JF(i.map,n.attribution),r$(o.current,n.eventHandlers),t(o.current,i,n,r),o}}var k2={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(e,t){(function(n,r){r(t)})(Fc,function(n){var r="1.9.4";function i(u){var h,b,T,P;for(b=1,T=arguments.length;b"u"||!L||!L.Mixin)){u=S(u)?u:[u];for(var h=0;h0?Math.floor(u):Math.ceil(u)};q.prototype={clone:function(){return new q(this.x,this.y)},add:function(u){return this.clone()._add(D(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(D(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 q(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new q(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=I(this.x),this.y=I(this.y),this},distanceTo:function(u){u=D(u);var h=u.x-this.x,b=u.y-this.y;return Math.sqrt(h*h+b*b)},equals:function(u){return u=D(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=D(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 D(u,h,b){return u instanceof q?u:S(u)?new q(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new q(u.x,u.y):new q(u,h,b)}function H(u,h){if(u)for(var b=h?[u,h]:u,T=0,P=b.length;T=this.min.x&&b.x<=this.max.x&&h.y>=this.min.y&&b.y<=this.max.y},intersects:function(u){u=ie(u);var h=this.min,b=this.max,T=u.min,P=u.max,B=P.x>=h.x&&T.x<=b.x,oe=P.y>=h.y&&T.y<=b.y;return B&&oe},overlaps:function(u){u=ie(u);var h=this.min,b=this.max,T=u.min,P=u.max,B=P.x>h.x&&T.xh.y&&T.y=h.lat&&P.lat<=b.lat&&T.lng>=h.lng&&P.lng<=b.lng},intersects:function(u){u=K(u);var h=this._southWest,b=this._northEast,T=u.getSouthWest(),P=u.getNorthEast(),B=P.lat>=h.lat&&T.lat<=b.lat,oe=P.lng>=h.lng&&T.lng<=b.lng;return B&&oe},overlaps:function(u){u=K(u);var h=this._southWest,b=this._northEast,T=u.getSouthWest(),P=u.getNorthEast(),B=P.lat>h.lat&&T.lath.lng&&T.lng1,on=function(){var u=!1;try{var h=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",f,h),window.removeEventListener("testPassiveEventSupport",f,h)}catch{}return u}(),hr=function(){return!!document.createElement("canvas").getContext}(),Hn=!!(document.createElementNS&&Me("svg").createSVGRect),Wn=!!Hn&&function(){var u=document.createElement("div");return u.innerHTML="",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),bn=!Hn&&function(){try{var u=document.createElement("div");u.innerHTML='';var h=u.firstChild;return h.style.behavior="url(#default#VML)",h&&typeof h.adj=="object"}catch{return!1}}(),ji=navigator.platform.indexOf("Mac")===0,Li=navigator.platform.indexOf("Linux")===0;function Yn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var ze={ie:_e,ielt9:Se,edge:ke,webkit:Ce,android:Le,android23:ce,androidStock:ye,opera:ve,chrome:xe,gecko:Pe,safari:Ne,phantom:Qe,opera12:et,win:Ge,ie3d:Qt,webkit3d:Wt,gecko3d:Cn,any3d:fr,mobile:Ki,mobileWebkit:Vn,mobileWebkit3d:Xu,msPointer:Zi,pointer:gp,touch:yp,touchNative:vp,mobileOpera:Ju,mobileGecko:Ts,retina:pn,passiveEvents:on,canvas:hr,svg:Hn,vml:bn,inlineSvg:Wn,mac:ji,linux:Li},SO=ze.msPointer?"MSPointerDown":"pointerdown",EO=ze.msPointer?"MSPointerMove":"pointermove",TO=ze.msPointer?"MSPointerUp":"pointerup",OO=ze.msPointer?"MSPointerCancel":"pointercancel",$0={touchstart:SO,touchmove:EO,touchend:TO,touchcancel:OO},CO={touchstart:q$,touchmove:_p,touchend:_p,touchcancel:_p},ql={},kO=!1;function V$(u,h,b){return h==="touchstart"&&G$(),CO[h]?(b=CO[h].bind(this,b),u.addEventListener($0[h],b,!1),b):(console.warn("wrong event specified:",h),f)}function H$(u,h,b){if(!$0[h]){console.warn("wrong event specified:",h);return}u.removeEventListener($0[h],b,!1)}function W$(u){ql[u.pointerId]=u}function Y$(u){ql[u.pointerId]&&(ql[u.pointerId]=u)}function PO(u){delete ql[u.pointerId]}function G$(){kO||(document.addEventListener(SO,W$,!0),document.addEventListener(EO,Y$,!0),document.addEventListener(TO,PO,!0),document.addEventListener(OO,PO,!0),kO=!0)}function _p(u,h){if(h.pointerType!==(h.MSPOINTER_TYPE_MOUSE||"mouse")){h.touches=[];for(var b in ql)h.touches.push(ql[b]);h.changedTouches=[h],u(h)}}function q$(u,h){h.MSPOINTER_TYPE_TOUCH&&h.pointerType===h.MSPOINTER_TYPE_TOUCH&&Gn(h),_p(u,h)}function K$(u){var h={},b,T;for(T in u)b=u[T],h[T]=b&&b.bind?b.bind(u):b;return u=h,h.type="dblclick",h.detail=2,h.isTrusted=!1,h._simulated=!0,h}var Z$=200;function Q$(u,h){u.addEventListener("dblclick",h);var b=0,T;function P(B){if(B.detail!==1){T=B.detail;return}if(!(B.pointerType==="mouse"||B.sourceCapabilities&&!B.sourceCapabilities.firesTouchEvents)){var oe=RO(B);if(!(oe.some(function(pe){return pe instanceof HTMLLabelElement&&pe.attributes.for})&&!oe.some(function(pe){return pe instanceof HTMLInputElement||pe instanceof HTMLSelectElement}))){var de=Date.now();de-b<=Z$?(T++,T===2&&h(K$(B))):T=1,b=de}}}return u.addEventListener("click",P),{dblclick:h,simDblclick:P}}function X$(u,h){u.removeEventListener("dblclick",h.dblclick),u.removeEventListener("click",h.simDblclick)}var U0=xp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ed=xp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),jO=ed==="webkitTransition"||ed==="OTransition"?ed+"End":"transitionend";function LO(u){return typeof u=="string"?document.getElementById(u):u}function td(u,h){var b=u.style[h]||u.currentStyle&&u.currentStyle[h];if((!b||b==="auto")&&document.defaultView){var T=document.defaultView.getComputedStyle(u,null);b=T?T[h]:null}return b==="auto"?null:b}function pt(u,h,b){var T=document.createElement(u);return T.className=h||"",b&&b.appendChild(T),T}function Yt(u){var h=u.parentNode;h&&h.removeChild(u)}function bp(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function Kl(u){var h=u.parentNode;h&&h.lastChild!==u&&h.appendChild(u)}function Zl(u){var h=u.parentNode;h&&h.firstChild!==u&&h.insertBefore(u,h.firstChild)}function B0(u,h){if(u.classList!==void 0)return u.classList.contains(h);var b=wp(u);return b.length>0&&new RegExp("(^|\\s)"+h+"(\\s|$)").test(b)}function Ze(u,h){if(u.classList!==void 0)for(var b=v(h),T=0,P=b.length;T0?2*window.devicePixelRatio:1;function DO(u){return ze.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/tU: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 J0(u,h){var b=h.relatedTarget;if(!b)return!0;try{for(;b&&b!==u;)b=b.parentNode}catch{return!1}return b!==u}var nU={__proto__:null,on:qe,off:kt,stopPropagation:ks,disableScrollPropagation:X0,disableClickPropagation:od,preventDefault:Gn,stop:Ps,getPropagationPath:RO,getMousePosition:NO,getWheelDelta:DO,isExternalTarget:J0,addListener:qe,removeListener:kt},IO=le.extend({run:function(u,h,b,T){this.stop(),this._el=u,this._inProgress=!0,this._duration=b||.25,this._easeOutPower=1/Math.max(T||.5,.2),this._startPos=Cs(u),this._offset=h.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=z(this._animate,this),this._step()},_step:function(u){var h=+new Date-this._startTime,b=this._duration*1e3;hthis.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,h){this._enforcingBounds=!0;var b=this.getCenter(),T=this._limitCenter(b,this._zoom,K(u));return b.equals(T)||this.panTo(T,h),this._enforcingBounds=!1,this},panInside:function(u,h){h=h||{};var b=D(h.paddingTopLeft||h.padding||[0,0]),T=D(h.paddingBottomRight||h.padding||[0,0]),P=this.project(this.getCenter()),B=this.project(u),oe=this.getPixelBounds(),de=ie([oe.min.add(b),oe.max.subtract(T)]),pe=de.getSize();if(!de.contains(B)){this._enforcingBounds=!0;var we=B.subtract(de.getCenter()),De=de.extend(B).getSize().subtract(pe);P.x+=we.x<0?-De.x:De.x,P.y+=we.y<0?-De.y:De.y,this.panTo(this.unproject(P),h),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 h=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var b=this.getSize(),T=h.divideBy(2).round(),P=b.divideBy(2).round(),B=T.subtract(P);return!B.x&&!B.y?this:(u.animate&&u.pan?this.panBy(B):(u.pan&&this._rawPanBy(B),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:h,newSize:b}))},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 h=a(this._handleGeolocationResponse,this),b=a(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(h,b,u):navigator.geolocation.getCurrentPosition(h,b,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 h=u.code,b=u.message||(h===1?"permission denied":h===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:h,message:"Geolocation error: "+b+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var h=u.coords.latitude,b=u.coords.longitude,T=new re(h,b),P=T.toBounds(u.coords.accuracy*2),B=this._locateOptions;if(B.setView){var oe=this.getBoundsZoom(P);this.setView(T,B.maxZoom?Math.min(oe,B.maxZoom):oe)}var de={latlng:T,bounds:P,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,h){if(!h)return this;var b=this[u]=new h(this);return this._handlers.push(b),this.options[u]&&b.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(),Yt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(W(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)Yt(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,h){var b="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),T=pt("div",b,h||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(),h=this.unproject(u.getBottomLeft()),b=this.unproject(u.getTopRight());return new V(h,b)},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,h,b){u=K(u),b=D(b||[0,0]);var T=this.getZoom()||0,P=this.getMinZoom(),B=this.getMaxZoom(),oe=u.getNorthWest(),de=u.getSouthEast(),pe=this.getSize().subtract(b),we=ie(this.project(de,T),this.project(oe,T)).getSize(),De=ze.any3d?this.options.zoomSnap:1,We=pe.x/we.x,Xe=pe.y/we.y,pr=h?Math.max(We,Xe):Math.min(We,Xe);return T=this.getScaleZoom(pr,T),De&&(T=Math.round(T/(De/100))*(De/100),T=h?Math.ceil(T/De)*De:Math.floor(T/De)*De),Math.max(P,Math.min(B,T))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new q(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,h){var b=this._getTopLeftPoint(u,h);return new H(b,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,h){var b=this.options.crs;return h=h===void 0?this._zoom:h,b.scale(u)/b.scale(h)},getScaleZoom:function(u,h){var b=this.options.crs;h=h===void 0?this._zoom:h;var T=b.zoom(u*b.scale(h));return isNaN(T)?1/0:T},project:function(u,h){return h=h===void 0?this._zoom:h,this.options.crs.latLngToPoint(ae(u),h)},unproject:function(u,h){return h=h===void 0?this._zoom:h,this.options.crs.pointToLatLng(D(u),h)},layerPointToLatLng:function(u){var h=D(u).add(this.getPixelOrigin());return this.unproject(h)},latLngToLayerPoint:function(u){var h=this.project(ae(u))._round();return h._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(ae(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(K(u))},distance:function(u,h){return this.options.crs.distance(ae(u),ae(h))},containerPointToLayerPoint:function(u){return D(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return D(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var h=this.containerPointToLayerPoint(D(u));return this.layerPointToLatLng(h)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ae(u)))},mouseEventToContainerPoint:function(u){return NO(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 h=this._container=LO(u);if(h){if(h._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");qe(h,"scroll",this._onScroll,this),this._containerId=l(h)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&ze.any3d,Ze(u,"leaflet-container"+(ze.touch?" leaflet-touch":"")+(ze.retina?" leaflet-retina":"")+(ze.ielt9?" leaflet-oldie":"")+(ze.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var h=td(u,"position");h!=="absolute"&&h!=="relative"&&h!=="fixed"&&h!=="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),mn(this._mapPane,new q(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ze(u.markerPane,"leaflet-zoom-hide"),Ze(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,h,b){mn(this._mapPane,new q(0,0));var T=!this._loaded;this._loaded=!0,h=this._limitZoom(h),this.fire("viewprereset");var P=this._zoom!==h;this._moveStart(P,b)._move(u,h)._moveEnd(P),this.fire("viewreset"),T&&this.fire("load")},_moveStart:function(u,h){return u&&this.fire("zoomstart"),h||this.fire("movestart"),this},_move:function(u,h,b,T){h===void 0&&(h=this._zoom);var P=this._zoom!==h;return this._zoom=h,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),T?b&&b.pinch&&this.fire("zoom",b):((P||b&&b.pinch)&&this.fire("zoom",b),this.fire("move",b)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){mn(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 h=u?kt:qe;h(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&h(window,"resize",this._onResize,this),ze.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=z(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,h){for(var b=[],T,P=h==="mouseout"||h==="mouseover",B=u.target||u.srcElement,oe=!1;B;){if(T=this._targets[l(B)],T&&(h==="click"||h==="preclick")&&this._draggableMoved(T)){oe=!0;break}if(T&&T.listens(h,!0)&&(P&&!J0(B,u)||(b.push(T),P))||B===this._container)break;B=B.parentNode}return!b.length&&!oe&&!P&&this.listens(h,!0)&&(b=[this]),b},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var h=u.target||u.srcElement;if(!(!this._loaded||h._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(h))){var b=u.type;b==="mousedown"&&G0(h),this._fireDOMEvent(u,b)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,h,b){if(u.type==="click"){var T=i({},u);T.type="preclick",this._fireDOMEvent(T,T.type,b)}var P=this._findEventTargets(u,h);if(b){for(var B=[],oe=0;oe0?Math.round(u-h)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(h))},_limitZoom:function(u){var h=this.getMinZoom(),b=this.getMaxZoom(),T=ze.any3d?this.options.zoomSnap:1;return T&&(u=Math.round(u/T)*T),Math.max(h,Math.min(b,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){an(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,h){var b=this._getCenterOffset(u)._trunc();return(h&&h.animate)!==!0&&!this.getSize().contains(b)?!1:(this.panBy(b,h),!0)},_createAnimProxy:function(){var u=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(h){var b=U0,T=this._proxy.style[b];Os(this._proxy,this.project(h.center,h.zoom),this.getZoomScale(h.zoom,1)),T===this._proxy.style[b]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Yt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),h=this.getZoom();Os(this._proxy,this.project(u,h),this.getZoomScale(h,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,h,b){if(this._animatingZoom)return!0;if(b=b||{},!this._zoomAnimated||b.animate===!1||this._nothingToAnimate()||Math.abs(h-this._zoom)>this.options.zoomAnimationThreshold)return!1;var T=this.getZoomScale(h),P=this._getCenterOffset(u)._divideBy(1-1/T);return b.animate!==!0&&!this.getSize().contains(P)?!1:(z(function(){this._moveStart(!0,b.noMoveStart||!1)._animateZoom(u,h,!0)},this),!0)},_animateZoom:function(u,h,b,T){this._mapPane&&(b&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=h,Ze(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:h,noUpdate:T}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&an(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 rU(u,h){return new ct(u,h)}var Mi=G.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var h=this._map;return h&&h.removeControl(this),this.options.position=u,h&&h.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var h=this._container=this.onAdd(u),b=this.getPosition(),T=u._controlCorners[b];return Ze(h,"leaflet-control"),b.indexOf("bottom")!==-1?T.insertBefore(h,T.firstChild):T.appendChild(h),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Yt(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()}}),ad=function(u){return new Mi(u)};ct.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},h="leaflet-",b=this._controlContainer=pt("div",h+"control-container",this._container);function T(P,B){var oe=h+P+" "+h+B;u[P+B]=pt("div",oe,b)}T("top","left"),T("top","right"),T("bottom","left"),T("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Yt(this._controlCorners[u]);Yt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var FO=Mi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,h,b,T){return b1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=h&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var h=this._getLayer(l(u.target)),b=h.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;b&&this._map.fire(b,h)},_createRadioElement:function(u,h){var b='",T=document.createElement("div");return T.innerHTML=b,T.firstChild},_addItem:function(u){var h=document.createElement("label"),b=this._map.hasLayer(u.layer),T;u.overlay?(T=document.createElement("input"),T.type="checkbox",T.className="leaflet-control-layers-selector",T.defaultChecked=b):T=this._createRadioElement("leaflet-base-layers_"+l(this),b),this._layerControlInputs.push(T),T.layerId=l(u.layer),qe(T,"click",this._onInputClick,this);var P=document.createElement("span");P.innerHTML=" "+u.name;var B=document.createElement("span");h.appendChild(B),B.appendChild(T),B.appendChild(P);var oe=u.overlay?this._overlaysList:this._baseLayersList;return oe.appendChild(h),this._checkDisabledLayers(),h},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,h,b,T=[],P=[];this._handlingClick=!0;for(var B=u.length-1;B>=0;B--)h=u[B],b=this._getLayer(h.layerId).layer,h.checked?T.push(b):h.checked||P.push(b);for(B=0;B=0;P--)h=u[P],b=this._getLayer(h.layerId).layer,h.disabled=b.options.minZoom!==void 0&&Tb.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,qe(u,"click",Gn),this.expand();var h=this;setTimeout(function(){kt(u,"click",Gn),h._preventClick=!1})}}),iU=function(u,h,b){return new FO(u,h,b)},e_=Mi.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(u){var h="leaflet-control-zoom",b=pt("div",h+" leaflet-bar"),T=this.options;return this._zoomInButton=this._createButton(T.zoomInText,T.zoomInTitle,h+"-in",b,this._zoomIn),this._zoomOutButton=this._createButton(T.zoomOutText,T.zoomOutTitle,h+"-out",b,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),b},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,h,b,T,P){var B=pt("a",b,T);return B.innerHTML=u,B.href="#",B.title=h,B.setAttribute("role","button"),B.setAttribute("aria-label",h),od(B),qe(B,"click",Ps),qe(B,"click",P,this),qe(B,"click",this._refocusOnMap,this),B},_updateDisabled:function(){var u=this._map,h="leaflet-disabled";an(this._zoomInButton,h),an(this._zoomOutButton,h),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Ze(this._zoomOutButton,h),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Ze(this._zoomInButton,h),this._zoomInButton.setAttribute("aria-disabled","true"))}});ct.mergeOptions({zoomControl:!0}),ct.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new e_,this.addControl(this.zoomControl))});var oU=function(u){return new e_(u)},$O=Mi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var h="leaflet-control-scale",b=pt("div",h),T=this.options;return this._addScales(T,h+"-line",b),u.on(T.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),b},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,h,b){u.metric&&(this._mScale=pt("div",h,b)),u.imperial&&(this._iScale=pt("div",h,b))},_update:function(){var u=this._map,h=u.getSize().y/2,b=u.distance(u.containerPointToLatLng([0,h]),u.containerPointToLatLng([this.options.maxWidth,h]));this._updateScales(b)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var h=this._getRoundNum(u),b=h<1e3?h+" m":h/1e3+" km";this._updateScale(this._mScale,b,h/u)},_updateImperial:function(u){var h=u*3.2808399,b,T,P;h>5280?(b=h/5280,T=this._getRoundNum(b),this._updateScale(this._iScale,T+" mi",T/b)):(P=this._getRoundNum(h),this._updateScale(this._iScale,P+" ft",P/h))},_updateScale:function(u,h,b){u.style.width=Math.round(this.options.maxWidth*b)+"px",u.innerHTML=h},_getRoundNum:function(u){var h=Math.pow(10,(Math.floor(u)+"").length-1),b=u/h;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:1,h*b}}),aU=function(u){return new $O(u)},sU='',t_=Mi.extend({options:{position:"bottomright",prefix:''+(ze.inlineSvg?sU+" ":"")+"Leaflet"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),od(this._container);for(var h in u._layers)u._layers[h].getAttribution&&this.addAttribution(u._layers[h].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 h in this._attributions)this._attributions[h]&&u.push(h);var b=[];this.options.prefix&&b.push(this.options.prefix),u.length&&b.push(u.join(", ")),this._container.innerHTML=b.join(' ')}}});ct.mergeOptions({attributionControl:!0}),ct.addInitHook(function(){this.options.attributionControl&&new t_().addTo(this)});var lU=function(u){return new t_(u)};Mi.Layers=FO,Mi.Zoom=e_,Mi.Scale=$O,Mi.Attribution=t_,ad.layers=iU,ad.zoom=oU,ad.scale=aU,ad.attribution=lU;var Xi=G.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}});Xi.addTo=function(u,h){return u.addHandler(h,this),this};var cU={Events:te},UO=ze.touch?"touchstart mousedown":"mousedown",va=le.extend({options:{clickTolerance:3},initialize:function(u,h,b,T){y(this,T),this._element=u,this._dragStartTarget=h||u,this._preventOutline=b},enable:function(){this._enabled||(qe(this._dragStartTarget,UO,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(va._dragging===this&&this.finishDrag(!0),kt(this._dragStartTarget,UO,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!B0(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){va._dragging===this&&this.finishDrag();return}if(!(va._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(va._dragging=this,this._preventOutline&&G0(this._element),H0(),nd(),!this._moving)){this.fire("down");var h=u.touches?u.touches[0]:u,b=MO(this._element);this._startPoint=new q(h.clientX,h.clientY),this._startPos=Cs(this._element),this._parentScale=q0(b);var T=u.type==="mousedown";qe(document,T?"mousemove":"touchmove",this._onMove,this),qe(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 h=u.touches&&u.touches.length===1?u.touches[0]:u,b=new q(h.clientX,h.clientY)._subtract(this._startPoint);!b.x&&!b.y||Math.abs(b.x)+Math.abs(b.y)B&&(oe=de,B=pe);B>b&&(h[oe]=1,r_(u,h,b,T,oe),r_(u,h,b,oe,P))}function hU(u,h){for(var b=[u[0]],T=1,P=0,B=u.length;Th&&(b.push(u[T]),P=T);return Ph.max.x&&(b|=2),u.yh.max.y&&(b|=8),b}function pU(u,h){var b=h.x-u.x,T=h.y-u.y;return b*b+T*T}function sd(u,h,b,T){var P=h.x,B=h.y,oe=b.x-P,de=b.y-B,pe=oe*oe+de*de,we;return pe>0&&(we=((u.x-P)*oe+(u.y-B)*de)/pe,we>1?(P=b.x,B=b.y):we>0&&(P+=oe*we,B+=de*we)),oe=u.x-P,de=u.y-B,T?oe*oe+de*de:new q(P,B)}function ai(u){return!S(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function GO(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ai(u)}function qO(u,h){var b,T,P,B,oe,de,pe,we;if(!u||u.length===0)throw new Error("latlngs not passed");ai(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var De=ae([0,0]),We=K(u),Xe=We.getNorthWest().distanceTo(We.getSouthWest())*We.getNorthEast().distanceTo(We.getNorthWest());Xe<1700&&(De=n_(u));var pr=u.length,kn=[];for(b=0;bT){pe=(B-T)/P,we=[de.x-pe*(de.x-oe.x),de.y-pe*(de.y-oe.y)];break}var Er=h.unproject(D(we));return ae([Er.lat+De.lat,Er.lng+De.lng])}var mU={__proto__:null,simplify:VO,pointToSegmentDistance:HO,closestPointOnSegment:dU,clipSegment:YO,_getEdgeIntersection:Tp,_getBitCode:js,_sqClosestPointOnSegment:sd,isFlat:ai,_flat:GO,polylineCenter:qO},i_={project:function(u){return new q(u.lng,u.lat)},unproject:function(u){return new re(u.y,u.x)},bounds:new H([-180,-90],[180,90])},o_={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var h=Math.PI/180,b=this.R,T=u.lat*h,P=this.R_MINOR/b,B=Math.sqrt(1-P*P),oe=B*Math.sin(T),de=Math.tan(Math.PI/4-T/2)/Math.pow((1-oe)/(1+oe),B/2);return T=-b*Math.log(Math.max(de,1e-10)),new q(u.lng*h*b,T)},unproject:function(u){for(var h=180/Math.PI,b=this.R,T=this.R_MINOR/b,P=Math.sqrt(1-T*T),B=Math.exp(-u.y/b),oe=Math.PI/2-2*Math.atan(B),de=0,pe=.1,we;de<15&&Math.abs(pe)>1e-7;de++)we=P*Math.sin(oe),we=Math.pow((1-we)/(1+we),P/2),pe=Math.PI/2-2*Math.atan(B*we)-oe,oe+=pe;return new re(oe*h,u.x*h/b)}},gU={__proto__:null,LonLat:i_,Mercator:o_,SphericalMercator:F},vU=i({},O,{code:"EPSG:3395",projection:o_,transformation:function(){var u=.5/(Math.PI*o_.R);return J(u,.5,-u,.5)}()}),KO=i({},O,{code:"EPSG:4326",projection:i_,transformation:J(1/180,1,-1/180,.5)}),yU=i({},he,{projection:i_,transformation:J(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,h){var b=h.lng-u.lng,T=h.lat-u.lat;return Math.sqrt(b*b+T*T)},infinite:!0});he.Earth=O,he.EPSG3395=vU,he.EPSG3857=se,he.EPSG900913=ge,he.EPSG4326=KO,he.Simple=yU;var Ai=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 h=u.target;if(h.hasLayer(this)){if(this._map=h,this._zoomAnimated=h._zoomAnimated,this.getEvents){var b=this.getEvents();h.on(b,this),this.once("remove",function(){h.off(b,this)},this)}this.onAdd(h),this.fire("add"),h.fire("layeradd",{layer:this})}}});ct.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var h=l(u);return this._layers[h]?this:(this._layers[h]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var h=l(u);return this._layers[h]?(this._loaded&&u.onRemove(this),delete this._layers[h],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,h){for(var b in this._layers)u.call(h,this._layers[b]);return this},_addLayers:function(u){u=u?S(u)?u:[u]:[];for(var h=0,b=u.length;hthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&h[0]instanceof re&&h[0].equals(h[b-1])&&h.pop(),h},_setLatLngs:function(u){Po.prototype._setLatLngs.call(this,u),ai(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return ai(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,h=this.options.weight,b=new q(h,h);if(u=new H(u.min.subtract(b),u.max.add(b)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var T=0,P=this._rings.length,B;Tu.y!=P.y>u.y&&u.x<(P.x-T.x)*(u.y-T.y)/(P.y-T.y)+T.x&&(h=!h);return h||Po.prototype._containsPoint.call(this,u,!0)}});function OU(u,h){return new Jl(u,h)}var jo=ko.extend({initialize:function(u,h){y(this,h),this._layers={},u&&this.addData(u)},addData:function(u){var h=S(u)?u:u.features,b,T,P;if(h){for(b=0,T=h.length;b0&&P.push(P[0].slice()),P}function ec(u,h){return u.feature?i({},u.feature,{geometry:h}):Lp(h)}function Lp(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var c_={toGeoJSON:function(u){return ec(this,{type:"Point",coordinates:l_(this.getLatLng(),u)})}};Op.include(c_),a_.include(c_),Cp.include(c_),Po.include({toGeoJSON:function(u){var h=!ai(this._latlngs),b=jp(this._latlngs,h?1:0,!1,u);return ec(this,{type:(h?"Multi":"")+"LineString",coordinates:b})}}),Jl.include({toGeoJSON:function(u){var h=!ai(this._latlngs),b=h&&!ai(this._latlngs[0]),T=jp(this._latlngs,b?2:h?1:0,!0,u);return h||(T=[T]),ec(this,{type:(b?"Multi":"")+"Polygon",coordinates:T})}}),Ql.include({toMultiPoint:function(u){var h=[];return this.eachLayer(function(b){h.push(b.toGeoJSON(u).geometry.coordinates)}),ec(this,{type:"MultiPoint",coordinates:h})},toGeoJSON:function(u){var h=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(h==="MultiPoint")return this.toMultiPoint(u);var b=h==="GeometryCollection",T=[];return this.eachLayer(function(P){if(P.toGeoJSON){var B=P.toGeoJSON(u);if(b)T.push(B.geometry);else{var oe=Lp(B);oe.type==="FeatureCollection"?T.push.apply(T,oe.features):T.push(oe)}}}),b?ec(this,{geometries:T,type:"GeometryCollection"}):{type:"FeatureCollection",features:T}}});function XO(u,h){return new jo(u,h)}var CU=XO,Mp=Ai.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,h,b){this._url=u,this._bounds=K(h),y(this,b)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ze(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Yt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&Kl(this._image),this},bringToBack:function(){return this._map&&Zl(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=K(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",h=this._image=u?this._url:pt("img");if(Ze(h,"leaflet-image-layer"),this._zoomAnimated&&Ze(h,"leaflet-zoom-animated"),this.options.className&&Ze(h,this.options.className),h.onselectstart=f,h.onmousemove=f,h.onload=a(this.fire,this,"load"),h.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=h.src;return}h.src=this._url,h.alt=this.options.alt},_animateZoom:function(u){var h=this._map.getZoomScale(u.zoom),b=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;Os(this._image,b,h)},_reset:function(){var u=this._image,h=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),b=h.getSize();mn(u,h.min),u.style.width=b.x+"px",u.style.height=b.y+"px"},_updateOpacity:function(){oi(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),kU=function(u,h,b){return new Mp(u,h,b)},JO=Mp.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",h=this._image=u?this._url:pt("video");if(Ze(h,"leaflet-image-layer"),this._zoomAnimated&&Ze(h,"leaflet-zoom-animated"),this.options.className&&Ze(h,this.options.className),h.onselectstart=f,h.onmousemove=f,h.onloadeddata=a(this.fire,this,"load"),u){for(var b=h.getElementsByTagName("source"),T=[],P=0;P0?T:[h.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(h.style,"objectFit")&&(h.style.objectFit="fill"),h.autoplay=!!this.options.autoplay,h.loop=!!this.options.loop,h.muted=!!this.options.muted,h.playsInline=!!this.options.playsInline;for(var B=0;BP?(h.height=P+"px",Ze(u,B)):an(u,B),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var h=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),b=this._getAnchor();mn(this._container,h.add(b))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,h=parseInt(td(this._container,"marginBottom"),10)||0,b=this._container.offsetHeight+h,T=this._containerWidth,P=new q(this._containerLeft,-b-this._containerBottom);P._add(Cs(this._container));var B=u.layerPointToContainerPoint(P),oe=D(this.options.autoPanPadding),de=D(this.options.autoPanPaddingTopLeft||oe),pe=D(this.options.autoPanPaddingBottomRight||oe),we=u.getSize(),De=0,We=0;B.x+T+pe.x>we.x&&(De=B.x+T-we.x+pe.x),B.x-De-de.x<0&&(De=B.x-de.x),B.y+b+pe.y>we.y&&(We=B.y+b-we.y+pe.y),B.y-We-de.y<0&&(We=B.y-de.y),(De||We)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([De,We]))}},_getAnchor:function(){return D(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),LU=function(u,h){return new Ap(u,h)};ct.mergeOptions({closePopupOnClick:!0}),ct.include({openPopup:function(u,h,b){return this._initOverlay(Ap,u,h,b).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),Ai.include({bindPopup:function(u,h){return this._popup=this._initOverlay(Ap,this._popup,u,h),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 ko||(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)){Ps(u);var h=u.layer||u.target;if(this._popup._source===h&&!(h instanceof ya)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=h,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var Rp=Ji.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Ji.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){Ji.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=Ji.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",h=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",h),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var h,b,T=this._map,P=this._container,B=T.latLngToContainerPoint(T.getCenter()),oe=T.layerPointToContainerPoint(u),de=this.options.direction,pe=P.offsetWidth,we=P.offsetHeight,De=D(this.options.offset),We=this._getAnchor();de==="top"?(h=pe/2,b=we):de==="bottom"?(h=pe/2,b=0):de==="center"?(h=pe/2,b=we/2):de==="right"?(h=0,b=we/2):de==="left"?(h=pe,b=we/2):oe.xthis.options.maxZoom||bT?this._retainParent(P,B,oe,T):!1)},_retainChildren:function(u,h,b,T){for(var P=2*u;P<2*u+2;P++)for(var B=2*h;B<2*h+2;B++){var oe=new q(P,B);oe.z=b+1;var de=this._tileCoordsToKey(oe),pe=this._tiles[de];if(pe&&pe.active){pe.retain=!0;continue}else pe&&pe.loaded&&(pe.retain=!0);b+1this.options.maxZoom||this.options.minZoom!==void 0&&P1){this._setView(u,b);return}for(var We=P.min.y;We<=P.max.y;We++)for(var Xe=P.min.x;Xe<=P.max.x;Xe++){var pr=new q(Xe,We);if(pr.z=this._tileZoom,!!this._isValidTile(pr)){var kn=this._tiles[this._tileCoordsToKey(pr)];kn?kn.current=!0:oe.push(pr)}}if(oe.sort(function(Er,nc){return Er.distanceTo(B)-nc.distanceTo(B)}),oe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var si=document.createDocumentFragment();for(Xe=0;Xeb.max.x)||!h.wrapLat&&(u.yb.max.y))return!1}if(!this.options.bounds)return!0;var T=this._tileCoordsToBounds(u);return K(this.options.bounds).overlaps(T)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var h=this._map,b=this.getTileSize(),T=u.scaleBy(b),P=T.add(b),B=h.unproject(T,u.z),oe=h.unproject(P,u.z);return[B,oe]},_tileCoordsToBounds:function(u){var h=this._tileCoordsToNwSe(u),b=new V(h[0],h[1]);return this.options.noWrap||(b=this._map.wrapLatLngBounds(b)),b},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var h=u.split(":"),b=new q(+h[0],+h[1]);return b.z=+h[2],b},_removeTile:function(u){var h=this._tiles[u];h&&(Yt(h.el),delete this._tiles[u],this.fire("tileunload",{tile:h.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Ze(u,"leaflet-tile");var h=this.getTileSize();u.style.width=h.x+"px",u.style.height=h.y+"px",u.onselectstart=f,u.onmousemove=f,ze.ielt9&&this.options.opacity<1&&oi(u,this.options.opacity)},_addTile:function(u,h){var b=this._getTilePos(u),T=this._tileCoordsToKey(u),P=this.createTile(this._wrapCoords(u),a(this._tileReady,this,u));this._initTile(P),this.createTile.length<2&&z(a(this._tileReady,this,u,null,P)),mn(P,b),this._tiles[T]={el:P,coords:u,current:!0},h.appendChild(P),this.fire("tileloadstart",{tile:P,coords:u})},_tileReady:function(u,h,b){h&&this.fire("tileerror",{error:h,tile:b,coords:u});var T=this._tileCoordsToKey(u);b=this._tiles[T],b&&(b.loaded=+new Date,this._map._fadeAnimated?(oi(b.el,0),W(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this)):(b.active=!0,this._pruneTiles()),h||(Ze(b.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:b.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ze.ielt9||!this._map._fadeAnimated?z(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var h=new q(this._wrapX?d(u.x,this._wrapX):u.x,this._wrapY?d(u.y,this._wrapY):u.y);return h.z=u.z,h},_pxBoundsToTileRange:function(u){var h=this.getTileSize();return new H(u.min.unscaleBy(h).floor(),u.max.unscaleBy(h).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function RU(u){return new cd(u)}var tc=cd.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,h){this._url=u,h=y(this,h),h.detectRetina&&ze.retina&&h.maxZoom>0?(h.tileSize=Math.floor(h.tileSize/2),h.zoomReverse?(h.zoomOffset--,h.minZoom=Math.min(h.maxZoom,h.minZoom+1)):(h.zoomOffset++,h.maxZoom=Math.max(h.minZoom,h.maxZoom-1)),h.minZoom=Math.max(0,h.minZoom)):h.zoomReverse?h.minZoom=Math.min(h.maxZoom,h.minZoom):h.maxZoom=Math.max(h.minZoom,h.maxZoom),typeof h.subdomains=="string"&&(h.subdomains=h.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,h){return this._url===u&&h===void 0&&(h=!0),this._url=u,h||this.redraw(),this},createTile:function(u,h){var b=document.createElement("img");return qe(b,"load",a(this._tileOnLoad,this,h,b)),qe(b,"error",a(this._tileOnError,this,h,b)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(b.referrerPolicy=this.options.referrerPolicy),b.alt="",b.src=this.getTileUrl(u),b},getTileUrl:function(u){var h={r:ze.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var b=this._globalTileRange.max.y-u.y;this.options.tms&&(h.y=b),h["-y"]=b}return w(this._url,i(h,this.options))},_tileOnLoad:function(u,h){ze.ielt9?setTimeout(a(u,this,null,h),0):u(null,h)},_tileOnError:function(u,h,b){var T=this.options.errorTileUrl;T&&h.getAttribute("src")!==T&&(h.src=T),u(b,h)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,h=this.options.maxZoom,b=this.options.zoomReverse,T=this.options.zoomOffset;return b&&(u=h-u),u+T},_getSubdomain:function(u){var h=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[h]},_abortLoading:function(){var u,h;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(h=this._tiles[u].el,h.onload=f,h.onerror=f,!h.complete)){h.src=C;var b=this._tiles[u].coords;Yt(h),delete this._tiles[u],this.fire("tileabort",{tile:h,coords:b})}},_removeTile:function(u){var h=this._tiles[u];if(h)return h.el.setAttribute("src",C),cd.prototype._removeTile.call(this,u)},_tileReady:function(u,h,b){if(!(!this._map||b&&b.getAttribute("src")===C))return cd.prototype._tileReady.call(this,u,h,b)}});function nC(u,h){return new tc(u,h)}var rC=tc.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,h){this._url=u;var b=i({},this.defaultWmsParams);for(var T in h)T in this.options||(b[T]=h[T]);h=y(this,h);var P=h.detectRetina&&ze.retina?2:1,B=this.getTileSize();b.width=B.x*P,b.height=B.y*P,this.wmsParams=b},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var h=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[h]=this._crs.code,tc.prototype.onAdd.call(this,u)},getTileUrl:function(u){var h=this._tileCoordsToNwSe(u),b=this._crs,T=ie(b.project(h[0]),b.project(h[1])),P=T.min,B=T.max,oe=(this._wmsVersion>=1.3&&this._crs===KO?[P.y,P.x,B.y,B.x]:[P.x,P.y,B.x,B.y]).join(","),de=tc.prototype.getTileUrl.call(this,u);return de+x(this.wmsParams,de,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+oe},setParams:function(u,h){return i(this.wmsParams,u),h||this.redraw(),this}});function NU(u,h){return new rC(u,h)}tc.WMS=rC,nC.wms=NU;var Lo=Ai.extend({options:{padding:.1},initialize:function(u){y(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Ze(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,h){var b=this._map.getZoomScale(h,this._zoom),T=this._map.getSize().multiplyBy(.5+this.options.padding),P=this._map.project(this._center,h),B=T.multiplyBy(-b).add(P).subtract(this._map._getNewPixelOrigin(u,h));ze.any3d?Os(this._container,B,b):mn(this._container,B)},_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,h=this._map.getSize(),b=this._map.containerPointToLayerPoint(h.multiplyBy(-u)).round();this._bounds=new H(b,b.add(h.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),iC=Lo.extend({options:{tolerance:0},getEvents:function(){var u=Lo.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Lo.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");qe(u,"mousemove",this._onMouseMove,this),qe(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),qe(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,Yt(this._container),kt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var h in this._layers)u=this._layers[h],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Lo.prototype._update.call(this);var u=this._bounds,h=this._container,b=u.getSize(),T=ze.retina?2:1;mn(h,u.min),h.width=T*b.x,h.height=T*b.y,h.style.width=b.x+"px",h.style.height=b.y+"px",ze.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){Lo.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var h=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=h),this._drawLast=h,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var h=u._order,b=h.next,T=h.prev;b?b.prev=T:this._drawLast=T,T?T.next=b:this._drawFirst=b,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 h=u.options.dashArray.split(/[, ]+/),b=[],T,P;for(P=0;P')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),DU={_initContainer:function(){this._container=pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Lo.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var h=u._container=ud("shape");Ze(h,"leaflet-vml-shape "+(this.options.className||"")),h.coordsize="1 1",u._path=ud("path"),h.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var h=u._container;this._container.appendChild(h),u.options.interactive&&u.addInteractiveTarget(h)},_removePath:function(u){var h=u._container;Yt(h),u.removeInteractiveTarget(h),delete this._layers[l(u)]},_updateStyle:function(u){var h=u._stroke,b=u._fill,T=u.options,P=u._container;P.stroked=!!T.stroke,P.filled=!!T.fill,T.stroke?(h||(h=u._stroke=ud("stroke")),P.appendChild(h),h.weight=T.weight+"px",h.color=T.color,h.opacity=T.opacity,T.dashArray?h.dashStyle=S(T.dashArray)?T.dashArray.join(" "):T.dashArray.replace(/( *, *)/g," "):h.dashStyle="",h.endcap=T.lineCap.replace("butt","flat"),h.joinstyle=T.lineJoin):h&&(P.removeChild(h),u._stroke=null),T.fill?(b||(b=u._fill=ud("fill")),P.appendChild(b),b.color=T.fillColor||T.color,b.opacity=T.fillOpacity):b&&(P.removeChild(b),u._fill=null)},_updateCircle:function(u){var h=u._point.round(),b=Math.round(u._radius),T=Math.round(u._radiusY||b);this._setPath(u,u._empty()?"M0 0":"AL "+h.x+","+h.y+" "+b+","+T+" 0,"+65535*360)},_setPath:function(u,h){u._path.v=h},_bringToFront:function(u){Kl(u._container)},_bringToBack:function(u){Zl(u._container)}},Np=ze.vml?ud:Me,dd=Lo.extend({_initContainer:function(){this._container=Np("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Np("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Yt(this._container),kt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Lo.prototype._update.call(this);var u=this._bounds,h=u.getSize(),b=this._container;(!this._svgSize||!this._svgSize.equals(h))&&(this._svgSize=h,b.setAttribute("width",h.x),b.setAttribute("height",h.y)),mn(b,u.min),b.setAttribute("viewBox",[u.min.x,u.min.y,h.x,h.y].join(" ")),this.fire("update")}},_initPath:function(u){var h=u._path=Np("path");u.options.className&&Ze(h,u.options.className),u.options.interactive&&Ze(h,"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){Yt(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var h=u._path,b=u.options;h&&(b.stroke?(h.setAttribute("stroke",b.color),h.setAttribute("stroke-opacity",b.opacity),h.setAttribute("stroke-width",b.weight),h.setAttribute("stroke-linecap",b.lineCap),h.setAttribute("stroke-linejoin",b.lineJoin),b.dashArray?h.setAttribute("stroke-dasharray",b.dashArray):h.removeAttribute("stroke-dasharray"),b.dashOffset?h.setAttribute("stroke-dashoffset",b.dashOffset):h.removeAttribute("stroke-dashoffset")):h.setAttribute("stroke","none"),b.fill?(h.setAttribute("fill",b.fillColor||b.color),h.setAttribute("fill-opacity",b.fillOpacity),h.setAttribute("fill-rule",b.fillRule||"evenodd")):h.setAttribute("fill","none"))},_updatePoly:function(u,h){this._setPath(u,ue(u._parts,h))},_updateCircle:function(u){var h=u._point,b=Math.max(Math.round(u._radius),1),T=Math.max(Math.round(u._radiusY),1)||b,P="a"+b+","+T+" 0 1,0 ",B=u._empty()?"M0 0":"M"+(h.x-b)+","+h.y+P+b*2+",0 "+P+-b*2+",0 ";this._setPath(u,B)},_setPath:function(u,h){u._path.setAttribute("d",h)},_bringToFront:function(u){Kl(u._path)},_bringToBack:function(u){Zl(u._path)}});ze.vml&&dd.include(DU);function aC(u){return ze.svg||ze.vml?new dd(u):null}ct.include({getRenderer:function(u){var h=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return h||(h=this._renderer=this._createRenderer()),this.hasLayer(h)||this.addLayer(h),h},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var h=this._paneRenderers[u];return h===void 0&&(h=this._createRenderer({pane:u}),this._paneRenderers[u]=h),h},_createRenderer:function(u){return this.options.preferCanvas&&oC(u)||aC(u)}});var sC=Jl.extend({initialize:function(u,h){Jl.prototype.initialize.call(this,this._boundsToLatLngs(u),h)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=K(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function IU(u,h){return new sC(u,h)}dd.create=Np,dd.pointsToPath=ue,jo.geometryToLayer=kp,jo.coordsToLatLng=s_,jo.coordsToLatLngs=Pp,jo.latLngToCoords=l_,jo.latLngsToCoords=jp,jo.getFeature=ec,jo.asFeature=Lp,ct.mergeOptions({boxZoom:!0});var lC=Xi.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(){qe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){kt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Yt(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(),nd(),H0(),this._startPoint=this._map.mouseEventToContainerPoint(u),qe(document,{contextmenu:Ps,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=pt("div","leaflet-zoom-box",this._container),Ze(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var h=new H(this._point,this._startPoint),b=h.getSize();mn(this._box,h.min),this._box.style.width=b.x+"px",this._box.style.height=b.y+"px"},_finish:function(){this._moved&&(Yt(this._box),an(this._container,"leaflet-crosshair")),rd(),W0(),kt(document,{contextmenu:Ps,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(a(this._resetState,this),0);var h=new V(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(h).fire("boxzoomend",{boxZoomBounds:h})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ct.addInitHook("addHandler","boxZoom",lC),ct.mergeOptions({doubleClickZoom:!0});var cC=Xi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var h=this._map,b=h.getZoom(),T=h.options.zoomDelta,P=u.originalEvent.shiftKey?b-T:b+T;h.options.doubleClickZoom==="center"?h.setZoom(P):h.setZoomAround(u.containerPoint,P)}});ct.addInitHook("addHandler","doubleClickZoom",cC),ct.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var uC=Xi.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new va(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))}Ze(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){an(this._map._container,"leaflet-grab"),an(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 h=K(this._map.options.maxBounds);this._offsetLimit=ie(this._map.latLngToContainerPoint(h.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(h.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 h=this._lastTime=+new Date,b=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(b),this._times.push(h),this._prunePositions(h)}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),h=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=h.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,h){return u-(u-h)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),h=this._offsetLimit;u.xh.max.x&&(u.x=this._viscousLimit(u.x,h.max.x)),u.y>h.max.y&&(u.y=this._viscousLimit(u.y,h.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,h=Math.round(u/2),b=this._initialWorldOffset,T=this._draggable._newPos.x,P=(T-h+b)%u+h-b,B=(T+h+b)%u-h-b,oe=Math.abs(P+b)0?B:-B))-h;this._delta=0,this._startTime=null,oe&&(u.options.scrollWheelZoom==="center"?u.setZoom(h+oe):u.setZoomAround(this._lastMousePos,h+oe))}});ct.addInitHook("addHandler","scrollWheelZoom",fC);var FU=600;ct.mergeOptions({tapHold:ze.touchNative&&ze.safari&&ze.mobile,tapTolerance:15});var hC=Xi.extend({addHooks:function(){qe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){kt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var h=u.touches[0];this._startPos=this._newPos=new q(h.clientX,h.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(qe(document,"touchend",Gn),qe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",h))},this),FU),qe(document,"touchend touchcancel contextmenu",this._cancel,this),qe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){kt(document,"touchend",Gn),kt(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),kt(document,"touchend touchcancel contextmenu",this._cancel,this),kt(document,"touchmove",this._onMove,this)},_onMove:function(u){var h=u.touches[0];this._newPos=new q(h.clientX,h.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,h){var b=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:h.screenX,screenY:h.screenY,clientX:h.clientX,clientY:h.clientY});b._simulated=!0,h.target.dispatchEvent(b)}});ct.addInitHook("addHandler","tapHold",hC),ct.mergeOptions({touchZoom:ze.touch,bounceAtZoomLimits:!0});var pC=Xi.extend({addHooks:function(){Ze(this._map._container,"leaflet-touch-zoom"),qe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){an(this._map._container,"leaflet-touch-zoom"),kt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var h=this._map;if(!(!u.touches||u.touches.length!==2||h._animatingZoom||this._zooming)){var b=h.mouseEventToContainerPoint(u.touches[0]),T=h.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=h.getSize()._divideBy(2),this._startLatLng=h.containerPointToLatLng(this._centerPoint),h.options.touchZoom!=="center"&&(this._pinchStartLatLng=h.containerPointToLatLng(b.add(T)._divideBy(2))),this._startDist=b.distanceTo(T),this._startZoom=h.getZoom(),this._moved=!1,this._zooming=!0,h._stop(),qe(document,"touchmove",this._onTouchMove,this),qe(document,"touchend touchcancel",this._onTouchEnd,this),Gn(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var h=this._map,b=h.mouseEventToContainerPoint(u.touches[0]),T=h.mouseEventToContainerPoint(u.touches[1]),P=b.distanceTo(T)/this._startDist;if(this._zoom=h.getScaleZoom(P,this._startZoom),!h.options.bounceAtZoomLimits&&(this._zoomh.getMaxZoom()&&P>1)&&(this._zoom=h._limitZoom(this._zoom)),h.options.touchZoom==="center"){if(this._center=this._startLatLng,P===1)return}else{var B=b._add(T)._divideBy(2)._subtract(this._centerPoint);if(P===1&&B.x===0&&B.y===0)return;this._center=h.unproject(h.project(this._pinchStartLatLng,this._zoom).subtract(B),this._zoom)}this._moved||(h._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var oe=a(h._move,h,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=z(oe,this,!0),Gn(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),kt(document,"touchmove",this._onTouchMove,this),kt(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))}});ct.addInitHook("addHandler","touchZoom",pC),ct.BoxZoom=lC,ct.DoubleClickZoom=cC,ct.Drag=uC,ct.Keyboard=dC,ct.ScrollWheelZoom=fC,ct.TapHold=hC,ct.TouchZoom=pC,n.Bounds=H,n.Browser=ze,n.CRS=he,n.Canvas=iC,n.Circle=a_,n.CircleMarker=Cp,n.Class=G,n.Control=Mi,n.DivIcon=tC,n.DivOverlay=Ji,n.DomEvent=nU,n.DomUtil=eU,n.Draggable=va,n.Evented=le,n.FeatureGroup=ko,n.GeoJSON=jo,n.GridLayer=cd,n.Handler=Xi,n.Icon=Xl,n.ImageOverlay=Mp,n.LatLng=re,n.LatLngBounds=V,n.Layer=Ai,n.LayerGroup=Ql,n.LineUtil=mU,n.Map=ct,n.Marker=Op,n.Mixin=cU,n.Path=ya,n.Point=q,n.PolyUtil=uU,n.Polygon=Jl,n.Polyline=Po,n.Popup=Ap,n.PosAnimation=IO,n.Projection=gU,n.Rectangle=sC,n.Renderer=Lo,n.SVG=dd,n.SVGOverlay=eC,n.TileLayer=tc,n.Tooltip=Rp,n.Transformation=ee,n.Util=X,n.VideoOverlay=JO,n.bind=a,n.bounds=ie,n.canvas=oC,n.circle=EU,n.circleMarker=SU,n.control=ad,n.divIcon=AU,n.extend=i,n.featureGroup=bU,n.geoJSON=XO,n.geoJson=CU,n.gridLayer=RU,n.icon=wU,n.imageOverlay=kU,n.latLng=ae,n.latLngBounds=K,n.layerGroup=_U,n.map=rU,n.marker=xU,n.point=D,n.polygon=OU,n.polyline=TU,n.popup=LU,n.rectangle=IU,n.setOptions=y,n.stamp=l,n.svg=aC,n.svgOverlay=jU,n.tileLayer=nC,n.tooltip=MU,n.transformation=J,n.version=r,n.videoOverlay=PU;var $U=window.L;n.noConflict=function(){return window.L=$U,this},window.L=n})})(k2,k2.exports);var hp=k2.exports;const CA=Gu(hp);function fO(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function hO(e,t){return t==null?function(n,r){const i=U.useRef();return i.current||(i.current=e(n,r)),i}:function(n,r){const i=U.useRef();i.current||(i.current=e(n,r));const o=U.useRef(n),{instance:a}=i.current;return U.useEffect(function(){o.current!==n&&(t(a,n,o.current),o.current=n)},[a,n,r]),i}}function Lbe(e,t){U.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var n;(n=t.layerContainer)==null||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function i$(e){return function(t){const n=n$(),r=e(dO(t,n),n);return JF(n.map,t.attribution),r$(r.current,t.eventHandlers),Lbe(r.current,n),r}}function Mbe(e,t){const n=hO(e,t),r=i$(n);return Cbe(r)}function Abe(e,t){const n=hO(e),r=jbe(n,t);return kbe(r)}function Rbe(e,t){const n=hO(e,t),r=i$(n);return Pbe(r)}function Nbe(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 P2(){return P2=Object.assign||function(e){for(var t=1;t(m==null?void 0:m.map)??null,[m]);const y=U.useCallback(_=>{if(_!==null&&m===null){const w=new hp.Map(_,d);n!=null&&c!=null?w.setView(n,c):e!=null&&w.fitBounds(e,t),l!=null&&w.whenReady(l),v(Tbe(w))}},[]);U.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const x=m?Y.createElement(t$,{value:m},r):a??null;return Y.createElement("div",P2({},p,{ref:y}),x)}const Ibe=U.forwardRef(Dbe),Fbe=Mbe(function({position:e,...t},n){const r=new hp.Marker(e,t);return fO(r,Obe(n,{overlayContainer:r}))},function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),t.icon!=null&&t.icon!==n.icon&&e.setIcon(t.icon),t.zIndexOffset!=null&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),t.opacity!=null&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),e.dragging!=null&&t.draggable!==n.draggable&&(t.draggable===!0?e.dragging.enable():e.dragging.disable())}),$be=Abe(function(e,t){const n=new hp.Popup(e,t.overlayContainer);return fO(n,t)},function(e,t,{position:n},r){U.useEffect(function(){const{instance:i}=e;function o(s){s.popup===i&&(i.update(),r(!0))}function a(s){s.popup===i&&r(!1)}return t.map.on({popupopen:o,popupclose:a}),t.overlayContainer==null?(n!=null&&i.setLatLng(n),i.openOn(t.map)):t.overlayContainer.bindPopup(i),function(){var s;t.map.off({popupopen:o,popupclose:a}),(s=t.overlayContainer)==null||s.unbindPopup(),t.map.removeLayer(i)}},[e,t,r,n])}),Ube=Rbe(function({url:e,...t},n){const r=new hp.TileLayer(e,dO(t,n));return fO(r,n)},function(e,t,n){Nbe(e,t,n);const{url:r}=t;r!=null&&r!==n.url&&e.setUrl(r)}),Bbe=()=>g.jsx(Ube,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),zbe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(mt("latLong"))};const[{latLong:t}]=e;return{zoom:10,center:t}},o$=({toggle:e,isOpen:t,title:n,locations:r=[]})=>g.jsx(da,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:g.jsxs(Oo,{className:"map-modal__modal-body",children:[g.jsxs("h3",{className:"map-modal__modal-title",children:[n,g.jsx("button",{type:"button",className:"btn-close float-end","aria-label":"Close",onClick:e})]}),g.jsxs(Ibe,{...zbe(r),children:[g.jsx(Bbe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>g.jsx(Fbe,{position:o,children:g.jsxs($be,{children:[g.jsx("b",{children:a})," visit",a>1?"s":""," from ",g.jsx("b",{children:i})]})},s))]})]})}),Vbe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=On(),[a,s]=On(),[l,c]=U.useState([]),d=u0(),f=U.useCallback(p=>{c(p?n.filter(p):n),i()},[n]);return g.jsxs(g.Fragment,{children:[!t&&g.jsx(_t,{color:"link",className:"open-map-modal-btn__btn",id:d,onClick:()=>f(),children:g.jsx(Ae,{icon:Qb})}),t&&g.jsxs(Vh,{isOpen:a,toggle:s,children:[g.jsx(zu,{color:"link",className:"open-map-modal-btn__btn",id:d,children:g.jsx(Ae,{icon:Qb})}),g.jsxs(Bu,{end:!0,children:[g.jsx(Ue,{onClick:()=>f(),children:"Show all locations"}),g.jsx(Ue,{onClick:()=>f(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),g.jsx(Ir,{placement:"left",target:d,children:"Show in map"}),g.jsx(o$,{toggle:o,isOpen:r,title:e,locations:l})]})},Hbe=({onChange:e,selected:t={},className:n,isOrphanVisits:r})=>{const{orphanVisitsType:i,excludeBots:o=!1}=t,a=s=>({active:i===s,onClick:()=>e({...t,orphanVisitsType:s===(t==null?void 0:t.orphanVisitsType)?void 0:s})});return g.jsxs(ha,{text:"Filters",dropdownClassName:n,inline:!0,end:!0,minWidth:250,children:[g.jsx(Ue,{header:!0,children:"Bots:"}),g.jsx(Ue,{active:o,onClick:()=>e({...t,excludeBots:!(t!=null&&t.excludeBots)}),children:"Exclude potential bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ue,{divider:!0}),g.jsx(Ue,{header:!0,children:"Orphan visits type:"}),g.jsx(Ue,{...a("base_url"),children:"Base URL"}),g.jsx(Ue,{...a("invalid_short_url"),children:"Invalid short URL"}),g.jsx(Ue,{...a("regular_404"),children:"Regular 404"})]}),g.jsx(Ue,{divider:!0}),g.jsx(Ue,{disabled:!uo(t),onClick:()=>e({excludeBots:!1,orphanVisitsType:void 0}),children:g.jsx("i",{children:"Clear filters"})})]})},a$=(e,t)=>!Bl(e)&&uo(e[t]),kA=e=>typeof e=="number"?e:e?parseFloat(e):0,Wbe=(e,{os:t})=>{e[t]=(e[t]||0)+1},Ybe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},Gbe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},s$=e=>(t,n)=>{const r=a$(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},qbe=s$("country"),Kbe=s$("city"),Zbe=(e,t)=>{if(!a$(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[kA(r),kA(i)]};o.count+=1,e[n]=o},Qbe=(e,t)=>{if(!I1e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},l$=e=>e.reduce((t,n)=>(Wbe(t.os,n),Ybe(t.browsers,n),Gbe(t.referrers,n),qbe(t.countries,n),Kbe(t.cities,n),Zbe(t.citiesForMap,n),Qbe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),c$=F5(e=>{const{userAgent:t,date:n,referer:r,visitLocation:i,potentialBot:o}=e,a={date:n,potentialBot:o,...ibe(t),referer:obe(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 sO(e)?{...a,type:e.type,visitedUrl:e.visitedUrl}:a}),Xbe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:c$,processStatsFromVisits:l$},Symbol.toStringTag,{value:"Module"})),qd=20,Jbe=({browser:e,os:t,referer:n,country:r,city:i,...o},a)=>`${e} ${t} ${n} ${r} ${i} ${o.visitedUrl}`.toLowerCase().includes(a.toLowerCase()),ewe=(e,t)=>t.filter(n=>Jbe(n,e)),twe=(e,t)=>WI(t,e),nwe=(e,t,n)=>{const r=t?ewe(t,e):[...e],i=twe(n,r),o=i.length;return{visitsGroups:_h(qd,i),total:o}},rwe=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia,isOrphanVisits:i=!1})=>{var o,a;const s="visits-table__header-cell visits-table__sticky",l=()=>r("(max-width: 767px)").matches,[c,d]=U.useState(l()),[f,p]=U.useState(void 0),[m,v]=U.useState({}),y=U.useMemo(()=>nwe(e,f,m),[f,m]),x=U.useRef(!0),[_,w]=U.useState(1),S=_*qd,E=S-qd,C=8+Number(i),k=A=>()=>v({field:A,dir:f0(A,m.field,m.dir)}),j=A=>g.jsx(Pf,{currentOrder:m,field:A,className:"visits-table__header-icon"});return U.useEffect(()=>{const A=()=>d(l());return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[]),U.useEffect(()=>{w(1),!x.current&&n([]),x.current=!1},[f]),g.jsx("div",{className:"table-responsive-md",children:g.jsxs("table",{className:"table table-bordered table-hover table-sm visits-table",children:[g.jsxs("thead",{className:"visits-table__header",children:[g.jsxs("tr",{children:[g.jsx("th",{className:`${s} text-center`,onClick:()=>n(t.length0})})}),g.jsxs("th",{className:`${s} text-center`,onClick:k("potentialBot"),children:[g.jsx(Ae,{icon:rP}),j("potentialBot")]}),g.jsxs("th",{className:s,onClick:k("date"),children:["Date",j("date")]}),g.jsxs("th",{className:s,onClick:k("country"),children:["Country",j("country")]}),g.jsxs("th",{className:s,onClick:k("city"),children:["City",j("city")]}),g.jsxs("th",{className:s,onClick:k("browser"),children:["Browser",j("browser")]}),g.jsxs("th",{className:s,onClick:k("os"),children:["OS",j("os")]}),g.jsxs("th",{className:s,onClick:k("referer"),children:["Referrer",j("referer")]}),i&&g.jsxs("th",{className:s,onClick:k("visitedUrl"),children:["Visited URL",j("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:C,className:"p-0",children:g.jsx(Gh,{noBorder:!0,large:!1,onChange:p})})})]}),g.jsxs("tbody",{children:[!((o=y.visitsGroups[_-1])!=null&&o.length)&&g.jsx("tr",{children:g.jsx("td",{colSpan:C,className:"text-center",children:"No visits found with current filtering"})}),(a=y.visitsGroups[_-1])==null?void 0:a.map((A,$)=>{const N=t.includes(A);return g.jsxs("tr",{style:{cursor:"pointer"},className:rt({"table-active":N}),onClick:()=>n(N?t.filter(z=>z!==A):[...t,A]),children:[g.jsx("td",{className:"text-center",children:N&&g.jsx(Ae,{icon:Kf,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:A.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(Ae,{icon:rP,id:`botIcon${$}`}),g.jsx(Ir,{placement:"right",target:`botIcon${$}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(cy,{date:A.date})}),g.jsx("td",{children:A.country}),g.jsx("td",{children:A.city}),g.jsx("td",{children:A.browser}),g.jsx("td",{children:A.os}),g.jsx("td",{children:A.referer}),i&&g.jsx("td",{children:A.visitedUrl})]},$)})]}),y.total>qd&&g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsx("td",{colSpan:C,className:"visits-table__footer-cell visits-table__sticky",children:g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(tO,{pagesCount:Math.ceil(y.total/qd),currentPage:_,setCurrentPage:w,centered:c})}),g.jsx("div",{className:rt("col-md-6",{"d-flex align-items-center flex-row-reverse":!c,"text-center mt-3":c}),children:g.jsxs("div",{children:["Visits ",g.jsx("b",{children:En(E+1)})," to"," ",g.jsx("b",{children:En(G5(S,y.total))})," of"," ",g.jsx("b",{children:En(y.total)})]})})]})})})})]})})},gc={byTime:{title:"By time",subPath:"by-time",icon:kW},byContext:{title:"By context",subPath:"by-context",icon:XS},byLocation:{title:"By location",subPath:"by-location",icon:Qb},list:{title:"List",subPath:"list",icon:d4}};let Vm;const pp=({children:e,visitsInfo:t,getVisits:n,cancelGetVisits:r,exportCsv:i,isOrphanVisits:o=!1})=>{const{visits:a,loading:s,loadingLarge:l,error:c,errorData:d,progress:f,fallbackInterval:p}=t,[{dateRange:m,visitsFilter:v},y]=Sbe(),x=Hl("visits"),_=Xn(({startDate:V,endDate:K})=>({dateRange:{startDate:V??void 0,endDate:K??void 0}}),y),w=U.useRef(m??p??(x==null?void 0:x.defaultInterval)??"last30Days"),[S,E]=U.useState([]),[C,k]=U.useState(),j=U.useRef(!0),{search:A}=_n(),$=V=>V?`${V}${A}`:A,N=U.useMemo(()=>c$(a),[a]),{os:z,browsers:W,referrers:X,countries:G,cities:Z,citiesForMap:te,visitedUrls:le}=U.useMemo(()=>l$(N),[N]),q=U.useMemo(()=>({...v,excludeBots:v.excludeBots??(x==null?void 0:x.excludeBots)}),[v]),I=mT(te),D=V=>{Vm=void 0,E(V)},H=V=>K=>{const re=`${V}_${K}`;Vm===re?(E([]),k(void 0),Vm=void 0):(E(N.filter(Cde(V,K))),k(K),Vm=re)};U.useEffect(()=>r,[]),U.useEffect(()=>{const V=j.current?m??Qpe(w.current):m;n({dateRange:V,filter:q},j.current),j.current=!1},[m,v]),U.useEffect(()=>{p&&w.current===((x==null?void 0:x.defaultInterval)??"last30Days")&&(w.current=p)},[p]);const ie=()=>l?g.jsxs(Yo,{loading:!0,children:["This is going to take a while... :S",g.jsx(LI,{value:f,striped:f===100,className:"mt-3"})]}):s?g.jsx(Yo,{loading:!0}):c?g.jsx(Gr,{type:"error",children:g.jsx(ra,{errorData:d,fallbackMessage:"An error occurred while loading visits :("})}):Pi(a)?g.jsx(Yo,{children:"There are no visits matching current filter"}):g.jsxs(g.Fragment,{children:[g.jsx(HI,{fill:!0,children:Object.values(gc).map(({title:V,icon:K,subPath:re},ae)=>g.jsxs(df,{to:$(re),replace:!0,children:[g.jsx(Ae,{icon:K}),g.jsx("span",{className:"ms-2 d-none d-sm-inline",children:V})]},ae))}),g.jsx(_r,{children:g.jsxs(Jy,{children:[g.jsx(yt,{path:gc.byTime.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(hbe,{title:"Visits during time",visits:N,highlightedVisits:S,highlightedLabel:C,setSelectedVisits:D})})}),g.jsx(yt,{path:gc.byContext.subPath,element:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:rt("mt-3 col-lg-6",{"col-xl-4":!o}),children:g.jsx(bA,{title:"Operating systems",stats:z})}),g.jsx("div",{className:rt("mt-3 col-lg-6",{"col-xl-4":!o}),children:g.jsx(bA,{title:"Browsers",stats:W})}),g.jsx("div",{className:rt("mt-3",{"col-xl-4":!o,"col-lg-6":o}),children:g.jsx(zm,{title:"Referrers",stats:X,withPagination:!1,highlightedStats:Um(S,"referer"),highlightedLabel:C,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:H("referer")})}),o&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(zm,{title:"Visited URLs",stats:le,highlightedLabel:C,highlightedStats:Um(S,"visitedUrl"),sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:H("visitedUrl")})})]})}),g.jsx(yt,{path:gc.byLocation.subPath,element:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(zm,{title:"Countries",stats:G,highlightedStats:Um(S,"country"),highlightedLabel:C,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:H("country")})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(zm,{title:"Cities",stats:Z,highlightedStats:Um(S,"city"),highlightedLabel:C,extraHeaderContent:V=>I.length>0&&g.jsx(Vbe,{modalTitle:"Cities",locations:I,activeCities:V}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:H("city")})})]})}),g.jsx(yt,{path:gc.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(rwe,{visits:N,selectedVisits:S,setSelectedVisits:D,isOrphanVisits:o})})}),g.jsx(yt,{path:"*",element:g.jsx(BS,{replace:!0,to:$(gc.byTime.subPath)})})]})})]});return g.jsxs(g.Fragment,{children:[e,g.jsx("section",{className:"mt-3",children:g.jsxs("div",{className:"row flex-md-row-reverse",children:[g.jsx("div",{className:"col-lg-7 col-xl-6",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-fill",children:g.jsx(_F,{updatable:!0,disabled:s,initialDateRange:w.current,defaultText:"All visits",onDatesChange:_})}),g.jsx(Hbe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:o,selected:q,onChange:V=>y({visitsFilter:V})})]})}),a.length>0&&g.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:g.jsxs("div",{className:"d-flex",children:[g.jsx(z8,{className:"btn-md-block",amount:N.length,onClick:()=>i(N)}),g.jsxs(_t,{outline:!0,disabled:S.length===0,className:"btn-md-block ms-2",onClick:()=>D([]),children:["Clear selection ",S.length>0&&g.jsxs(g.Fragment,{children:["(",En(S.length),")"]})]})]})})]})}),g.jsx("section",{className:"mt-3",children:ie()})]})},iwe=({exportVisits:e})=>Ss(({getDomainVisits:t,domainVisits:n,cancelGetDomainVisits:r})=>{const i=qu(),{domain:o=""}=Dl(),[a,s=a]=o.split("_");return g.jsx(pp,{getVisits:(l,c)=>t({domain:s,query:dp(l),doIntervalFallback:c}),cancelGetVisits:r,visitsInfo:n,exportCsv:l=>e(`domain_${a}_visits.csv`,l),children:g.jsx(fp,{goBack:i,visits:n.visits,title:`"${a}" visits`})})},()=>[_i.visits]),owe=({exportVisits:e})=>Ss(({getNonOrphanVisits:t,nonOrphanVisits:n,cancelGetNonOrphanVisits:r})=>{const i=qu();return g.jsx(pp,{getVisits:(o,a)=>t({query:dp(o),doIntervalFallback:a}),cancelGetVisits:r,visitsInfo:n,exportCsv:o=>e("non_orphan_visits.csv",o),children:g.jsx(fp,{title:"Non-orphan visits",goBack:i,visits:n.visits})})},()=>[_i.visits]),awe=({exportVisits:e})=>Ss(({getOrphanVisits:t,orphanVisits:n,cancelGetOrphanVisits:r})=>{const i=qu();return g.jsx(pp,{getVisits:(o,a)=>{var s;return t({query:dp(o),orphanVisitsType:(s=o.filter)==null?void 0:s.orphanVisitsType,doIntervalFallback:a})},cancelGetVisits:r,visitsInfo:n,exportCsv:o=>e("orphan_visits.csv",o),isOrphanVisits:!0,children:g.jsx(fp,{title:"Orphan visits",goBack:i,visits:n.visits})})},()=>[_i.orphanVisits]),u$="shlink/orphanVisits",swe={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},lwe=e=>ap({typePrefix:`${u$}/getNonOrphanVisits`,createLoaders:({query:t={},doIntervalFallback:n=!1})=>{const{getNonOrphanVisits:r}=e(),i=async(a,s)=>r({...t,page:a,itemsPerPage:s}),o=sp(n,r);return[i,o]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),cwe=e=>lp({name:u$,initialState:swe,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o})=>rp(o.date,r,i))}}),d$="shlink/orphanVisits",uwe={visits:[],loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},dwe=(e,t)=>!t||t===e.type,fwe=e=>ap({typePrefix:`${d$}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,query:n={},doIntervalFallback:r=!1})=>{const{getOrphanVisits:i}=e(),o=async(s,l)=>i({...n,page:s,itemsPerPage:l}).then(c=>{const d=c.data.filter(f=>sO(f)&&dwe(f,t));return{...c,data:d}}),a=sp(r,i);return[o,a]},getExtraFulfilledPayload:({query:t={}})=>({query:t}),shouldCancel:t=>t().orphanVisits.cancelLoad}),hwe=e=>lp({name:d$,initialState:uwe,asyncThunkCreator:e,filterCreatedVisits:({query:t={}},n)=>{const{startDate:r,endDate:i}=t;return n.filter(({visit:o,shortUrl:a})=>!a&&rp(o.date,r,i))}}),f$="shlink/shortUrlVisits",pwe={visits:[],shortCode:"",domain:void 0,loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},mwe=e=>ap({typePrefix:`${f$}/getShortUrlVisits`,createLoaders:({shortCode:t,query:n={},doIntervalFallback:r=!1})=>{const{getShortUrlVisits:i}=e(),o=async(s,l)=>i(t,{...n,page:s,itemsPerPage:l}),a=sp(r,async s=>i(t,{...s,domain:n.domain}));return[o,a]},getExtraFulfilledPayload:({shortCode:t,query:n={}})=>({shortCode:t,query:n,domain:n.domain}),shouldCancel:t=>t().shortUrlVisits.cancelLoad}),gwe=e=>lp({name:f$,initialState:pwe,asyncThunkCreator:e,filterCreatedVisits:({shortCode:t,domain:n,query:r={}},i)=>{const{startDate:o,endDate:a}=r;return i.filter(({shortUrl:s,visit:l})=>s&&Sf(s,t,n)&&rp(l.date,o,a))}}),h$="shlink/tagVisits",vwe={visits:[],tag:"",loading:!1,loadingLarge:!1,error:!1,cancelLoad:!1,progress:0},ywe=e=>ap({typePrefix:`${h$}/getTagVisits`,createLoaders:({tag:t,query:n={},doIntervalFallback:r=!1})=>{const{getTagVisits:i}=e(),o=async(s,l)=>i(t,{...n,page:s,itemsPerPage:l}),a=sp(r,async s=>i(t,s));return[o,a]},getExtraFulfilledPayload:({tag:t,query:n={}})=>({tag:t,query:n}),shouldCancel:t=>t().tagVisits.cancelLoad}),_we=e=>lp({name:h$,initialState:vwe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,query:n={}},r)=>{const{startDate:i,endDate:o}=n;return r.filter(({shortUrl:a,visit:s})=>(a==null?void 0:a.tags.includes(t))&&rp(s.date,i,o))}}),p$="shlink/visitsOverview",Hm={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},PA=e=>e.filter(({visit:t})=>t.potentialBot).length,bwe=e=>Dr(`${p$}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n,orphanVisits:r,orphanVisitsCount:i})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),wwe=e=>dr({name:p$,initialState:Hm,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Hm,loading:!0})),t.addCase(e.rejected,()=>({...Hm,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Hm,...r})),t.addCase(op,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=F1e(o.createdVisits),l=a.length,c=PA(a),d=l-c,f=s.length,p=PA(s),m=f-p;return{...i,nonOrphanVisits:{total:n.total+l,bots:n.bots&&n.bots+c,nonBots:n.nonBots&&n.nonBots+d},orphanVisits:{total:r.total+f,bots:r.bots&&r.bots+p,nonBots:r.nonBots&&r.nonBots+m}}})}}),xwe=({shortUrlDetail:e,shortUrlVisits:t,goBack:n})=>{const{shortUrl:r,loading:i}=e,{visits:o}=t,a=(r==null?void 0:r.shortUrl)??"",s=(r==null?void 0:r.longUrl)??"",l=r==null?void 0:r.title;return g.jsxs(fp,{title:g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Go,{href:a})]}),goBack:n,visits:o,shortUrl:r,children:[g.jsx("hr",{}),g.jsxs("div",{children:["Created: ",(()=>r?g.jsxs("span",{children:[g.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:g.jsx(cy,{date:r.dateCreated,relative:!0})}),g.jsx(Ir,{placement:"bottom",target:"created",children:g.jsx(cy,{date:r.dateCreated})})]}):g.jsx("small",{children:"Loading..."}))()]}),g.jsxs("div",{className:"long-url-container",children:[`${l?"Title":"Long URL"}: `,i&&g.jsx("small",{children:"Loading..."}),!i&&g.jsx(Go,{href:s,children:l??s})]})]})},Swe=({exportVisits:e})=>Ss(({shortUrlVisits:t,shortUrlDetail:n,getShortUrlVisits:r,getShortUrlDetail:i,cancelGetShortUrlVisits:o})=>{const{shortCode:a=""}=Dl(),{search:s}=_n(),l=qu(),{domain:c}=Fl(s),d=(p,m)=>r({shortCode:bg(a),query:{...dp(p),domain:c},doIntervalFallback:m}),f=p=>{var m;return e(`short-url_${(m=n.shortUrl)==null?void 0:m.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,p)};return U.useEffect(()=>{i({shortCode:bg(a),domain:c})},[]),g.jsx(pp,{getVisits:d,cancelGetVisits:o,visitsInfo:t,exportCsv:f,children:g.jsx(xwe,{shortUrlDetail:n,shortUrlVisits:t,goBack:l})})},(t,n)=>n.shortCode?[_i.shortUrlVisits(bg(n.shortCode))]:[]),Ewe=({tagVisits:e,goBack:t,colorGenerator:n})=>{const{visits:r,tag:i}=e;return g.jsx(fp,{title:g.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[g.jsx("span",{className:"me-2",children:"Visits for"}),g.jsx(BT,{text:i,colorGenerator:n})]}),goBack:t,visits:r})},Twe=(e,{exportVisits:t})=>Ss(({getTagVisits:n,tagVisits:r,cancelGetTagVisits:i})=>{const o=qu(),{tag:a=""}=Dl();return g.jsx(pp,{getVisits:(s,l)=>n({tag:a,query:dp(s),doIntervalFallback:l}),cancelGetVisits:i,visitsInfo:r,exportCsv:s=>t(`tag_${a}_visits.csv`,s),children:g.jsx(Ewe,{tagVisits:r,goBack:o,colorGenerator:e})})},()=>[_i.visits]),Owe=(e,t)=>{e.serviceFactory("MapModal",()=>o$),e.serviceFactory("ShortUrlVisits",Swe,"ReportExporter"),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlDetail","mercureInfo"],["getShortUrlVisits","getShortUrlDetail","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("TagVisits",Twe,"ColorGenerator","ReportExporter"),e.decorator("TagVisits",t(["tagVisits","mercureInfo"],["getTagVisits","cancelGetTagVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("DomainVisits",iwe,"ReportExporter"),e.decorator("DomainVisits",t(["domainVisits","mercureInfo"],["getDomainVisits","cancelGetDomainVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("OrphanVisits",awe,"ReportExporter"),e.decorator("OrphanVisits",t(["orphanVisits","mercureInfo"],["getOrphanVisits","cancelGetOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("NonOrphanVisits",owe,"ReportExporter"),e.decorator("NonOrphanVisits",t(["nonOrphanVisits","mercureInfo"],["getNonOrphanVisits","cancelGetNonOrphanVisits","createNewVisits","loadMercureInfo"])),e.serviceFactory("VisitsParser",()=>Xbe),e.serviceFactory("getShortUrlVisits",mwe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",mt("cancelGetVisits"),"shortUrlVisitsReducerCreator"),e.serviceFactory("getTagVisits",ywe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",mt("cancelGetVisits"),"tagVisitsReducerCreator"),e.serviceFactory("getDomainVisits",tme,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",mt("cancelGetVisits"),"domainVisitsReducerCreator"),e.serviceFactory("getOrphanVisits",fwe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",mt("cancelGetVisits"),"orphanVisitsReducerCreator"),e.serviceFactory("getNonOrphanVisits",lwe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",mt("cancelGetVisits"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>op),e.serviceFactory("loadVisitsOverview",bwe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",wwe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",mt("reducer"),"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",nme,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",mt("reducer"),"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",cwe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",mt("reducer"),"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",hwe,"getOrphanVisits"),e.serviceFactory("orphanVisitsReducer",mt("reducer"),"orphanVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",gwe,"getShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",mt("reducer"),"shortUrlVisitsReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",_we,"getTagVisits"),e.serviceFactory("tagVisitsReducer",mt("reducer"),"tagVisitsReducerCreator")},Ad=({children:e,to:t,className:n,...r})=>g.jsx(zD,{className:({isActive:i})=>rt("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),Cwe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=_n(),r=rt("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return g.jsx("aside",{className:r,children:g.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[g.jsxs(Ad,{to:i("/overview"),children:[g.jsx(Ae,{fixedWidth:!0,icon:iY}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(Ad,{to:i("/list-short-urls/1"),className:rt({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[g.jsx(Ae,{fixedWidth:!0,icon:d4}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(Ad,{to:i("/create-short-url"),children:[g.jsx(Ae,{fixedWidth:!0,icon:cY,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(Ad,{to:i("/manage-tags"),children:[g.jsx(Ae,{fixedWidth:!0,icon:f4}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(Ad,{to:i("/manage-domains"),children:[g.jsx(Ae,{fixedWidth:!0,icon:FW}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},kwe=(e,t,n,r,i,o,a,s,l,c,d)=>({createNotFound:f})=>{const p=_n(),m=zl(),[v,y,x,_]=On();U.useEffect(()=>_(),[p]);const w=np("domainVisits"),S=rt("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":v}),E=Yme(x,_);return g.jsxs(g.Fragment,{children:[g.jsx(Ae,{icon:AW,className:S,onClick:y}),g.jsx("div",{...E,className:"shlink-layout__swipeable",children:g.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[g.jsx(Cwe,{routePrefix:m,showOnMobile:v}),g.jsx("div",{className:"shlink-layout__container",onClick:()=>_(),children:g.jsx("div",{className:"container-xl",children:g.jsxs(Jy,{children:[g.jsx(yt,{index:!0,element:g.jsx(BS,{replace:!0,to:"overview"})}),g.jsx(yt,{path:"/overview",element:g.jsx(l,{})}),g.jsx(yt,{path:"/list-short-urls/:page",element:g.jsx(t,{})}),g.jsx(yt,{path:"/create-short-url",element:g.jsx(n,{})}),g.jsx(yt,{path:"/short-code/:shortCode/visits/*",element:g.jsx(r,{})}),g.jsx(yt,{path:"/short-code/:shortCode/edit",element:g.jsx(c,{})}),g.jsx(yt,{path:"/tag/:tag/visits/*",element:g.jsx(i,{})}),w&&g.jsx(yt,{path:"/domain/:domain/visits/*",element:g.jsx(o,{})}),g.jsx(yt,{path:"/orphan-visits/*",element:g.jsx(a,{})}),g.jsx(yt,{path:"/non-orphan-visits/*",element:g.jsx(s,{})}),g.jsx(yt,{path:"/manage-tags",element:g.jsx(e,{})}),g.jsx(yt,{path:"/manage-domains",element:g.jsx(d,{})}),f&&g.jsx(yt,{path:"*",element:f("/list-short-urls/1")})]})})})]})})]})},Pwe=!0,jwe=e=>w6({devTools:!Pwe,reducer:YE({mercureInfo:e.mercureInfoReducer,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,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),Lwe=e=>{e.serviceFactory("Main",kwe,"TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains"),e.factory("store",jwe)},Co=new qce,{container:Mwe}=Co,Awe=(e,t)=>(...n)=>e[t](...n),Rwe=(e,t)=>({...e,[t]:Awe(Mwe,t)}),mp=(e,t=[])=>jD(e?q5(e):null,t.reduce(Rwe,{}));Lwe(Co);e0e(Co,mp);y_e(Co,mp);Owe(Co,mp);mme(Co);fme(Co,mp);jme(Co,mp);D1e(Co);let jA;const Nwe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=Yde(t),l=U.useRef(),[c,d]=U.useState(),f=Nl(),[p,m]=U.useMemo(()=>f?[U.Fragment,{}]:[BD,{basename:i}],[f,i]);return U.useEffect(()=>{jA=n,e.value("apiClientFactory",()=>jA),a&&e.value("TagColorsStorage",a);const{container:v}=e,{Main:y,store:x,loadMercureInfo:_,listTags:w}=v;l.current=g.jsx(y,{createNotFound:o}),d(x),x.dispatch(_(r)),x.dispatch(w())},[n,a]),c?g.jsx(LD,{store:c,children:g.jsx(Cme,{value:r,children:g.jsx(Gde,{value:s,children:g.jsx(qde,{value:i,children:g.jsx(p,{...m,children:l.current})})})})}):g.jsx(g.Fragment,{})},Dwe="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=",Iwe="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==",Fwe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",$we=()=>{delete CA.Icon.Default.prototype._getIconUrl,CA.Icon.Default.mergeOptions({iconRetinaUrl:Iwe,iconUrl:Dwe,shadowUrl:Fwe})};$we();const Uwe=Nwe(Co);function py(e){return t=>{const{resetSelectedServer:n}=t;return U.useEffect(()=>{n()},[]),g.jsx(e,{...t})}}const Bwe=({location:e},{error:t})=>class extends U.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 g.jsx("div",{className:"home",children:g.jsxs(vn,{className:"p-4",children:[g.jsx("h1",{children:"Oops! This is awkward :S"}),g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(_t,{outline:!0,color:"primary",onClick:()=>e.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}},m$=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e});const zwe=({id:e,name:t})=>g.jsxs(II,{tag:Ut,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(Ae,{icon:pY,className:"servers-list__server-item-icon"})]}),g$=({servers:e,children:t,embedded:n=!1})=>g.jsxs(g.Fragment,{children:[t&&g.jsx("h5",{className:"mb-md-3",children:t}),e.length>0&&g.jsx(RI,{className:He("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>g.jsx(zwe,{id:r,name:i},r))})]}),v$=({color:e=LE,className:t})=>g.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:g.jsxs("g",{fill:e,children:[g.jsx("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"}),g.jsx("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"}),g.jsx("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"}),g.jsx("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 Vwe=({servers:e})=>{const t=To(),n=qS(e),r=!av(n);return U.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[]),g.jsx("div",{className:"home",children:g.jsx(Qr,{className:"home__main-card",children:g.jsxs(_r,{className:"g-0",children:[g.jsx("div",{className:"col-md-5 d-none d-md-block",children:g.jsx("div",{className:"home__logo-wrapper",children:g.jsx("div",{className:"home__logo",children:g.jsx(v$,{})})})}),g.jsxs("div",{className:"col-md-7 home__servers-container",children:[g.jsx("div",{className:"home__title-wrapper",children:g.jsx("h1",{className:"home__title",children:"Welcome!"})}),g.jsx(g$,{embedded:!0,servers:n,children:!r&&g.jsxs("div",{className:"p-4 text-center",children:[g.jsx("p",{className:"mb-5",children:"This application will help you manage your Shlink servers."}),g.jsx("p",{children:g.jsxs(Ut,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(Ae,{icon:eE})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0 mt-5",children:g.jsx(m$,{href:"https://shlink.io/documentation",children:g.jsxs("small",{children:[g.jsx("span",{className:"me-1",children:"Learn more about Shlink"})," ",g.jsx(Ae,{icon:KW})]})})})]})})]})]})})})};const Hwe=e=>()=>{const[t,n,,r]=On(),i=_n(),{pathname:o}=i;U.useEffect(r,[i]);const a="/settings",s=He("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(J4,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(eI,{tag:Ut,to:"/",children:[g.jsx(v$,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx(tI,{onClick:n,children:g.jsx(Ae,{icon:fY,className:s})}),g.jsx(dX,{navbar:!0,isOpen:t,children:g.jsxs(gE,{navbar:!0,className:"ms-auto",children:[g.jsx(nI,{children:g.jsxs(oI,{tag:Ut,to:a,active:o.startsWith(a),children:[g.jsx(Ae,{icon:yY}),"  Settings"]})}),g.jsx(e,{})]})})]})},Wwe=({children:e})=>{const t=_n();return U.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},Ywe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,LA=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Ywe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},MA=e=>e==="*"||e==="x"||e==="X",AA=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Gwe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],qwe=(e,t)=>{if(MA(e)||MA(t))return 0;const[n,r]=Gwe(AA(e),AA(t));return n>r?1:n{for(let n=0;n{const n=LA(e),r=LA(t),i=n.pop(),o=r.pop(),a=RA(n,r);return a!==0?a:i&&o?RA(i.split("."),o.split(".")):i||o?i?-1:1:0},Zwe=(e,t,n)=>{Qwe(n);const r=Kwe(e,t);return y$[n].includes(r)},y$={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},NA=Object.keys(y$),Qwe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(NA.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${NA.join("|")}`)},_$=s4(o4,e=>{try{return Zwe(e,e,"=")}catch{return!1}}),b$=e=>_$(e)?`v${e}`:e,w$=(e="latest")=>t=>_$(t)?t:e,Xwe="%_VERSION_%",Jwe=il(w$(),b$),DA=({project:e,version:t})=>g.jsx(m$,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),exe=({selectedServer:e,clientVersion:t=Xwe})=>{const n=Jwe(t);return g.jsxs("small",{className:"text-muted",children:[c4(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(DA,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(DA,{project:"shlink-web-client",version:n})]})};const txe=/^\/server\/[a-zA-Z0-9-]*\/(?!edit)/,nxe=({selectedServer:e})=>{const{pathname:t}=_n(),n=U.useMemo(()=>txe.test(t),[t]),r=He("text-center",{"shlink-versions-container--with-sidebar":n});return g.jsx("div",{className:r,children:g.jsx(exe,{selectedServer:e})})};const Zu=({children:e})=>g.jsx("div",{className:"no-menu-wrapper container-xl",children:e});function x$(e,t){return n=>{const r=Dl(),{selectServer:i,selectedServer:o}=n;return U.useEffect(()=>{r.serverId&&i(r.serverId)},[r.serverId]),o?EW(o)?g.jsx(t,{}):g.jsx(e,{...n}):g.jsx(Zu,{children:g.jsx(Yo,{loading:!0})})}}const rxe=(e,t,n,r)=>x$(({selectedServer:i,settings:o})=>{const a=c4(i),s=a?`/server/${i.id}`:"";return a?g.jsx(n,{serverVersion:i.version,apiClient:e(i),settings:o,routesPrefix:s,tagColorsStorage:t,createNotFound:l=>g.jsx(d6,{to:`${s}${l}`,children:"List short URLs"})}):g.jsx(r,{})},r),IA={"Content-Type":"application/json"},FA=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...IA}}:{headers:IA}:e;class ixe{constructor(t){gt(this,"fetchJson",(t,n)=>this.fetch(t,FA(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i}));gt(this,"fetchEmpty",(t,n)=>this.fetch(t,FA(n)).then(async r=>{if(!r.ok)throw await r.json()}));this.fetch=t}}const oxe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",ixe,"fetch"),e.serviceFactory("ScrollToTop",()=>Wwe),e.serviceFactory("MainHeader",Hwe,"ServersDropdown"),e.serviceFactory("Home",()=>Vwe),e.decorator("Home",py),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>Uwe),e.serviceFactory("ShlinkWebComponentContainer",rxe,"buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>nxe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",Bwe,"window","console")};let Wm;const axe=new Uint8Array(16);function sxe(){if(!Wm&&(Wm=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Wm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wm(axe)}const Kn=[];for(let e=0;e<256;++e)Kn.push((e+256).toString(16).slice(1));function lxe(e,t=0){return(Kn[e[t+0]]+Kn[e[t+1]]+Kn[e[t+2]]+Kn[e[t+3]]+"-"+Kn[e[t+4]]+Kn[e[t+5]]+"-"+Kn[e[t+6]]+Kn[e[t+7]]+"-"+Kn[e[t+8]]+Kn[e[t+9]]+"-"+Kn[e[t+10]]+Kn[e[t+11]]+Kn[e[t+12]]+Kn[e[t+13]]+Kn[e[t+14]]+Kn[e[t+15]]).toLowerCase()}const cxe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$A={randomUUID:cxe};function S$(e,t,n){if($A.randomUUID&&!t&&!e)return $A.randomUUID();e=e||{};const r=e.random||(e.rng||sxe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return lxe(r)}const uxe=2e3,dxe=(e,t)=>(n=!1,r=uxe)=>{const[i,o]=U.useState(n),a=U.useRef(void 0);return[i,()=>{o(!n),a.current&&t(a.current),a.current=e(()=>o(n),r)}]},E$=()=>{const e=To();return()=>e(-1)},fxe=()=>{const{search:e}=_n();return Fl(e)},T$=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return g.jsxs(da,{centered:!0,isOpen:e,children:[g.jsxs(fa,{children:["Duplicated server",i&&"s"]}),g.jsxs(Oo,{children:[g.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),g.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?g.jsxs("li",{children:[g.jsx("b",{children:o})," - ",g.jsx("b",{children:a})]},s):g.jsxs(U.Fragment,{children:[g.jsxs("li",{children:["URL: ",g.jsx("b",{children:o})]}),g.jsxs("li",{children:["API key: ",g.jsx("b",{children:a})]})]},s))}),g.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),g.jsxs(Il,{children:[g.jsx(_t,{color:"link",onClick:n,children:i?"Ignore duplicated":"Discard"}),g.jsx(_t,{color:"primary",onClick:r,children:"Save anyway"})]})]})},hxe=e=>il(t=>t.preventDefault(),e),O$=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=U.useState(""),[a,s]=U.useState(""),[l,c]=U.useState(""),d=hxe(()=>e({name:i,url:a,apiKey:l}));return U.useEffect(()=>{t&&o(t.name),t&&s(t.url),t&&c(t.apiKey)},[t]),g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:d,children:[g.jsxs(vn,{className:"mb-3",title:r,children:[g.jsx(cg,{value:i,onChange:o,children:"Name"}),g.jsx(cg,{type:"url",value:a,onChange:s,children:"URL"}),g.jsx(cg,{value:l,onChange:c,children:"API key"})]}),g.jsx("div",{className:"text-end",children:n})]})},UA=4e3,BA=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(Gr,{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."]})}),pxe=(e,t)=>({servers:n,createServers:r})=>{const i=To(),o=E$(),a=!!Object.keys(n).length,[s,l]=t(!1,UA),[c,d]=t(!1,UA),[f,p]=On(),[m,v]=U.useState(),y=()=>{if(!m)return;const x=S$();r([{...m,id:x}]),i(`/server/${x}`)};return U.useEffect(()=>{Object.values(n).some(({url:_,apiKey:w})=>(m==null?void 0:m.url)===_&&(m==null?void 0:m.apiKey)===w)?p():y()},[m]),g.jsxs(Zu,{children:[g.jsxs(O$,{title:g.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:v,children:[!a&&g.jsx(e,{tooltipPlacement:"top",onImport:l,onImportError:d}),a&&g.jsx(_t,{outline:!0,onClick:o,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&g.jsx(BA,{type:"success"}),c&&g.jsx(BA,{type:"error"}),g.jsx(T$,{isOpen:f,duplicatedServers:m?[m]:[],onDiscard:o,onSave:y})]})},mxe=e=>({server:t,className:n,children:r,textClassName:i})=>{const[o,,a,s]=On();return g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:n,onClick:a,children:[!r&&g.jsx(Ae,{fixedWidth:!0,icon:ZS}),g.jsx("span",{className:i,children:r??"Remove this server"})]}),g.jsx(e,{server:t,isOpen:o,toggle:s})]})},gxe=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=To(),a=U.useRef(!1),s=()=>{a.current=!0,t()},l=()=>{a.current&&(r(e),i&&o("/"))};return g.jsxs(da,{isOpen:n,toggle:t,centered:!0,onClosed:l,children:[g.jsx(fa,{toggle:t,className:"text-danger",children:"Remove server"}),g.jsxs(Oo,{children:[g.jsxs("p",{children:["Are you sure you want to remove ",g.jsx("b",{children:e?e.name:""}),"?"]}),g.jsx("p",{children:g.jsx("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."})})]}),g.jsxs(Il,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",onClick:s,children:"Delete"})]})]})},vxe=e=>x$(({editServer:t,selectedServer:n,selectServer:r})=>{const i=E$(),{reconnect:o}=fxe();if(!of(n))return null;const a=s=>{t(n.id,s),o==="true"&&r(n.id),i()};return g.jsx(Zu,{children:g.jsxs(O$,{title:g.jsxs("h5",{className:"mb-0",children:['Edit "',n.name,'"']}),initialValues:n,onSubmit:a,children:[g.jsx(_t,{outline:!0,className:"me-2",onClick:i,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",children:"Save"})]})})},e);const zA=e=>({url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n),yxe=({importServersFromFile:e})=>({createServers:t,servers:n,children:r,onImport:i=()=>{},onImportError:o=()=>{},tooltipPlacement:a="bottom",className:s=""})=>{const l=bs(),[c,d]=U.useState(),[f,p]=U.useState([]),[m,,v,y]=On(),x=il(t,i),_=il(()=>x(c??[]),y),w=il(()=>x((c??[]).filter(FH(zA(f)))),y),S=async({target:E})=>{var C;return e((C=E.files)==null?void 0:C[0]).then(d).then(()=>{E.value=null}).catch(o)};return U.useEffect(()=>{if(!c)return;const E=Object.values(n),C=c.filter(zA(E)),k=!!C.length;k?p(C):x(c),k&&v()},[c]),g.jsxs(g.Fragment,{children:[g.jsxs(_t,{outline:!0,id:"importBtn",className:s,onClick:()=>{var E;return(E=l.current)==null?void 0:E.click()},children:[g.jsx(Ae,{icon:BW,fixedWidth:!0})," ",r??"Import from file"]}),g.jsxs(Ir,{placement:a,target:"importBtn",children:["You can create servers by importing a CSV file with columns ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"}),"."]}),g.jsx("input",{type:"file",accept:"text/csv",className:"import-servers-btn__csv-select",ref:l,onChange:S}),g.jsx(T$,{isOpen:m,duplicatedServers:f,onDiscard:w,onSave:_})]})};const _xe=e=>({servers:t,selectedServer:n})=>g.jsx(Zu,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(Yo,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!of(n)&&"Could not find this Shlink server.",of(n)&&g.jsxs(g.Fragment,{children:[g.jsx("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."]})]}),g.jsxs(g$,{servers:Object.values(t),children:["These are the Shlink servers currently configured. Choose one of them or ",g.jsx(Ut,{to:"/server/create",children:"add a new one"}),"."]}),of(n)&&g.jsx("div",{className:"container mt-3 mt-md-5",children:g.jsxs("h5",{children:["Alternatively, if you think you may have miss-configured this server, you can ",g.jsx(e,{server:n,className:"server-error__delete-btn",children:"remove it"})," or ",g.jsx(Ut,{to:`/server/${n.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})}),bxe=4e3,wxe=(e,t,n,r)=>({servers:i})=>{const o=Object.values(i),[a,s]=U.useState(o),l=p=>s(o.filter(({name:m,url:v})=>`${m} ${v}`.toLowerCase().match(p.toLowerCase()))),c=a.some(({autoConnect:p})=>!!p),[d,f]=n(!1,bxe);return U.useEffect(()=>{s(Object.values(i))},[i]),g.jsxs(Zu,{children:[g.jsx(Gh,{className:"mb-3",onChange:l}),g.jsxs(_r,{className:"mb-3",children:[g.jsxs("div",{className:"col-md-6 d-flex d-md-block mb-2 mb-md-0",children:[g.jsx(t,{className:"flex-fill",onImportError:f,children:"Import servers"}),o.length>0&&g.jsxs(_t,{outline:!0,className:"ms-2 flex-fill",onClick:async()=>e.exportServers(),children:[g.jsx(Ae,{icon:p4,fixedWidth:!0})," Export servers"]})]}),g.jsx("div",{className:"col-md-6 text-md-end d-flex d-md-block",children:g.jsxs(_t,{outline:!0,color:"primary",className:"flex-fill",tag:Ut,to:"/server/create",children:[g.jsx(Ae,{icon:eE,fixedWidth:!0})," Add a server"]})})]}),g.jsx(vn,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsxs("tr",{children:[c&&g.jsx("th",{"aria-label":"Auto-connect",style:{width:"50px"}}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{"aria-label":"Options"})]})}),g.jsxs("tbody",{children:[!a.length&&g.jsx("tr",{className:"text-center",children:g.jsx("td",{colSpan:4,children:"No servers found."})}),a.map(p=>g.jsx(r,{server:p,hasAutoConnect:c},p.id))]})]})}),d&&g.jsx("div",{className:"mt-3",children:g.jsx(Gr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},xxe=e=>({server:t,hasAutoConnect:n})=>g.jsxs("tr",{className:"responsive-table__row",children:[n&&g.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:t.autoConnect&&g.jsxs(g.Fragment,{children:[g.jsx(Ae,{icon:Kf,className:"text-primary",id:"autoConnectIcon"}),g.jsx(Ir,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Ut,{to:`/server/${t.id}`,children:t.name})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:t.url}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(e,{server:t})})]}),Sxe=e=>({server:t,setAutoConnect:n})=>{const[r,,i,o]=On(),a=`/server/${t.id}`,{autoConnect:s}=t,l=s?$W:_ie;return g.jsxs(d0,{minWidth:170,children:[g.jsxs(Ue,{tag:Ut,to:a,children:[g.jsx(Ae,{icon:IW,fixedWidth:!0})," Connect"]}),g.jsxs(Ue,{tag:Ut,to:`${a}/edit`,children:[g.jsx(Ae,{icon:QS,fixedWidth:!0})," Edit server"]}),g.jsxs(Ue,{onClick:()=>n(t,!s),children:[g.jsx(Ae,{icon:l,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{className:"dropdown-item--danger",onClick:i,children:[g.jsx(Ae,{icon:ZS,fixedWidth:!0})," Remove server"]}),g.jsx(e,{redirectHome:!1,server:t,isOpen:r,toggle:o})]})},C$=(e,t)=>S6(e,t,{serializeError:o4}),Exe={},Txe=e=>e.id?e:iv("id",S$(),e),Oxe=n4((e,t)=>iv(t.id,t,e),{}),{actions:Cxe,reducer:kxe}=dr({name:"shlink/servers",initialState:Exe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?iv(n,{...e[n],...r},e):e}},deleteServer:(e,{payload:t})=>oW(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?cW(SW(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):iv(n,{...e[n],autoConnect:r},e):e}},createServers:{prepare:il(GS(Txe),Oxe,e=>({payload:e})),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:Pxe,deleteServer:jxe,setAutoConnect:Lxe,createServers:k$}=Cxe,Mxe=kxe,Axe=e=>Array.isArray(e)?e.filter(l4):[],Rxe=e=>C$("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.fetchJson(`${tv.homepage}/servers.json`),i=Axe(r);n(k$(i))}),pO="shlink/selectedServer",Nxe="1.0.0",Dxe="999.999.999",Ixe="latest",Fxe=il(e=>e===Ixe?Dxe:e,w$(Nxe)),$xe=s4(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:Fxe(n),printableVersion:b$(n)}))),VA=null,mO=Dn(`${pO}/resetSelectedServer`),Uxe=e=>C$(`${pO}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(mO());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const{health:a}=e(o),{version:s,printableVersion:l}=await $xe(o,a);return{...o,version:s,printableVersion:l}}catch{return{...o,serverNotReachable:!0}}}),Bxe=e=>dr({name:pO,initialState:VA,reducers:{},extraReducers:t=>{t.addCase(mO,()=>VA),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),zxe=({servers:e,selectedServer:t})=>{const n=qS(e),r=()=>av(n)?g.jsxs(Ue,{tag:Ut,to:"/server/create",children:[g.jsx(Ae,{icon:eE})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[n.map(({name:i,id:o})=>g.jsx(Ue,{tag:Ut,to:`/server/${o}`,active:TW(t)===o,children:i},o)),g.jsx(Ue,{divider:!0}),g.jsxs(Ue,{tag:Ut,to:"/manage-servers",children:[g.jsx(Ae,{icon:tP})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(Yh,{nav:!0,inNavbar:!0,children:[g.jsxs(zu,{nav:!0,caret:!0,children:[g.jsx(Ae,{icon:tP})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(Bu,{end:!0,style:{right:0},children:r()})]})},Vxe=({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)},Hxe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);Vxe(e,i,n)},Wxe="shlink-servers.csv";class Yxe{constructor(t,n,r){gt(this,"exportServers",async()=>{const t=qS(this.storage.get("servers")??{}).map(OW);try{const n=this.jsonToCsv(t);Hxe(this.window,n,Wxe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const Gxe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",qxe=e=>Array.isArray(e)&&e.every(Gxe);class Kxe{constructor(t,n){gt(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 a,s;try{const l=((s=(a=o.target)==null?void 0:a.result)==null?void 0:s.toString())??"",c=await this.csvToJson(l);if(!qxe(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 Zxe=(e,t)=>{e.serviceFactory("ManageServers",wxe,"ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"),e.decorator("ManageServers",py),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.serviceFactory("ManageServersRow",xxe,"ManageServersRowDropdown"),e.serviceFactory("ManageServersRowDropdown",Sxe,"DeleteServerModal"),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.serviceFactory("CreateServer",pxe,"ImportServersBtn","useTimeoutToggle"),e.decorator("CreateServer",py),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.serviceFactory("EditServer",vxe,"ServerError"),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>zxe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>gxe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.serviceFactory("DeleteServerButton",mxe,"DeleteServerModal"),e.serviceFactory("ImportServersBtn",yxe,"ServersImporter"),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.serviceFactory("ServerError",_xe,"DeleteServerButton"),e.decorator("ServerError",t(["servers","selectedServer"])),e.constant("fileReaderFactory",()=>new FileReader),e.service("ServersImporter",Kxe,"csvToJson","fileReaderFactory"),e.service("ServersExporter",Yxe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",Uxe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>k$),e.serviceFactory("deleteServer",()=>jxe),e.serviceFactory("editServer",()=>Pxe),e.serviceFactory("setAutoConnect",()=>Lxe),e.serviceFactory("fetchServers",Rxe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>mO),e.serviceFactory("selectedServerReducerCreator",Bxe,"selectServer"),e.serviceFactory("selectedServerReducer",SH("reducer"),"selectedServerReducerCreator")},Jc=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),Qxe=e=>e?`${e}`:"",Xxe=({settings:e,toggleRealTimeUpdates:t,setRealTimeUpdatesInterval:n})=>{const{realTimeUpdates:r={enabled:!0}}=e,i=u0();return g.jsxs(vn,{title:"Real-time updates",className:"h-100",children:[g.jsx(Vr,{children:g.jsxs(yu,{checked:r.enabled,onChange:t,children:["Enable or disable real-time updates.",g.jsxs(Jc,{children:["Real-time updates are currently being ",g.jsx("b",{children:r.enabled?"processed":"ignored"}),"."]})]})}),g.jsxs(Hu,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:He("form-label",{"text-muted":!r.enabled}),id:i,children:[g.jsx(xl,{type:"number",min:0,placeholder:"Immediate",disabled:!r.enabled,value:Qxe(r.interval),id:i,onChange:({target:o})=>n(Number(o.value))}),r.enabled&&g.jsxs(Jc,{children:[r.interval!==void 0&&r.interval>0&&g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:r.interval})," minute",r.interval>1&&"s","."]}),!r.interval&&"Updates will be reflected in the UI as soon as they happen."]})]})]})},P$={field:"dateCreated",dir:"DESC"},Jxe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:"light"},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:P$}},e2e=(e,{payload:t})=>vW(e,t),Is=e=>({reducer:e2e,prepare:e}),Fs=e=>({payload:e}),{reducer:t2e,actions:n2e}=dr({name:"shlink/settings",initialState:Jxe,reducers:{toggleRealTimeUpdates:Is(e=>Fs({realTimeUpdates:{enabled:e}})),setRealTimeUpdatesInterval:Is(e=>Fs({realTimeUpdates:{interval:e}})),setShortUrlCreationSettings:Is(e=>Fs({shortUrlCreation:e})),setShortUrlsListSettings:Is(e=>Fs({shortUrlsList:e})),setUiSettings:Is(e=>Fs({ui:e})),setVisitsSettings:Is(e=>Fs({visits:e})),setTagsSettings:Is(e=>Fs({tags:e}))}}),{toggleRealTimeUpdates:r2e,setRealTimeUpdatesInterval:i2e,setShortUrlCreationSettings:o2e,setShortUrlsListSettings:a2e,setUiSettings:s2e,setVisitsSettings:l2e,setTagsSettings:c2e}=n2e,u2e=t2e,Q1=({items:e})=>g.jsx(g.Fragment,{children:e.map((t,n)=>g.jsx("div",{className:"mb-3",children:t},n))}),d2e=(e,t,n,r,i,o)=>()=>g.jsxs(Zu,{children:[g.jsxs(HI,{className:"mb-3",children:[g.jsx(df,{to:"general",children:"General"}),g.jsx(df,{to:"short-urls",children:"Short URLs"}),g.jsx(df,{to:"other-items",children:"Other items"})]}),g.jsxs(Jy,{children:[g.jsx(yt,{path:"general",element:g.jsx(Q1,{items:[g.jsx(r,{}),g.jsx(e,{})]})}),g.jsx(yt,{path:"short-urls",element:g.jsx(Q1,{items:[g.jsx(t,{}),g.jsx(n,{})]})}),g.jsx(yt,{path:"other-items",element:g.jsx(Q1,{items:[g.jsx(o,{}),g.jsx(i,{})]})}),g.jsx(yt,{path:"*",element:g.jsx(BS,{replace:!0,to:"general"})})]})]}),X1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",f2e=e=>e==="includes"?g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"including"})," provided input."]}):g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"starting with"})," provided input."]}),h2e=({settings:e,setShortUrlCreationSettings:t})=>{const n=e.shortUrlCreation??{validateUrls:!1},r=i=>()=>t({...n??{validateUrls:!1},tagFilteringMode:i});return g.jsxs(vn,{title:"Short URLs form",className:"h-100",children:[g.jsx(Vr,{children:g.jsxs(yu,{checked:n.validateUrls??!1,onChange:i=>t({...n,validateUrls:i}),children:["Request validation on long URLs when creating new short URLs.",g.jsxs(Jc,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:n.validateUrls?"checked":"unchecked"}),"."]})]})}),g.jsx(Vr,{children:g.jsxs(yu,{checked:n.forwardQuery??!0,onChange:i=>t({...n,forwardQuery:i}),children:["Make all new short URLs forward their query params to the long URL.",g.jsxs(Jc,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:n.forwardQuery??!0?"checked":"unchecked"}),"."]})]})}),g.jsxs(Hu,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(ha,{text:X1(n.tagFilteringMode),children:[g.jsx(Ue,{active:!n.tagFilteringMode||n.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:X1("startsWith")}),g.jsx(Ue,{active:n.tagFilteringMode==="includes",onClick:r("includes"),children:X1("includes")})]}),g.jsx(Jc,{children:f2e(n.tagFilteringMode)})]})]})},p2e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},m2e=({settings:{shortUrlsList:e},setShortUrlsListSettings:t})=>g.jsx(vn,{title:"Short URLs list",className:"h-100",children:g.jsx(Hu,{noMargin:!0,label:"Default ordering for short URLs list:",children:g.jsx(qh,{items:p2e,order:(e==null?void 0:e.defaultOrdering)??P$,onChange:(n,r)=>t({defaultOrdering:{field:n,dir:r}})})})}),g2e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},v2e=({settings:{tags:e},setTagsSettings:t})=>g.jsx(vn,{title:"Tags",className:"h-100",children:g.jsx(Hu,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(qh,{items:g2e,order:(e==null?void 0:e.defaultOrdering)??{},onChange:(n,r)=>t({...e,defaultOrdering:{field:n,dir:r}})})})});const y2e=({settings:{ui:e},setUiSettings:t})=>g.jsxs(vn,{title:"User interface",className:"h-100",children:[g.jsx(Ae,{icon:(e==null?void 0:e.theme)==="dark"?bY:lY,className:"user-interface__theme-icon"}),g.jsx(yu,{checked:(e==null?void 0:e.theme)==="dark",onChange:n=>{const r=n?"dark":"light";t({...e,theme:r}),qI(r)},children:"Use dark theme."})]}),j$={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},_2e=(e,t)=>!e||e==="all"?t:j$[e],b2e=({onChange:e,active:t,allText:n})=>g.jsxs(ha,{text:_2e(t,n),children:[g.jsx(Ue,{active:t==="all",onClick:()=>e("all"),children:n}),g.jsx(Ue,{divider:!0}),Object.entries(j$).map(([r,i])=>g.jsx(Ue,{active:t===r,onClick:()=>e(r),children:i},r))]}),HA=e=>{var t;return((t=e.visits)==null?void 0:t.defaultInterval)??"last30Days"},w2e=({settings:e,setVisitsSettings:t})=>{var n,r;return g.jsxs(vn,{title:"Visits",className:"h-100",children:[g.jsx(Vr,{children:g.jsxs(yu,{checked:!!((n=e.visits)!=null&&n.excludeBots),onChange:i=>t({defaultInterval:HA(e),excludeBots:i}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",g.jsxs(Jc,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:(r=e.visits)!=null&&r.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(Hu,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(b2e,{allText:"All visits",active:HA(e),onChange:i=>t({defaultInterval:i})})})]})},x2e=(e,t)=>{e.serviceFactory("Settings",d2e,"RealTimeUpdatesSettings","ShortUrlCreationSettings","ShortUrlsListSettings","UserInterfaceSettings","VisitsSettings","TagsSettings"),e.decorator("Settings",py),e.decorator("Settings",t(null,["resetSelectedServer"])),e.serviceFactory("RealTimeUpdatesSettings",()=>Xxe),e.decorator("RealTimeUpdatesSettings",t(["settings"],["toggleRealTimeUpdates","setRealTimeUpdatesInterval"])),e.serviceFactory("ShortUrlCreationSettings",()=>h2e),e.decorator("ShortUrlCreationSettings",t(["settings"],["setShortUrlCreationSettings"])),e.serviceFactory("UserInterfaceSettings",()=>y2e),e.decorator("UserInterfaceSettings",t(["settings"],["setUiSettings"])),e.serviceFactory("VisitsSettings",()=>w2e),e.decorator("VisitsSettings",t(["settings"],["setVisitsSettings"])),e.serviceFactory("TagsSettings",()=>v2e),e.decorator("TagsSettings",t(["settings"],["setTagsSettings"])),e.serviceFactory("ShortUrlsListSettings",()=>m2e),e.decorator("ShortUrlsListSettings",t(["settings"],["setShortUrlsListSettings"])),e.serviceFactory("toggleRealTimeUpdates",()=>r2e),e.serviceFactory("setRealTimeUpdatesInterval",()=>i2e),e.serviceFactory("setShortUrlCreationSettings",()=>o2e),e.serviceFactory("setShortUrlsListSettings",()=>a2e),e.serviceFactory("setUiSettings",()=>s2e),e.serviceFactory("setVisitsSettings",()=>l2e),e.serviceFactory("setTagsSettings",()=>c2e)};var S2e="Expected a function",L$="__lodash_hash_undefined__",M$=1/0,E2e="[object Function]",T2e="[object GeneratorFunction]",O2e="[object Symbol]",C2e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k2e=/^\w*$/,P2e=/^\./,j2e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L2e=/[\\^$.*+?()[\]{}|]/g,M2e=/\\(\\)?/g,A2e=/^\[object .+?Constructor\]$/,R2e=typeof Ip=="object"&&Ip&&Ip.Object===Object&&Ip,N2e=typeof self=="object"&&self&&self.Object===Object&&self,gO=R2e||N2e||Function("return this")();function D2e(e,t){return e==null?void 0:e[t]}function I2e(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var F2e=Array.prototype,$2e=Function.prototype,A$=Object.prototype,J1=gO["__core-js_shared__"],WA=function(){var e=/[^.]+$/.exec(J1&&J1.keys&&J1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),R$=$2e.toString,vO=A$.hasOwnProperty,N$=A$.toString,U2e=RegExp("^"+R$.call(vO).replace(L2e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),YA=gO.Symbol,B2e=F2e.splice,z2e=D$(gO,"Map"),Ph=D$(Object,"create"),GA=YA?YA.prototype:void 0,qA=GA?GA.toString:void 0;function jl(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function X2e(e,t){var n=this.__data__,r=D0(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Qu.prototype.clear=q2e;Qu.prototype.delete=K2e;Qu.prototype.get=Z2e;Qu.prototype.has=Q2e;Qu.prototype.set=X2e;function Yl(e){var t=-1,n=e?e.length:0;for(this.clear();++tr.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function bO(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 wSe(e={stringFormatter:bO()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function xSe(e={stringFormatter:bO()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}function ZA(e,t,n){const r=e[t];return r===void 0?n:r}function $$(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function j2(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var QA;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(QA||(QA={}));class SSe{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||bO(),i=xSe({stringFormatter:r}),o={header:r,undefined:eb,boolean:eb,number:bSe(),bigint:eb,string:r,symbol:wSe({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},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=>KA(i,r,n):i=>ZA(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?a=>KA(a,o,i):a=>ZA(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(l){const c=s(l,a);return c===void 0?i:c}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return j2(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($$,[]),[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 j2(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class ESe extends SSe{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]),this.opts.defaultValue);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){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce($$,[])}processData(t){return j2(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var jn;(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"})(jn||(jn={}));jn.QUOTATION_MARK+"",jn.QUOTATION_MARK,jn.REVERSE_SOLIDUS+"",jn.REVERSE_SOLIDUS,jn.SOLIDUS+"",jn.SOLIDUS,jn.LATIN_SMALL_LETTER_B+"",jn.BACKSPACE,jn.LATIN_SMALL_LETTER_F+"",jn.FORM_FEED,jn.LATIN_SMALL_LETTER_N+"",jn.NEWLINE,jn.LATIN_SMALL_LETTER_R+"",jn.CARRIAGE_RETURN,jn.LATIN_SMALL_LETTER_T+"",jn.TAB;var XA;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(XA||(XA={}));var JA;(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"})(JA||(JA={}));var eR;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(eR||(eR={}));var tR;(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"})(tR||(tR={}));var TSe=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 a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));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(v){var y=[];for(var x in v)y.push(x);return y};e.exports=f;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(f,a);for(var l=i(s.prototype),c=0;c + * @license MIT + */var i=n(38),o=n(39),a=n(40);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(O,M){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|O}function y(O,M){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 ee=!1;;)switch(M){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 ae(O).length;default:if(ee)return re(O).length;M=(""+M).toLowerCase(),ee=!0}}function x(O,M,F){var ee=O[M];O[M]=O[F],O[F]=ee}function _(O,M,F,ee,J){if(O.length===0)return-1;if(typeof F=="string"?(ee=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,isNaN(F)&&(F=J?0:O.length-1),F<0&&(F=O.length+F),F>=O.length){if(J)return-1;F=O.length-1}else if(F<0){if(!J)return-1;F=0}if(typeof M=="string"&&(M=c.from(M,ee)),c.isBuffer(M))return M.length===0?-1:w(O,M,F,ee,J);if(typeof M=="number")return M&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(O,M,F):Uint8Array.prototype.lastIndexOf.call(O,M,F):w(O,[M],F,ee,J);throw new TypeError("val must be string, number or Buffer")}function w(O,M,F,ee,J){var se,ge=1,Me=O.length,ue=M.length;if(ee!==void 0&&((ee=String(ee).toLowerCase())==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(O.length<2||M.length<2)return-1;ge=2,Me/=2,ue/=2,F/=2}function me(Ce,Le){return ge===1?Ce[Le]:Ce.readUInt16BE(Le*ge)}if(J){var _e=-1;for(se=F;seMe&&(F=Me-ue),se=F;se>=0;se--){for(var Se=!0,ke=0;keJ&&(ee=J):ee=J;var se=M.length;if(se%2!=0)throw new TypeError("Invalid hex string");ee>se/2&&(ee=se/2);for(var ge=0;ge>8,ue=ge%256,me.push(ue),me.push(Me);return me}(M,O.length-F),O,F,ee)}function $(O,M,F){return M===0&&F===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(M,F))}function N(O,M,F){F=Math.min(O.length,F);for(var ee=[],J=M;J239?4:me>223?3:me>191?2:1;if(J+Se<=F)switch(Se){case 1:me<128&&(_e=me);break;case 2:(192&(se=O[J+1]))==128&&(ue=(31&me)<<6|63&se)>127&&(_e=ue);break;case 3:se=O[J+1],ge=O[J+2],(192&se)==128&&(192&ge)==128&&(ue=(15&me)<<12|(63&se)<<6|63&ge)>2047&&(ue<55296||ue>57343)&&(_e=ue);break;case 4:se=O[J+1],ge=O[J+2],Me=O[J+3],(192&se)==128&&(192&ge)==128&&(192&Me)==128&&(ue=(15&me)<<18|(63&se)<<12|(63&ge)<<6|63&Me)>65535&&ue<1114112&&(_e=ue)}_e===null?(_e=65533,Se=1):_e>65535&&(_e-=65536,ee.push(_e>>>10&1023|55296),_e=56320|1023&_e),ee.push(_e),J+=Se}return function(ke){var Ce=ke.length;if(Ce<=z)return String.fromCharCode.apply(String,ke);for(var Le="",ce=0;cethis.length||((ee===void 0||ee>this.length)&&(ee=this.length),ee<=0)||(ee>>>=0)<=(F>>>=0))return"";for(M||(M="utf8");;)switch(M){case"hex":return G(this,F,ee);case"utf8":case"utf-8":return N(this,F,ee);case"ascii":return W(this,F,ee);case"latin1":case"binary":return X(this,F,ee);case"base64":return $(this,F,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,F,ee);default:if(J)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),J=!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="",M=t.INSPECT_MAX_BYTES;return this.length>0&&(O=this.toString("hex",0,M).match(/.{2}/g).join(" "),this.length>M&&(O+=" ... ")),""},c.prototype.compare=function(O,M,F,ee,J){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(M===void 0&&(M=0),F===void 0&&(F=O?O.length:0),ee===void 0&&(ee=0),J===void 0&&(J=this.length),M<0||F>O.length||ee<0||J>this.length)throw new RangeError("out of range index");if(ee>=J&&M>=F)return 0;if(ee>=J)return-1;if(M>=F)return 1;if(M>>>=0,F>>>=0,ee>>>=0,J>>>=0,this===O)return 0;for(var se=J-ee,ge=F-M,Me=Math.min(se,ge),ue=this.slice(ee,J),me=O.slice(M,F),_e=0;_eJ)&&(F=J),O.length>0&&(F<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var se=!1;;)switch(ee){case"hex":return S(this,O,M,F);case"utf8":case"utf-8":return E(this,O,M,F);case"ascii":return C(this,O,M,F);case"latin1":case"binary":return k(this,O,M,F);case"base64":return j(this,O,M,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,O,M,F);default:if(se)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),se=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function W(O,M,F){var ee="";F=Math.min(O.length,F);for(var J=M;Jee)&&(F=ee);for(var J="",se=M;seF)throw new RangeError("Trying to access beyond buffer length")}function le(O,M,F,ee,J,se){if(!c.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(M>J||MO.length)throw new RangeError("Index out of range")}function q(O,M,F,ee){M<0&&(M=65535+M+1);for(var J=0,se=Math.min(O.length-F,2);J>>8*(ee?J:1-J)}function I(O,M,F,ee){M<0&&(M=4294967295+M+1);for(var J=0,se=Math.min(O.length-F,4);J>>8*(ee?J:3-J)&255}function D(O,M,F,ee,J,se){if(F+ee>O.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function H(O,M,F,ee,J){return J||D(O,0,F,4),o.write(O,M,F,ee,23,4),F+4}function ie(O,M,F,ee,J){return J||D(O,0,F,8),o.write(O,M,F,ee,52,8),F+8}c.prototype.slice=function(O,M){var F,ee=this.length;if(O=~~O,M=M===void 0?ee:~~M,O<0?(O+=ee)<0&&(O=0):O>ee&&(O=ee),M<0?(M+=ee)<0&&(M=0):M>ee&&(M=ee),M0&&(J*=256);)ee+=this[O+--M]*J;return ee},c.prototype.readUInt8=function(O,M){return M||te(O,1,this.length),this[O]},c.prototype.readUInt16LE=function(O,M){return M||te(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUInt16BE=function(O,M){return M||te(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUInt32LE=function(O,M){return M||te(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUInt32BE=function(O,M){return M||te(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readIntLE=function(O,M,F){O|=0,M|=0,F||te(O,M,this.length);for(var ee=this[O],J=1,se=0;++se=(J*=128)&&(ee-=Math.pow(2,8*M)),ee},c.prototype.readIntBE=function(O,M,F){O|=0,M|=0,F||te(O,M,this.length);for(var ee=M,J=1,se=this[O+--ee];ee>0&&(J*=256);)se+=this[O+--ee]*J;return se>=(J*=128)&&(se-=Math.pow(2,8*M)),se},c.prototype.readInt8=function(O,M){return M||te(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,M){M||te(O,2,this.length);var F=this[O]|this[O+1]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt16BE=function(O,M){M||te(O,2,this.length);var F=this[O+1]|this[O]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt32LE=function(O,M){return M||te(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,M){return M||te(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readFloatLE=function(O,M){return M||te(O,4,this.length),o.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,M){return M||te(O,4,this.length),o.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,M){return M||te(O,8,this.length),o.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,M){return M||te(O,8,this.length),o.read(this,O,!1,52,8)},c.prototype.writeUIntLE=function(O,M,F,ee){O=+O,M|=0,F|=0,ee||le(this,O,M,F,Math.pow(2,8*F)-1,0);var J=1,se=0;for(this[M]=255&O;++se=0&&(se*=256);)this[M+J]=O/se&255;return M+F},c.prototype.writeUInt8=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,1,255,0),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[M]=255&O,M+1},c.prototype.writeUInt16LE=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[M]=255&O,this[M+1]=O>>>8):q(this,O,M,!0),M+2},c.prototype.writeUInt16BE=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[M]=O>>>8,this[M+1]=255&O):q(this,O,M,!1),M+2},c.prototype.writeUInt32LE=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[M+3]=O>>>24,this[M+2]=O>>>16,this[M+1]=O>>>8,this[M]=255&O):I(this,O,M,!0),M+4},c.prototype.writeUInt32BE=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[M]=O>>>24,this[M+1]=O>>>16,this[M+2]=O>>>8,this[M+3]=255&O):I(this,O,M,!1),M+4},c.prototype.writeIntLE=function(O,M,F,ee){if(O=+O,M|=0,!ee){var J=Math.pow(2,8*F-1);le(this,O,M,F,J-1,-J)}var se=0,ge=1,Me=0;for(this[M]=255&O;++se>0)-Me&255;return M+F},c.prototype.writeIntBE=function(O,M,F,ee){if(O=+O,M|=0,!ee){var J=Math.pow(2,8*F-1);le(this,O,M,F,J-1,-J)}var se=F-1,ge=1,Me=0;for(this[M+se]=255&O;--se>=0&&(ge*=256);)O<0&&Me===0&&this[M+se+1]!==0&&(Me=1),this[M+se]=(O/ge>>0)-Me&255;return M+F},c.prototype.writeInt8=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,1,127,-128),c.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[M]=255&O,M+1},c.prototype.writeInt16LE=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[M]=255&O,this[M+1]=O>>>8):q(this,O,M,!0),M+2},c.prototype.writeInt16BE=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[M]=O>>>8,this[M+1]=255&O):q(this,O,M,!1),M+2},c.prototype.writeInt32LE=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[M]=255&O,this[M+1]=O>>>8,this[M+2]=O>>>16,this[M+3]=O>>>24):I(this,O,M,!0),M+4},c.prototype.writeInt32BE=function(O,M,F){return O=+O,M|=0,F||le(this,O,M,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),c.TYPED_ARRAY_SUPPORT?(this[M]=O>>>24,this[M+1]=O>>>16,this[M+2]=O>>>8,this[M+3]=255&O):I(this,O,M,!1),M+4},c.prototype.writeFloatLE=function(O,M,F){return H(this,O,M,!0,F)},c.prototype.writeFloatBE=function(O,M,F){return H(this,O,M,!1,F)},c.prototype.writeDoubleLE=function(O,M,F){return ie(this,O,M,!0,F)},c.prototype.writeDoubleBE=function(O,M,F){return ie(this,O,M,!1,F)},c.prototype.copy=function(O,M,F,ee){if(F||(F=0),ee||ee===0||(ee=this.length),M>=O.length&&(M=O.length),M||(M=0),ee>0&&ee=this.length)throw new RangeError("sourceStart out of bounds");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),O.length-M=0;--J)O[J+M]=this[J+F];else if(se<1e3||!c.TYPED_ARRAY_SUPPORT)for(J=0;J>>=0,F=F===void 0?this.length:F>>>0,O||(O=0),typeof O=="number")for(se=M;se55295&&F<57344){if(!J){if(F>56319){(M-=3)>-1&&se.push(239,191,189);continue}if(ge+1===ee){(M-=3)>-1&&se.push(239,191,189);continue}J=F;continue}if(F<56320){(M-=3)>-1&&se.push(239,191,189),J=F;continue}F=65536+(J-55296<<10|F-56320)}else J&&(M-=3)>-1&&se.push(239,191,189);if(J=null,F<128){if((M-=1)<0)break;se.push(F)}else if(F<2048){if((M-=2)<0)break;se.push(F>>6|192,63&F|128)}else if(F<65536){if((M-=3)<0)break;se.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((M-=4)<0)break;se.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return se}function ae(O){return i.toByteArray(function(M){if((M=function(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(M).replace(V,"")).length<2)return"";for(;M.length%4!=0;)M+="=";return M}(O))}function he(O,M,F,ee){for(var J=0;J=M.length||J>=O.length);++J)M[J+F]=O[J];return J}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(x){if(n===setTimeout)return setTimeout(x,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(x,0);try{return n(x,0)}catch{try{return n.call(null,x,0)}catch{return n.call(this,x,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var l,c=[],d=!1,f=-1;function p(){d&&l&&(d=!1,l.length?c=l.concat(c):f=-1,c.length&&m())}function m(){if(!d){var x=s(p);d=!0;for(var _=c.length;_;){for(l=c,c=[];++f<_;)l&&l[f].run();f=-1,_=c.length}l=null,d=!1,function(w){if(r===clearTimeout)return clearTimeout(w);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(w);try{r(w)}catch{try{return r.call(null,w)}catch{return r.call(this,w)}}}(x)}}function v(x,_){this.fun=x,this.array=_}function y(){}i.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var w=1;w=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._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(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===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(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,l,c,d,f,p;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var m=new Error('Uncaught, unspecified "error" event. ('+s+")");throw m.context=s,m}if(o(l=this._events[a]))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:d=Array.prototype.slice.call(arguments,1),l.apply(this,d)}else if(i(l))for(d=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,f=0;f0&&this._events[a].length>l&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var l=!1;function c(){this.removeListener(a,c),l||(l=!0,s.apply(this,arguments))}return c.listener=s,this.on(a,c),this},n.prototype.removeListener=function(a,s){var l,c,d,f;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(d=(l=this._events[a]).length,c=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(f=d;f-- >0;)if(l[f]===s||l[f].listener&&l[f].listener===s){c=f;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},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 a=n(6);function s(N){var z=this;this.next=null,this.entry=null,this.finish=function(){(function(W,X,G){var Z=W.entry;for(W.entry=null;Z;){var te=Z.callback;X.pendingcb--,te(void 0),Z=Z.next}X.corkedRequestsFree?X.corkedRequestsFree.next=W:X.corkedRequestsFree=W})(z,N)}}e.exports=S;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;S.WritableState=w;var d=n(5);d.inherits=n(2);var f,p={deprecate:n(44)},m=n(24),v=n(7).Buffer,y=o.Uint8Array||function(){},x=n(25);function _(){}function w(N,z){l=l||n(1),N=N||{};var W=z instanceof l;this.objectMode=!!N.objectMode,W&&(this.objectMode=this.objectMode||!!N.writableObjectMode);var X=N.highWaterMark,G=N.writableHighWaterMark,Z=this.objectMode?16:16384;this.highWaterMark=X||X===0?X:W&&(G||G===0)?G:Z,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 te=N.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){(function(q,I){var D=q._writableState,H=D.sync,ie=D.writecb;if(function(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}(D),I)(function(K,re,ae,he,O){--re.pendingcb,ae?(a.nextTick(O,he),a.nextTick($,K,re),K._writableState.errorEmitted=!0,K.emit("error",he)):(O(he),K._writableState.errorEmitted=!0,K.emit("error",he),$(K,re))})(q,D,H,I,ie);else{var V=j(D);V||D.corked||D.bufferProcessing||!D.bufferedRequest||k(q,D),H?c(C,q,D,V,ie):C(q,D,V,ie)}})(z,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 s(this)}function S(N){if(l=l||n(1),!(f.call(S,this)||this instanceof l))return new S(N);this._writableState=new w(N,this),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),m.call(this)}function E(N,z,W,X,G,Z,te){z.writelen=X,z.writecb=te,z.writing=!0,z.sync=!0,W?N._writev(G,z.onwrite):N._write(G,Z,z.onwrite),z.sync=!1}function C(N,z,W,X){W||function(G,Z){Z.length===0&&Z.needDrain&&(Z.needDrain=!1,G.emit("drain"))}(N,z),z.pendingcb--,X(),$(N,z)}function k(N,z){z.bufferProcessing=!0;var W=z.bufferedRequest;if(N._writev&&W&&W.next){var X=z.bufferedRequestCount,G=new Array(X),Z=z.corkedRequestsFree;Z.entry=W;for(var te=0,le=!0;W;)G[te]=W,W.isBuf||(le=!1),W=W.next,te+=1;G.allBuffers=le,E(N,z,!0,z.length,G,"",Z.finish),z.pendingcb++,z.lastBufferedRequest=null,Z.next?(z.corkedRequestsFree=Z.next,Z.next=null):z.corkedRequestsFree=new s(z),z.bufferedRequestCount=0}else{for(;W;){var q=W.chunk,I=W.encoding,D=W.callback;if(E(N,z,!1,z.objectMode?1:q.length,q,I,D),W=W.next,z.bufferedRequestCount--,z.writing)break}W===null&&(z.lastBufferedRequest=null)}z.bufferedRequest=W,z.bufferProcessing=!1}function j(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function A(N,z){N._final(function(W){z.pendingcb--,W&&N.emit("error",W),z.prefinished=!0,N.emit("prefinish"),$(N,z)})}function $(N,z){var W=j(z);return W&&(function(X,G){G.prefinished||G.finalCalled||(typeof X._final=="function"?(G.pendingcb++,G.finalCalled=!0,a.nextTick(A,X,G)):(G.prefinished=!0,X.emit("prefinish")))}(N,z),z.pendingcb===0&&(z.finished=!0,N.emit("finish"))),W}d.inherits(S,m),w.prototype.getBuffer=function(){for(var N=this.bufferedRequest,z=[];N;)z.push(N),N=N.next;return z},function(){try{Object.defineProperty(w.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"?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(N){return!!f.call(this,N)||this===S&&N&&N._writableState instanceof w}})):f=function(N){return N instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(N,z,W){var X=this._writableState,G=!1,Z=!X.objectMode&&function(te){return v.isBuffer(te)||te instanceof y}(N);return Z&&!v.isBuffer(N)&&(N=function(te){return v.from(te)}(N)),typeof z=="function"&&(W=z,z=null),Z?z="buffer":z||(z=X.defaultEncoding),typeof W!="function"&&(W=_),X.ended?function(te,le){var q=new Error("write after end");te.emit("error",q),a.nextTick(le,q)}(this,W):(Z||function(te,le,q,I){var D=!0,H=!1;return q===null?H=new TypeError("May not write null values to stream"):typeof q=="string"||q===void 0||le.objectMode||(H=new TypeError("Invalid non-string/buffer chunk")),H&&(te.emit("error",H),a.nextTick(I,H),D=!1),D}(this,X,N,W))&&(X.pendingcb++,G=function(te,le,q,I,D,H){if(!q){var ie=function(ae,he,O){return ae.objectMode||ae.decodeStrings===!1||typeof he!="string"||(he=v.from(he,O)),he}(le,I,D);I!==ie&&(q=!0,D="buffer",I=ie)}var V=le.objectMode?1:I.length;le.length+=V;var K=le.length-1))throw new TypeError("Unknown encoding: "+N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(N,z,W){W(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(N,z,W){var X=this._writableState;typeof N=="function"?(W=N,N=null,z=null):typeof z=="function"&&(W=z,z=null),N!=null&&this.write(N,z),X.corked&&(X.corked=1,this.uncork()),X.ending||X.finished||function(G,Z,te){Z.ending=!0,$(G,Z),te&&(Z.finished?a.nextTick(te):G.once("finish",te)),Z.ended=!0,G.writable=!1}(this,X,W)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),S.prototype.destroy=x.destroy,S.prototype._undestroy=x.undestroy,S.prototype._destroy=function(N,z){this.end(),z(N)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,l,c){function d(m,v){if(!l[m]){if(!s[m]){var y=typeof _dereq_=="function"&&_dereq_;if(!v&&y)return y(m,!0);if(f)return f(m,!0);var x=new Error("Cannot find module '"+m+"'");throw x.code="MODULE_NOT_FOUND",x}var _=l[m]={exports:{}};s[m][0].call(_.exports,function(w){return d(s[m][1][w]||w)},_,_.exports,a,s,l,c)}return l[m].exports}for(var f=typeof _dereq_=="function"&&_dereq_,p=0;p0;){var w=_.shift();if(typeof w=="function"){var S=_.shift(),E=_.shift();w.call(S,E)}else w._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},s.exports=m,s.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(c,d,f,p){var m=!1,v=function(w,S){this._reject(S)},y=function(w,S){S.promiseRejectionQueued=!0,S.bindingPromise._then(v,v,null,this,w)},x=function(w,S){!(50397184&this._bitField)&&this._resolveCallback(S.target)},_=function(w,S){S.promiseRejectionQueued||this._reject(w)};c.prototype.bind=function(w){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var S=f(w),E=new c(d);E._propagateFrom(this,1);var C=this._target();if(E._setBoundTo(S),S instanceof c){var k={promiseRejectionQueued:!1,promise:E,target:C,bindingPromise:S};C._then(d,y,void 0,E,k),S._then(x,_,void 0,E,k),E._setOnCancel(S)}else E._resolveCallback(C);return E},c.prototype._setBoundTo=function(w){w!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=w):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(w,S){return c.resolve(S).bind(w)}}},{}],4:[function(a,s,l){var c;typeof Promise<"u"&&(c=Promise);var d=a("./promise")();d.noConflict=function(){try{Promise===d&&(Promise=c)}catch{}return d},s.exports=d},{"./promise":22}],5:[function(a,s,l){var c=Object.create;if(c){var d=c(null),f=c(null);d[" size"]=f[" size"]=0}s.exports=function(p){var m=a("./util"),v=m.canEvaluate;function y(w){return function(S,E){var C;if(S!=null&&(C=S[E]),typeof C!="function"){var k="Object "+m.classString(S)+" has no method '"+m.toString(E)+"'";throw new p.TypeError(k)}return C}(w,this.pop()).apply(w,this)}function x(w){return w[this]}function _(w){var S=+this;return S<0&&(S=Math.max(0,S+w.length)),w[S]}m.isIdentifier,p.prototype.call=function(w){var S=[].slice.call(arguments,1);return S.push(w),this._then(y,void 0,void 0,S,void 0)},p.prototype.get=function(w){var S;if(typeof w=="number")S=_;else if(v){var E=(void 0)(w);S=E!==null?E:x}else S=x;return this._then(S,void 0,void 0,w,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(c,d,f,p){var m=a("./util"),v=m.tryCatch,y=m.errorObj,x=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var _=this,w=_;_._isCancellable();){if(!_._cancelBy(w)){w._isFollowing()?w._followee().cancel():w._cancelBranched();break}var S=_._cancellationParent;if(S==null||!S._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),w=_,_=S}},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(),x.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(_,w){if(m.isArray(_))for(var S=0;S<_.length;++S)this._doInvokeOnCancel(_[S],w);else if(_!==void 0)if(typeof _=="function"){if(!w){var E=v(_).call(this._boundValue());E===y&&(this._attachExtraTrace(E.e),x.throwLater(E.e))}}else _._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),x.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(a,s,l){s.exports=function(c){var d=a("./util"),f=a("./es5").keys,p=d.tryCatch,m=d.errorObj;return function(v,y,x){return function(_){var w=x._boundValue();e:for(var S=0;S=0)return f[v]}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,f.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var v=f.pop(),y=v._promiseCreated;return v._promiseCreated=null,y}return null},p.CapturedTrace=null,p.create=function(){if(d)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var v=c.prototype._pushContext,y=c.prototype._popContext,x=c._peekContext,_=c.prototype._peekContext,w=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=v,c.prototype._popContext=y,c._peekContext=x,c.prototype._peekContext=_,c.prototype._promiseCreated=w,d=!1},d=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var S=this._peekContext();S&&S._promiseCreated==null&&(S._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(c,d){var f,p,m,v=c._getDomain,y=c._async,x=a("./errors").Warning,_=a("./util"),w=_.canAttachTrace,S=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,E=/\((?:timers\.js):\d+:\d+\)/,C=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,k=null,j=null,A=!1,$=_.env("BLUEBIRD_DEBUG")!=0,N=!(_.env("BLUEBIRD_WARNINGS")==0||!$&&!_.env("BLUEBIRD_WARNINGS")),z=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!$&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),W=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(N||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var ce=this._target();ce._bitField=-1048577&ce._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ce=this;setTimeout(function(){ce._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){ge("rejectionHandled",f,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 ce=this._settledValue();this._setUnhandledRejectionIsNotified(),ge("unhandledRejection",p,ce,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(ce,fe,ye){return F(ce,fe,ye||this)},c.onPossiblyUnhandledRejection=function(ce){var fe=v();p=typeof ce=="function"?fe===null?ce:_.domainBind(fe,ce):void 0},c.onUnhandledRejectionHandled=function(ce){var fe=v();f=typeof ce=="function"?fe===null?ce:_.domainBind(fe,ce):void 0};var X=function(){};c.longStackTraces=function(){if(y.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);if(!Le.longStackTraces&&ue()){var ce=c.prototype._captureStackTrace,fe=c.prototype._attachExtraTrace;Le.longStackTraces=!0,X=function(){if(y.haveItemsQueued()&&!Le.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);c.prototype._captureStackTrace=ce,c.prototype._attachExtraTrace=fe,d.deactivateLongStackTraces(),y.enableTrampoline(),Le.longStackTraces=!1},c.prototype._captureStackTrace=O,c.prototype._attachExtraTrace=M,d.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Le.longStackTraces&&ue()};var G=function(){try{if(typeof CustomEvent=="function"){var ce=new CustomEvent("CustomEvent");return _.global.dispatchEvent(ce),function(fe,ye){var ve=new CustomEvent(fe.toLowerCase(),{detail:ye,cancelable:!0});return!_.global.dispatchEvent(ve)}}return typeof Event=="function"?(ce=new Event("CustomEvent"),_.global.dispatchEvent(ce),function(fe,ye){var ve=new Event(fe.toLowerCase(),{cancelable:!0});return ve.detail=ye,!_.global.dispatchEvent(ve)}):((ce=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(ce),function(fe,ye){var ve=document.createEvent("CustomEvent");return ve.initCustomEvent(fe.toLowerCase(),!1,!0,ye),!_.global.dispatchEvent(ve)})}catch{}return function(){return!1}}(),Z=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(ce){var fe="on"+ce.toLowerCase(),ye=_.global[fe];return!!ye&&(ye.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function te(ce,fe){return{promise:fe}}var le={promiseCreated:te,promiseFulfilled:te,promiseRejected:te,promiseResolved:te,promiseCancelled:te,promiseChained:function(ce,fe,ye){return{promise:fe,child:ye}},warning:function(ce,fe){return{warning:fe}},unhandledRejection:function(ce,fe,ye){return{reason:fe,promise:ye}},rejectionHandled:te},q=function(ce){var fe=!1;try{fe=Z.apply(null,arguments)}catch(ve){y.throwLater(ve),fe=!0}var ye=!1;try{ye=G(ce,le[ce].apply(null,arguments))}catch(ve){y.throwLater(ve),ye=!0}return ye||fe};function I(){return!1}function D(ce,fe,ye){var ve=this;try{ce(fe,ye,function(xe){if(typeof xe!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(xe));ve._attachCancellationCallback(xe)})}catch(xe){return xe}}function H(ce){if(!this._isCancellable())return this;var fe=this._onCancel();fe!==void 0?_.isArray(fe)?fe.push(ce):this._setOnCancel([fe,ce]):this._setOnCancel(ce)}function ie(){return this._onCancelField}function V(ce){this._onCancelField=ce}function K(){this._cancellationParent=void 0,this._onCancelField=void 0}function re(ce,fe){if(1&fe){this._cancellationParent=ce;var ye=ce._branchesRemainingToCancel;ye===void 0&&(ye=0),ce._branchesRemainingToCancel=ye+1}2&fe&&ce._isBound()&&this._setBoundTo(ce._boundTo)}c.config=function(ce){if("longStackTraces"in(ce=Object(ce))&&(ce.longStackTraces?c.longStackTraces():!ce.longStackTraces&&c.hasLongStackTraces()&&X()),"warnings"in ce){var fe=ce.warnings;Le.warnings=!!fe,W=Le.warnings,_.isObject(fe)&&"wForgottenReturn"in fe&&(W=!!fe.wForgottenReturn)}if("cancellation"in ce&&ce.cancellation&&!Le.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=K,c.prototype._propagateFrom=re,c.prototype._onCancel=ie,c.prototype._setOnCancel=V,c.prototype._attachCancellationCallback=H,c.prototype._execute=D,ae=re,Le.cancellation=!0}return"monitoring"in ce&&(ce.monitoring&&!Le.monitoring?(Le.monitoring=!0,c.prototype._fireEvent=q):!ce.monitoring&&Le.monitoring&&(Le.monitoring=!1,c.prototype._fireEvent=I)),c},c.prototype._fireEvent=I,c.prototype._execute=function(ce,fe,ye){try{ce(fe,ye)}catch(ve){return ve}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(ce){},c.prototype._attachCancellationCallback=function(ce){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(ce,fe){};var ae=function(ce,fe){2&fe&&ce._isBound()&&this._setBoundTo(ce._boundTo)};function he(){var ce=this._boundTo;return ce!==void 0&&ce instanceof c?ce.isFulfilled()?ce.value():void 0:ce}function O(){this._trace=new ke(this._peekContext())}function M(ce,fe){if(w(ce)){var ye=this._trace;if(ye!==void 0&&fe&&(ye=ye._parent),ye!==void 0)ye.attachExtraTrace(ce);else if(!ce.__stackCleaned__){var ve=J(ce);_.notEnumerableProp(ce,"stack",ve.message+` +`+ve.stack.join(` +`)),_.notEnumerableProp(ce,"__stackCleaned__",!0)}}}function F(ce,fe,ye){if(Le.warnings){var ve,xe=new x(ce);if(fe)ye._attachExtraTrace(xe);else if(Le.longStackTraces&&(ve=c._peekContext()))ve.attachExtraTrace(xe);else{var Pe=J(xe);xe.stack=Pe.message+` +`+Pe.stack.join(` +`)}q("warning",xe)||se(xe,"",!0)}}function ee(ce){for(var fe=[],ye=0;ye0?function(ve){for(var xe=ve.stack.replace(/\s+$/g,"").split(` +`),Pe=0;Pe0&&ve.name!="SyntaxError"&&(xe=xe.slice(Pe)),xe}(ce):[" (No stack trace)"],{message:ye,stack:ce.name=="SyntaxError"?fe:ee(fe)}}function se(ce,fe,ye){if(typeof console<"u"){var ve;if(_.isObject(ce)){var xe=ce.stack;ve=fe+j(xe,ce)}else ve=fe+String(ce);typeof m=="function"?m(ve,ye):typeof console.log!="function"&&typeof console.log!="object"||console.log(ve)}}function ge(ce,fe,ye,ve){var xe=!1;try{typeof fe=="function"&&(xe=!0,ce==="rejectionHandled"?fe(ve):fe(ye,ve))}catch(Pe){y.throwLater(Pe)}ce==="unhandledRejection"?q(ce,ye,ve)||xe||se(ye,"Unhandled rejection "):q(ce,ve)}function Me(ce){var fe;if(typeof ce=="function")fe="[function "+(ce.name||"anonymous")+"]";else{if(fe=ce&&typeof ce.toString=="function"?ce.toString():_.toString(ce),/\[object [a-zA-Z0-9$_]+\]/.test(fe))try{fe=JSON.stringify(ce)}catch{}fe.length===0&&(fe="(empty array)")}return"(<"+function(ye){return ye.length<41?ye:ye.substr(0,38)+"..."}(fe)+">, no stack trace)"}function ue(){return typeof Ce=="function"}var me=function(){return!1},_e=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Se(ce){var fe=ce.match(_e);if(fe)return{fileName:fe[1],line:parseInt(fe[2],10)}}function ke(ce){this._parent=ce,this._promisesCreated=0;var fe=this._length=1+(ce===void 0?0:ce._length);Ce(this,ke),fe>32&&this.uncycle()}_.inherits(ke,Error),d.CapturedTrace=ke,ke.prototype.uncycle=function(){var ce=this._length;if(!(ce<2)){for(var fe=[],ye={},ve=0,xe=this;xe!==void 0;++ve)fe.push(xe),xe=xe._parent;for(ve=(ce=this._length=ve)-1;ve>=0;--ve){var Pe=fe[ve].stack;ye[Pe]===void 0&&(ye[Pe]=ve)}for(ve=0;ve0&&(fe[Ne-1]._parent=void 0,fe[Ne-1]._length=1),fe[ve]._parent=void 0,fe[ve]._length=1;var Qe=ve>0?fe[ve-1]:this;Ne=0;--Ge)fe[Ge]._length=et,et++;return}}}},ke.prototype.attachExtraTrace=function(ce){if(!ce.__stackCleaned__){this.uncycle();for(var fe=J(ce),ye=fe.message,ve=[fe.stack],xe=this;xe!==void 0;)ve.push(ee(xe.stack.split(` +`))),xe=xe._parent;(function(Pe){for(var Ne=Pe[0],Qe=1;Qe=0;--Cn)if(et[Cn]===Qt){Wt=Cn;break}for(Cn=Wt;Cn>=0;--Cn){var fr=et[Cn];if(Ne[Ge]!==fr)break;Ne.pop(),Ge--}Ne=et}})(ve),function(Pe){for(var Ne=0;Ne=0)return k=/@/,j=fe,A=!0,function(Pe){Pe.stack=new Error().stack};try{throw new Error}catch(Pe){ve="stack"in Pe}return"stack"in xe||!ve||typeof Error.stackTraceLimit!="number"?(j=function(Pe,Ne){return typeof Pe=="string"?Pe:typeof Ne!="object"&&typeof Ne!="function"||Ne.name===void 0||Ne.message===void 0?Me(Ne):Ne.toString()},null):(k=ce,j=fe,function(Pe){Error.stackTraceLimit+=6;try{throw new Error}catch(Ne){Pe.stack=Ne.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(ce){console.warn(ce)},_.isNode&&r.stderr.isTTY?m=function(ce,fe){var ye=fe?"\x1B[33m":"\x1B[31m";console.warn(ye+ce+`\x1B[0m +`)}:_.isNode||typeof new Error().stack!="string"||(m=function(ce,fe){console.warn("%c"+ce,fe?"color: darkorange":"color: red")}));var Le={warnings:N,longStackTraces:!1,cancellation:!1,monitoring:!1};return z&&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 he},checkForgottenReturns:function(ce,fe,ye,ve,xe){if(ce===void 0&&fe!==null&&W){if(xe!==void 0&&xe._returnedNonUndefined()||!(65535&ve._bitField))return;ye&&(ye+=" ");var Pe="",Ne="";if(fe._trace){for(var Qe=fe._trace.stack.split(` +`),et=ee(Qe),Ge=et.length-1;Ge>=0;--Ge){var Qt=et[Ge];if(!E.test(Qt)){var Wt=Qt.match(C);Wt&&(Pe="at "+Wt[1]+":"+Wt[2]+":"+Wt[3]+" ");break}}if(et.length>0){var Cn=et[0];for(Ge=0;Ge0&&(Ne=` +`+Qe[Ge-1]);break}}}var fr="a promise was created in a "+ye+"handler "+Pe+"but was not returned from it, see http://goo.gl/rRqMUw"+Ne;ve._warn(fr,!0,fe)}},setBounds:function(ce,fe){if(ue()){for(var ye,ve,xe=ce.stack.split(` +`),Pe=fe.stack.split(` +`),Ne=-1,Qe=-1,et=0;et=Qe||(me=function(Qt){if(S.test(Qt))return!0;var Wt=Se(Qt);return!!(Wt&&Wt.fileName===ye&&Ne<=Wt.line&&Wt.line<=Qe)})}},warn:F,deprecated:function(ce,fe){var ye=ce+" is deprecated and will be removed in a future version.";return fe&&(ye+=" Use "+fe+" instead."),F(ye)},CapturedTrace:ke,fireDomEvent:G,fireGlobalEvent:Z}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(c){function d(){return this.value}function f(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(d,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(f,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,f,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,d,void 0,{value:p},void 0);var m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(a,s,l){s.exports=function(c,d){var f=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(v){return f(this,v,d,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(v){return f(this,v,d,d)},c.each=function(v,y){return f(v,y,d,0)._then(m,void 0,void 0,v,void 0)},c.mapSeries=function(v,y){return f(v,y,d,d)}}},{}],12:[function(a,s,l){var c,d,f=a("./es5"),p=f.freeze,m=a("./util"),v=m.inherits,y=m.notEnumerableProp;function x(N,z){function W(X){if(!(this instanceof W))return new W(X);y(this,"message",typeof X=="string"?X:z),y(this,"name",N),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(W,Error),W}var _=x("Warning","warning"),w=x("CancellationError","cancellation error"),S=x("TimeoutError","timeout error"),E=x("AggregateError","aggregate error");try{c=TypeError,d=RangeError}catch{c=x("TypeError","type error"),d=x("RangeError","range error")}for(var C="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),k=0;k1?k.cancelPromise._reject(j):k.cancelPromise._cancel(),k.cancelPromise=null,!0)}function S(){return C.call(this,this.promise._target()._settledValue())}function E(k){if(!w(this,k))return v.e=k,v}function C(k){var j=this.promise,A=this.handler;if(!this.called){this.called=!0;var $=this.isFinallyHandler()?A.call(j._boundValue()):A.call(j._boundValue(),k);if($===f)return $;if($!==void 0){j._setReturnedNonUndefined();var N=d($,j);if(N instanceof c){if(this.cancelPromise!=null){if(N._isCancelled()){var z=new m("late cancellation observer");return j._attachExtraTrace(z),v.e=z,v}N.isPending()&&N._attachCancellationCallback(new _(this))}return N._then(S,E,void 0,this,void 0)}}}return j.isRejected()?(w(this),v.e=k,v):(w(this),k)}return x.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){w(this.finallyHandler)},c.prototype._passThrough=function(k,j,A,$){return typeof k!="function"?this.then():this._then(A,$,void 0,new x(this,j,k),void 0)},c.prototype.lastly=c.prototype.finally=function(k){return this._passThrough(k,0,C,C)},c.prototype.tap=function(k){return this._passThrough(k,1,C)},c.prototype.tapCatch=function(k){var j=arguments.length;if(j===1)return this._passThrough(k,1,void 0,C);var A,$=new Array(j-1),N=0;for(A=0;A0&&typeof arguments[_]=="function"&&(x=arguments[_]);var w=[].slice.call(arguments);x&&w.pop();var S=new d(w).promise();return x!==void 0?S.spread(x):S}}},{"./util":36}],18:[function(a,s,l){s.exports=function(c,d,f,p,m,v){var y=c._getDomain,x=a("./util"),_=x.tryCatch,w=x.errorObj,S=c._async;function E(k,j,A,$){this.constructor$(k),this._promise._captureStackTrace();var N=y();this._callback=N===null?j:x.domainBind(N,j),this._preservedValues=$===m?new Array(this.length()):null,this._limit=A,this._inFlight=0,this._queue=[],S.invoke(this._asyncInit,this,void 0)}function C(k,j,A,$){if(typeof j!="function")return f("expecting a function but got "+x.classString(j));var N=0;if(A!==void 0){if(typeof A!="object"||A===null)return c.reject(new TypeError("options argument must be an object but it is "+x.classString(A)));if(typeof A.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+x.classString(A.concurrency)));N=A.concurrency}return new E(k,j,N=typeof N=="number"&&isFinite(N)&&N>=1?N:0,$).promise()}x.inherits(E,d),E.prototype._asyncInit=function(){this._init$(void 0,-2)},E.prototype._init=function(){},E.prototype._promiseFulfilled=function(k,j){var A=this._values,$=this.length(),N=this._preservedValues,z=this._limit;if(j<0){if(A[j=-1*j-1]=k,z>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(z>=1&&this._inFlight>=z)return A[j]=k,this._queue.push(j),!1;N!==null&&(N[j]=k);var W=this._promise,X=this._callback,G=W._boundValue();W._pushContext();var Z=_(X).call(G,k,j,$),te=W._popContext();if(v.checkForgottenReturns(Z,te,N!==null?"Promise.filter":"Promise.map",W),Z===w)return this._reject(Z.e),!0;var le=p(Z,this._promise);if(le instanceof c){var q=(le=le._target())._bitField;if(!(50397184&q))return z>=1&&this._inFlight++,A[j]=le,le._proxy(this,-1*(j+1)),!1;if(!(33554432&q))return 16777216&q?(this._reject(le._reason()),!0):(this._cancel(),!0);Z=le._value()}A[j]=Z}return++this._totalResolved>=$&&(N!==null?this._filter(A,N):this._resolve(A),!0)},E.prototype._drainQueue=function(){for(var k=this._queue,j=this._limit,A=this._values;k.length>0&&this._inFlight1){m.deprecated("calling Promise.try with more than 1 argument");var S=arguments[1],E=arguments[2];_=v.isArray(S)?y(x).apply(E,S):y(x).call(E,S)}else _=y(x)();var C=w._popContext();return m.checkForgottenReturns(_,C,"Promise.try",w),w._resolveFromSyncValue(_),w},c.prototype._resolveFromSyncValue=function(x){x===v.errorObj?this._rejectCallback(x.e,!1):this._resolveCallback(x,!0)}}},{"./util":36}],20:[function(a,s,l){var c=a("./util"),d=c.maybeWrapAsError,f=a("./errors").OperationalError,p=a("./es5"),m=/^(?:name|message|stack|cause)$/;function v(y){var x;if(function(E){return E instanceof Error&&p.getPrototypeOf(E)===Error.prototype}(y)){(x=new f(y)).name=y.name,x.message=y.message,x.stack=y.stack;for(var _=p.keys(y),w=0;w<_.length;++w){var S=_[w];m.test(S)||(x[S]=y[S])}return x}return c.markAsOriginatingFromRejection(y),y}s.exports=function(y,x){return function(_,w){if(y!==null){if(_){var S=v(d(_));y._attachExtraTrace(S),y._reject(S)}else if(x){var E=[].slice.call(arguments,1);y._fulfill(E)}else y._fulfill(w);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(c){var d=a("./util"),f=c._async,p=d.tryCatch,m=d.errorObj;function v(_,w){if(!d.isArray(_))return y.call(this,_,w);var S=p(w).apply(this._boundValue(),[null].concat(_));S===m&&f.throwLater(S.e)}function y(_,w){var S=this._boundValue(),E=_===void 0?p(w).call(S,null):p(w).call(S,null,_);E===m&&f.throwLater(E.e)}function x(_,w){if(!_){var S=new Error(_+"");S.cause=_,_=S}var E=p(w).call(this._boundValue(),_);E===m&&f.throwLater(E.e)}c.prototype.asCallback=c.prototype.nodeify=function(_,w){if(typeof _=="function"){var S=y;w!==void 0&&Object(w).spread&&(S=v),this._then(S,x,void 0,this,_)}return this}}},{"./util":36}],22:[function(a,s,l){s.exports=function(){var c=function(){return new E(`circular promise resolution chain + + See http://goo.gl/MqrFmX +`)},d=function(){return new I.PromiseInspection(this._target())},f=function(V){return I.reject(new E(V))};function p(){}var m,v={},y=a("./util");m=y.isNode?function(){var V=r.domain;return V===void 0&&(V=null),V}:function(){return null},y.notEnumerableProp(I,"_getDomain",m);var x=a("./es5"),_=a("./async"),w=new _;x.defineProperty(I,"_async",{value:w});var S=a("./errors"),E=I.TypeError=S.TypeError;I.RangeError=S.RangeError;var C=I.CancellationError=S.CancellationError;I.TimeoutError=S.TimeoutError,I.OperationalError=S.OperationalError,I.RejectionError=S.OperationalError,I.AggregateError=S.AggregateError;var k=function(){},j={},A={},$=a("./thenables")(I,k),N=a("./promise_array")(I,k,$,f,p),z=a("./context")(I),W=z.create,X=a("./debuggability")(I,z),G=(X.CapturedTrace,a("./finally")(I,$,A)),Z=a("./catch_filter")(A),te=a("./nodeback"),le=y.errorObj,q=y.tryCatch;function I(V){V!==k&&function(K,re){if(K==null||K.constructor!==I)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 "+y.classString(re))}(this,V),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(V),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function D(V){this.promise._resolveCallback(V)}function H(V){this.promise._rejectCallback(V,!1)}function ie(V){var K=new I(k);K._fulfillmentHandler0=V,K._rejectionHandler0=V,K._promise0=V,K._receiver0=V}return I.prototype.toString=function(){return"[object Promise]"},I.prototype.caught=I.prototype.catch=function(V){var K=arguments.length;if(K>1){var re,ae=new Array(K-1),he=0;for(re=0;re0&&typeof V!="function"&&typeof K!="function"){var re=".then() only accepts functions but was passed: "+y.classString(V);arguments.length>1&&(re+=", "+y.classString(K)),this._warn(re)}return this._then(V,K,void 0,void 0,void 0)},I.prototype.done=function(V,K){this._then(V,K,void 0,void 0,void 0)._setIsFinal()},I.prototype.spread=function(V){return typeof V!="function"?f("expecting a function but got "+y.classString(V)):this.all()._then(V,void 0,void 0,j,void 0)},I.prototype.toJSON=function(){var V={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(V.fulfillmentValue=this.value(),V.isFulfilled=!0):this.isRejected()&&(V.rejectionReason=this.reason(),V.isRejected=!0),V},I.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new N(this).promise()},I.prototype.error=function(V){return this.caught(y.originatesFromRejection,V)},I.getNewLibraryCopy=s.exports,I.is=function(V){return V instanceof I},I.fromNode=I.fromCallback=function(V){var K=new I(k);K._captureStackTrace();var re=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=q(V)(te(K,re));return ae===le&&K._rejectCallback(ae.e,!0),K._isFateSealed()||K._setAsyncGuaranteed(),K},I.all=function(V){return new N(V).promise()},I.cast=function(V){var K=$(V);return K instanceof I||((K=new I(k))._captureStackTrace(),K._setFulfilled(),K._rejectionHandler0=V),K},I.resolve=I.fulfilled=I.cast,I.reject=I.rejected=function(V){var K=new I(k);return K._captureStackTrace(),K._rejectCallback(V,!0),K},I.setScheduler=function(V){if(typeof V!="function")throw new E("expecting a function but got "+y.classString(V));return w.setScheduler(V)},I.prototype._then=function(V,K,re,ae,he){var O=he!==void 0,M=O?he:new I(k),F=this._target(),ee=F._bitField;O||(M._propagateFrom(this,3),M._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&ee?this._boundValue():F===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,M));var J=m();if(50397184&ee){var se,ge,Me=F._settlePromiseCtx;33554432&ee?(ge=F._rejectionHandler0,se=V):16777216&ee?(ge=F._fulfillmentHandler0,se=K,F._unsetRejectionIsUnhandled()):(Me=F._settlePromiseLateCancellationObserver,ge=new C("late cancellation observer"),F._attachExtraTrace(ge),se=K),w.invoke(Me,F,{handler:J===null?se:typeof se=="function"&&y.domainBind(J,se),promise:M,receiver:ae,value:ge})}else F._addCallbacks(V,K,M,ae,J);return M},I.prototype._length=function(){return 65535&this._bitField},I.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},I.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},I.prototype._setLength=function(V){this._bitField=-65536&this._bitField|65535&V},I.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},I.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},I.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},I.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},I.prototype._isFinal=function(){return(4194304&this._bitField)>0},I.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},I.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},I.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},I.prototype._setAsyncGuaranteed=function(){w.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},I.prototype._receiverAt=function(V){var K=V===0?this._receiver0:this[4*V-4+3];if(K!==v)return K===void 0&&this._isBound()?this._boundValue():K},I.prototype._promiseAt=function(V){return this[4*V-4+2]},I.prototype._fulfillmentHandlerAt=function(V){return this[4*V-4+0]},I.prototype._rejectionHandlerAt=function(V){return this[4*V-4+1]},I.prototype._boundValue=function(){},I.prototype._migrateCallback0=function(V){V._bitField;var K=V._fulfillmentHandler0,re=V._rejectionHandler0,ae=V._promise0,he=V._receiverAt(0);he===void 0&&(he=v),this._addCallbacks(K,re,ae,he,null)},I.prototype._migrateCallbackAt=function(V,K){var re=V._fulfillmentHandlerAt(K),ae=V._rejectionHandlerAt(K),he=V._promiseAt(K),O=V._receiverAt(K);O===void 0&&(O=v),this._addCallbacks(re,ae,he,O,null)},I.prototype._addCallbacks=function(V,K,re,ae,he){var O=this._length();if(O>=65531&&(O=0,this._setLength(0)),O===0)this._promise0=re,this._receiver0=ae,typeof V=="function"&&(this._fulfillmentHandler0=he===null?V:y.domainBind(he,V)),typeof K=="function"&&(this._rejectionHandler0=he===null?K:y.domainBind(he,K));else{var M=4*O-4;this[M+2]=re,this[M+3]=ae,typeof V=="function"&&(this[M+0]=he===null?V:y.domainBind(he,V)),typeof K=="function"&&(this[M+1]=he===null?K:y.domainBind(he,K))}return this._setLength(O+1),O},I.prototype._proxy=function(V,K){this._addCallbacks(void 0,void 0,K,V,null)},I.prototype._resolveCallback=function(V,K){if(!(117506048&this._bitField)){if(V===this)return this._rejectCallback(c(),!1);var re=$(V,this);if(!(re instanceof I))return this._fulfill(V);K&&this._propagateFrom(re,2);var ae=re._target();if(ae!==this){var he=ae._bitField;if(50397184&he)if(33554432&he)this._fulfill(ae._value());else if(16777216&he)this._reject(ae._reason());else{var F=new C("late cancellation observer");ae._attachExtraTrace(F),this._reject(F)}else{var O=this._length();O>0&&ae._migrateCallback0(this);for(var M=1;M>>16)){if(V===this){var re=c();return this._attachExtraTrace(re),this._reject(re)}this._setFulfilled(),this._rejectionHandler0=V,(65535&K)>0&&(134217728&K?this._settlePromises():w.settlePromises(this))}},I.prototype._reject=function(V){var K=this._bitField;if(!((117506048&K)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=V,this._isFinal())return w.fatalError(V,y.isNode);(65535&K)>0?w.settlePromises(this):this._ensurePossibleRejectionHandled()}},I.prototype._fulfillPromises=function(V,K){for(var re=1;re0){if(16842752&V){var re=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,re,V),this._rejectPromises(K,re)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,V),this._fulfillPromises(K,ae)}this._setLength(0)}this._clearCancellationData()},I.prototype._settledValue=function(){var V=this._bitField;return 33554432&V?this._rejectionHandler0:16777216&V?this._fulfillmentHandler0:void 0},I.defer=I.pending=function(){return X.deprecated("Promise.defer","new Promise"),{promise:new I(k),resolve:D,reject:H}},y.notEnumerableProp(I,"_makeSelfResolutionError",c),a("./method")(I,k,$,f,X),a("./bind")(I,k,$,X),a("./cancel")(I,N,f,X),a("./direct_resolve")(I),a("./synchronous_inspection")(I),a("./join")(I,N,$,k,w,m),I.Promise=I,I.version="3.5.1",a("./map.js")(I,N,f,$,k,X),a("./call_get.js")(I),a("./using.js")(I,f,$,W,k,X),a("./timers.js")(I,k,X),a("./generators.js")(I,f,k,$,p,X),a("./nodeify.js")(I),a("./promisify.js")(I,k),a("./props.js")(I,N,$,f),a("./race.js")(I,k,$,f),a("./reduce.js")(I,N,f,$,k,X),a("./settle.js")(I,N,X),a("./some.js")(I,N,f),a("./filter.js")(I,k),a("./each.js")(I,k),a("./any.js")(I),y.toFastProperties(I),y.toFastProperties(I.prototype),ie({a:1}),ie({b:2}),ie({c:3}),ie(1),ie(function(){}),ie(void 0),ie(!1),ie(new I(k)),X.setBounds(_.firstLineError,y.lastLineError),I}},{"./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(a,s,l){s.exports=function(c,d,f,p,m){var v=a("./util");function y(x){var _=this._promise=new c(d);x instanceof c&&_._propagateFrom(x,3),_._setOnCancel(this),this._values=x,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return v.isArray,v.inherits(y,m),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function x(_,w){var S=f(this._values,this._promise);if(S instanceof c){var E=(S=S._target())._bitField;if(this._values=S,(50397184&E)==0)return this._promise._setAsyncGuaranteed(),S._then(x,this._reject,void 0,this,w);if(!(33554432&E))return 16777216&E?this._reject(S._reason()):this._cancel();S=S._value()}if((S=v.asArray(S))!==null)S.length!==0?this._iterate(S):w===-5?this._resolveEmptyArray():this._resolve(function(k){switch(w){case-2:return[];case-3:return{};case-6:return new Map}}());else{var C=p("expecting an array or an iterable object but got "+v.classString(S)).reason();this._promise._rejectCallback(C,!1)}},y.prototype._iterate=function(x){var _=this.getActualLength(x.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var w=this._promise,S=!1,E=null,C=0;C<_;++C){var k=f(x[C],w);E=k instanceof c?(k=k._target())._bitField:null,S?E!==null&&k.suppressUnhandledRejections():E!==null?50397184&E?S=33554432&E?this._promiseFulfilled(k._value(),C):16777216&E?this._promiseRejected(k._reason(),C):this._promiseCancelled(C):(k._proxy(this,C),this._values[C]=k):S=this._promiseFulfilled(k,C)}S||w._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(x){this._values=null,this._promise._fulfill(x)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(x){this._values=null,this._promise._rejectCallback(x,!1)},y.prototype._promiseFulfilled=function(x,_){return this._values[_]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(x){return this._totalResolved++,this._reject(x),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var x=this._values;if(this._cancel(),x instanceof c)x.cancel();else for(var _=0;_=this._length){var k;if(this._isMap)k=function(N){for(var z=new m,W=N.length/2|0,X=0;X>1},c.prototype.props=function(){return S(this)},c.props=function(E){return S(E)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function c(d){this._capacity=d,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(d){return this._capacity"u"){var p=i.setImmediate,m=r.nextTick;c=d.isRecentNode?function(y){p.call(i,y)}:function(y){m.call(r,y)}}else if(typeof f=="function"&&typeof f.resolve=="function"){var v=f.resolve();c=function(y){v.then(y)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(y){o(y)}:typeof setTimeout<"u"?function(y){setTimeout(y,0)}:function(){throw new Error(`No async scheduler available + + See http://goo.gl/MqrFmX +`)}:function(){var y=document.createElement("div"),x={attributes:!0},_=!1,w=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),_=!1}).observe(w,x),function(S){var E=new MutationObserver(function(){E.disconnect(),S()});E.observe(y,x),_||(_=!0,w.classList.toggle("foo"))}}();s.exports=c},{"./util":36}],30:[function(a,s,l){s.exports=function(c,d,f){var p=c.PromiseInspection;function m(v){this.constructor$(v)}a("./util").inherits(m,d),m.prototype._promiseResolved=function(v,y){return this._values[v]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(v,y){var x=new p;return x._bitField=33554432,x._settledValueField=v,this._promiseResolved(y,x)},m.prototype._promiseRejected=function(v,y){var x=new p;return x._bitField=16777216,x._settledValueField=v,this._promiseResolved(y,x)},c.settle=function(v){return f.deprecated(".settle()",".reflect()"),new m(v).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(c,d,f){var p=a("./util"),m=a("./errors").RangeError,v=a("./errors").AggregateError,y=p.isArray,x={};function _(S){this.constructor$(S),this._howMany=0,this._unwrap=!1,this._initialized=!1}function w(S,E){if((0|E)!==E||E<0)return f(`expecting a positive integer + + See http://goo.gl/MqrFmX +`);var C=new _(S),k=C.promise();return C.setHowMany(E),C.init(),k}p.inherits(_,d),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var S=y(this._values);!this._isResolved()&&S&&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(S){this._howMany=S},_.prototype._promiseFulfilled=function(S){return this._addFulfilled(S),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(S){return this._addRejected(S),this._checkOutcome()},_.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(x),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var S=new v,E=this.length();E0?this._reject(S):this._cancel(),!0}return!1},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(S){this._values.push(S)},_.prototype._addFulfilled=function(S){this._values[this._totalResolved++]=S},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(S){var E="Input array must contain at least "+this._howMany+" items but contains only "+S+" items";return new m(E)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(S,E){return w(S,E)},c.prototype.some=function(S){return w(this,S)},c._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(c){function d(_){_!==void 0?(_=_._target(),this._bitField=_._bitField,this._settledValueField=_._isFateSealed()?_._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}d.prototype._settledValue=function(){return this._settledValueField};var f=d.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=d.prototype.error=d.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=d.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},v=d.prototype.isRejected=function(){return(16777216&this._bitField)!=0},y=d.prototype.isPending=function(){return(50397184&this._bitField)==0},x=d.prototype.isResolved=function(){return(50331648&this._bitField)!=0};d.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 y.call(this._target())},c.prototype.isRejected=function(){return v.call(this._target())},c.prototype.isFulfilled=function(){return m.call(this._target())},c.prototype.isResolved=function(){return x.call(this._target())},c.prototype.value=function(){return f.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=d}},{}],33:[function(a,s,l){s.exports=function(c,d){var f=a("./util"),p=f.errorObj,m=f.isObject,v={}.hasOwnProperty;return function(y,x){if(m(y)){if(y instanceof c)return y;var _=function(S){try{return function(E){return E.then}(S)}catch(E){return p.e=E,p}}(y);if(_===p){x&&x._pushContext();var w=c.reject(_.e);return x&&x._popContext(),w}if(typeof _=="function")return function(S){try{return v.call(S,"_promise0")}catch{return!1}}(y)?(w=new c(d),y._then(w._fulfill,w._reject,void 0,w,null),w):function(S,E,C){var k=new c(d),j=k;C&&C._pushContext(),k._captureStackTrace(),C&&C._popContext();var A=!0,$=f.tryCatch(E).call(S,function(N){k&&(k._resolveCallback(N),k=null)},function(N){k&&(k._rejectCallback(N,A,!0),k=null)});return A=!1,k&&$===p&&(k._rejectCallback($.e,!0,!0),k=null),j}(y,_,x)}return y}}},{"./util":36}],34:[function(a,s,l){s.exports=function(c,d,f){var p=a("./util"),m=c.TimeoutError;function v(S){this.handle=S}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(S){return x(+this).thenReturn(S)},x=c.delay=function(S,E){var C,k;return E!==void 0?(C=c.resolve(E)._then(y,null,null,S,void 0),f.cancellation()&&E instanceof c&&C._setOnCancel(E)):(C=new c(d),k=setTimeout(function(){C._fulfill()},+S),f.cancellation()&&C._setOnCancel(new v(k)),C._captureStackTrace()),C._setAsyncGuaranteed(),C};function _(S){return clearTimeout(this.handle),S}function w(S){throw clearTimeout(this.handle),S}c.prototype.delay=function(S){return x(S,this)},c.prototype.timeout=function(S,E){var C,k;S=+S;var j=new v(setTimeout(function(){C.isPending()&&function(A,$,N){var z;z=typeof $!="string"?$ instanceof Error?$:new m("operation timed out"):new m($),p.markAsOriginatingFromRejection(z),A._attachExtraTrace(z),A._reject(z),N!=null&&N.cancel()}(C,E,k)},S));return f.cancellation()?(k=this.then(),(C=k._then(_,w,void 0,j,void 0))._setOnCancel(j)):C=this._then(_,w,void 0,j,void 0),C}}},{"./util":36}],35:[function(a,s,l){s.exports=function(c,d,f,p,m,v){var y=a("./util"),x=a("./errors").TypeError,_=a("./util").inherits,w=y.errorObj,S=y.tryCatch,E={};function C(z){setTimeout(function(){throw z},0)}function k(z,W){var X=0,G=z.length,Z=new c(m);return function te(){if(X>=G)return Z._fulfill();var le=function(q){var I=f(q);return I!==q&&typeof q._isDisposable=="function"&&typeof q._getDisposer=="function"&&q._isDisposable()&&I._setDisposable(q._getDisposer()),I}(z[X++]);if(le instanceof c&&le._isDisposable()){try{le=f(le._getDisposer().tryDispose(W),z.promise)}catch(q){return C(q)}if(le instanceof c)return le._then(te,C,null,null,null)}te()}(),Z}function j(z,W,X){this._data=z,this._promise=W,this._context=X}function A(z,W,X){this.constructor$(z,W,X)}function $(z){return j.isDisposer(z)?(this.resources[this.index]._setDisposable(z),z.promise()):z}function N(z){this.length=z,this.promise=null,this[z-1]=null}j.prototype.data=function(){return this._data},j.prototype.promise=function(){return this._promise},j.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():E},j.prototype.tryDispose=function(z){var W=this.resource(),X=this._context;X!==void 0&&X._pushContext();var G=W!==E?this.doDispose(W,z):null;return X!==void 0&&X._popContext(),this._promise._unsetDisposable(),this._data=null,G},j.isDisposer=function(z){return z!=null&&typeof z.resource=="function"&&typeof z.tryDispose=="function"},_(A,j),A.prototype.doDispose=function(z,W){return this.data().call(z,z,W)},N.prototype._resultCancelled=function(){for(var z=this.length,W=0;W0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(z){if(typeof z=="function")return new A(z,this,p());throw new x}}},{"./errors":12,"./util":36}],36:[function(a,s,l){var c,d=a("./es5"),f=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var G=c;return c=null,G.apply(this,arguments)}catch(Z){return p.e=Z,p}}function y(G){return G==null||G===!0||G===!1||typeof G=="string"||typeof G=="number"}function x(G,Z,te){if(y(G))return G;var le={value:te,configurable:!0,enumerable:!1,writable:!0};return d.defineProperty(G,Z,le),G}var _=function(){var G=[Array.prototype,Object.prototype,Function.prototype],Z=function(q){for(var I=0;I1,le=Z.length>0&&!(Z.length===1&&Z[0]==="constructor"),q=w.test(G+"")&&d.names(G).length>0;if(te||le||q)return!0}return!1}catch{return!1}},isIdentifier:function(G){return S.test(G)},inheritedDataKeys:_,getDataPropertyOrDefault:function(G,Z,te){if(!d.isES5)return{}.hasOwnProperty.call(G,Z)?G[Z]:void 0;var le=Object.getOwnPropertyDescriptor(G,Z);return le!=null?le.get==null&&le.set==null?le.value:te:void 0},thrower:function(G){throw G},isArray:d.isArray,asArray:$,notEnumerableProp:x,isPrimitive:y,isObject:function(G){return typeof G=="function"||typeof G=="object"&&G!==null},isError:C,canEvaluate:f,errorObj:p,tryCatch:function(G){return c=G,v},inherits:function(G,Z){var te={}.hasOwnProperty;function le(){for(var q in this.constructor=G,this.constructor$=Z,Z.prototype)te.call(Z.prototype,q)&&q.charAt(q.length-1)!=="$"&&(this[q+"$"]=Z.prototype[q])}return le.prototype=Z.prototype,G.prototype=new le,G.prototype},withAppended:function(G,Z){var te,le=G.length,q=new Array(le+1);for(te=0;te10||G[0]>0}(),X.isNode&&X.toFastProperties(r);try{throw new Error}catch(G){X.lastLineError=G}s.exports=X},{"./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,a=r.length;o0?(typeof H=="string"||ae.objectMode||Object.getPrototypeOf(H)===d.prototype||(H=function(he){return d.from(he)}(H)),V?ae.endEmitted?D.emit("error",new Error("stream.unshift() after end event")):k(D,ae,H,!0):ae.ended?D.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!ie?(H=ae.decoder.write(H),ae.objectMode||H.length!==0?k(D,ae,H,!1):z(D,ae)):k(D,ae,H,!1))):V||(ae.reading=!1)),function(he){return!he.ended&&(he.needReadable||he.lengthH.highWaterMark&&(H.highWaterMark=function(ie){return ie>=j?ie=j:(ie--,ie|=ie>>>1,ie|=ie>>>2,ie|=ie>>>4,ie|=ie>>>8,ie|=ie>>>16,ie++),ie}(D)),D<=H.length?D:H.ended?H.length:(H.needReadable=!0,0))}function $(D){var H=D._readableState;H.needReadable=!1,H.emittedReadable||(v("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?o.nextTick(N,D):N(D))}function N(D){v("emit readable"),D.emit("readable"),Z(D)}function z(D,H){H.readingMore||(H.readingMore=!0,o.nextTick(W,D,H))}function W(D,H){for(var ie=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length=H.length?(ie=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.head.data:H.buffer.concat(H.length),H.buffer.clear()):ie=function(V,K,re){var ae;return VJ.length?J.length:he;if(se===J.length?ee+=J:ee+=J.slice(0,he),(he-=se)==0){se===J.length?(++F,M.next?O.head=M.next:O.head=O.tail=null):(O.head=M,M.data=J.slice(se));break}++F}return O.length-=F,ee}(V,K):function(he,O){var M=d.allocUnsafe(he),F=O.head,ee=1;for(F.data.copy(M),he-=F.data.length;F=F.next;){var J=F.data,se=he>J.length?J.length:he;if(J.copy(M,M.length-he,0,se),(he-=se)==0){se===J.length?(++ee,F.next?O.head=F.next:O.head=O.tail=null):(O.head=F,F.data=J.slice(se));break}++ee}return O.length-=ee,M}(V,K),ae}(D,H.buffer,H.decoder),ie);var ie}function le(D){var H=D._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,o.nextTick(q,H,D))}function q(D,H){D.endEmitted||D.length!==0||(D.endEmitted=!0,H.readable=!1,H.emit("end"))}function I(D,H){for(var ie=0,V=D.length;ie=H.highWaterMark||H.ended))return v("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?le(this):$(this),null;if((D=A(D,H))===0&&H.ended)return H.length===0&&le(this),null;var V,K=H.needReadable;return v("need readable",K),(H.length===0||H.length-D0?te(D,H):null)===null?(H.needReadable=!0,D=0):H.length-=D,H.length===0&&(H.ended||(H.needReadable=!0),ie!==D&&H.ended&&le(this)),V!==null&&this.emit("data",V),V},E.prototype._read=function(D){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(D,H){var ie=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=D;break;case 1:V.pipes=[V.pipes,D];break;default:V.pipes.push(D)}V.pipesCount+=1,v("pipe count=%d opts=%j",V.pipesCount,H);var K=H&&H.end===!1||D===i.stdout||D===i.stderr?se:re;function re(){v("onend"),D.end()}V.endEmitted?o.nextTick(K):ie.once("end",K),D.on("unpipe",function ge(Me,ue){v("onunpipe"),Me===ie&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),D.removeListener("close",ee),D.removeListener("finish",J),D.removeListener("drain",ae),D.removeListener("error",F),D.removeListener("unpipe",ge),ie.removeListener("end",re),ie.removeListener("end",se),ie.removeListener("data",M),he=!0,!V.awaitDrain||D._writableState&&!D._writableState.needDrain||ae())});var ae=function(ge){return function(){var Me=ge._readableState;v("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&l(ge,"data")&&(Me.flowing=!0,Z(ge))}}(ie);D.on("drain",ae);var he=!1,O=!1;function M(ge){v("ondata"),O=!1,D.write(ge)!==!1||O||((V.pipesCount===1&&V.pipes===D||V.pipesCount>1&&I(V.pipes,D)!==-1)&&!he&&(v("false write response, pause",ie._readableState.awaitDrain),ie._readableState.awaitDrain++,O=!0),ie.pause())}function F(ge){v("onerror",ge),se(),D.removeListener("error",F),l(D,"error")===0&&D.emit("error",ge)}function ee(){D.removeListener("finish",J),se()}function J(){v("onfinish"),D.removeListener("close",ee),se()}function se(){v("unpipe"),ie.unpipe(D)}return ie.on("data",M),function(ge,Me,ue){if(typeof ge.prependListener=="function")return ge.prependListener(Me,ue);ge._events&&ge._events[Me]?s(ge._events[Me])?ge._events[Me].unshift(ue):ge._events[Me]=[ue,ge._events[Me]]:ge.on(Me,ue)}(D,"error",F),D.once("close",ee),D.once("finish",J),D.emit("pipe",ie),V.flowing||(v("pipe resume"),ie.resume()),D},E.prototype.unpipe=function(D){var H=this._readableState,ie={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return D&&D!==H.pipes?this:(D||(D=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,D&&D.emit("unpipe",this,ie),this);if(!D){var V=H.pipes,K=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var re=0;re>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function s(v){var y=this.lastTotal-this.lastNeed,x=function(_,w,S){if((192&w[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&w.length>1){if((192&w[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&w.length>2&&(192&w[2])!=128)return _.lastNeed=2,"�"}}(this,v);return x!==void 0?x:this.lastNeed<=v.length?(v.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,y,0,v.length),void(this.lastNeed-=v.length))}function l(v,y){if((v.length-y)%2==0){var x=v.toString("utf16le",y);if(x){var _=x.charCodeAt(x.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",y,v.length-1)}function c(v){var y=v&&v.length?this.write(v):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,x)}return y}function d(v,y){var x=(v.length-y)%3;return x===0?v.toString("base64",y):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",y,v.length-x))}function f(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function p(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}t.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var y,x;if(this.lastNeed){if((y=this.fillLast(v))===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x=0?(k>0&&(w.lastNeed=k-1),k):--C=0?(k>0&&(w.lastNeed=k-2),k):--C=0?(k>0&&(k===2?k=0:w.lastNeed=k-3),k):0}(this,v,y);if(!this.lastNeed)return v.toString("utf8",y);this.lastTotal=x;var _=v.length-(x-this.lastNeed);return v.copy(this.lastChar,0,_),v.toString("utf8",y,_)},o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.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,d){var f=this._transformState;f.transforming=!1;var p=f.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,d!=null&&this.push(d),p(c);var m=this._readableState;m.reading=!1,(m.needReadable||m.length-1&&a.push(i[s]);return a},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(a,s){a.__proto__=s}||function(a,s){for(var l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,l,c){var d=o.call(this,"Error: "+s+". JSON Line number: "+l+(c?" near: "+c:""))||this;return d.err=s,d.line=l,d.extra=c,d.name="CSV Parse Error",d}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},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,a){return new r.Converter(o,a)};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(v,y){v.__proto__=y}||function(v,y){for(var x in y)y.hasOwnProperty(x)&&(v[x]=y[x])};return function(v,y){function x(){this.constructor=v}m(v,y),v.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),l=n(51),c=o(n(15)),d=n(52),f=n(105),p=function(m){function v(y,x){x===void 0&&(x={});var _=m.call(this,x)||this;return _.options=x,_.params=s.mergeParams(y),_.runtime=l.initParseRuntime(_),_.result=new f.Result(_),_.processor=new d.ProcessorLocal(_),_.once("error",function(w){r(function(){_.result.processError(w),_.emit("done",w)})}),_.once("done",function(){_.processor.destroy()}),_}return i(v,m),v.prototype.preRawData=function(y){return this.runtime.preRawDataHook=y,this},v.prototype.preFileLine=function(y){return this.runtime.preFileLineHook=y,this},v.prototype.subscribe=function(y,x,_){return this.parseRuntime.subscribe={onNext:y,onError:x,onCompleted:_},this},v.prototype.fromFile=function(y,x){var _=this,w=n(!function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}());return w.exists(y,function(S){S?w.createReadStream(y,x).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},v.prototype.fromStream=function(y){return y.pipe(this),this},v.prototype.fromString=function(y){y.toString();var x=new a.Readable,_=0;return x._read=function(w){if(_>=y.length)this.push(null);else{var S=y.substr(_,w);this.push(S),_+=w}},this.fromStream(x)},v.prototype.then=function(y,x){var _=this;return new c.default(function(w,S){_.parseRuntime.then={onfulfilled:function(E){w(y?y(E):E)},onrejected:function(E){x?w(x(E)):S(E)}}})},Object.defineProperty(v.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),v.prototype._transform=function(y,x,_){var w=this;this.processor.process(y).then(function(S){if(S.length>0)return w.runtime.started=!0,w.result.processResult(S)}).then(function(){w.emit("drained"),_()},function(S){w.runtime.hasError=!0,w.runtime.error=S,w.emit("error",S),_()})},v.prototype._flush=function(y){var x=this;this.processor.flush().then(function(_){if(_.length>0)return x.result.processResult(_)}).then(function(){x.processEnd(y)},function(_){x.emit("error",_),y()})},v.prototype.processEnd=function(y){this.result.endProcess(),this.emit("done"),y()},Object.defineProperty(v.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),v}(a.Transform);t.Converter=p}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,c={},d=!1,f=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?s=function(y){i.nextTick(function(){v(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,x=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=x,y}}()?function(){var y="setImmediate$"+Math.random()+"$",x=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(y)===0&&v(+_.data.slice(y.length))};o.addEventListener?o.addEventListener("message",x,!1):o.attachEvent("onmessage",x),s=function(_){o.postMessage(y+_,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(x){v(x.data)},s=function(x){y.port2.postMessage(x)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var y=f.documentElement;s=function(x){var _=f.createElement("script");_.onreadystatechange=function(){v(x),_.onreadystatechange=null,y.removeChild(_),_=null},y.appendChild(_)}}():s=function(y){setTimeout(v,0,y)},p.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var x=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,a){var s=this;function l(y){o.writable&&o.write(y)===!1&&s.pause&&s.pause()}function c(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",c),o._isStdio||a&&a.end===!1||(s.on("end",f),s.on("close",p));var d=!1;function f(){d||(d=!0,o.end())}function p(){d||(d=!0,typeof o.destroy=="function"&&o.destroy())}function m(y){if(v(),r.listenerCount(this,"error")===0)throw y}function v(){s.removeListener("data",l),o.removeListener("drain",c),s.removeListener("end",f),s.removeListener("close",p),s.removeListener("error",m),o.removeListener("error",m),s.removeListener("end",v),s.removeListener("close",v),o.removeListener("close",v)}return s.on("error",m),o.on("error",m),s.on("end",v),s.on("close",v),o.on("close",v),o.emit("pipe",s),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),v=m[0],y=m[1];return 3*(v+y)/4-y},t.toByteArray=function(p){for(var m,v=c(p),y=v[0],x=v[1],_=new o(3*(y+x)/4-x),w=0,S=x>0?y-4:y,E=0;E>16&255,_[w++]=m>>8&255,_[w++]=255&m;return x===2&&(m=i[p.charCodeAt(E)]<<2|i[p.charCodeAt(E+1)]>>4,_[w++]=255&m),x===1&&(m=i[p.charCodeAt(E)]<<10|i[p.charCodeAt(E+1)]<<4|i[p.charCodeAt(E+2)]>>2,_[w++]=m>>8&255,_[w++]=255&m),_},t.fromByteArray=function(p){for(var m,v=p.length,y=v%3,x=[],_=0,w=v-y;_w?w:_+16383));return y===1?(m=p[v-1],x.push(r[m>>2]+r[m<<4&63]+"==")):y===2&&(m=(p[v-2]<<8)+p[v-1],x.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),x.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=m),[v,v===m?0:4-v%4]}function d(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function f(p,m,v){for(var y,x=[],_=m;_>1,p=-7,m=i?a-1:0,v=i?-1:1,y=n[r+m];for(m+=v,s=y&(1<<-p)-1,y>>=-p,p+=c;p>0;s=256*s+n[r+m],m+=v,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=v,p-=8);if(s===0)s=1-f;else{if(s===d)return l?NaN:1/0*(y?-1:1);l+=Math.pow(2,o),s-=f}return(y?-1:1)*l*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var l,c,d,f=8*s-a-1,p=(1<>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:s-1,x=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*(d=Math.pow(2,-l))<1&&(l--,d*=2),(r+=l+m>=1?v/d:v*Math.pow(2,1-m))*d>=2&&(l++,d/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*d-1)*Math.pow(2,a),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,a),l=0));a>=8;n[i+y]=255&c,y+=x,c/=256,a-=8);for(l=l<0;n[i+y]=255&l,y+=x,l/=256,f-=8);n[i+y-x]|=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(a,s,l){a.copy(s,l)}e.exports=function(){function a(){(function(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var l=this.head,c=""+l.data;l=l.next;)c+=s+l.data;return c},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),c=this.head,d=0;c;)o(c.data,l,d),d+=c.data.length,c=c.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!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(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,l){l(null,a)}},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 x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,w){_.__proto__=w}||function(_,w){for(var S in w)w.hasOwnProperty(S)&&(_[S]=w[S])};return function(_,w){function S(){this.constructor=_}x(_,w),_.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),o=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),l=n(54),c=o(n(16)),d=n(57),f=n(28),p=n(58),m=o(n(59)),v=o(n(29)),y=function(x){function _(){var w=x!==null&&x.apply(this,arguments)||this;return w.rowSplit=new p.RowSplit(w.converter),w.eolEmitted=!1,w._needEmitEol=void 0,w.headEmitted=!1,w._needEmitHead=void 0,w}return i(_,x),_.prototype.flush=function(){var w=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var S=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(S,!0).then(function(E){return w.runtime.csvLineBuffer&&w.runtime.csvLineBuffer.length>0?s.default.reject(v.default.unclosed_quote(w.runtime.parsedLineNumber,w.runtime.csvLineBuffer.toString())):s.default.resolve(E)})}return s.default.resolve([])},_.prototype.destroy=function(){return s.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(w,S){var E,C=this;return S===void 0&&(S=!1),E=S?w.toString():l.prepareData(w,this.converter.parseRuntime),s.default.resolve().then(function(){return C.runtime.preRawDataHook?C.runtime.preRawDataHook(E):E}).then(function(k){return k&&k.length>0?C.processCSV(k,S):s.default.resolve([])})},_.prototype.processCSV=function(w,S){var E=this,C=this.params,k=this.runtime;k.eol||c.default(w,k),this.needEmitEol&&!this.eolEmitted&&k.eol&&(this.converter.emit("eol",k.eol),this.eolEmitted=!0),C.ignoreEmpty&&!k.started&&(w=f.trimLeft(w));var j=d.stringToLines(w,k);return S?(j.lines.push(j.partial),j.partial=""):this.prependLeftBuf(f.bufFromString(j.partial)),j.lines.length>0?(k.preFileLineHook?this.runPreLineHook(j.lines):s.default.resolve(j.lines)).then(function(A){return k.started||E.runtime.headers?E.processCSVBody(A):E.processDataWithHead(A)}):s.default.resolve([])},_.prototype.processDataWithHead=function(w){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var S="",E=[];w.length;){var C=S+w.shift(),k=this.rowSplit.parse(C);if(k.closed){E=k.cells,S="";break}S=C+c.default(C,this.runtime)}if(this.prependLeftBuf(f.bufFromString(S)),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(w)},_.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var w=this.runtime.headers,S=0;S=j.length)N();else if(A.preFileLineHook){var z=j[$],W=A.preFileLineHook(z,A.parsedLineNumber+$);if($++,W&&W.then)W.then(function(X){j[$-1]=X,k(j,A,$,N)});else{for(j[$-1]=W;$0?r.concat([f.csvLineBuffer,d]):d}(a,s);s.csvLineBuffer=void 0;var c=function(d,f){var p=d.length-1;if(128&d[p]){for(;(192&d[p])==128;)p--;p--}return p!=d.length-1?(f.csvLineBuffer=d.slice(p+1),d.slice(0,p+1)):d}(l,s).toString("utf8");return s.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 d=this.quote,f=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(d==="off"){if(f)for(var v=0;vf&&(p=m,f=v)}),p},l.prototype.isQuoteOpen=function(c){var d=this.quote,f=this.escape;return c[0]===d&&(c[1]!==d||c[1]===f&&(c[2]===d||c.length===2))},l.prototype.isQuoteClose=function(c){var d=this.quote,f=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,m=c.length-1;c[m]===d||c[m]===f;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){var d="es|"+this.quote+"|"+this.escape;this.cachedRegExp[d]===void 0&&(this.cachedRegExp[d]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var f=this.cachedRegExp[d];return c.replace(f,this.quote)},l.prototype.parseMultiLines=function(c){for(var d=[],f="";c.length;){var p=f+c.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?d.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):d.push(m.cells),f=""):f=p+(i.default(p,this.conv.parseRuntime)||` +`))}return{rowsCells:d,partial:f}},l}();t.RowSplit=s},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)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(_,w,S){if(w.parseParam.checkColumn&&w.parseRuntime.headers&&_.length!==w.parseRuntime.headers.length)throw i.default.column_mismatched(w.parseRuntime.parsedLineNumber+S);return function(E,C,k){for(var j=!1,A={},$=0,N=E.length;$-1){for(var k=w.split("."),j=!0;k.length>0;)if(k.shift().length===0){j=!1;break}!j||E.parseParam.colParser[w]&&E.parseParam.colParser[w].flat?E.parseRuntime.columnValueSetter[C]=f:E.parseRuntime.columnValueSetter[C]=p}else E.parseRuntime.columnValueSetter[C]=f;E.parseParam.nullObject===!0&&S==="null"&&(S=null),E.parseRuntime.columnValueSetter[C](_,w,S)}function f(_,w,S){_[w]=S}function p(_,w,S){o.default(_,w,S)}function m(_,w,S,E){return E.parseRuntime.headerType[S]?E.parseRuntime.headerType[S]:w.indexOf("number#!")>-1?E.parseRuntime.headerType[S]=v:w.indexOf("string#!")>-1?E.parseRuntime.headerType[S]=y:E.parseParam.checkType?E.parseRuntime.headerType[S]=x:E.parseRuntime.headerType[S]=y}function v(_){var w=parseFloat(_);return isNaN(w)?_:w}function y(_){return _.toString()}function x(_){var w=_.trim();return w===""?y(_):a.test(w)?v(_):w.length===5&&w.toLowerCase()==="false"||w.length===4&&w.toLowerCase()==="true"?function(S){var E=S.trim();return E.length!==5||E.toLowerCase()!=="false"}(_):w[0]==="{"&&w[w.length-1]==="}"||w[0]==="["&&w[w.length-1]==="]"?function(S){try{return JSON.parse(S)}catch{return S}}(_):y(_)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(l,c,d,f){if(!a(l))return l;for(var p=-1,m=(c=i(c,l)).length,v=m-1,y=l;y!=null&&++p-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][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 a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?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),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function c(d){if(typeof d=="string")return d;if(o(d))return i(d,c)+"";if(a(d))return l?l.call(d):"";var f=d+"";return f=="0"&&1/d==-1/0?"-0":f}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=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 d=this,f=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&f===0&&s(this.converter,"["+o.EOL),new i.default(function(p,m){d.needEmitLine?function v(y,x,_,w,S){if(_>=y.length)S();else if(x.parseRuntime.subscribe&&x.parseRuntime.subscribe.onNext){var E=x.parseRuntime.subscribe.onNext,C=y[_],k=E(C,x.parseRuntime.parsedLineNumber+_);if(_++,k&&k.then)k.then(function(){(function(A,$,N,z,W,X,G){W&&s(N,G),v(A,N,z,W,X)})(y,0,x,_,w,S,C)},S);else{for(w&&s(x,C);_new Promise(t=>{OSe().fromString(e).then(t)}),kSe=new ESe,PSe=e=>kSe.parse(e),jSe="shlink",nR=e=>`${jSe}.${e}`;class LSe{constructor(t){gt(this,"get",t=>{const n=this.localStorage.getItem(nR(t));return n?JSON.parse(n):void 0});gt(this,"set",(t,n)=>this.localStorage.setItem(nR(t),JSON.stringify(n)));this.localStorage=t}}class MSe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const ASe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",LSe,"localStorage"),e.service("TagColorsStorage",MSe,"Storage"),e.constant("csvToJson",CSe),e.constant("jsonToCsv",PSe),e.constant("setTimeout",window.setTimeout),e.constant("clearTimeout",window.clearTimeout),e.serviceFactory("useTimeoutToggle",dxe,"setTimeout","clearTimeout")},Gl=new KV,{container:wO}=Gl,RSe=(e,t)=>(...n)=>e[t](...n),NSe=(e,t)=>({...e,[t]:RSe(wO,t)}),F0=(e,t=[])=>jD(e?wW(e):null,t.reduce(NSe,{}));pie(Gl,F0);oxe(Gl,F0);_re(Gl);Zxe(Gl,F0);ASe(Gl);x2e(Gl,F0);var xO={},L2={exports:{}};(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=[],d=0;dI.length)&&(D=I.length);for(var H=0,ie=Array(D);HYE({appUpdated:hie,servers:Mxe,selectedServer:e.selectedServerReducer,settings:u2e}),FSe=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},$Se=!0,U$={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},USe=FSe(xO.load(U$)),BSe=e=>w6({devTools:!$Se,reducer:ISe(e),preloadedState:USe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(xO.save(U$))}),zSe=!!(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 VSe(e){if("serviceWorker"in navigator){if(new URL(tv.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${tv.homepage}/service-worker.js`;zSe?(HSe(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")})):B$(n,e)})}}function B$(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 HSe(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()})}):B$(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const z$=BSe(wO),{App:WSe,ScrollToTop:YSe,ErrorHandler:GSe,appUpdateAvailable:qSe}=wO;gD(document.getElementById("root")).render(g.jsx(LD,{store:z$,children:g.jsx(BD,{basename:tv.homepage,children:g.jsx(GSe,{children:g.jsx(YSe,{children:g.jsx(WSe,{})})})})}));VSe({onUpdate(){z$.dispatch(qSe())}}); diff --git a/feature/decouple-api-client/favicon.gif b/feature/decouple-api-client/favicon.gif new file mode 100644 index 00000000..dcf57c87 Binary files /dev/null and b/feature/decouple-api-client/favicon.gif differ diff --git a/feature/decouple-api-client/favicon.ico b/feature/decouple-api-client/favicon.ico new file mode 100644 index 00000000..25764c30 Binary files /dev/null and b/feature/decouple-api-client/favicon.ico differ diff --git a/feature/decouple-api-client/favicon.png b/feature/decouple-api-client/favicon.png new file mode 100644 index 00000000..25764c30 Binary files /dev/null and b/feature/decouple-api-client/favicon.png differ diff --git a/feature/decouple-api-client/favicon.svg b/feature/decouple-api-client/favicon.svg new file mode 100644 index 00000000..5a085bcb --- /dev/null +++ b/feature/decouple-api-client/favicon.svg @@ -0,0 +1 @@ + diff --git a/feature/decouple-api-client/icons/icon-1024x1024.png b/feature/decouple-api-client/icons/icon-1024x1024.png new file mode 100644 index 00000000..e468ac0a Binary files /dev/null and b/feature/decouple-api-client/icons/icon-1024x1024.png differ diff --git a/feature/decouple-api-client/icons/icon-114x114.png b/feature/decouple-api-client/icons/icon-114x114.png new file mode 100644 index 00000000..fa813ad5 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-114x114.png differ diff --git a/feature/decouple-api-client/icons/icon-120x120.png b/feature/decouple-api-client/icons/icon-120x120.png new file mode 100644 index 00000000..5e84efc7 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-120x120.png differ diff --git a/feature/decouple-api-client/icons/icon-128x128.png b/feature/decouple-api-client/icons/icon-128x128.png new file mode 100644 index 00000000..25764c30 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-128x128.png differ diff --git a/feature/decouple-api-client/icons/icon-144x144.png b/feature/decouple-api-client/icons/icon-144x144.png new file mode 100644 index 00000000..5ca0d1e6 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-144x144.png differ diff --git a/feature/decouple-api-client/icons/icon-150x150.png b/feature/decouple-api-client/icons/icon-150x150.png new file mode 100644 index 00000000..491fcba7 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-150x150.png differ diff --git a/feature/decouple-api-client/icons/icon-152x152.png b/feature/decouple-api-client/icons/icon-152x152.png new file mode 100644 index 00000000..e2f866af Binary files /dev/null and b/feature/decouple-api-client/icons/icon-152x152.png differ diff --git a/feature/decouple-api-client/icons/icon-160x160.png b/feature/decouple-api-client/icons/icon-160x160.png new file mode 100644 index 00000000..b34653a9 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-160x160.png differ diff --git a/feature/decouple-api-client/icons/icon-167x167.png b/feature/decouple-api-client/icons/icon-167x167.png new file mode 100644 index 00000000..d8720d36 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-167x167.png differ diff --git a/feature/decouple-api-client/icons/icon-16x16.png b/feature/decouple-api-client/icons/icon-16x16.png new file mode 100644 index 00000000..81457cbf Binary files /dev/null and b/feature/decouple-api-client/icons/icon-16x16.png differ diff --git a/feature/decouple-api-client/icons/icon-180x180.png b/feature/decouple-api-client/icons/icon-180x180.png new file mode 100644 index 00000000..9b7a9547 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-180x180.png differ diff --git a/feature/decouple-api-client/icons/icon-192x192.png b/feature/decouple-api-client/icons/icon-192x192.png new file mode 100644 index 00000000..36a0ac72 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-192x192.png differ diff --git a/feature/decouple-api-client/icons/icon-196x196.png b/feature/decouple-api-client/icons/icon-196x196.png new file mode 100644 index 00000000..48338127 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-196x196.png differ diff --git a/feature/decouple-api-client/icons/icon-228x228.png b/feature/decouple-api-client/icons/icon-228x228.png new file mode 100644 index 00000000..0edc6b54 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-228x228.png differ diff --git a/feature/decouple-api-client/icons/icon-24x24.png b/feature/decouple-api-client/icons/icon-24x24.png new file mode 100644 index 00000000..0fba91d4 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-24x24.png differ diff --git a/feature/decouple-api-client/icons/icon-256x256.png b/feature/decouple-api-client/icons/icon-256x256.png new file mode 100644 index 00000000..ff7c3d12 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-256x256.png differ diff --git a/feature/decouple-api-client/icons/icon-310x310.png b/feature/decouple-api-client/icons/icon-310x310.png new file mode 100644 index 00000000..1a84f69d Binary files /dev/null and b/feature/decouple-api-client/icons/icon-310x310.png differ diff --git a/feature/decouple-api-client/icons/icon-32x32.png b/feature/decouple-api-client/icons/icon-32x32.png new file mode 100644 index 00000000..6255cf37 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-32x32.png differ diff --git a/feature/decouple-api-client/icons/icon-384x384.png b/feature/decouple-api-client/icons/icon-384x384.png new file mode 100644 index 00000000..12f79c11 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-384x384.png differ diff --git a/feature/decouple-api-client/icons/icon-40x40.png b/feature/decouple-api-client/icons/icon-40x40.png new file mode 100644 index 00000000..1718864c Binary files /dev/null and b/feature/decouple-api-client/icons/icon-40x40.png differ diff --git a/feature/decouple-api-client/icons/icon-48x48.png b/feature/decouple-api-client/icons/icon-48x48.png new file mode 100644 index 00000000..b94d23d8 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-48x48.png differ diff --git a/feature/decouple-api-client/icons/icon-512x512.png b/feature/decouple-api-client/icons/icon-512x512.png new file mode 100644 index 00000000..5d3ee53a Binary files /dev/null and b/feature/decouple-api-client/icons/icon-512x512.png differ diff --git a/feature/decouple-api-client/icons/icon-60x60.png b/feature/decouple-api-client/icons/icon-60x60.png new file mode 100644 index 00000000..80ac238d Binary files /dev/null and b/feature/decouple-api-client/icons/icon-60x60.png differ diff --git a/feature/decouple-api-client/icons/icon-64x64.png b/feature/decouple-api-client/icons/icon-64x64.png new file mode 100644 index 00000000..86481ca9 Binary files /dev/null and b/feature/decouple-api-client/icons/icon-64x64.png differ diff --git a/feature/decouple-api-client/icons/icon-72x72.png b/feature/decouple-api-client/icons/icon-72x72.png new file mode 100644 index 00000000..60c1537f Binary files /dev/null and b/feature/decouple-api-client/icons/icon-72x72.png differ diff --git a/feature/decouple-api-client/icons/icon-76x76.png b/feature/decouple-api-client/icons/icon-76x76.png new file mode 100644 index 00000000..91a8ea6b Binary files /dev/null and b/feature/decouple-api-client/icons/icon-76x76.png differ diff --git a/feature/decouple-api-client/icons/icon-96x96.png b/feature/decouple-api-client/icons/icon-96x96.png new file mode 100644 index 00000000..7701826c Binary files /dev/null and b/feature/decouple-api-client/icons/icon-96x96.png differ diff --git a/feature/decouple-api-client/index.html b/feature/decouple-api-client/index.html new file mode 100644 index 00000000..06cfdc15 --- /dev/null +++ b/feature/decouple-api-client/index.html @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Shlink — The URL shortener + + + + + +
+ + + diff --git a/feature/decouple-api-client/manifest.json b/feature/decouple-api-client/manifest.json new file mode 100644 index 00000000..85ec3619 --- /dev/null +++ b/feature/decouple-api-client/manifest.json @@ -0,0 +1 @@ +{"name":"Shlink","short_name":"Shlink","start_url":"/","display":"standalone","background_color":"#4696e5","lang":"en","scope":"/shlink-web-client/feature/decouple-api-client/","theme_color":"#4696e5","icons":[{"src":"./icons/icon-16x16.png","type":"image/png","sizes":"16x16"},{"src":"./icons/icon-24x24.png","type":"image/png","sizes":"24x24"},{"src":"./icons/icon-32x32.png","type":"image/png","sizes":"32x32"},{"src":"./icons/icon-40x40.png","type":"image/png","sizes":"40x40"},{"src":"./icons/icon-48x48.png","type":"image/png","sizes":"48x48"},{"src":"./icons/icon-60x60.png","type":"image/png","sizes":"60x60"},{"src":"./icons/icon-64x64.png","type":"image/png","sizes":"64x64"},{"src":"./icons/icon-72x72.png","type":"image/png","sizes":"72x72"},{"src":"./icons/icon-76x76.png","type":"image/png","sizes":"76x76"},{"src":"./icons/icon-96x96.png","type":"image/png","sizes":"96x96"},{"src":"./icons/icon-114x114.png","type":"image/png","sizes":"114x114"},{"src":"./icons/icon-120x120.png","type":"image/png","sizes":"120x120"},{"src":"./icons/icon-128x128.png","type":"image/png","sizes":"128x128"},{"src":"./icons/icon-144x144.png","type":"image/png","sizes":"144x144"},{"src":"./icons/icon-150x150.png","type":"image/png","sizes":"150x150"},{"src":"./icons/icon-152x152.png","type":"image/png","sizes":"152x152"},{"src":"./icons/icon-160x160.png","type":"image/png","sizes":"160x160"},{"src":"./icons/icon-167x167.png","type":"image/png","sizes":"167x167"},{"src":"./icons/icon-180x180.png","type":"image/png","sizes":"180x180"},{"src":"./icons/icon-192x192.png","type":"image/png","sizes":"192x192"},{"src":"./icons/icon-196x196.png","type":"image/png","sizes":"196x196"},{"src":"./icons/icon-228x228.png","type":"image/png","sizes":"228x228"},{"src":"./icons/icon-256x256.png","type":"image/png","sizes":"256x256"},{"src":"./icons/icon-310x310.png","type":"image/png","sizes":"310x310"},{"src":"./icons/icon-384x384.png","type":"image/png","sizes":"384x384"},{"src":"./icons/icon-512x512.png","type":"image/png","sizes":"512x512"},{"src":"./icons/icon-1024x1024.png","type":"image/png","sizes":"1024x1024"}]} diff --git a/feature/decouple-api-client/service-worker.js b/feature/decouple-api-client/service-worker.js new file mode 100644 index 00000000..aeeaa681 --- /dev/null +++ b/feature/decouple-api-client/service-worker.js @@ -0,0 +1,1820 @@ +try { + self["workbox:core:7.0.0"] && _(); +} catch { +} +const G = (s, ...e) => { + let t = s; + return e.length > 0 && (t += ` :: ${JSON.stringify(e)}`), t; +}, Q = G; +class h extends Error { + /** + * + * @param {string} errorCode The error code that + * identifies this particular error. + * @param {Object=} details Any relevant arguments + * that will help developers identify issues should + * be added as a key on the context object. + */ + constructor(e, t) { + const n = Q(e, t); + super(n), this.name = e, this.details = t; + } +} +const B = /* @__PURE__ */ new Set(); +function z(s) { + B.add(s); +} +const d = { + googleAnalytics: "googleAnalytics", + precache: "precache-v2", + prefix: "workbox", + runtime: "runtime", + suffix: typeof registration < "u" ? registration.scope : "" +}, E = (s) => [d.prefix, s, d.suffix].filter((e) => e && e.length > 0).join("-"), J = (s) => { + for (const e of Object.keys(d)) + s(e); +}, x = { + updateDetails: (s) => { + J((e) => { + typeof s[e] == "string" && (d[e] = s[e]); + }); + }, + getGoogleAnalyticsName: (s) => s || E(d.googleAnalytics), + getPrecacheName: (s) => s || E(d.precache), + getPrefix: () => d.prefix, + getRuntimeName: (s) => s || E(d.runtime), + getSuffix: () => d.suffix +}; +function K(s, e) { + const t = new URL(s); + for (const n of e) + t.searchParams.delete(n); + return t.href; +} +async function X(s, e, t, n) { + const r = K(e.url, t); + if (e.url === r) + return s.match(e, n); + const a = Object.assign(Object.assign({}, n), { ignoreSearch: !0 }), i = await s.keys(e, a); + for (const c of i) { + const o = K(c.url, t); + if (r === o) + return s.match(c, n); + } +} +let m; +function Y() { + if (m === void 0) { + const s = new Response(""); + if ("body" in s) + try { + new Response(s.body), m = !0; + } catch { + m = !1; + } + m = !1; + } + return m; +} +function q(s) { + s.then(() => { + }); +} +class Z { + /** + * Creates a promise and exposes its resolve and reject functions as methods. + */ + constructor() { + this.promise = new Promise((e, t) => { + this.resolve = e, this.reject = t; + }); + } +} +async function ee() { + for (const s of B) + await s(); +} +const te = (s) => new URL(String(s), location.href).href.replace(new RegExp(`^${location.origin}`), ""); +function se(s) { + return new Promise((e) => setTimeout(e, s)); +} +function A(s, e) { + const t = e(); + return s.waitUntil(t), t; +} +async function ne(s, e) { + let t = null; + if (s.url && (t = new URL(s.url).origin), t !== self.location.origin) + throw new h("cross-origin-copy-response", { origin: t }); + const n = s.clone(), r = { + headers: new Headers(n.headers), + status: n.status, + statusText: n.statusText + }, a = e ? e(r) : r, i = Y() ? n.body : await n.blob(); + return new Response(i, a); +} +function re() { + self.addEventListener("activate", () => self.clients.claim()); +} +const ae = (s, e) => e.some((t) => s instanceof t); +let j, O; +function ie() { + return j || (j = [ + IDBDatabase, + IDBObjectStore, + IDBIndex, + IDBCursor, + IDBTransaction + ]); +} +function ce() { + return O || (O = [ + IDBCursor.prototype.advance, + IDBCursor.prototype.continue, + IDBCursor.prototype.continuePrimaryKey + ]); +} +const F = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(); +function oe(s) { + const e = new Promise((t, n) => { + const r = () => { + s.removeEventListener("success", a), s.removeEventListener("error", i); + }, a = () => { + t(f(s.result)), r(); + }, i = () => { + n(s.error), r(); + }; + s.addEventListener("success", a), s.addEventListener("error", i); + }); + return e.then((t) => { + t instanceof IDBCursor && F.set(t, s); + }).catch(() => { + }), P.set(e, s), e; +} +function le(s) { + if (v.has(s)) + return; + const e = new Promise((t, n) => { + const r = () => { + s.removeEventListener("complete", a), s.removeEventListener("error", i), s.removeEventListener("abort", i); + }, a = () => { + t(), r(); + }, i = () => { + n(s.error || new DOMException("AbortError", "AbortError")), r(); + }; + s.addEventListener("complete", a), s.addEventListener("error", i), s.addEventListener("abort", i); + }); + v.set(s, e); +} +let T = { + get(s, e, t) { + if (s instanceof IDBTransaction) { + if (e === "done") + return v.get(s); + if (e === "objectStoreNames") + return s.objectStoreNames || H.get(s); + if (e === "store") + return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]); + } + return f(s[e]); + }, + set(s, e, t) { + return s[e] = t, !0; + }, + has(s, e) { + return s instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in s; + } +}; +function he(s) { + T = s(T); +} +function ue(s) { + return s === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) { + const n = s.call(D(this), e, ...t); + return H.set(n, e.sort ? e.sort() : [e]), f(n); + } : ce().includes(s) ? function(...e) { + return s.apply(D(this), e), f(F.get(this)); + } : function(...e) { + return f(s.apply(D(this), e)); + }; +} +function de(s) { + return typeof s == "function" ? ue(s) : (s instanceof IDBTransaction && le(s), ae(s, ie()) ? new Proxy(s, T) : s); +} +function f(s) { + if (s instanceof IDBRequest) + return oe(s); + if (k.has(s)) + return k.get(s); + const e = de(s); + return e !== s && (k.set(s, e), P.set(e, s)), e; +} +const D = (s) => P.get(s); +function fe(s, e, { blocked: t, upgrade: n, blocking: r, terminated: a } = {}) { + const i = indexedDB.open(s, e), c = f(i); + return n && i.addEventListener("upgradeneeded", (o) => { + n(f(i.result), o.oldVersion, o.newVersion, f(i.transaction), o); + }), t && i.addEventListener("blocked", (o) => t( + // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405 + o.oldVersion, + o.newVersion, + o + )), c.then((o) => { + a && o.addEventListener("close", () => a()), r && o.addEventListener("versionchange", (l) => r(l.oldVersion, l.newVersion, l)); + }).catch(() => { + }), c; +} +function pe(s, { blocked: e } = {}) { + const t = indexedDB.deleteDatabase(s); + return e && t.addEventListener("blocked", (n) => e( + // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405 + n.oldVersion, + n + )), f(t).then(() => { + }); +} +const ge = ["get", "getKey", "getAll", "getAllKeys", "count"], me = ["put", "add", "delete", "clear"], L = /* @__PURE__ */ new Map(); +function S(s, e) { + if (!(s instanceof IDBDatabase && !(e in s) && typeof e == "string")) + return; + if (L.get(e)) + return L.get(e); + const t = e.replace(/FromIndex$/, ""), n = e !== t, r = me.includes(t); + if ( + // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge. + !(t in (n ? IDBIndex : IDBObjectStore).prototype) || !(r || ge.includes(t)) + ) + return; + const a = async function(i, ...c) { + const o = this.transaction(i, r ? "readwrite" : "readonly"); + let l = o.store; + return n && (l = l.index(c.shift())), (await Promise.all([ + l[t](...c), + r && o.done + ]))[0]; + }; + return L.set(e, a), a; +} +he((s) => ({ + ...s, + get: (e, t, n) => S(e, t) || s.get(e, t, n), + has: (e, t) => !!S(e, t) || s.has(e, t) +})); +try { + self["workbox:expiration:7.0.0"] && _(); +} catch { +} +const we = "workbox-expiration", w = "cache-entries", W = (s) => { + const e = new URL(s, location.href); + return e.hash = "", e.href; +}; +class ye { + /** + * + * @param {string} cacheName + * + * @private + */ + constructor(e) { + this._db = null, this._cacheName = e; + } + /** + * Performs an upgrade of indexedDB. + * + * @param {IDBPDatabase} db + * + * @private + */ + _upgradeDb(e) { + const t = e.createObjectStore(w, { keyPath: "id" }); + t.createIndex("cacheName", "cacheName", { unique: !1 }), t.createIndex("timestamp", "timestamp", { unique: !1 }); + } + /** + * Performs an upgrade of indexedDB and deletes deprecated DBs. + * + * @param {IDBPDatabase} db + * + * @private + */ + _upgradeDbAndDeleteOldDbs(e) { + this._upgradeDb(e), this._cacheName && pe(this._cacheName); + } + /** + * @param {string} url + * @param {number} timestamp + * + * @private + */ + async setTimestamp(e, t) { + e = W(e); + const n = { + url: e, + timestamp: t, + cacheName: this._cacheName, + // Creating an ID from the URL and cache name won't be necessary once + // Edge switches to Chromium and all browsers we support work with + // array keyPaths. + id: this._getId(e) + }, a = (await this.getDb()).transaction(w, "readwrite", { + durability: "relaxed" + }); + await a.store.put(n), await a.done; + } + /** + * Returns the timestamp stored for a given URL. + * + * @param {string} url + * @return {number | undefined} + * + * @private + */ + async getTimestamp(e) { + const n = await (await this.getDb()).get(w, this._getId(e)); + return n == null ? void 0 : n.timestamp; + } + /** + * Iterates through all the entries in the object store (from newest to + * oldest) and removes entries once either `maxCount` is reached or the + * entry's timestamp is less than `minTimestamp`. + * + * @param {number} minTimestamp + * @param {number} maxCount + * @return {Array} + * + * @private + */ + async expireEntries(e, t) { + const n = await this.getDb(); + let r = await n.transaction(w).store.index("timestamp").openCursor(null, "prev"); + const a = []; + let i = 0; + for (; r; ) { + const o = r.value; + o.cacheName === this._cacheName && (e && o.timestamp < e || t && i >= t ? a.push(r.value) : i++), r = await r.continue(); + } + const c = []; + for (const o of a) + await n.delete(w, o.id), c.push(o.url); + return c; + } + /** + * Takes a URL and returns an ID that will be unique in the object store. + * + * @param {string} url + * @return {string} + * + * @private + */ + _getId(e) { + return this._cacheName + "|" + W(e); + } + /** + * Returns an open connection to the database. + * + * @private + */ + async getDb() { + return this._db || (this._db = await fe(we, 1, { + upgrade: this._upgradeDbAndDeleteOldDbs.bind(this) + })), this._db; + } +} +class _e { + /** + * To construct a new CacheExpiration instance you must provide at least + * one of the `config` properties. + * + * @param {string} cacheName Name of the cache to apply restrictions to. + * @param {Object} config + * @param {number} [config.maxEntries] The maximum number of entries to cache. + * Entries used the least will be removed as the maximum is reached. + * @param {number} [config.maxAgeSeconds] The maximum age of an entry before + * it's treated as stale and removed. + * @param {Object} [config.matchOptions] The [`CacheQueryOptions`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete#Parameters) + * that will be used when calling `delete()` on the cache. + */ + constructor(e, t = {}) { + this._isRunning = !1, this._rerunRequested = !1, this._maxEntries = t.maxEntries, this._maxAgeSeconds = t.maxAgeSeconds, this._matchOptions = t.matchOptions, this._cacheName = e, this._timestampModel = new ye(e); + } + /** + * Expires entries for the given cache and given criteria. + */ + async expireEntries() { + if (this._isRunning) { + this._rerunRequested = !0; + return; + } + this._isRunning = !0; + const e = this._maxAgeSeconds ? Date.now() - this._maxAgeSeconds * 1e3 : 0, t = await this._timestampModel.expireEntries(e, this._maxEntries), n = await self.caches.open(this._cacheName); + for (const r of t) + await n.delete(r, this._matchOptions); + this._isRunning = !1, this._rerunRequested && (this._rerunRequested = !1, q(this.expireEntries())); + } + /** + * Update the timestamp for the given URL. This ensures the when + * removing entries based on maximum entries, most recently used + * is accurate or when expiring, the timestamp is up-to-date. + * + * @param {string} url + */ + async updateTimestamp(e) { + await this._timestampModel.setTimestamp(e, Date.now()); + } + /** + * Can be used to check if a URL has expired or not before it's used. + * + * This requires a look up from IndexedDB, so can be slow. + * + * Note: This method will not remove the cached entry, call + * `expireEntries()` to remove indexedDB and Cache entries. + * + * @param {string} url + * @return {boolean} + */ + async isURLExpired(e) { + if (this._maxAgeSeconds) { + const t = await this._timestampModel.getTimestamp(e), n = Date.now() - this._maxAgeSeconds * 1e3; + return t !== void 0 ? t < n : !0; + } else + return !1; + } + /** + * Removes the IndexedDB object store used to keep track of cache expiration + * metadata. + */ + async delete() { + this._rerunRequested = !1, await this._timestampModel.expireEntries(1 / 0); + } +} +class be { + /** + * @param {ExpirationPluginOptions} config + * @param {number} [config.maxEntries] The maximum number of entries to cache. + * Entries used the least will be removed as the maximum is reached. + * @param {number} [config.maxAgeSeconds] The maximum age of an entry before + * it's treated as stale and removed. + * @param {Object} [config.matchOptions] The [`CacheQueryOptions`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete#Parameters) + * that will be used when calling `delete()` on the cache. + * @param {boolean} [config.purgeOnQuotaError] Whether to opt this cache in to + * automatic deletion if the available storage quota has been exceeded. + */ + constructor(e = {}) { + this.cachedResponseWillBeUsed = async ({ event: t, request: n, cacheName: r, cachedResponse: a }) => { + if (!a) + return null; + const i = this._isResponseDateFresh(a), c = this._getCacheExpiration(r); + q(c.expireEntries()); + const o = c.updateTimestamp(n.url); + if (t) + try { + t.waitUntil(o); + } catch { + } + return i ? a : null; + }, this.cacheDidUpdate = async ({ cacheName: t, request: n }) => { + const r = this._getCacheExpiration(t); + await r.updateTimestamp(n.url), await r.expireEntries(); + }, this._config = e, this._maxAgeSeconds = e.maxAgeSeconds, this._cacheExpirations = /* @__PURE__ */ new Map(), e.purgeOnQuotaError && z(() => this.deleteCacheAndMetadata()); + } + /** + * A simple helper method to return a CacheExpiration instance for a given + * cache name. + * + * @param {string} cacheName + * @return {CacheExpiration} + * + * @private + */ + _getCacheExpiration(e) { + if (e === x.getRuntimeName()) + throw new h("expire-custom-caches-only"); + let t = this._cacheExpirations.get(e); + return t || (t = new _e(e, this._config), this._cacheExpirations.set(e, t)), t; + } + /** + * @param {Response} cachedResponse + * @return {boolean} + * + * @private + */ + _isResponseDateFresh(e) { + if (!this._maxAgeSeconds) + return !0; + const t = this._getDateHeaderTimestamp(e); + if (t === null) + return !0; + const n = Date.now(); + return t >= n - this._maxAgeSeconds * 1e3; + } + /** + * This method will extract the data header and parse it into a useful + * value. + * + * @param {Response} cachedResponse + * @return {number|null} + * + * @private + */ + _getDateHeaderTimestamp(e) { + if (!e.headers.has("date")) + return null; + const t = e.headers.get("date"), r = new Date(t).getTime(); + return isNaN(r) ? null : r; + } + /** + * This is a helper method that performs two operations: + * + * - Deletes *all* the underlying Cache instances associated with this plugin + * instance, by calling caches.delete() on your behalf. + * - Deletes the metadata from IndexedDB used to keep track of expiration + * details for each Cache instance. + * + * When using cache expiration, calling this method is preferable to calling + * `caches.delete()` directly, since this will ensure that the IndexedDB + * metadata is also cleanly removed and open IndexedDB instances are deleted. + * + * Note that if you're *not* using cache expiration for a given cache, calling + * `caches.delete()` and passing in the cache's name should be sufficient. + * There is no Workbox-specific method needed for cleanup in that case. + */ + async deleteCacheAndMetadata() { + for (const [e, t] of this._cacheExpirations) + await self.caches.delete(e), await t.delete(); + this._cacheExpirations = /* @__PURE__ */ new Map(); + } +} +try { + self["workbox:precaching:7.0.0"] && _(); +} catch { +} +const Re = "__WB_REVISION__"; +function Ce(s) { + if (!s) + throw new h("add-to-cache-list-unexpected-type", { entry: s }); + if (typeof s == "string") { + const a = new URL(s, location.href); + return { + cacheKey: a.href, + url: a.href + }; + } + const { revision: e, url: t } = s; + if (!t) + throw new h("add-to-cache-list-unexpected-type", { entry: s }); + if (!e) { + const a = new URL(t, location.href); + return { + cacheKey: a.href, + url: a.href + }; + } + const n = new URL(t, location.href), r = new URL(t, location.href); + return n.searchParams.set(Re, e), { + cacheKey: n.href, + url: r.href + }; +} +class xe { + constructor() { + this.updatedURLs = [], this.notUpdatedURLs = [], this.handlerWillStart = async ({ request: e, state: t }) => { + t && (t.originalRequest = e); + }, this.cachedResponseWillBeUsed = async ({ event: e, state: t, cachedResponse: n }) => { + if (e.type === "install" && t && t.originalRequest && t.originalRequest instanceof Request) { + const r = t.originalRequest.url; + n ? this.notUpdatedURLs.push(r) : this.updatedURLs.push(r); + } + return n; + }; + } +} +class Ee { + constructor({ precacheController: e }) { + this.cacheKeyWillBeUsed = async ({ request: t, params: n }) => { + const r = (n == null ? void 0 : n.cacheKey) || this._precacheController.getCacheKeyForURL(t.url); + return r ? new Request(r, { headers: t.headers }) : t; + }, this._precacheController = e; + } +} +try { + self["workbox:strategies:7.0.0"] && _(); +} catch { +} +function R(s) { + return typeof s == "string" ? new Request(s) : s; +} +class ke { + /** + * Creates a new instance associated with the passed strategy and event + * that's handling the request. + * + * The constructor also initializes the state that will be passed to each of + * the plugins handling this request. + * + * @param {workbox-strategies.Strategy} strategy + * @param {Object} options + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] The return value from the + * {@link workbox-routing~matchCallback} (if applicable). + */ + constructor(e, t) { + this._cacheKeys = {}, Object.assign(this, t), this.event = t.event, this._strategy = e, this._handlerDeferred = new Z(), this._extendLifetimePromises = [], this._plugins = [...e.plugins], this._pluginStateMap = /* @__PURE__ */ new Map(); + for (const n of this._plugins) + this._pluginStateMap.set(n, {}); + this.event.waitUntil(this._handlerDeferred.promise); + } + /** + * Fetches a given request (and invokes any applicable plugin callback + * methods) using the `fetchOptions` (for non-navigation requests) and + * `plugins` defined on the `Strategy` object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - `requestWillFetch()` + * - `fetchDidSucceed()` + * - `fetchDidFail()` + * + * @param {Request|string} input The URL or request to fetch. + * @return {Promise} + */ + async fetch(e) { + const { event: t } = this; + let n = R(e); + if (n.mode === "navigate" && t instanceof FetchEvent && t.preloadResponse) { + const i = await t.preloadResponse; + if (i) + return i; + } + const r = this.hasCallback("fetchDidFail") ? n.clone() : null; + try { + for (const i of this.iterateCallbacks("requestWillFetch")) + n = await i({ request: n.clone(), event: t }); + } catch (i) { + if (i instanceof Error) + throw new h("plugin-error-request-will-fetch", { + thrownErrorMessage: i.message + }); + } + const a = n.clone(); + try { + let i; + i = await fetch(n, n.mode === "navigate" ? void 0 : this._strategy.fetchOptions); + for (const c of this.iterateCallbacks("fetchDidSucceed")) + i = await c({ + event: t, + request: a, + response: i + }); + return i; + } catch (i) { + throw r && await this.runCallbacks("fetchDidFail", { + error: i, + event: t, + originalRequest: r.clone(), + request: a.clone() + }), i; + } + } + /** + * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on + * the response generated by `this.fetch()`. + * + * The call to `this.cachePut()` automatically invokes `this.waitUntil()`, + * so you do not have to manually call `waitUntil()` on the event. + * + * @param {Request|string} input The request or URL to fetch and cache. + * @return {Promise} + */ + async fetchAndCachePut(e) { + const t = await this.fetch(e), n = t.clone(); + return this.waitUntil(this.cachePut(e, n)), t; + } + /** + * Matches a request from the cache (and invokes any applicable plugin + * callback methods) using the `cacheName`, `matchOptions`, and `plugins` + * defined on the strategy object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - cacheKeyWillByUsed() + * - cachedResponseWillByUsed() + * + * @param {Request|string} key The Request or URL to use as the cache key. + * @return {Promise} A matching response, if found. + */ + async cacheMatch(e) { + const t = R(e); + let n; + const { cacheName: r, matchOptions: a } = this._strategy, i = await this.getCacheKey(t, "read"), c = Object.assign(Object.assign({}, a), { cacheName: r }); + n = await caches.match(i, c); + for (const o of this.iterateCallbacks("cachedResponseWillBeUsed")) + n = await o({ + cacheName: r, + matchOptions: a, + cachedResponse: n, + request: i, + event: this.event + }) || void 0; + return n; + } + /** + * Puts a request/response pair in the cache (and invokes any applicable + * plugin callback methods) using the `cacheName` and `plugins` defined on + * the strategy object. + * + * The following plugin lifecycle methods are invoked when using this method: + * - cacheKeyWillByUsed() + * - cacheWillUpdate() + * - cacheDidUpdate() + * + * @param {Request|string} key The request or URL to use as the cache key. + * @param {Response} response The response to cache. + * @return {Promise} `false` if a cacheWillUpdate caused the response + * not be cached, and `true` otherwise. + */ + async cachePut(e, t) { + const n = R(e); + await se(0); + const r = await this.getCacheKey(n, "write"); + if (!t) + throw new h("cache-put-with-no-response", { + url: te(r.url) + }); + const a = await this._ensureResponseSafeToCache(t); + if (!a) + return !1; + const { cacheName: i, matchOptions: c } = this._strategy, o = await self.caches.open(i), l = this.hasCallback("cacheDidUpdate"), g = l ? await X( + // TODO(philipwalton): the `__WB_REVISION__` param is a precaching + // feature. Consider into ways to only add this behavior if using + // precaching. + o, + r.clone(), + ["__WB_REVISION__"], + c + ) : null; + try { + await o.put(r, l ? a.clone() : a); + } catch (u) { + if (u instanceof Error) + throw u.name === "QuotaExceededError" && await ee(), u; + } + for (const u of this.iterateCallbacks("cacheDidUpdate")) + await u({ + cacheName: i, + oldResponse: g, + newResponse: a.clone(), + request: r, + event: this.event + }); + return !0; + } + /** + * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and + * executes any of those callbacks found in sequence. The final `Request` + * object returned by the last plugin is treated as the cache key for cache + * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have + * been registered, the passed request is returned unmodified + * + * @param {Request} request + * @param {string} mode + * @return {Promise} + */ + async getCacheKey(e, t) { + const n = `${e.url} | ${t}`; + if (!this._cacheKeys[n]) { + let r = e; + for (const a of this.iterateCallbacks("cacheKeyWillBeUsed")) + r = R(await a({ + mode: t, + request: r, + event: this.event, + // params has a type any can't change right now. + params: this.params + // eslint-disable-line + })); + this._cacheKeys[n] = r; + } + return this._cacheKeys[n]; + } + /** + * Returns true if the strategy has at least one plugin with the given + * callback. + * + * @param {string} name The name of the callback to check for. + * @return {boolean} + */ + hasCallback(e) { + for (const t of this._strategy.plugins) + if (e in t) + return !0; + return !1; + } + /** + * Runs all plugin callbacks matching the given name, in order, passing the + * given param object (merged ith the current plugin state) as the only + * argument. + * + * Note: since this method runs all plugins, it's not suitable for cases + * where the return value of a callback needs to be applied prior to calling + * the next callback. See + * {@link workbox-strategies.StrategyHandler#iterateCallbacks} + * below for how to handle that case. + * + * @param {string} name The name of the callback to run within each plugin. + * @param {Object} param The object to pass as the first (and only) param + * when executing each callback. This object will be merged with the + * current plugin state prior to callback execution. + */ + async runCallbacks(e, t) { + for (const n of this.iterateCallbacks(e)) + await n(t); + } + /** + * Accepts a callback and returns an iterable of matching plugin callbacks, + * where each callback is wrapped with the current handler state (i.e. when + * you call each callback, whatever object parameter you pass it will + * be merged with the plugin's current state). + * + * @param {string} name The name fo the callback to run + * @return {Array} + */ + *iterateCallbacks(e) { + for (const t of this._strategy.plugins) + if (typeof t[e] == "function") { + const n = this._pluginStateMap.get(t); + yield (a) => { + const i = Object.assign(Object.assign({}, a), { state: n }); + return t[e](i); + }; + } + } + /** + * Adds a promise to the + * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises} + * of the event event associated with the request being handled (usually a + * `FetchEvent`). + * + * Note: you can await + * {@link workbox-strategies.StrategyHandler~doneWaiting} + * to know when all added promises have settled. + * + * @param {Promise} promise A promise to add to the extend lifetime promises + * of the event that triggered the request. + */ + waitUntil(e) { + return this._extendLifetimePromises.push(e), e; + } + /** + * Returns a promise that resolves once all promises passed to + * {@link workbox-strategies.StrategyHandler~waitUntil} + * have settled. + * + * Note: any work done after `doneWaiting()` settles should be manually + * passed to an event's `waitUntil()` method (not this handler's + * `waitUntil()` method), otherwise the service worker thread my be killed + * prior to your work completing. + */ + async doneWaiting() { + let e; + for (; e = this._extendLifetimePromises.shift(); ) + await e; + } + /** + * Stops running the strategy and immediately resolves any pending + * `waitUntil()` promises. + */ + destroy() { + this._handlerDeferred.resolve(null); + } + /** + * This method will call cacheWillUpdate on the available plugins (or use + * status === 200) to determine if the Response is safe and valid to cache. + * + * @param {Request} options.request + * @param {Response} options.response + * @return {Promise} + * + * @private + */ + async _ensureResponseSafeToCache(e) { + let t = e, n = !1; + for (const r of this.iterateCallbacks("cacheWillUpdate")) + if (t = await r({ + request: this.request, + response: t, + event: this.event + }) || void 0, n = !0, !t) + break; + return n || t && t.status !== 200 && (t = void 0), t; + } +} +class V { + /** + * Creates a new instance of the strategy and sets all documented option + * properties as public instance properties. + * + * Note: if a custom strategy class extends the base Strategy class and does + * not need more than these properties, it does not need to define its own + * constructor. + * + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to the cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters) + * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796) + * `fetch()` requests made by this strategy. + * @param {Object} [options.matchOptions] The + * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions} + * for any `cache.match()` or `cache.put()` calls made by this strategy. + */ + constructor(e = {}) { + this.cacheName = x.getRuntimeName(e.cacheName), this.plugins = e.plugins || [], this.fetchOptions = e.fetchOptions, this.matchOptions = e.matchOptions; + } + /** + * Perform a request strategy and returns a `Promise` that will resolve with + * a `Response`, invoking all relevant plugin callbacks. + * + * When a strategy instance is registered with a Workbox + * {@link workbox-routing.Route}, this method is automatically + * called when the route matches. + * + * Alternatively, this method can be used in a standalone `FetchEvent` + * listener by passing it to `event.respondWith()`. + * + * @param {FetchEvent|Object} options A `FetchEvent` or an object with the + * properties listed below. + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] + */ + handle(e) { + const [t] = this.handleAll(e); + return t; + } + /** + * Similar to {@link workbox-strategies.Strategy~handle}, but + * instead of just returning a `Promise` that resolves to a `Response` it + * it will return an tuple of `[response, done]` promises, where the former + * (`response`) is equivalent to what `handle()` returns, and the latter is a + * Promise that will resolve once any promises that were added to + * `event.waitUntil()` as part of performing the strategy have completed. + * + * You can await the `done` promise to ensure any extra work performed by + * the strategy (usually caching responses) completes successfully. + * + * @param {FetchEvent|Object} options A `FetchEvent` or an object with the + * properties listed below. + * @param {Request|string} options.request A request to run this strategy for. + * @param {ExtendableEvent} options.event The event associated with the + * request. + * @param {URL} [options.url] + * @param {*} [options.params] + * @return {Array} A tuple of [response, done] + * promises that can be used to determine when the response resolves as + * well as when the handler has completed all its work. + */ + handleAll(e) { + e instanceof FetchEvent && (e = { + event: e, + request: e.request + }); + const t = e.event, n = typeof e.request == "string" ? new Request(e.request) : e.request, r = "params" in e ? e.params : void 0, a = new ke(this, { event: t, request: n, params: r }), i = this._getResponse(a, n, t), c = this._awaitComplete(i, a, n, t); + return [i, c]; + } + async _getResponse(e, t, n) { + await e.runCallbacks("handlerWillStart", { event: n, request: t }); + let r; + try { + if (r = await this._handle(t, e), !r || r.type === "error") + throw new h("no-response", { url: t.url }); + } catch (a) { + if (a instanceof Error) { + for (const i of e.iterateCallbacks("handlerDidError")) + if (r = await i({ error: a, event: n, request: t }), r) + break; + } + if (!r) + throw a; + } + for (const a of e.iterateCallbacks("handlerWillRespond")) + r = await a({ event: n, request: t, response: r }); + return r; + } + async _awaitComplete(e, t, n, r) { + let a, i; + try { + a = await e; + } catch { + } + try { + await t.runCallbacks("handlerDidRespond", { + event: r, + request: n, + response: a + }), await t.doneWaiting(); + } catch (c) { + c instanceof Error && (i = c); + } + if (await t.runCallbacks("handlerDidComplete", { + event: r, + request: n, + response: a, + error: i + }), t.destroy(), i) + throw i; + } +} +class p extends V { + /** + * + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to the cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters|init} + * of all fetch() requests made by this strategy. + * @param {Object} [options.matchOptions] The + * {@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions|CacheQueryOptions} + * for any `cache.match()` or `cache.put()` calls made by this strategy. + * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to + * get the response from the network if there's a precache miss. + */ + constructor(e = {}) { + e.cacheName = x.getPrecacheName(e.cacheName), super(e), this._fallbackToNetwork = e.fallbackToNetwork !== !1, this.plugins.push(p.copyRedirectedCacheableResponsesPlugin); + } + /** + * @private + * @param {Request|string} request A request to run this strategy for. + * @param {workbox-strategies.StrategyHandler} handler The event that + * triggered the request. + * @return {Promise} + */ + async _handle(e, t) { + const n = await t.cacheMatch(e); + return n || (t.event && t.event.type === "install" ? await this._handleInstall(e, t) : await this._handleFetch(e, t)); + } + async _handleFetch(e, t) { + let n; + const r = t.params || {}; + if (this._fallbackToNetwork) { + const a = r.integrity, i = e.integrity, c = !i || i === a; + n = await t.fetch(new Request(e, { + integrity: e.mode !== "no-cors" ? i || a : void 0 + })), a && c && e.mode !== "no-cors" && (this._useDefaultCacheabilityPluginIfNeeded(), await t.cachePut(e, n.clone())); + } else + throw new h("missing-precache-entry", { + cacheName: this.cacheName, + url: e.url + }); + return n; + } + async _handleInstall(e, t) { + this._useDefaultCacheabilityPluginIfNeeded(); + const n = await t.fetch(e); + if (!await t.cachePut(e, n.clone())) + throw new h("bad-precaching-response", { + url: e.url, + status: n.status + }); + return n; + } + /** + * This method is complex, as there a number of things to account for: + * + * The `plugins` array can be set at construction, and/or it might be added to + * to at any time before the strategy is used. + * + * At the time the strategy is used (i.e. during an `install` event), there + * needs to be at least one plugin that implements `cacheWillUpdate` in the + * array, other than `copyRedirectedCacheableResponsesPlugin`. + * + * - If this method is called and there are no suitable `cacheWillUpdate` + * plugins, we need to add `defaultPrecacheCacheabilityPlugin`. + * + * - If this method is called and there is exactly one `cacheWillUpdate`, then + * we don't have to do anything (this might be a previously added + * `defaultPrecacheCacheabilityPlugin`, or it might be a custom plugin). + * + * - If this method is called and there is more than one `cacheWillUpdate`, + * then we need to check if one is `defaultPrecacheCacheabilityPlugin`. If so, + * we need to remove it. (This situation is unlikely, but it could happen if + * the strategy is used multiple times, the first without a `cacheWillUpdate`, + * and then later on after manually adding a custom `cacheWillUpdate`.) + * + * See https://github.com/GoogleChrome/workbox/issues/2737 for more context. + * + * @private + */ + _useDefaultCacheabilityPluginIfNeeded() { + let e = null, t = 0; + for (const [n, r] of this.plugins.entries()) + r !== p.copyRedirectedCacheableResponsesPlugin && (r === p.defaultPrecacheCacheabilityPlugin && (e = n), r.cacheWillUpdate && t++); + t === 0 ? this.plugins.push(p.defaultPrecacheCacheabilityPlugin) : t > 1 && e !== null && this.plugins.splice(e, 1); + } +} +p.defaultPrecacheCacheabilityPlugin = { + async cacheWillUpdate({ response: s }) { + return !s || s.status >= 400 ? null : s; + } +}; +p.copyRedirectedCacheableResponsesPlugin = { + async cacheWillUpdate({ response: s }) { + return s.redirected ? await ne(s) : s; + } +}; +class De { + /** + * Create a new PrecacheController. + * + * @param {Object} [options] + * @param {string} [options.cacheName] The cache to use for precaching. + * @param {string} [options.plugins] Plugins to use when precaching as well + * as responding to fetch events for precached assets. + * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to + * get the response from the network if there's a precache miss. + */ + constructor({ cacheName: e, plugins: t = [], fallbackToNetwork: n = !0 } = {}) { + this._urlsToCacheKeys = /* @__PURE__ */ new Map(), this._urlsToCacheModes = /* @__PURE__ */ new Map(), this._cacheKeysToIntegrities = /* @__PURE__ */ new Map(), this._strategy = new p({ + cacheName: x.getPrecacheName(e), + plugins: [ + ...t, + new Ee({ precacheController: this }) + ], + fallbackToNetwork: n + }), this.install = this.install.bind(this), this.activate = this.activate.bind(this); + } + /** + * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and + * used to cache assets and respond to fetch events. + */ + get strategy() { + return this._strategy; + } + /** + * Adds items to the precache list, removing any duplicates and + * stores the files in the + * {@link workbox-core.cacheNames|"precache cache"} when the service + * worker installs. + * + * This method can be called multiple times. + * + * @param {Array} [entries=[]] Array of entries to precache. + */ + precache(e) { + this.addToCacheList(e), this._installAndActiveListenersAdded || (self.addEventListener("install", this.install), self.addEventListener("activate", this.activate), this._installAndActiveListenersAdded = !0); + } + /** + * This method will add items to the precache list, removing duplicates + * and ensuring the information is valid. + * + * @param {Array} entries + * Array of entries to precache. + */ + addToCacheList(e) { + const t = []; + for (const n of e) { + typeof n == "string" ? t.push(n) : n && n.revision === void 0 && t.push(n.url); + const { cacheKey: r, url: a } = Ce(n), i = typeof n != "string" && n.revision ? "reload" : "default"; + if (this._urlsToCacheKeys.has(a) && this._urlsToCacheKeys.get(a) !== r) + throw new h("add-to-cache-list-conflicting-entries", { + firstEntry: this._urlsToCacheKeys.get(a), + secondEntry: r + }); + if (typeof n != "string" && n.integrity) { + if (this._cacheKeysToIntegrities.has(r) && this._cacheKeysToIntegrities.get(r) !== n.integrity) + throw new h("add-to-cache-list-conflicting-integrities", { + url: a + }); + this._cacheKeysToIntegrities.set(r, n.integrity); + } + if (this._urlsToCacheKeys.set(a, r), this._urlsToCacheModes.set(a, i), t.length > 0) { + const c = `Workbox is precaching URLs without revision info: ${t.join(", ")} +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`; + console.warn(c); + } + } + } + /** + * Precaches new and updated assets. Call this method from the service worker + * install event. + * + * Note: this method calls `event.waitUntil()` for you, so you do not need + * to call it yourself in your event handlers. + * + * @param {ExtendableEvent} event + * @return {Promise} + */ + install(e) { + return A(e, async () => { + const t = new xe(); + this.strategy.plugins.push(t); + for (const [a, i] of this._urlsToCacheKeys) { + const c = this._cacheKeysToIntegrities.get(i), o = this._urlsToCacheModes.get(a), l = new Request(a, { + integrity: c, + cache: o, + credentials: "same-origin" + }); + await Promise.all(this.strategy.handleAll({ + params: { cacheKey: i }, + request: l, + event: e + })); + } + const { updatedURLs: n, notUpdatedURLs: r } = t; + return { updatedURLs: n, notUpdatedURLs: r }; + }); + } + /** + * Deletes assets that are no longer present in the current precache manifest. + * Call this method from the service worker activate event. + * + * Note: this method calls `event.waitUntil()` for you, so you do not need + * to call it yourself in your event handlers. + * + * @param {ExtendableEvent} event + * @return {Promise} + */ + activate(e) { + return A(e, async () => { + const t = await self.caches.open(this.strategy.cacheName), n = await t.keys(), r = new Set(this._urlsToCacheKeys.values()), a = []; + for (const i of n) + r.has(i.url) || (await t.delete(i), a.push(i.url)); + return { deletedURLs: a }; + }); + } + /** + * Returns a mapping of a precached URL to the corresponding cache key, taking + * into account the revision information for the URL. + * + * @return {Map} A URL to cache key mapping. + */ + getURLsToCacheKeys() { + return this._urlsToCacheKeys; + } + /** + * Returns a list of all the URLs that have been precached by the current + * service worker. + * + * @return {Array} The precached URLs. + */ + getCachedURLs() { + return [...this._urlsToCacheKeys.keys()]; + } + /** + * Returns the cache key used for storing a given URL. If that URL is + * unversioned, like `/index.html', then the cache key will be the original + * URL with a search parameter appended to it. + * + * @param {string} url A URL whose cache key you want to look up. + * @return {string} The versioned URL that corresponds to a cache key + * for the original URL, or undefined if that URL isn't precached. + */ + getCacheKeyForURL(e) { + const t = new URL(e, location.href); + return this._urlsToCacheKeys.get(t.href); + } + /** + * @param {string} url A cache key whose SRI you want to look up. + * @return {string} The subresource integrity associated with the cache key, + * or undefined if it's not set. + */ + getIntegrityForCacheKey(e) { + return this._cacheKeysToIntegrities.get(e); + } + /** + * This acts as a drop-in replacement for + * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match) + * with the following differences: + * + * - It knows what the name of the precache is, and only checks in that cache. + * - It allows you to pass in an "original" URL without versioning parameters, + * and it will automatically look up the correct cache key for the currently + * active revision of that URL. + * + * E.g., `matchPrecache('index.html')` will find the correct precached + * response for the currently active service worker, even if the actual cache + * key is `'/index.html?__WB_REVISION__=1234abcd'`. + * + * @param {string|Request} request The key (without revisioning parameters) + * to look up in the precache. + * @return {Promise} + */ + async matchPrecache(e) { + const t = e instanceof Request ? e.url : e, n = this.getCacheKeyForURL(t); + if (n) + return (await self.caches.open(this.strategy.cacheName)).match(n); + } + /** + * Returns a function that looks up `url` in the precache (taking into + * account revision information), and returns the corresponding `Response`. + * + * @param {string} url The precached URL which will be used to lookup the + * `Response`. + * @return {workbox-routing~handlerCallback} + */ + createHandlerBoundToURL(e) { + const t = this.getCacheKeyForURL(e); + if (!t) + throw new h("non-precached-url", { url: e }); + return (n) => (n.request = new Request(e), n.params = Object.assign({ cacheKey: t }, n.params), this.strategy.handle(n)); + } +} +let U; +const I = () => (U || (U = new De()), U); +try { + self["workbox:routing:7.0.0"] && _(); +} catch { +} +const $ = "GET", C = (s) => s && typeof s == "object" ? s : { handle: s }; +class b { + /** + * Constructor for Route class. + * + * @param {workbox-routing~matchCallback} match + * A callback function that determines whether the route matches a given + * `fetch` event by returning a non-falsy value. + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resolving to a Response. + * @param {string} [method='GET'] The HTTP method to match the Route + * against. + */ + constructor(e, t, n = $) { + this.handler = C(t), this.match = e, this.method = n; + } + /** + * + * @param {workbox-routing-handlerCallback} handler A callback + * function that returns a Promise resolving to a Response + */ + setCatchHandler(e) { + this.catchHandler = C(e); + } +} +class Le extends b { + /** + * If the regular expression contains + * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references}, + * the captured values will be passed to the + * {@link workbox-routing~handlerCallback} `params` + * argument. + * + * @param {RegExp} regExp The regular expression to match against URLs. + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + * @param {string} [method='GET'] The HTTP method to match the Route + * against. + */ + constructor(e, t, n) { + const r = ({ url: a }) => { + const i = e.exec(a.href); + if (i && !(a.origin !== location.origin && i.index !== 0)) + return i.slice(1); + }; + super(r, t, n); + } +} +class Ue { + /** + * Initializes a new Router. + */ + constructor() { + this._routes = /* @__PURE__ */ new Map(), this._defaultHandlerMap = /* @__PURE__ */ new Map(); + } + /** + * @return {Map>} routes A `Map` of HTTP + * method name ('GET', etc.) to an array of all the corresponding `Route` + * instances that are registered. + */ + get routes() { + return this._routes; + } + /** + * Adds a fetch event listener to respond to events when a route matches + * the event's request. + */ + addFetchListener() { + self.addEventListener("fetch", (e) => { + const { request: t } = e, n = this.handleRequest({ request: t, event: e }); + n && e.respondWith(n); + }); + } + /** + * Adds a message event listener for URLs to cache from the window. + * This is useful to cache resources loaded on the page prior to when the + * service worker started controlling it. + * + * The format of the message data sent from the window should be as follows. + * Where the `urlsToCache` array may consist of URL strings or an array of + * URL string + `requestInit` object (the same as you'd pass to `fetch()`). + * + * ``` + * { + * type: 'CACHE_URLS', + * payload: { + * urlsToCache: [ + * './script1.js', + * './script2.js', + * ['./script3.js', {mode: 'no-cors'}], + * ], + * }, + * } + * ``` + */ + addCacheListener() { + self.addEventListener("message", (e) => { + if (e.data && e.data.type === "CACHE_URLS") { + const { payload: t } = e.data, n = Promise.all(t.urlsToCache.map((r) => { + typeof r == "string" && (r = [r]); + const a = new Request(...r); + return this.handleRequest({ request: a, event: e }); + })); + e.waitUntil(n), e.ports && e.ports[0] && n.then(() => e.ports[0].postMessage(!0)); + } + }); + } + /** + * Apply the routing rules to a FetchEvent object to get a Response from an + * appropriate Route's handler. + * + * @param {Object} options + * @param {Request} options.request The request to handle. + * @param {ExtendableEvent} options.event The event that triggered the + * request. + * @return {Promise|undefined} A promise is returned if a + * registered route can handle the request. If there is no matching + * route and there's no `defaultHandler`, `undefined` is returned. + */ + handleRequest({ request: e, event: t }) { + const n = new URL(e.url, location.href); + if (!n.protocol.startsWith("http")) + return; + const r = n.origin === location.origin, { params: a, route: i } = this.findMatchingRoute({ + event: t, + request: e, + sameOrigin: r, + url: n + }); + let c = i && i.handler; + const o = e.method; + if (!c && this._defaultHandlerMap.has(o) && (c = this._defaultHandlerMap.get(o)), !c) + return; + let l; + try { + l = c.handle({ url: n, request: e, event: t, params: a }); + } catch (u) { + l = Promise.reject(u); + } + const g = i && i.catchHandler; + return l instanceof Promise && (this._catchHandler || g) && (l = l.catch(async (u) => { + if (g) + try { + return await g.handle({ url: n, request: e, event: t, params: a }); + } catch (N) { + N instanceof Error && (u = N); + } + if (this._catchHandler) + return this._catchHandler.handle({ url: n, request: e, event: t }); + throw u; + })), l; + } + /** + * Checks a request and URL (and optionally an event) against the list of + * registered routes, and if there's a match, returns the corresponding + * route along with any params generated by the match. + * + * @param {Object} options + * @param {URL} options.url + * @param {boolean} options.sameOrigin The result of comparing `url.origin` + * against the current origin. + * @param {Request} options.request The request to match. + * @param {Event} options.event The corresponding event. + * @return {Object} An object with `route` and `params` properties. + * They are populated if a matching route was found or `undefined` + * otherwise. + */ + findMatchingRoute({ url: e, sameOrigin: t, request: n, event: r }) { + const a = this._routes.get(n.method) || []; + for (const i of a) { + let c; + const o = i.match({ url: e, sameOrigin: t, request: n, event: r }); + if (o) + return c = o, (Array.isArray(c) && c.length === 0 || o.constructor === Object && // eslint-disable-line + Object.keys(o).length === 0 || typeof o == "boolean") && (c = void 0), { route: i, params: c }; + } + return {}; + } + /** + * Define a default `handler` that's called when no routes explicitly + * match the incoming request. + * + * Each HTTP method ('GET', 'POST', etc.) gets its own default handler. + * + * Without a default handler, unmatched requests will go against the + * network as if there were no service worker present. + * + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + * @param {string} [method='GET'] The HTTP method to associate with this + * default handler. Each method has its own default. + */ + setDefaultHandler(e, t = $) { + this._defaultHandlerMap.set(t, C(e)); + } + /** + * If a Route throws an error while handling a request, this `handler` + * will be called and given a chance to provide a response. + * + * @param {workbox-routing~handlerCallback} handler A callback + * function that returns a Promise resulting in a Response. + */ + setCatchHandler(e) { + this._catchHandler = C(e); + } + /** + * Registers a route with the router. + * + * @param {workbox-routing.Route} route The route to register. + */ + registerRoute(e) { + this._routes.has(e.method) || this._routes.set(e.method, []), this._routes.get(e.method).push(e); + } + /** + * Unregisters a route with the router. + * + * @param {workbox-routing.Route} route The route to unregister. + */ + unregisterRoute(e) { + if (!this._routes.has(e.method)) + throw new h("unregister-route-but-not-found-with-method", { + method: e.method + }); + const t = this._routes.get(e.method).indexOf(e); + if (t > -1) + this._routes.get(e.method).splice(t, 1); + else + throw new h("unregister-route-route-not-registered"); + } +} +let y; +const ve = () => (y || (y = new Ue(), y.addFetchListener(), y.addCacheListener()), y); +function M(s, e, t) { + let n; + if (typeof s == "string") { + const a = new URL(s, location.href), i = ({ url: c }) => c.href === a.href; + n = new b(i, e, t); + } else if (s instanceof RegExp) + n = new Le(s, e, t); + else if (typeof s == "function") + n = new b(s, e, t); + else if (s instanceof b) + n = s; + else + throw new h("unsupported-route-type", { + moduleName: "workbox-routing", + funcName: "registerRoute", + paramName: "capture" + }); + return ve().registerRoute(n), n; +} +function Te(s, e = []) { + for (const t of [...s.searchParams.keys()]) + e.some((n) => n.test(t)) && s.searchParams.delete(t); + return s; +} +function* Pe(s, { ignoreURLParametersMatching: e = [/^utm_/, /^fbclid$/], directoryIndex: t = "index.html", cleanURLs: n = !0, urlManipulation: r } = {}) { + const a = new URL(s, location.href); + a.hash = "", yield a.href; + const i = Te(a, e); + if (yield i.href, t && i.pathname.endsWith("/")) { + const c = new URL(i.href); + c.pathname += t, yield c.href; + } + if (n) { + const c = new URL(i.href); + c.pathname += ".html", yield c.href; + } + if (r) { + const c = r({ url: a }); + for (const o of c) + yield o.href; + } +} +class Ie extends b { + /** + * @param {PrecacheController} precacheController A `PrecacheController` + * instance used to both match requests and respond to fetch events. + * @param {Object} [options] Options to control how requests are matched + * against the list of precached URLs. + * @param {string} [options.directoryIndex=index.html] The `directoryIndex` will + * check cache entries for a URLs ending with '/' to see if there is a hit when + * appending the `directoryIndex` value. + * @param {Array} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An + * array of regex's to remove search params when looking for a cache match. + * @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will + * check the cache for the URL with a `.html` added to the end of the end. + * @param {workbox-precaching~urlManipulation} [options.urlManipulation] + * This is a function that should take a URL and return an array of + * alternative URLs that should be checked for precache matches. + */ + constructor(e, t) { + const n = ({ request: r }) => { + const a = e.getURLsToCacheKeys(); + for (const i of Pe(r.url, t)) { + const c = a.get(i); + if (c) { + const o = e.getIntegrityForCacheKey(c); + return { cacheKey: c, integrity: o }; + } + } + }; + super(n, e.strategy); + } +} +function Me(s) { + const e = I(), t = new Ie(e, s); + M(t); +} +function Ne(s) { + return I().createHandlerBoundToURL(s); +} +function Ke(s) { + I().precache(s); +} +function Ae(s, e) { + Ke(s), Me(e); +} +const je = { + /** + * Returns a valid response (to allow caching) if the status is 200 (OK) or + * 0 (opaque). + * + * @param {Object} options + * @param {Response} options.response + * @return {Response|null} + * + * @private + */ + cacheWillUpdate: async ({ response: s }) => s.status === 200 || s.status === 0 ? s : null +}; +class Oe extends V { + /** + * @param {Object} [options] + * @param {string} [options.cacheName] Cache name to store and retrieve + * requests. Defaults to cache names provided by + * {@link workbox-core.cacheNames}. + * @param {Array} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins} + * to use in conjunction with this caching strategy. + * @param {Object} [options.fetchOptions] Values passed along to the + * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters) + * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796) + * `fetch()` requests made by this strategy. + * @param {Object} [options.matchOptions] [`CacheQueryOptions`](https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions) + */ + constructor(e = {}) { + super(e), this.plugins.some((t) => "cacheWillUpdate" in t) || this.plugins.unshift(je); + } + /** + * @private + * @param {Request|string} request A request to run this strategy for. + * @param {workbox-strategies.StrategyHandler} handler The event that + * triggered the request. + * @return {Promise} + */ + async _handle(e, t) { + const n = t.fetchAndCachePut(e).catch(() => { + }); + t.waitUntil(n); + let r = await t.cacheMatch(e), a; + if (!r) + try { + r = await n; + } catch (i) { + i instanceof Error && (a = i); + } + if (!r) + throw new h("no-response", { url: e.url, error: a }); + return r; + } +} +const Se = "shlink-web-client", We = "A React-based progressive web application for shlink", Be = "/shlink-web-client/feature/decouple-api-client", qe = "https://github.com/shlinkio/shlink-web-client", Fe = "MIT", He = { + 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: "vitest run --run", + "test:watch": "vitest --watch", + "test:ci": "npm run test -- --coverage", + "test:verbose": "npm run test -- --verbose" +}, Ve = { + "@fortawesome/fontawesome-free": "^6.4.2", + "@fortawesome/fontawesome-svg-core": "^6.4.2", + "@fortawesome/free-brands-svg-icons": "^6.4.2", + "@fortawesome/free-regular-svg-icons": "^6.4.2", + "@fortawesome/free-solid-svg-icons": "^6.4.2", + "@fortawesome/react-fontawesome": "^0.2.0", + "@json2csv/plainjs": "^7.0.3", + "@reduxjs/toolkit": "^1.9.5", + "@shlinkio/shlink-frontend-kit": "^0.2.0", + "@shlinkio/shlink-web-component": "^0.3.1", + bootstrap: "5.2.3", + bottlejs: "^2.0.1", + classnames: "^2.3.2", + "compare-versions": "^6.1.0", + csvtojson: "^2.0.10", + "date-fns": "^2.30.0", + ramda: "^0.27.2", + react: "^18.2.0", + "react-dom": "^18.2.0", + "react-external-link": "^2.2.0", + "react-redux": "^8.1.2", + "react-router-dom": "^6.15.0", + reactstrap: "^9.2.0", + "redux-localstorage-simple": "^2.5.1", + uuid: "^9.0.0", + "workbox-core": "^7.0.0", + "workbox-expiration": "^7.0.0", + "workbox-precaching": "^7.0.0", + "workbox-routing": "^7.0.0", + "workbox-strategies": "^7.0.0" +}, $e = { + "@shlinkio/eslint-config-js-coding-standard": "~2.3.0", + "@shlinkio/stylelint-config-css-coding-standard": "~1.1.1", + "@testing-library/jest-dom": "^6.1.2", + "@testing-library/react": "^14.0.0", + "@testing-library/user-event": "^14.4.3", + "@total-typescript/shoehorn": "^0.1.1", + "@types/leaflet": "^1.9.3", + "@types/ramda": "^0.27.66", + "@types/react": "^18.2.21", + "@types/react-dom": "^18.2.7", + "@types/uuid": "^9.0.2", + "@vitejs/plugin-react": "^4.0.4", + "@vitest/coverage-v8": "^0.34.3", + "adm-zip": "^0.5.10", + chalk: "^5.3.0", + eslint: "^8.48.0", + history: "^5.3.0", + jsdom: "^22.1.0", + sass: "^1.66.1", + stylelint: "^15.10.3", + typescript: "^5.1.6", + vite: "^4.4.9", + "vite-plugin-pwa": "^0.16.4", + vitest: "^0.34.3" +}, Ge = [ + ">0.2%", + "not dead", + "not ie <= 11", + "not op_mini all" +], Qe = { + name: Se, + description: We, + private: !1, + homepage: Be, + repository: qe, + license: Fe, + scripts: He, + dependencies: Ve, + devDependencies: $e, + browserslist: Ge +}; +re(); +Ae([{"revision":null,"url":"assets/index-7349d3b4.css"},{"revision":null,"url":"assets/index-ea5033a2.js"},{"revision":"e2f28f0dcd7a050d9036743c751ff770","url":"index.html"},{"revision":"3e8169a112865ef0d76bba4e2dfd3a89","url":"./icons/icon-16x16.png"},{"revision":"20f0b51945ae3c973420e31d6b4d43c1","url":"./icons/icon-24x24.png"},{"revision":"4c9695cfb4cea403c1b66bbb7b4f7420","url":"./icons/icon-32x32.png"},{"revision":"f74edb9cc54ac938c1589876f8da9f21","url":"./icons/icon-40x40.png"},{"revision":"52933970fac8498311687de13549b014","url":"./icons/icon-48x48.png"},{"revision":"40209a194f29b21882571c77bd2bd906","url":"./icons/icon-60x60.png"},{"revision":"c8ba5a8c1da76d74c7bb21827fcf975c","url":"./icons/icon-64x64.png"},{"revision":"ae3435baceb494f9c966e2c2c736ea35","url":"./icons/icon-72x72.png"},{"revision":"850aa5b026fd1452af6c1ddd9d71850f","url":"./icons/icon-76x76.png"},{"revision":"8c62535e6b7a498ece1f6c6ae62ede59","url":"./icons/icon-96x96.png"},{"revision":"2dff586aaefa4c8d17f4c0bcbdef8b53","url":"./icons/icon-114x114.png"},{"revision":"8e28257a68ef1c55bc68bfff80e1a310","url":"./icons/icon-120x120.png"},{"revision":"0059b6f0c97fa871a5c29643b2857585","url":"./icons/icon-128x128.png"},{"revision":"41478c2456281f61e54d714718743ecc","url":"./icons/icon-144x144.png"},{"revision":"625251910295f33a578ae6d8117711c9","url":"./icons/icon-150x150.png"},{"revision":"19b71508b1d05defe32cf16a7d453001","url":"./icons/icon-152x152.png"},{"revision":"9d029a32a54ba3084c67acd5d74f8ac4","url":"./icons/icon-160x160.png"},{"revision":"6ec104aeaf745f003ecdaef2edddce97","url":"./icons/icon-167x167.png"},{"revision":"871d67907434ed0ddf5d2a6c220e09af","url":"./icons/icon-180x180.png"},{"revision":"cee2529402074d73b2135e2ddee25f6b","url":"./icons/icon-192x192.png"},{"revision":"85055b452284c0193142936dee7d2cd1","url":"./icons/icon-196x196.png"},{"revision":"f471155dd70b99924422dd9dd87ea94d","url":"./icons/icon-228x228.png"},{"revision":"4d896c5c7025582605de31fb74f0316b","url":"./icons/icon-256x256.png"},{"revision":"d99b49e5bcad41968313c3e132e7c661","url":"./icons/icon-310x310.png"},{"revision":"f9597636bef677327c3abc0fd1a743c4","url":"./icons/icon-384x384.png"},{"revision":"de22c0eb9e08d3576df5cedb568ca56b","url":"./icons/icon-512x512.png"},{"revision":"583b223ad8e20f05aaa64923d7db2e46","url":"./icons/icon-1024x1024.png"},{"revision":"729756c353ac2415ada922b55d0da1ac","url":"manifest.json"}]); +const ze = new RegExp("/[^/?]+\\.[^/]+$"); +M( + // Return false to exempt requests from being fulfilled by index.html. + ({ request: s, url: e }) => !(s.mode !== "navigate" || e.pathname.startsWith("/_") || e.pathname.match(ze)), + Ne(`${Qe.homepage}/index.html`) +); +M( + // Add in any other file extensions or routing criteria as needed. + ({ url: s }) => s.origin === self.location.origin && s.pathname.endsWith(".png"), + // Customize this strategy as needed, e.g., by changing to CacheFirst. + new Oe({ + cacheName: "images", + plugins: [ + // Ensure that once this runtime cache reaches a maximum size the + // least-recently used images are removed. + new be({ maxEntries: 50 }) + ] + }) +); +self.addEventListener("message", (s) => { + s.data && s.data.type === "SKIP_WAITING" && self.skipWaiting(); +});